You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PKG_CONFIG_PATH=/home/rf6et/Desktop/saransh_mttr/32bitsysroot/lib/arm-linux-gnueabihf/pkgconfig/ gn gen --args='target_cpu="arm" target_os="linux" sysroot="/home/rf6et/Desktop/saransh_mttr/32bitsysroot" system_libdir="/home/rf6et/Desktop/saransh_mttr/32bitsysroot/lib/arm-linux-gnueabihf" chip_crypto="mbedtls" is_clang=true' out/rpiARMf
referenced by pthread_join_common.c:73
pthread_join_common.o:(__pthread_clockjoin_ex) in archive /home/rf6et/Desktop/saransh_mttr/32bitsysroot/usr/lib/arm-linux-gnueabihf/libpthread.a
referenced by pthread_join_common.c:145
pthread_join_common.o:(__pthread_clockjoin_ex) in archive /home/rf6et/Desktop/saransh_mttr/32bitsysroot/usr/lib/arm-linux-gnueabihf/libpthread.a
referenced by futex-internal.h:364 (../sysdeps/nptl/futex-internal.h:364)
pthread_once.o:(clear_once_control) in archive /home/rf6et/Desktop/saransh_mttr/32bitsysroot/usr/lib/arm-linux-gnueabihf/libpthread.a
referenced 101 more times
referenced by unwind.c:72
unwind.o:(unwind_stop) in archive /home/rf6et/Desktop/saransh_mttr/32bitsysroot/usr/lib/arm-linux-gnueabihf/libpthread.a
ld.lld: error: undefined symbol: __dladdr
referenced by dladdr.o:(.text+0x0) in archive /home/rf6et/Desktop/saransh_mttr/32bitsysroot/usr/lib/arm-linux-gnueabihf/libdl.a
ld.lld: error: undefined symbol: _dl_stack_flags
referenced by pthread_create.c:688
pthread_create.o:(__pthread_create_2_1) in archive /home/rf6et/Desktop/saransh_mttr/32bitsysroot/usr/lib/arm-linux-gnueabihf/libpthread.a
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
5. info about symlink of pthread
ls -l usr/lib/arm-linux-gnueabihf/libpthread.so
lrwxrwxrwx 1 rf6et rf6et 41 Mar 21 10:32 usr/lib/arm-linux-gnueabihf/libpthread.so -> ./lib/arm-linux-gnueabihf/libpthread.so.0
6. ARCH OF THE RPI from which sysroot was buit
rf6@ubuntu:$ uname -m
armv7l
rf6@ubuntu:$ uname -a
Linux ubuntu 5.4.0-1069-raspi #79-Ubuntu SMP PREEMPT Thu Aug 18 18:18:46 UTC 2022 armv7l armv7l armv7l GNU/Linux
Bug prevalence
always
GitHub hash of the SDK that was being used
Platform
raspi
Platform Version(s)
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered:
Reproduction steps
Following steps were used
1. generate the sysroot from rpi to our local host
rsync -avz rf6@172.32.1.45:/lib .
rsync -avz rf6@172.32.1.45:/usr/lib usr
rsync -avz rf6@172.32.1.45:/usr/include usr
2. fix the symlinks
ln -s usr/lib lib
3. run the commands to compile and build
PKG_CONFIG_PATH=/home/rf6et/Desktop/saransh_mttr/32bitsysroot/lib/arm-linux-gnueabihf/pkgconfig/ gn gen --args='target_cpu="arm" target_os="linux" sysroot="/home/rf6et/Desktop/saransh_mttr/32bitsysroot" system_libdir="/home/rf6et/Desktop/saransh_mttr/32bitsysroot/lib/arm-linux-gnueabihf" chip_crypto="mbedtls" is_clang=true' out/rpiARMf
4. run ninja
ninja -C out/rpiARMf/
error:
FAILED: address-resolve-tool address-resolve-tool.map
clang++ --target=armv7-linux-gnueabihf -O0 -fPIC -Werror -Wl,--fatal-warnings -Wl,-z,defs -fdiagnostics-color --sysroot=/home/rf6et/Desktop/saransh_mttr/32bitsysroot -Wl,--gc-sections -pie -L/home/rf6et/Desktop/saransh_mttr/32bitsysroot/usr/lib/arm-linux-gnueabihf -Wl,-Map,./address-resolve-tool.map -Wl,--cref @./address-resolve-tool.rsp -o ./address-resolve-tool
ld.lld: error: undefined symbol: __libc_do_syscall
ld.lld: error: undefined symbol: __pointer_chk_guard_local
ld.lld: error: undefined symbol: __dladdr
ld.lld: error: undefined symbol: _dl_stack_flags
5. info about symlink of pthread
ls -l usr/lib/arm-linux-gnueabihf/libpthread.so
lrwxrwxrwx 1 rf6et rf6et 41 Mar 21 10:32 usr/lib/arm-linux-gnueabihf/libpthread.so -> ./lib/arm-linux-gnueabihf/libpthread.so.0
6. ARCH OF THE RPI from which sysroot was buit
rf6@ubuntu:
$ uname -m$ uname -aarmv7l
rf6@ubuntu:
Linux ubuntu 5.4.0-1069-raspi #79-Ubuntu SMP PREEMPT Thu Aug 18 18:18:46 UTC 2022 armv7l armv7l armv7l GNU/Linux
Bug prevalence
always
GitHub hash of the SDK that was being used
Platform
raspi
Platform Version(s)
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: