WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: gcc -fno-exceptions -fno-rtti  (Read 6032 times)

Offline robc

  • Sr. Member
  • ****
  • Posts: 447
gcc -fno-exceptions -fno-rtti
« 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?
"Never give up! Never surrender!" - Commander Peter Quincy Taggart

"Make it so." - Captain Picard

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: gcc -fno-exceptions -fno-rtti
« Reply #1 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?

Offline robc

  • Sr. Member
  • ****
  • Posts: 447
Re: gcc -fno-exceptions -fno-rtti
« Reply #2 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.
"Never give up! Never surrender!" - Commander Peter Quincy Taggart

"Make it so." - Captain Picard

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: gcc -fno-exceptions -fno-rtti
« Reply #3 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?

Offline robc

  • Sr. Member
  • ****
  • Posts: 447
Re: gcc -fno-exceptions -fno-rtti
« Reply #4 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
« Last Edit: March 12, 2010, 03:19:12 PM by robc »
"Never give up! Never surrender!" - Commander Peter Quincy Taggart

"Make it so." - Captain Picard

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: gcc -fno-exceptions -fno-rtti
« Reply #5 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.