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 » Linux compile fails
Re: Linux compile fails [message #1236 is a reply to message #1235] Fri, 24 February 2006 11:31 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
iplayfast wrote on Fri, 24 February 2006 05:01

luzr wrote on Fri, 24 February 2006 04:50

Please, try to remove

-ffunction-sections

from the

CC = c++ -c -O2 -Os -ffunction-sections

line.

Mirek

P.S.: I am sorry for linux troubles - we are seeking for capable Linux maintainer/releaser for years now...


I've not seen -ffunction-sections before. What does it do?

As far as Linux I might be able to give you a hand. Let me get more familiar with your system first though. After I get this up and running I'm going to try to make a autoconf make system for it. (If nothing else it will refresh my skills).




Well, -ffunction-sections is a flag for compiler that puts each function into separate section. This makes dead-code removal possible for the linker.

However, it unfortunately turns out that "ld" does not do removal anyway, and some ld versions react with the error message you have encountered (meanwhile, our own MinGW ld replacement "uld" is able to use this).

I have already encountered the error in ubuntu a "-ffunction-sections" is now removed from TheIDE GCC builder in Linux, but it looks like it somehow survived in makefile generator...

When thinking about autoconf etc, please keep always keep in mind the "synthetic" nature of Makefile. OTOH, if something is needed to be added to Makefile generator, we will be happy to do so.

Also, the whole linux distribution structure is open to discussion. What we have now is what we were able to put together with our limited resources...

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Can't run newly compiled helloworld.o (New User)
Next Topic: problem debugging theIde with theIde in Linux [BUG?]
Goto Forum:
  


Current Time: Tue Aug 26 01:14:54 CEST 2025

Total time taken to generate the page: 0.01116 seconds