| Summary: | grpc fails to build for corei7-64-x32 | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] Other YP Layers | Reporter: | Kees-Jan <kees-jan> | ||||||
| Component: | layers | Assignee: | Kees-Jan <kees-jan> | ||||||
| Status: | RESOLVED MOVED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | Medium | CC: | poky.bs.watcher, poky.watcher, randy.macleod, ross.burton | ||||||
| Version: | 0.0.0 | ||||||||
| Target Milestone: | 0.0.0 | ||||||||
| Hardware: | x86 | ||||||||
| OS: | Multiple | ||||||||
| Whiteboard: | |||||||||
| OS type for building Yocto: | --- | Type of Regression: | --- | ||||||
| Verified: | Documentation change: | Don't know | |||||||
| Attachments: |
|
||||||||
|
Description
Kees-Jan
2023-11-23 14:05:11 UTC
Can you add the full log of the error please? Are you actually using x32 or just playing with it? If you are using it are you able to work on a fix and send a patch? -- Randy for YP bug review Created attachment 4988 [details]
log of the do_configure step (seems ok)
Created attachment 4989 [details]
Log of the do_compile step (contains the failure)
The error is: /home/kees-jan/src/poky/build/tmp/work/corei7-64-x32-poky-linux-gnux32/grpc/1.56.2/recipe-sysroot-native/usr/bin/x86_64-poky-linux-gnux32/../../libexec/x86_64-poky-linux-gnux32/gcc/x86_64-poky-linux-gnux32/13.2.0/ld: libgpr.so.33.0.0: no symbol version section for versioned symbol `memcpy@GLIBC_2.2.5' I imagine the problem is caused by this piece of code: https://github.com/grpc/grpc/blob/master/src/core/lib/gpr/wrap_memcpy.cc Explicitly handling x86-64 differently is probably a bad start and x32 needs to be handled differently. The trick is to use the presence of the __ILP32__ define to detect x32 vs x86-64. Note that this is the Yocto Project bugzilla and the bug appears to be isolated in the meta-oe recipe (as this is specific to grpc). meta-oe doesn't use this bug tracker (they use mailing list posts for bugs) and this is an upstream bug report, so my advise is to experiment with checking for __ILP32__ in that wrapper and then submit a fix to grpc upstream at https://github.com/grpc/grpc. |