Page 1 of 1

Problem compiling

Posted: 12 Aug 2014 18:33
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

Re: Problem compiling

Posted: 15 Aug 2014 23:01
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?