Problem compiling

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

Post Reply
andoru
Engineer
Engineer
Posts: 28
Joined: 24 Jan 2013 21:02

Problem compiling

Post by andoru »

OS: CrunchBang 11 Waldorf x86 with testing Debian repos
OpenTTD source version: 1.4.1
config.log

Errors:

Code: Select all

[SRC] Compiling waypoint_cmd.cpp
[SRC] Compiling waypoint.cpp
[SRC] Compiling waypoint_gui.cpp
[SRC] Compiling widget.cpp
[SRC] Compiling widgets/dropdown.cpp
[SRC] Compiling window.cpp
[SRC] Linking openttd
autoreplace.o (symbol from plugin): warning: memset used with constant zero length parameter; this could be due to transposed parameters
g++: error: -pg and -fomit-frame-pointer are incompatible
g++: error: -pg and -fomit-frame-pointer are incompatible
g++: error: -pg and -fomit-frame-pointer are incompatible

[...]

g++: error: -pg and -fomit-frame-pointer are incompatible
g++: error: -pg and -fomit-frame-pointer are incompatible
g++: error: -pg and -fomit-frame-pointer are incompatible
lto-wrapper: /usr/bin/g++ returned 1 exit status
/usr/bin/ld: lto-wrapper failed
collect2: error: ld returned 1 exit status
Makefile:267: recipe for target 'openttd' failed
make[1]: *** [openttd] Error 1
make[1]: Leaving directory '/home/andoru/sources/openttd-1.4.1/objs/release'
Makefile:56: recipe for target 'all' failed
make: *** [all] Error 1
I support Universal Basic Income, and so should you, here's why. Another reason why.
Commonly asked questions about UBI
Spread the word!
andoru
Engineer
Engineer
Posts: 28
Joined: 24 Jan 2013 21:02

Re: Problem compiling

Post by andoru »

I tried compiling again with less options when configuring, then I tried without the --enable-lto option and it worked. Strangely when I used just that option at compile it worked again, so then I removed the --enable-profiling and it worked yet again. Any patch/solution for this problem?
I support Universal Basic Income, and so should you, here's why. Another reason why.
Commonly asked questions about UBI
Spread the word!
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 6 guests