From owner-freebsd-current@FreeBSD.ORG Wed Jan 11 13:57:10 2006 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B894716A41F; Wed, 11 Jan 2006 13:57:10 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail6.speedfactory.net [66.23.216.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id B375343D46; Wed, 11 Jan 2006 13:57:09 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.5b3) with ESMTP id 5793390 for multiple; Wed, 11 Jan 2006 08:55:34 -0500 Received: from zion.baldwin.cx (zion.baldwin.cx [192.168.0.7]) (authenticated bits=0) by server.baldwin.cx (8.13.4/8.13.4) with ESMTP id k0BDv6xG071359; Wed, 11 Jan 2006 08:57:06 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-current@freebsd.org, Harti Brandt Date: Wed, 11 Jan 2006 08:53:17 -0500 User-Agent: KMail/1.8.3 References: <20060111073859.457C37302F@freebsd-current.sentex.ca> <20060111090039.N760@beagle.kn.op.dlr.de> In-Reply-To: <20060111090039.N760@beagle.kn.op.dlr.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200601110853.19622.jhb@freebsd.org> X-Virus-Scanned: ClamAV 0.87.1/1238/Wed Jan 11 05:19:06 2006 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-1.4 required=4.2 tests=ALL_TRUSTED autolearn=failed version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on server.baldwin.cx X-Server: High Performance Mail Server - http://surgemail.com r=1653887525 Cc: amd64@freebsd.org, current@freebsd.org Subject: Re: [head tinderbox] failure on amd64/amd64 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jan 2006 13:57:10 -0000 On Wednesday 11 January 2006 03:03 am, Harti Brandt wrote: > On Wed, 11 Jan 2006, FreeBSD Tinderbox wrote: > > FT>TB --- 2006-01-11 06:07:43 - tinderbox 2.3 running on > freebsd-current.sentex.ca FT>TB --- 2006-01-11 06:07:43 - starting HEAD > tinderbox run for amd64/amd64 FT>TB --- 2006-01-11 06:07:43 - cleaning the > object tree > FT>TB --- 2006-01-11 06:08:05 - checking out the source tree > FT>TB --- 2006-01-11 06:08:05 - cd /tinderbox/HEAD/amd64/amd64 > FT>TB --- 2006-01-11 06:08:05 - /usr/bin/cvs -f -R -q -d/home/ncvs update > -Pd -A src FT>TB --- 2006-01-11 06:19:05 - building world (CFLAGS=3D-O2 > -pipe) > FT>TB --- 2006-01-11 06:19:05 - cd /src > FT>TB --- 2006-01-11 06:19:05 - /usr/bin/make -B buildworld > FT>>>> Rebuilding the temporary build tree > FT>>>> stage 1.1: legacy release compatibility shims > FT>>>> stage 1.2: bootstrap tools > FT>>>> stage 2.1: cleaning up the object tree > FT>>>> stage 2.2: rebuilding the object tree > FT>>>> stage 2.3: build tools > FT>>>> stage 3: cross tools > FT>>>> stage 4.1: building includes > FT>>>> stage 4.2: building libraries > FT>>>> stage 4.3: make dependencies > FT>>>> stage 4.4: building everything > FT>[...] > FT>cc -fpic -DPIC -O2 -pipe -DNDEBUG > -I/src/usr.sbin/bsnmpd/modules/snmp_hostres/../../../lpr/common_source -I. > -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter > -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type > -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align > -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs > -Wredundant-decls -c > /src/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_storage_tbl.c -o > hostres_storage_tbl.So FT>cc -fpic -DPIC -O2 -pipe -DNDEBUG > -I/src/usr.sbin/bsnmpd/modules/snmp_hostres/../../../lpr/common_source -I. > -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter > -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type > -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align > -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs > -Wredundant-decls -c > /src/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_swinstalled_tbl.c -o > hostres_swinstalled_tbl.So FT>cc -fpic -DPIC -O2 -pipe -DNDEBUG > -I/src/usr.sbin/bsnmpd/modules/snmp_hostres/../../../lpr/common_source -I. > -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter > -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type > -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align > -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs > -Wredundant-decls -c > /src/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_swrun_tbl.c -o > hostres_swrun_tbl.So FT>cc -fpic -DPIC -O2 -pipe -DNDEBUG > -I/src/usr.sbin/bsnmpd/modules/snmp_hostres/../../../lpr/common_source -I. > -c > /src/usr.sbin/bsnmpd/modules/snmp_hostres/../../../lpr/common_source/prin= tc >ap.c -o printcap.So FT>cc -fpic -DPIC -O2 -pipe -DNDEBUG > -I/src/usr.sbin/bsnmpd/modules/snmp_hostres/../../../lpr/common_source -I. > -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter > -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type > -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align > -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs > -Wredundant-decls -c hostres_tree.c -o hostres_tree.So FT>building shared > library snmp_hostres.so.4 > FT>/obj/amd64/src/tmp/usr/bin/ld: > /obj/amd64/src/tmp/usr/lib/libdisk.a(disk.o): relocation R_X86_64_32S can > not be used when making a shared object; recompile with -fPIC > FT>/obj/amd64/src/tmp/usr/lib/libdisk.a: could not read symbols: Bad value > > Can anybody of the binutils folk explain what's happening here? > Why does this compile on all other architectures but not on amd64? Because the .o files in libdisk.a are not compiled with -fPIC but the .o fi= les=20 in your shared object that is linking against it are? I think amd64 is mor= e=20 picky about not mixing and matching those. =2D-=20 John Baldwin =A0<>< =A0http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" =A0=3D =A0http://www.FreeBSD.org