Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » Cannot compile with CLANG on Linux Mint
Cannot compile with CLANG on Linux Mint [message #59655] |
Thu, 23 February 2023 13:02  |
Tom1
Messages: 1301 Registered: March 2007
|
Ultimate Contributor |
|
|
Hi,
For some reason I cannot compile with CLANG on Linux Mint anymore. GCC compilation still works, but CLANG halts on Core.h with:
/home/tom/upp.src/uppsrc/Core/Core.h:53:10: fatal error: 'typeinfo' file not found
This happened on both of my Linux installations quite recently.
Anyone else having similar issues? Any ideas how to solve this?
Best regards,
Tom
EDIT: OK, I manually added INCLUDE directories:
/usr/include/c++/11
/usr/include/x86_64-linux-gnu/c++/11
And LIB directories:
/usr/lib/x86_64-linux-gnu/11
Now I can compile, link and the executable runs.
What has changed so that I had to do this?
[Updated on: Thu, 23 February 2023 13:16] Report message to a moderator
|
|
|
|
Re: Cannot compile with CLANG on Linux Mint [message #59668 is a reply to message #59667] |
Mon, 27 February 2023 12:23   |
Tom1
Messages: 1301 Registered: March 2007
|
Ultimate Contributor |
|
|
Mirek,
Sorry for the false alarm and thanks for the diagnostic tip. This is clearly not an U++ issue.
I followed your instructions and "clang++ foo.cpp" fails with the same error. So, CLANG compilation is broken on my both Linux Mint systems. It must be some unfortunate update that broke it, I guess.
Best regards,
Tom
|
|
|
Re: Cannot compile with CLANG on Linux Mint [message #59715 is a reply to message #59668] |
Sun, 19 March 2023 19:43   |
Tom1
Messages: 1301 Registered: March 2007
|
Ultimate Contributor |
|
|
Hi,
There's certainly something weird going on with Linux Mint. Again, building broke down, this time when linking. After digging a bit, I found that now the library location needed to be changed from what used to work.
In order to make it easier, I appended the current paths into .profile in my home directory:
export CPLUS_INCLUDE_PATH="/usr/include/c++/11:/usr/include/x86_64-linux-gnu/c++/11"
export LIBRARY_PATH="/usr/lib/gcc/x86_64-linux-gnu/11"
We'll see how long this works until it breaks again...
Best regards,
Tom
|
|
|
|
|
|
|
Goto Forum:
Current Time: Tue Apr 29 09:30:37 CEST 2025
Total time taken to generate the page: 0.05620 seconds
|