Received: from eggs.gnu.org ([2001:4830:134:3::10]:56321) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bnKP2-0007J5-Iu for qemu-devel@nongnu.org; Fri, 23 Sep 2016 02:56:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bnKOy-0007ac-Ln for qemu-devel@nongnu.org; Fri, 23 Sep 2016 02:56:07 -0400 Received: from indium.canonical.com ([91.189.90.7]:44573) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bnKOy-0007aV-DJ for qemu-devel@nongnu.org; Fri, 23 Sep 2016 02:56:04 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1bnKOw-0002a0-Q9 for ; Fri, 23 Sep 2016 06:56:02 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id C1C6B2E80C8 for ; Fri, 23 Sep 2016 06:56:02 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Fri, 23 Sep 2016 06:50:02 -0000 From: "T. Huth" <1258168@bugs.launchpad.net> Reply-To: Bug 1258168 <1258168@bugs.launchpad.net> Sender: bounces@canonical.com References: <20131205142458.27451.98534.malonedeb@gac.canonical.com> Message-Id: <20160923065002.23585.46688.malone@gac.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1258168] Re: QEMU fails to build on CentOS 5.10 with --disable-pie reporting "/usr/bin/ld: -f may not be used without -shared " List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org libcacard has been removed from the QEMU sources and is an external project now, so this problem should not exist anymore with the latest version of QEMU. If it still persists, please feel free to re-open this ticket. ** Changed in: qemu Status: New =3D> Invalid -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1258168 Title: QEMU fails to build on CentOS 5.10 with --disable-pie reporting "/usr/bin/ld: -f may not be used without -shared " Status in QEMU: Invalid Bug description: fails for (7dc65c0 (HEAD, origin/master, origin/HEAD, master) Open 2.0 development tree): ... libtool --mode=3Dlink --tag=3DCC cc -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BI= TS=3D64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wu= ndef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -Wendif-lab= els -Wmissing-include-dirs -Wnested-externs -Wformat-security -Wformat-y2k = -Winit-self -Wold-style-definition -fstack-protector-all -I/usr/include/lib= png12 -I/usr/include/nss3 -I/usr/include/nspr4 -pthread -I/usr/include/gl= ib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/home/don/= qemu/dtc/libfdt -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/incl= ude -I/home/don/qemu/tests -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3D2 -g -= Wl,--warn-common -m64 -g -o vscclient libcacard/vscclient.o libcacard.la = -Wc,-fstack-protector-all -lrt -pthread -L/lib64 -lgthread-2.0 -lglib-2.0 = -lz -L/usr/kerberos/lib64 -lcurl -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lc= om_err -lidn -lssl -lcrypto -lz -luuid cc -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=3D64 -D_LARGEFILE_SOURCE -Wstri= ct-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-pro= totypes -fno-strict-aliasing -Wendif-labels -Wmissing-include-dirs -Wnested= -externs -Wformat-security -Wformat-y2k -Winit-self -Wold-style-definition = -fstack-protector-all -I/usr/include/libpng12 -I/usr/include/nss3 -I/usr/in= clude/nspr4 -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include = -I/usr/include/pixman-1 -I/home/don/qemu/dtc/libfdt -pthread -I/usr/include= /glib-2.0 -I/usr/lib64/glib-2.0/include -I/home/don/qemu/tests -O2 -U_FORTI= FY_SOURCE -D_FORTIFY_SOURCE=3D2 -g -Wl,--warn-common -m64 -g -o .libs/vsccl= ient libcacard/vscclient.o -Wl,-fstack-protector-all -pthread ./.libs/libc= acard.so -L/lib64 -L/usr/kerberos/lib64 -lssl3 -lsmime3 -lnss3 -lnssutil3 -= lplds4 -lplc4 -lnspr4 -lpthread -lrt -lgthread-2.0 -lglib-2.0 -lcurl -ldl -= lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lidn -lssl -lcrypto -lz -luuid -= Wl,--rpath -Wl,/usr/local/lib /usr/bin/ld: -f may not be used without -shared collect2: ld returned 1 exit status make: *** [vscclient] Error 1 = rm -rf out/tmp;mkdir out/tmp;pushd out/tmp;../../configure --disable-pie;= make V=3D1 1>zz1 2>&1;popd ~/qemu/out/tmp ~/qemu Install prefix /usr/local BIOS directory /usr/local/share/qemu binary directory /usr/local/bin library directory /usr/local/lib libexec directory /usr/local/libexec include directory /usr/local/include config directory /usr/local/etc local state directory /usr/local/var Manual directory /usr/local/share/man ELF interp prefix /usr/gnemul/qemu-%M Source path /home/don/qemu C compiler cc Host C compiler cc C++ compiler c++ Objective-C compiler cc ARFLAGS rv CFLAGS -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3D2 -g QEMU_CFLAGS -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=3D64 -D_LARGEFIL= E_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-string= s -Wmissing-prototypes -fno-strict-aliasing -Wendif-labels -Wmissing-includ= e-dirs -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wold-st= yle-definition -fstack-protector-all -I/usr/include/libpng12 -I/usr/inclu= de/nss3 -I/usr/include/nspr4 -pthread -I/usr/include/glib-2.0 -I/usr/lib6= 4/glib-2.0/include -I/usr/include/pixman-1 -I$(SRC_PATH)/dtc/libfdt LDFLAGS -Wl,--warn-common -m64 -g make make install install python python smbd /usr/sbin/smbd host CPU x86_64 host big endian no target list alpha-softmmu arm-softmmu cris-softmmu i386-softmmu lm= 32-softmmu m68k-softmmu microblaze-softmmu microblazeel-softmmu mips-softmm= u mips64-softmmu mips64el-softmmu mipsel-softmmu moxie-softmmu or32-softmmu= ppc-softmmu ppc64-softmmu ppcemb-softmmu s390x-softmmu sh4-softmmu sh4eb-s= oftmmu sparc-softmmu sparc64-softmmu unicore32-softmmu x86_64-softmmu xtens= a-softmmu xtensaeb-softmmu alpha-linux-user arm-linux-user armeb-linux-user= cris-linux-user i386-linux-user m68k-linux-user microblaze-linux-user micr= oblazeel-linux-user mips-linux-user mips64-linux-user mips64el-linux-user m= ipsel-linux-user mipsn32-linux-user mipsn32el-linux-user or32-linux-user pp= c-linux-user ppc64-linux-user ppc64abi32-linux-user s390x-linux-user sh4-li= nux-user sh4eb-linux-user sparc-linux-user sparc32plus-linux-user sparc64-l= inux-user unicore32-linux-user x86_64-linux-user tcg debug enabled no gprof enabled no sparse enabled no strip binaries yes profiler no static build no -Werror enabled no pixman system SDL support yes GTK support no curses support yes curl support yes mingw32 support no Audio drivers oss Block whitelist (rw) Block whitelist (ro) VirtFS support yes VNC support yes VNC TLS support no VNC SASL support yes VNC JPEG support yes VNC PNG support yes VNC WS support no xen support yes brlapi support no bluez support no Documentation yes GUEST_BASE yes PIE no vde support no Linux AIO support no ATTR/XATTR support yes Install blobs yes KVM support yes RDMA support no TCG interpreter no fdt support yes preadv support no fdatasync yes madvise yes posix_madvise yes sigev_thread_id yes uuid support yes libcap-ng support no vhost-net support yes vhost-scsi support yes Trace backend nop Trace output file trace- spice support no (/) rbd support no xfsctl support no nss used yes libusb no usb net redir no GLX support yes libiscsi support no build guest agent yes QGA VSS support no seccomp support no coroutine backend ucontext coroutine pool yes GlusterFS support no virtio-blk-data-plane no gcov gcov gcov enabled no TPM support no libssh2 support no TPM passthrough no QOM debugging yes vhdx yes I bisect'd this to: dcs-xen-53:~/qemu>git-bisect good 37746c5eacf309fa019ea0fa45f776c36c561457 is the first bad commit commit 37746c5eacf309fa019ea0fa45f776c36c561457 Author: Marc-Andr=C3=83=C2=A9 Lureau Date: Mon Feb 25 23:31:12 2013 +0100 build-sys: must link with -fstack-protector It is needed to give that flag to the linker as well, but latest libtool 2.4.2 still swallows that argument, so let's pass it with libtool -Wc argument. qemu-1.4.0/stubs/arch-query-cpu-def.c:6: undefined reference to `__stack_chk_guard' Signed-off-by: Marc-Andr=C3=83=C2=A9 Lureau Reviewed-by: Alon Levy :100755 100755 33d3354ea30838694020660f5822f551293d7e9a ee2e7e8ad9b8a23af= 96e4e404e3f7658efcbe74b M configure :100644 100644 edc2552f0886c99608b97f85bd932460fa50da73 36aba2de1fa9e0f8a= cde7640818e94a28dd03c80 M rules.mak To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1258168/+subscriptions