From owner-freebsd-current@FreeBSD.ORG Tue May 13 13:55:24 2014 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 007FDFBE for ; Tue, 13 May 2014 13:55:23 +0000 (UTC) Received: from mho-01-ewr.mailhop.org (mho-03-ewr.mailhop.org [204.13.248.66]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C809628CB for ; Tue, 13 May 2014 13:55:23 +0000 (UTC) Received: from c-24-8-230-52.hsd1.co.comcast.net ([24.8.230.52] helo=damnhippie.dyndns.org) by mho-01-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1WkDAr-000IGn-DM; Tue, 13 May 2014 13:55:17 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by damnhippie.dyndns.org (8.14.3/8.14.3) with ESMTP id s4DDtDrj035232; Tue, 13 May 2014 07:55:13 -0600 (MDT) (envelope-from ian@FreeBSD.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 24.8.230.52 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1/vs71Uk+n2i6zhSkvDy+y8 Subject: Re: r 265947: relocation truncated to fit: R_X86_64_PC32 against symbol `__error' defined in .text From: Ian Lepore To: "O. Hartmann" In-Reply-To: <20140513112816.7e388477.ohartman@zedat.fu-berlin.de> References: <20140513112816.7e388477.ohartman@zedat.fu-berlin.de> Content-Type: text/plain; charset="us-ascii" Date: Tue, 13 May 2014 07:55:13 -0600 Message-ID: <1399989313.56626.5.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: FreeBSD CURRENT X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18 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: Tue, 13 May 2014 13:55:24 -0000 On Tue, 2014-05-13 at 11:28 +0200, O. Hartmann wrote: > On FreeBSD 11.0-CURRENT, > > FreeBSD 11.0-CURRENT #1 r265924: Mon May 12 20:38:01 CEST 2014 amd64 > > The system is working so far, but when trying to compile the ost recent sources > (buildworld), I get the following error: > > cc -O2 -pipe -O3 -I/usr/src/usr.bin/xinstall/../../contrib/mtree > -I/usr/src/usr.bin/xinstall/../../lib/libnetbsd > -I/usr/src/usr.bin/xinstall/../../lib/libmd -std=gnu99 -Qunused-arguments > -I/usr/obj/usr/src/tmp/legacy/usr/include -static -L/usr/obj/usr/src/tmp/legacy/usr/lib > -o xinstall xinstall.o getid.o -lmd -legacy /usr/lib/libc.a(posix_spawn.o): In function > `posix_spawn_file_actions_addopen': /usr/src/lib/libc/gen/posix_spawn.c:(.text+0x438): > relocation truncated to fit: R_X86_64_PC32 against symbol `__error' defined in .text > section in /usr/lib/libc.a(__error.o) cc: error: linker command failed with exit code 1 > (use -v to see invocation) *** [xinstall] Error code 1 > > Just for fun, I also tried to recompile (not install!) libc via > > make -C lib/libc depend obj all > > make: "/usr/src/lib/libc/Makefile" line 6: Could not find src.opts.mk > make: "/usr/src/lib/libc/Makefile" line 32: Malformed conditional (${MK_NLS} != "no") > make: "/usr/src/lib/libc/Makefile" line 51: Malformed conditional (${MK_SSP} != "no") > make: "/usr/src/lib/libc/Makefile" line 72: Malformed conditional (${MK_ICONV} != "no") > make: "/usr/src/lib/libc/locale/Makefile.inc" line 26: Malformed conditional > (${MK_ICONV} != "no") make: "/usr/src/lib/libc/net/Makefile.inc" line 19: Malformed > conditional (${MK_NS_CACHING} != "no") make: "/usr/src/lib/libc/net/Makefile.inc" line > 25: Malformed conditional (${MK_INET6_SUPPORT} != "no") make: > "/usr/src/lib/libc/net/Makefile.inc" line 125: Malformed conditional (${MK_HESIOD} != > "no") make: "/usr/src/lib/libc/amd64/sys/Makefile.inc" line 14: Malformed conditional > (${MK_SYSCALL_COMPAT} != "no") make: "/usr/src/lib/libc/sys/Makefile.inc" line 24: > Malformed conditional (${MK_SYSCALL_COMPAT} != "no") make: "/usr/src/lib/libc/Makefile" > line 105: Malformed conditional (${MK_NIS} != "no") make: "/usr/src/lib/libc/Makefile" > line 110: Malformed conditional (${MK_HESIOD} != "no") make: "/usr/src/lib/libc/Makefile" > line 113: Malformed conditional (${MK_FP_LIBC} == "no") make: > "/usr/src/lib/libc/Makefile" line 116: Malformed conditional (${MK_NS_CACHING} != "no") > make: Fatal errors encountered -- cannot continue make: stopped in /usr/src/lib/libc > > > > Well, there is something wrong on this and I have no clue what is going on. I recompiled > yesterday's world without problems (r265924). > > oh > > The 20140505 entry in UPDATING covers this, I think. You need to set MAKESYSPATH to point to the right share/mk directory (the one associated with the source you're building) when you build individual directories within the tree. -- Ian