Skip to content
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

Ubuntu 18.04 LTS and LLVM 8 issue #91

pjaaskel opened this issue Jul 11, 2019 · 1 comment


Copy link

@pjaaskel pjaaskel commented Jul 11, 2019

Linkage fails with Ubuntu 18.04 LTS when running the tools from build directories and having the updates repository enabled:

relocation error: /home/visit0r/src/tce/tce/src/.libs/ symbol _ZN4llvm23EnableABIBreakingChecksE version LLVM_8 not defined in file with link time reference

This is because Ubuntu 18.04 generates an illegal libtool wrapper script which overrides the user set LD_LIBRARY_PATH by prepending the system library path, thus loading the required by libqt, (indirectly) by libwxgtk etc. while the user would like to use the TCE-patched one installed in the home directory.

A workaround is to force load the custom libLLVM via LD_PRELOAD. This is of course nice since it induces the load time to all invocations (basically all commands). But it's needed only when running the tools from the build dir.


export LD_PRELOAD=$HOME/local/lib/

Another workaround would be to make TCE use or similar since Ubuntu 18.04 does not ship that (yet), thus we'd link to the TCE patched one.

The true issue here is the libtoolize bug that overrides user LD_LIBRARY_PATH, hopefully it will be fixed in the future. We should report it if it's not (TODO).

@pjaaskel pjaaskel changed the title KUbuntu 18.04 LTS and LLVM 8 issue Ubuntu 18.04 LTS and LLVM 8 issue Jul 11, 2019
@pjaaskel pjaaskel closed this in 820fe44 Jul 13, 2019

This comment has been minimized.

Copy link
Contributor Author

@pjaaskel pjaaskel commented Jul 13, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.