From owner-freebsd-current@freebsd.org Sun Jun 28 20:33:25 2015 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D2AF398F597; Sun, 28 Jun 2015 20:33:25 +0000 (UTC) (envelope-from andreast-list@fgznet.ch) Received: from smtp.fgznet.ch (mail.fgznet.ch [81.92.96.47]) (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 64E571101; Sun, 28 Jun 2015 20:33:24 +0000 (UTC) (envelope-from andreast-list@fgznet.ch) Received: from [192.168.225.14] (dhclient-91-190-14-19.flashcable.ch [91.190.14.19]) by smtp.fgznet.ch (8.13.8/8.13.8/Submit_SMTPAUTH) with ESMTP id t5SKWjX2081954; Sun, 28 Jun 2015 22:33:06 +0200 (CEST) (envelope-from andreast-list@fgznet.ch) Message-ID: <559059ED.80104@fgznet.ch> Date: Sun, 28 Jun 2015 22:32:45 +0200 From: Andreas Tobler User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Konstantin Belousov , Justin Hibbits CC: Garrett Cooper , FreeBSD Current , FreeBSD PowerPC ML Subject: Re: powerpc and powerpc64 builds broken References: <8C09575A-B885-4F41-BFF8-46FEC028E755@gmail.com> <20150628193222.GP2080@kib.kiev.ua> In-Reply-To: <20150628193222.GP2080@kib.kiev.ua> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.64 on 81.92.96.47 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 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: Sun, 28 Jun 2015 20:33:26 -0000 On 28.06.15 21:32, Konstantin Belousov wrote: > On Sun, Jun 28, 2015 at 12:09:25PM -0700, Justin Hibbits wrote: >> On Sun, Jun 28, 2015 at 11:36 AM, Garrett Cooper wrote: >>> >>>> On Jun 28, 2015, at 10:48, Justin Hibbits wrote: >>>> >>>> Both powerpc and powerpc64 builds are broken in the same way, in >>>> usr.bin/mkesdb. It was working correctly as of just before BSDCan, I >>>> successfully built world and kernel on June 6. >>>> >>>> The error seen at this point is: >>>> >>>> cc -O2 -pipe -I/home/chmeee/freebsd/head/usr.bin/mkesdb >>>> -I/home/chmeee/freebsd/head/usr.bin/mkesdb/../mkesdb >>>> -I/home/chmeee/freebsd/head/usr.bin/mkesdb/../../lib/libc/iconv >>>> -std=gnu99 -fstack-protector -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 -Wunused-parameter -Wcast-align >>>> -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls >>>> -Wold-style-definition -Wno-pointer-sign >>>> -L/home/chmeee/world/zhabar/home/chmeee/freebsd/head/usr.bin/mkesdb/../../lib/libc >>>> -o mkesdb lex.o yacc.o >>>> /home/chmeee/world/zhabar/home/chmeee/freebsd/head/tmp/usr/bin/ld: >>>> undefined reference to symbol `_end' (try adding -lc) >>>> /home/chmeee/world/zhabar/home/chmeee/freebsd/head/tmp/lib/libc.so.7: >>>> could not read symbols: Bad value >>>> >>>> I've seen this both locally on my G5, and on the Power8 in the FreeBSD cluster. >>> >>> - What does file say when you run it on libc.so.7? >> >> /usr/obj/usr/src/lib/libc/libc.so.7: ELF 64-bit MSB shared object, >> 64-bit PowerPC or cisco 7500, version 1 (FreeBSD), dynamically linked, >> not stripped > I think a libc linker could try for that command line lives in > /home/chmeee/world/zhabar/home/chmeee/freebsd/head/lib/libc/libc.so > or in > /home/chmeee/world/zhabar/home/chmeee/freebsd/head/tmp/lib/libc.so > > But, the reason for your troubles seems to come from the > usr.bin/mkesdb/Makefile. Why does it explicitely adds LDFLAGS to point > to objdir/.../libc, I have no idea. Neither me. Here with this mods it compiles: Either: --- Makefile (revision 284911) +++ Makefile (working copy) @@ -3,7 +3,7 @@ .PATH: ${.CURDIR}/../../lib/libc/iconv PROG= mkesdb -LDFLAGS+= -L${.OBJDIR}/../../lib/libc +LDFLAGS+= -L${.OBJDIR}/../../lib/libc/libc NO_WMISSING_VARIABLE_DECLARATIONS= Or: Index: Makefile =================================================================== --- Makefile (revision 284911) +++ Makefile (working copy) @@ -3,7 +3,7 @@ .PATH: ${.CURDIR}/../../lib/libc/iconv PROG= mkesdb -LDFLAGS+= -L${.OBJDIR}/../../lib/libc +LDFLAGS+= -L${.CURDIR}/../../lib/libc NO_WMISSING_VARIABLE_DECLARATIONS= Andreas