[systemd-devel] Compilation with gcc-4.9 fails
Jan Engelhardt
jengelh at inai.de
Tue Apr 22 16:05:21 PDT 2014
On Monday 2014-03-03 07:51, Jan Engelhardt wrote:
>
>When building with GCC 4.9.0 [svn r208221], then the following happens:
>[...]
>$ nm src/libsystemd/sd-bus/.libs/libsystemd_la-sd-bus.o
>0000000000000001 C __gnu_lto_slim
>0000000000000001 C __gnu_lto_v1
>$ make
>[...]
> CCLD libgudev-1.0.la
>/usr/bin/ld.gold: error: .libs/libgudev-1.0.ver:2:1: syntax error, unexpected LOCAL, expecting STRING or QUOTED_STRING or EXTERN
>/usr/bin/ld.gold: fatal error: unable to parse version script file .libs/libgudev-1.0.ver
>collect2: error: ld returned 1 exit status
A workaround is to use
./configure NM=gcc-nm-4.9
Ultimately this is something for the libtool and/or gcc projects to
tackle, systemd is not the culprit here.
More information about the systemd-devel
mailing list