-
Notifications
You must be signed in to change notification settings - Fork 214
Description
The gn-native segfaults when run, pretty much instantly, before producing any output or parsing the command line.
Building up the the install stage produces a gn binary in: $BBPATH/tmp/work/x86_64-linux/gn-native/132.0.6834.83/image/.../recipe-sysroot-native/usr/bin/gn
It works fine.
Then executing the populate_sysroot stage produces new gn binaries (the same file) in:
$BBPATH/tmp/sysroots-components/x86_64/gn-native/usr/bin/gn
${WORKDIR}/sysroot-destdir/.../recipe-sysroot-native/usr/bin/gn
This file is stripped. Also the DT_RUNPATH value has been changed. This executable will not run and just segfaults.
Stripping the working executable doesn't break it. Changing the DT_RUNPATH with patchelf to the same path as the broken executable causes it to not find libc++abi, which is expected. Setting LD_LIBRARY_PATH to allow it to find the library allows it to work. The broken executable still does not work when run this way.
I don't know what else populate_sysroot did to modify the binary, but something broke it.