Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: robc on March 11, 2010, 03:25:19 PM

Title: gcc -fno-exceptions -fno-rtti
Post by: robc on March 11, 2010, 03:25:19 PM
I've been meaning to ask this for a while now. Has anyone else seen this message in a ./configure ?
Quote
checking if gcc supports -fno-rtti -fno-exceptions... no

CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti"

Does this mean the fno-exceptions and fno-rtti flags are not recognized by gcc?
Title: Re: gcc -fno-exceptions -fno-rtti
Post by: Juanito on March 12, 2010, 03:00:12 AM
I've seen the message a couple of times - were you using tc-2.9?

In tc-2.9, libstdc++ was re-compiled to support exceptions - since this was done, I have not seen the message (but could have missed it) and in testing, apps requiring exception support worked.

For "-fno-rtti", maybe ^hats^ would like to comment?
Title: Re: gcc -fno-exceptions -fno-rtti
Post by: robc on March 12, 2010, 11:06:09 AM
I've noticed it throughout TC 2.X (don't remember if I saw it in 1.X or not). The latest is with TC 2.9. It may be a problem with the package I am building. I'll check some others to confirm.
Title: Re: gcc -fno-exceptions -fno-rtti
Post by: Juanito on March 12, 2010, 11:42:52 AM
could you let me know what package you're trying to build so I can have a look too?
Title: Re: gcc -fno-exceptions -fno-rtti
Post by: robc on March 12, 2010, 02:30:19 PM
I posted this after seeing it with configuring php-5.3.2 on tc 2.9.

Edit: I also see it in lighttpd-1.4.26
Title: Re: gcc -fno-exceptions -fno-rtti
Post by: Juanito on March 13, 2010, 04:45:05 AM
testing with php-5.3.2, I found that both CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" and CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe" give the same error.

Looking at config.log, it's not obvious what, if any, test the php configure scripts runs to find if "-fno-exceptions -fno-rtti" works or not.

Note that using gcc-4.4.3 gives the same error.