Robin van Leeuwen
2005-Aug-18 10:38 UTC
[Xen-devel] Compile error secpol_tool.c amd64 libc6
I compile on my debian box (3.1 testing) gcc version 3.3.6 (Debian 1:3.3.6-7) libc6.3-5.so.3.3.0 and when it came to compiling the tools i got an error: make secpol_tool make[3]: Entering directory `/usr/src/xen-unstable.hg/tools/security'' gcc -m64 -static -Wall -Werror -O3 -fno-strict-aliasing -I. -o secpol_tool secpol_tool.c /usr/bin/ld: __libc_errno: TLS definition in /usr/lib/gcc-lib/x86_64-linux-gnu/3.3.6/../../../../lib64/libc.a(errno.o) section .tbss mismatches non-TLS reference in /usr/lib/gcc-lib/x86_64-linux-gnu/3.3.6/../../../../lib64/libc.a(check_fds.o) /usr/lib/gcc-lib/x86_64-linux-gnu/3.3.6/../../../../lib64/libc.a: could not read symbols: Bad value collect2: ld returned 1 exit status make[3]: *** [secpol_tool] Error 1 I resolved it temprarily by builing secpol_tool not static: gcc -m64 =Wall -Werror -O3 -fno-strict-aliasing -I. -o secpol_tool secpol_tool.c _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Robin van Leeuwen
2005-Aug-18 10:49 UTC
[Xen-devel] Compile error secpol_tool.c amd64 libc6
Sorry forgot to mention: latets xen-unstable release: (18-8-2004 20:00 GMT last hg pull -u) --- I compile on my debian box (3.1 testing) gcc version 3.3.6 (Debian 1:3.3.6-7) libc6.3-5.so.3.3.0 and when it came to compiling the tools i got an error: make secpol_tool make[3]: Entering directory `/usr/src/xen-unstable.hg/tools/security'' gcc -m64 -static -Wall -Werror -O3 -fno-strict-aliasing -I. -o secpol_tool secpol_tool.c /usr/bin/ld: __libc_errno: TLS definition in /usr/lib/gcc-lib/x86_64-linux-gnu/3.3.6/../../../../lib64/libc.a(errno.o) section .tbss mismatches non-TLS reference in /usr/lib/gcc-lib/x86_64-linux-gnu/3.3.6/../../../../lib64/libc.a(check_fds.o) /usr/lib/gcc-lib/x86_64-linux-gnu/3.3.6/../../../../lib64/libc.a: could not read symbols: Bad value collect2: ld returned 1 exit status make[3]: *** [secpol_tool] Error 1 I resolved it temprarily by builing secpol_tool not static: gcc -m64 =Wall -Werror -O3 -fno-strict-aliasing -I. -o secpol_tool secpol_tool.c _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Reiner Sailer
2005-Aug-18 16:34 UTC
[Xen-devel] re: Compile error secpol_tool.c amd64 libc6
> Message: 4 > Date: Thu, 18 Aug 2005 12:38:26 +0200 > From: Robin van Leeuwen <robin.van.leeuwen@nl.nyklogistics.com> > Subject: [Xen-devel] Compile error secpol_tool.c amd64 libc6 > To: xen-devel@lists.xensource.com > Message-ID: <43046522.1030206@nl.nyklogistics.com> > Content-Type: text/plain; charset=ISO-8859-1 > > I compile on my debian box (3.1 testing) > gcc version 3.3.6 (Debian 1:3.3.6-7) > libc6.3-5.so.3.3.0 > > and when it came to compiling the tools i got an error: > > make secpol_tool > make[3]: Entering directory `/usr/src/xen-unstable.hg/tools/security'' > gcc -m64 -static -Wall -Werror -O3 -fno-strict-aliasing -I. -o > secpol_tool secpol_tool.c > /usr/bin/ld: __libc_errno: TLS definition in >/usr/lib/gcc-lib/x86_64-linux-gnu/3.3.6/../../../../lib64/libc.a(errno.o)> section .tbss mismatches non-TLS reference in >/usr/lib/gcc-lib/x86_64-linux-gnu/3.3.6/../../../../lib64/libc.a(check_fds.o)> /usr/lib/gcc-lib/x86_64-linux-gnu/3.3.6/../../../../lib64/libc.a: could > not read symbols: Bad value > collect2: ld returned 1 exit status > make[3]: *** [secpol_tool] Error 1 > > I resolved it temprarily by builing secpol_tool not static: > > gcc -m64 =Wall -Werror -O3 -fno-strict-aliasing -I. -o secpol_tool > secpol_tool.cGuess there might be some problem with your static libs. We compile static in order to be able to run the binaries in minimal domain configurations (ramdisk etc.). However, since we have seen other problems with static libraries, our next patch will delete the static flag and we will use shared libraries by default. Thanks Reiner _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel