-
Notifications
You must be signed in to change notification settings - Fork 102
[bug] ninja check-llvm-toolchain fails on FreeBSD #569
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
let's cc @keith-packard too since it seems to be more picolibc related. I'll try to deep dive a little on the building process and steps again during the weekend |
Looks like scripts/duplicate-names needs a fix to ignore 'N' symbols (the nm manual says those are debugging symbols). The build is just trying to make sure each C library symbol is defined only once which it does by running nm on the library. It's not a perfect method, but it has found enough bugs to remain a useful tool. |
Thanks for the response, Keith (: it seems like changing the grep instruction in scripts/duplicate-names to: "$NM" -g "$FILE" 2>/dev/null | grep ' [A-EG-MO-TVX-Z] ' | grep -v '__x86' | sort | uniq -d > "$OUTPUT" makes the compilation to continue without failing at that step. Now the issue seems to happen when running the test suite. It definitely doesn't like the cplusplus test, similar to the OpenBSD issue mentioned above, and when I disable it, the process still fails at some point under FreeBSD. I'm still tracing it trying to check if it's an error of mine in the environment setup before making more noise. |
Check out picolibc/picolibc#890 -- that has your change to fix this. |
First of all, it seems to be similar to what happens in issue #492 but the line mentioned there to be causing the problem is patched in the main branch I tried on, plus this happens in FreeBSD.
I'm attaching logs at the end of the text.
cmake.log
contains the output of thecmake
instruction andninja.log
contains the output of theninja
command to build the lib.System information:
Steps to reproduce:
And it seems to fail at this point in the process:
It then attempts to continue for a bit (see ninja.log) but it ends up failing to an exit.
Not sure if being a picolibc build step this should be an issue on their repo too, or just keep it here.
cmake.log
ninja.log
The text was updated successfully, but these errors were encountered: