Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to next message
Tom1
Messages: 1212
Registered: March 2007
Senior 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 #59667 is a reply to message #59655] Mon, 27 February 2023 11:34 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Tom1 wrote on Thu, 23 February 2023 13:02
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?


I guess if your compiler does not see <typeinfo> (which is internal header), it is not our fault - something must have gone wrong with your platform.

In any case, have tried without theide? Just create a file with #include <typeinfo> and try to compile it from command line (clang++ foo.cpp).
Re: Cannot compile with CLANG on Linux Mint [message #59668 is a reply to message #59667] Mon, 27 February 2023 12:23 Go to previous messageGo to next message
Tom1
Messages: 1212
Registered: March 2007
Senior 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 Go to previous messageGo to next message
Tom1
Messages: 1212
Registered: March 2007
Senior 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
Re: Cannot compile with CLANG on Linux Mint [message #60018 is a reply to message #59655] Mon, 10 July 2023 19:18 Go to previous messageGo to next message
devilsclaw is currently offline  devilsclaw
Messages: 72
Registered: August 2022
Member
I just got an update on Ubuntu 20.04 and this just happened to me also.

The above environment changes also worked for me.

[Updated on: Mon, 10 July 2023 19:21]

Report message to a moderator

Re: Cannot compile with CLANG on Linux Mint [message #60019 is a reply to message #59655] Mon, 10 July 2023 19:33 Go to previous messageGo to next message
devilsclaw is currently offline  devilsclaw
Messages: 72
Registered: August 2022
Member
The current fix I found was to install libstd++-12-dev based off this post https://bugs.launchpad.net/ubuntu/+source/clang/+bug/1997600
Re: Cannot compile with CLANG on Linux Mint [message #60038 is a reply to message #60019] Wed, 12 July 2023 09:40 Go to previous messageGo to next message
Tom1
Messages: 1212
Registered: March 2007
Senior Contributor
devilsclaw wrote on Mon, 10 July 2023 20:33
The current fix I found was to install libstd++-12-dev based off this post https://bugs.launchpad.net/ubuntu/+source/clang/+bug/1997600

Hi,

Thanks. Tried this and it works for me too. However, the package must be libstdc++-12-dev (not libstd++-12-dev):

sudo apt-get install libstdc++-12-dev


Best regards,

Tom
Re: Cannot compile with CLANG on Linux Mint [message #60039 is a reply to message #59655] Wed, 12 July 2023 15:16 Go to previous message
devilsclaw is currently offline  devilsclaw
Messages: 72
Registered: August 2022
Member
Thanks for correcting that. I must of just miss typed it.
Previous Topic: Edit: Never mind this message can be deleted
Next Topic: Clean UPPOUT data recovery
Goto Forum:
  


Current Time: Tue Apr 16 18:53:36 CEST 2024

Total time taken to generate the page: 0.01052 seconds