Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[1.35.22] Failed to run LLVM optimizations #4078
I experience the following issue at link time, using version 1.35.22:
This is the log generated:
The program I try to generate, vSomeIP, a transport implementation for automotive, is publicly available at http://git.projects.genivi.org/vSomeIP.git
Boost is built using https://github.com/tee3/boost-build-emscripten.git data. I have made a modification in emscripten.jam in order to use -s USE_PTHREADS=1 compile+link option.
vSomeIP is built as is (cmake with CXX env. var. set to em++) with these small modifications:
Any information is welcome.
Stack trace looks like its casting debug info.
yes, everything is generated using version 1.35.22.
I have attached a zip file containing all materials allowing to reproduce the problem (just launch ./link.sh):
I am going to try to rebuild everything in debug mode to check if I could get more information.
Thanks. Looks like the problem can be reproduced by just running
Very strange. It's accessing memory at address 0 and segfaulting. This seems like it could be an LLVM bug. It would be helpful to narrow this down - I assume that file is the result of linking together others? Perhaps we can reproduce the problem on just one of them.
Well, I confirmed it's a debug issue. If you run
We should still try to file this as an upstream bug, though.
Assertions build says