http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59925
Bug ID: 59925
Summary: [4.9 Regression] link failure in python2.7 build with
-flto and -fprofile-use -fprofile-correction enabled
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
Assignee: unassigned at gcc dot gnu.org
Reporter: doko at gcc dot gnu.org
seen with trunk 20140122, works with the 4.8 branch.
not sure how to report that, it is a python build, with pgo and lto enabled.
x86_64-linux-gnu-gcc -pthread -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g
-fwrapv -O3 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -f
stack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -g
-flto -fuse-linker-plugin -fprofile-use -fprofile-correction
-Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions -o python \
Modules/python.o \
-Wl,--whole-archive libpython2.7.a
-Wl,--no-whole-archive -lpthread -ldl -lutil -L/usr/lib -lz -lm
posixmodule.o (symbol from plugin): warning: the use of `tmpnam_r' is
dangerous, better use `mkstemp'
posixmodule.o (symbol from plugin): warning: the use of `tempnam' is dangerous,
better use `mkstemp'
bytearrayobject.o (symbol from plugin): warning: memset used with constant zero
length parameter; this could be due to transposed parameters
/tmp/ccxo5Fd4.ltrans7.ltrans.o:(.debug_info+0x136d3): undefined reference to
`.L5336'
collect2: error: ld returned 1 exit status