Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't compile with gcc 4.9 #463

Closed
underdoeg opened this issue May 20, 2014 · 5 comments
Closed

Can't compile with gcc 4.9 #463

underdoeg opened this issue May 20, 2014 · 5 comments

Comments

@underdoeg
Copy link

I was unable to compile codelite with gcc 4.9 on arch Linux 64bits. Tried with latest release and git version. Gcc 4.8 compiles ok.

The problem were several linker errors:

/home/phwhitfield/softwareSources/codelite-5.4/build-release/lib/libplugin.so: undefined reference to `wxCommandEvent::Clone() const'
collect2: error: ld returned 1 exit status

Arch bug report
https://aur.archlinux.org/packages/codelite/

Possible workaround is to disable -O3
https://aur.archlinux.org/packages/dolphin-emu-git/

@dghart
Copy link
Collaborator

dghart commented May 20, 2014

Thank you for reporting this. A fedora user had mentioned it on #codelite a few days ago. It seems to be a gcc 4.9 'feature' to do with link-time optimisation, and is likely to affect many programs that link to wxGTK.

Possible workaround is to disable -O3

CodeLite uses -02 at present. Perhaps passing -fno-lto would be a workaround that doesn't lose other optimisations. Or, revert to gcc 4.8!

I don't have a gcc 4.9 system available for checking atm and, like over 7 billion other people, I don't really understand what's going wrong: is it the way the wxGTK libs were built, or something that CodeLite itself is doing wrong (perhaps with its plugins??), or what?

I hope the situation becomes clearer before gcc 4.9 becomes widespread. Meanwhile I'll leave this bug open as a reminder.

Regards,

David

@eranif
Copy link
Owner

eranif commented Jun 4, 2014

Closed.
When we start building with GCC 4.9 we will probably encounter and fix this

@eranif eranif closed this as completed Jun 4, 2014
@Alexpux
Copy link
Contributor

Alexpux commented Jul 17, 2014

This issue is related to:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61214

@cheese
Copy link

cheese commented Nov 2, 2014

The above gcc issue has been fixed in 4.9.2.

@underdoeg
Copy link
Author

Yes, git version compiles on my machine now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants