From owner-freebsd-ppc@freebsd.org Sun Jun 28 17:48:33 2015 Return-Path: Delivered-To: freebsd-ppc@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 A879598F26C; Sun, 28 Jun 2015 17:48:33 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: from mail-ig0-x22e.google.com (mail-ig0-x22e.google.com [IPv6:2607:f8b0:4001:c05::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 778E8116A; Sun, 28 Jun 2015 17:48:33 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: by igblr2 with SMTP id lr2so40036831igb.0; Sun, 28 Jun 2015 10:48:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=u5RlyckRMUYJ0NAqDnkorW1TG4FoiLwDGI9Pt9lvt/A=; b=S3H2NSPaRVRkZI25O6lr4imusZBbdanKUrYr54iMpHk/q2V+gih65ReKjRrxsDDZet iasgpL8Q5j47FC0oBcohQoaLhZSHaRZgYaV9ZGjVEKQmpRPyrPNJWWg8Oq9G22ZloA6u 3d8q8glGdJhvb9x7Ua9uLgboM6Du7rNEa1UAp2x9uEcpicFucO6DHAVI2ytdsHTOvYc3 Xb9rPk3lwHAmOzLU4mluRQCxEY7lF1QEGYZSnN0P6Pc2p4rY2oI6f5g2BimOUw+IjlTp pxIVqZv1wy1KA1sonLUecnTsGXG5Zh0E+SOpSHPKj8kVw7fl1fd3cWNboq+5bJvyg5kh dUKA== MIME-Version: 1.0 X-Received: by 10.107.129.228 with SMTP id l97mr14834386ioi.32.1435513712907; Sun, 28 Jun 2015 10:48:32 -0700 (PDT) Sender: chmeeedalf@gmail.com Received: by 10.36.69.80 with HTTP; Sun, 28 Jun 2015 10:48:32 -0700 (PDT) Date: Sun, 28 Jun 2015 10:48:32 -0700 X-Google-Sender-Auth: TwciF3gCPaZJTWAAMnUM7sA0gbw Message-ID: Subject: powerpc and powerpc64 builds broken From: Justin Hibbits To: FreeBSD Current , FreeBSD PowerPC ML Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Jun 2015 17:48:33 -0000 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. - Justin From owner-freebsd-ppc@freebsd.org Sun Jun 28 18:36:41 2015 Return-Path: Delivered-To: freebsd-ppc@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 2936A98F405; Sun, 28 Jun 2015 18:36:41 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mail-pa0-x230.google.com (mail-pa0-x230.google.com [IPv6:2607:f8b0:400e:c03::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E8CA31171; Sun, 28 Jun 2015 18:36:40 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by pactm7 with SMTP id tm7so93177021pac.2; Sun, 28 Jun 2015 11:36:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=BWl6GvSVGg1MFJicVwI9S2YIa+A2UOi8+Kt81uIUe2A=; b=f7aCBaYW1zl84drad2c6H/VydOZozd4hvxk9Bvm1MNSIA/2Yecz1AOFKdLULadmZ/v 473xQpRzT6AEosxCa5xdsJfDK3HhXnfJDUKhKbN7qI8fQxcMRE4xRq9wcyn6PKRWR49L uq46qiUdqKGiVivVP2xYSzDZouS39AB1YUtgNU7+4dOvXqutOauaO9j3gLSfYIcxyFIA PlkkngP/c1bZJLLIiqz8kowqhNuce8Vcgftc0XvPkmK10OAakzOHK/sMmsT21+AvugyA C1BwmEv01c459ddJI2sBWitEUx7QXXV77GhyMaOkotN7N++lFonD0ZpjkiykASzniOan Y1eg== X-Received: by 10.70.119.73 with SMTP id ks9mr13170561pdb.131.1435516600326; Sun, 28 Jun 2015 11:36:40 -0700 (PDT) Received: from [192.168.20.7] (c-98-247-240-204.hsd1.wa.comcast.net. [98.247.240.204]) by mx.google.com with ESMTPSA id ud3sm39661891pbc.10.2015.06.28.11.36.39 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 28 Jun 2015 11:36:39 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) Subject: Re: powerpc and powerpc64 builds broken From: Garrett Cooper X-Mailer: iPhone Mail (12F70) In-Reply-To: Date: Sun, 28 Jun 2015 11:36:38 -0700 Cc: FreeBSD Current , FreeBSD PowerPC ML Content-Transfer-Encoding: quoted-printable Message-Id: <8C09575A-B885-4F41-BFF8-46FEC028E755@gmail.com> References: To: Justin Hibbits X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Jun 2015 18:36:41 -0000 > On Jun 28, 2015, at 10:48, Justin Hibbits wrote: >=20 > 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. >=20 > The error seen at this point is: >=20 > 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=3Dgnu99 -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 >=20 > I've seen this both locally on my G5, and on the Power8 in the FreeBSD clu= ster. - What does file say when you run it on libc.so.7? - What's your current revision? - Does it work when SRCCONF/__MAKECONF are set to /dev/null? Thanks!= From owner-freebsd-ppc@freebsd.org Sun Jun 28 19:09:26 2015 Return-Path: Delivered-To: freebsd-ppc@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 C23C998F882; Sun, 28 Jun 2015 19:09:26 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: from mail-ig0-x229.google.com (mail-ig0-x229.google.com [IPv6:2607:f8b0:4001:c05::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 85D15203F; Sun, 28 Jun 2015 19:09:26 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: by igcsj18 with SMTP id sj18so65132333igc.1; Sun, 28 Jun 2015 12:09:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=xCSdENmHoO9YaObJY7h8vrHL3P1wRkaoEwyRHvZch90=; b=Ho6JSObG84kHZ9m6DayPNGCEsrKzgB9gum8TE5Bb0NP1VmaAL4LvKPZwtEerVSac+r gy1PFEURNpICBKTa3FCeFmXq51ouIAznAQ81qMUlQDVfhVcZYt9n3bnJUEREedpOVcHW jdX+QiQswdwHmGvFTUO0zQUM/Aa6co4HJJZGrhc85WTL0LvA41oie2cFjd9D/moAD6Vm PKw8c9QM8vDjYmsCGYQtyUY+Eo/yG74k/TVnOs6c8zIt/oBd6uTGNmusasEILmXtvMgx Vu/4TiTiFgLdHc9qodIn6G6aW3F0vpNDbrqA69RnoR2ug+GYnFyl2VJ/Afx42+6RHN0z y6AA== MIME-Version: 1.0 X-Received: by 10.42.170.74 with SMTP id e10mr13413350icz.71.1435518565762; Sun, 28 Jun 2015 12:09:25 -0700 (PDT) Sender: chmeeedalf@gmail.com Received: by 10.36.69.80 with HTTP; Sun, 28 Jun 2015 12:09:25 -0700 (PDT) In-Reply-To: <8C09575A-B885-4F41-BFF8-46FEC028E755@gmail.com> References: <8C09575A-B885-4F41-BFF8-46FEC028E755@gmail.com> Date: Sun, 28 Jun 2015 12:09:25 -0700 X-Google-Sender-Auth: uCoJOiIOlLzkwanWbP7kvuA7BnQ Message-ID: Subject: Re: powerpc and powerpc64 builds broken From: Justin Hibbits To: Garrett Cooper Cc: FreeBSD Current , FreeBSD PowerPC ML Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Jun 2015 19:09:26 -0000 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 > - What's your current revision? r284893 > - Does it work when SRCCONF/__MAKECONF are set to /dev/null? No, the problem remains. > > Thanks! - Justin From owner-freebsd-ppc@freebsd.org Sun Jun 28 19:32:33 2015 Return-Path: Delivered-To: freebsd-ppc@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 8F5E898FD71; Sun, 28 Jun 2015 19:32:33 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 319152B60; Sun, 28 Jun 2015 19:32:33 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.14.9/8.14.9) with ESMTP id t5SJWNW2007285 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Sun, 28 Jun 2015 22:32:23 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.9.2 kib.kiev.ua t5SJWNW2007285 Received: (from kostik@localhost) by tom.home (8.14.9/8.14.9/Submit) id t5SJWMSZ007284; Sun, 28 Jun 2015 22:32:22 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Sun, 28 Jun 2015 22:32:22 +0300 From: Konstantin Belousov To: Justin Hibbits Cc: Garrett Cooper , FreeBSD Current , FreeBSD PowerPC ML Subject: Re: powerpc and powerpc64 builds broken Message-ID: <20150628193222.GP2080@kib.kiev.ua> References: <8C09575A-B885-4F41-BFF8-46FEC028E755@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Jun 2015 19:32:33 -0000 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. > > > - What's your current revision? > > r284893 > > > - Does it work when SRCCONF/__MAKECONF are set to /dev/null? > > No, the problem remains. > > > > > Thanks! > > - Justin > _______________________________________________ > freebsd-ppc@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ppc > To unsubscribe, send any mail to "freebsd-ppc-unsubscribe@freebsd.org" From owner-freebsd-ppc@freebsd.org Sun Jun 28 20:33:25 2015 Return-Path: Delivered-To: freebsd-ppc@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-ppc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to the PowerPC 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 From owner-freebsd-ppc@freebsd.org Sun Jun 28 22:53:33 2015 Return-Path: Delivered-To: freebsd-ppc@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 2F4A398FD10; Sun, 28 Jun 2015 22:53:33 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx1.sbone.de (mx1.sbone.de [IPv6:2a01:4f8:130:3ffc::401:25]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "mx1.sbone.de", Issuer "SBone.DE" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id D990114BE; Sun, 28 Jun 2015 22:53:32 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:31::2013:587]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id BB23F25D3891; Sun, 28 Jun 2015 22:53:28 +0000 (UTC) Received: from content-filter.sbone.de (content-filter.sbone.de [IPv6:fde9:577b:c1a9:31::2013:2742]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id EA41DC76FE2; Sun, 28 Jun 2015 22:53:27 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:31::2013:587]) by content-filter.sbone.de (content-filter.sbone.de [fde9:577b:c1a9:31::2013:2742]) (amavisd-new, port 10024) with ESMTP id icpsIrF5DfSE; Sun, 28 Jun 2015 22:53:26 +0000 (UTC) Received: from [IPv6:fde9:577b:c1a9:4410:6581:7ae0:f735:4b0f] (unknown [IPv6:fde9:577b:c1a9:4410:6581:7ae0:f735:4b0f]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 53692C76FE0; Sun, 28 Jun 2015 22:53:24 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Subject: Re: powerpc and powerpc64 builds broken From: "Bjoern A. Zeeb" In-Reply-To: Date: Sun, 28 Jun 2015 22:52:52 +0000 Cc: FreeBSD Current , FreeBSD PowerPC ML Content-Transfer-Encoding: quoted-printable Message-Id: References: <8C09575A-B885-4F41-BFF8-46FEC028E755@gmail.com> To: Justin Hibbits X-Mailer: Apple Mail (2.2098) X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Jun 2015 22:53:33 -0000 > On 28 Jun 2015, at 19:09 , Justin Hibbits = wrote: >=20 > On Sun, Jun 28, 2015 at 11:36 AM, Garrett Cooper = wrote: >>=20 >>> On Jun 28, 2015, at 10:48, Justin Hibbits = wrote: >>>=20 >>> 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. >>>=20 >>> The error seen at this point is: >>=20 >> - What does file say when you run it on libc.so.7? >=20 > /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 >=20 >> - What's your current revision? >=20 > r284893 >=20 >> - Does it work when SRCCONF/__MAKECONF are set to /dev/null? >=20 > No, the problem remains. I have not see this problem in my endless tinderbox run; I know the crossbuilds succeeded with r284913. =E2=80=94=20 Bjoern A. Zeeb Charles Haddon Spurgeon: "Friendship is one of the sweetest joys of life. Many might have failed beneath the bitterness of their trial had they not found a friend." From owner-freebsd-ppc@freebsd.org Sun Jun 28 22:59:31 2015 Return-Path: Delivered-To: freebsd-ppc@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 4095998FD8B; Sun, 28 Jun 2015 22:59:31 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x22f.google.com (mail-ig0-x22f.google.com [IPv6:2607:f8b0:4001:c05::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1DD491646; Sun, 28 Jun 2015 22:59:31 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by igcur8 with SMTP id ur8so24091506igc.0; Sun, 28 Jun 2015 15:59:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=qc71xw1UiBgf8+UHCApLyL/un9TOU1yy0CffLRNd4fc=; b=KlNKx9r2FZPityjkXqmDNsRFcSxmw6xQhqeXP2451h3xS0HYVkn0PSVhnN2hAEnjSh yhWdmk6KDi1/JoQvtQ9eNzlkBew4Mm1ObgHU49pzhkysBnTD+vh9XMTqGadIBQcl1gEL STXFJenURftSsvR3jsCdXJX+H5E3cbTZ+Gz9lckPojLkj4fO10M+F9wPyJn3HSJODe4S D+lYgZ7QFS1cX3B+kXRlXxf512uTcu2i+c6ht5QJZ/BzyXbyX1vGN3dky7x+Dpt6zOFh RrC6EqtNitDQwhrcV8U/JGLqvu8b7Vrx86OhS1Uu6JTLi5p8QAdg3WEgbNgyyjAkLi7K T4YA== MIME-Version: 1.0 X-Received: by 10.50.79.129 with SMTP id j1mr11343356igx.32.1435532370538; Sun, 28 Jun 2015 15:59:30 -0700 (PDT) Received: by 10.36.38.133 with HTTP; Sun, 28 Jun 2015 15:59:30 -0700 (PDT) In-Reply-To: References: <8C09575A-B885-4F41-BFF8-46FEC028E755@gmail.com> Date: Sun, 28 Jun 2015 15:59:30 -0700 Message-ID: Subject: Re: powerpc and powerpc64 builds broken From: Adrian Chadd To: "Bjoern A. Zeeb" Cc: Justin Hibbits , FreeBSD Current , FreeBSD PowerPC ML Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Jun 2015 22:59:31 -0000 On 28 June 2015 at 15:52, Bjoern A. Zeeb w= rote: > >> On 28 Jun 2015, at 19:09 , 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: >>> >>> - 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 >> >>> - What's your current revision? >> >> r284893 >> >>> - Does it work when SRCCONF/__MAKECONF are set to /dev/null? >> >> No, the problem remains. > > I have not see this problem in my endless tinderbox run; > I know the crossbuilds succeeded with r284913. Yeah, crossbuilds work fine. It's the actual run-on-real-hardware bit that doesn't. (powerpc64 runs fine in qemu-devel; people should try it!) -adrian > > > =E2=80=94 > Bjoern A. Zeeb Charles Haddon Spurgeon: > "Friendship is one of the sweetest joys of life. Many might have failed > beneath the bitterness of their trial had they not found a friend." > > _______________________________________________ > freebsd-ppc@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ppc > To unsubscribe, send any mail to "freebsd-ppc-unsubscribe@freebsd.org" From owner-freebsd-ppc@freebsd.org Mon Jun 29 03:32:25 2015 Return-Path: Delivered-To: freebsd-ppc@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 91E1198F833; Mon, 29 Jun 2015 03:32:25 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: from mail-ig0-x22d.google.com (mail-ig0-x22d.google.com [IPv6:2607:f8b0:4001:c05::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 520BD195B; Mon, 29 Jun 2015 03:32:25 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: by igrv9 with SMTP id v9so32426683igr.1; Sun, 28 Jun 2015 20:32:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=FuSisPRAN+dbXaYrmFUBWvjqmRped7LtdvQ/epuO07U=; b=JkipCTJjKomE0Kf3wz5L3nSe5cSt2rNPeOWBcgOKEHZ09bxOcu107Hx4oMlvZGDtDI kHMwUhwXfcXaVND8c9N8R6K6qK2s0N4yAbRjwYU1d72/EHUUxhzly5wdhS3AtTmvjFTG JofcXQxa83k+cJePOlTwRkJ5b5JVXDEYXwyunL7dprCgIWiQHyCUvo3WsmJ0bmnJbPO+ b0Uv2rgMR43FeR4A/hNIRf/TSaAT+ZxtUP7rYaEWKzXgMAuFkvkjmYb5cAyxQv8uQW+c jA4lgZGMEHt8kSi81srNKanHzEi4yLNyzt6y+5Bgk1Rf+icSfAU4gpNwRrWJ1NeAMqIZ Gqzw== MIME-Version: 1.0 X-Received: by 10.42.170.74 with SMTP id e10mr14757900icz.71.1435548744698; Sun, 28 Jun 2015 20:32:24 -0700 (PDT) Sender: chmeeedalf@gmail.com Received: by 10.36.69.80 with HTTP; Sun, 28 Jun 2015 20:32:24 -0700 (PDT) In-Reply-To: References: <8C09575A-B885-4F41-BFF8-46FEC028E755@gmail.com> Date: Sun, 28 Jun 2015 20:32:24 -0700 X-Google-Sender-Auth: EVvBVW-yUSrVxierEISihzRWZTE Message-ID: Subject: Re: powerpc and powerpc64 builds broken From: Justin Hibbits To: Adrian Chadd Cc: "Bjoern A. Zeeb" , FreeBSD Current , FreeBSD PowerPC ML , "sjg@FreeBSD.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jun 2015 03:32:25 -0000 On Sun, Jun 28, 2015 at 3:59 PM, Adrian Chadd wrote: > On 28 June 2015 at 15:52, Bjoern A. Zeeb wrote: >> >>> On 28 Jun 2015, at 19:09 , 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: >>>> >>>> - 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 >>> >>>> - What's your current revision? >>> >>> r284893 >>> >>>> - Does it work when SRCCONF/__MAKECONF are set to /dev/null? >>> >>> No, the problem remains. >> >> I have not see this problem in my endless tinderbox run; >> I know the crossbuilds succeeded with r284913. > > Yeah, crossbuilds work fine. It's the actual run-on-real-hardware bit > that doesn't. > > (powerpc64 runs fine in qemu-devel; people should try it!) r284345 (introduction of metamode) is the problem. I bisected it on the power8 and it reliably fails this way. Andreas tested it on his G4 (32-bit hardware) and it worked fine, so there's something introduced that just doesn't like powerpc64. - Justin From owner-freebsd-ppc@freebsd.org Mon Jun 29 05:33:17 2015 Return-Path: Delivered-To: freebsd-ppc@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 02A8198DB10; Mon, 29 Jun 2015 05:33:17 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 79B97166C; Mon, 29 Jun 2015 05:33:16 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.14.9/8.14.9) with ESMTP id t5T5Wn65047358 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Mon, 29 Jun 2015 08:32:49 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.9.2 kib.kiev.ua t5T5Wn65047358 Received: (from kostik@localhost) by tom.home (8.14.9/8.14.9/Submit) id t5T5Wn9C047357; Mon, 29 Jun 2015 08:32:49 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Mon, 29 Jun 2015 08:32:48 +0300 From: Konstantin Belousov To: Andreas Tobler Cc: Justin Hibbits , Garrett Cooper , FreeBSD Current , FreeBSD PowerPC ML Subject: Re: powerpc and powerpc64 builds broken Message-ID: <20150629053248.GQ2080@kib.kiev.ua> References: <8C09575A-B885-4F41-BFF8-46FEC028E755@gmail.com> <20150628193222.GP2080@kib.kiev.ua> <559059ED.80104@fgznet.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <559059ED.80104@fgznet.ch> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jun 2015 05:33:17 -0000 On Sun, Jun 28, 2015 at 10:32:45PM +0200, Andreas Tobler wrote: > 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= No, I mean that LDFLAGS explicitely listing supposed location for libc is wrong, too much wrong. If mkesd is special, it might need to become a bootstrap tool. But the hackery above is too fragile and it is surprising that it went unnoticed for such long time (after the citrus enablement). From owner-freebsd-ppc@freebsd.org Mon Jun 29 23:58:12 2015 Return-Path: Delivered-To: freebsd-ppc@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 F3EDF98F4A5; Mon, 29 Jun 2015 23:58:11 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: from mail-ig0-x233.google.com (mail-ig0-x233.google.com [IPv6:2607:f8b0:4001:c05::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BC5172412; Mon, 29 Jun 2015 23:58:11 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: by igrv9 with SMTP id v9so40238928igr.1; Mon, 29 Jun 2015 16:58:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=pkTAehlFilclZtTXoqAg5W14KIChE+O9rkmo8zH2PJA=; b=H/w2XC5I00hP9fRwvndARkp3/XTGfPOZ4lViLOyWnjZ4egMtkKNlQ6NE9A2P2K12Qe WBD9UAybGCUv/NYpl3aKW2PKxsDjL0MMNPBg9FEzMTIFknm1Bk61g/2JO45dbYzv+GG0 0E+uxj8Y9Xi9rG5vRUnVSshsvdA0pDbhMtlIBRyWYy8p/SmtQZaCcUiOIaZqEdS89A7v 7wd3jLgaNYRXKmLHFvS/qVWyc1OGFZtW0CGAw122s5w97xL4vOZDl2u7ciNo+ejVIBRZ yRHM2g5mY3s/3EKcTHOnmQ/dQzjcmMVzMhAZXPAwjxT03hJRQVQ+1BE2qMb+9RyA10Rb VUNw== MIME-Version: 1.0 X-Received: by 10.42.170.74 with SMTP id e10mr20453765icz.71.1435622291216; Mon, 29 Jun 2015 16:58:11 -0700 (PDT) Sender: chmeeedalf@gmail.com Received: by 10.36.69.80 with HTTP; Mon, 29 Jun 2015 16:58:11 -0700 (PDT) In-Reply-To: <20150629053248.GQ2080@kib.kiev.ua> References: <8C09575A-B885-4F41-BFF8-46FEC028E755@gmail.com> <20150628193222.GP2080@kib.kiev.ua> <559059ED.80104@fgznet.ch> <20150629053248.GQ2080@kib.kiev.ua> Date: Mon, 29 Jun 2015 16:58:11 -0700 X-Google-Sender-Auth: 25NJ8VbXkpxY4i1gVSOCQ_rMyVQ Message-ID: Subject: Re: powerpc and powerpc64 builds broken From: Justin Hibbits To: Konstantin Belousov Cc: Andreas Tobler , Garrett Cooper , FreeBSD Current , FreeBSD PowerPC ML Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jun 2015 23:58:12 -0000 On Sun, Jun 28, 2015 at 10:32 PM, Konstantin Belousov wrote: > On Sun, Jun 28, 2015 at 10:32:45PM +0200, Andreas Tobler wrote: >> 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= > > No, I mean that LDFLAGS explicitely listing supposed location for libc > is wrong, too much wrong. If mkesd is special, it might need to become > a bootstrap tool. But the hackery above is too fragile and it is surprising > that it went unnoticed for such long time (after the citrus enablement). Would anyone object to me simply removing that line? This fixes the build on powerpc64, and I highly doubt it would impact any other build. - Justin From owner-freebsd-ppc@freebsd.org Tue Jun 30 04:05:26 2015 Return-Path: Delivered-To: freebsd-ppc@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 CB0CF990FAA; Tue, 30 Jun 2015 04:05:26 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: from mail-ig0-x232.google.com (mail-ig0-x232.google.com [IPv6:2607:f8b0:4001:c05::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9DB1412D7; Tue, 30 Jun 2015 04:05:26 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: by igblr2 with SMTP id lr2so66681556igb.0; Mon, 29 Jun 2015 21:05:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=tHXT1L2sq+WjzVC5B6zm1/+OQQygUYkwdZtCiE1YIwU=; b=L/KVyFajbSg8Ch06rTzZiQJCrrnTy0uG2SIbD39z35oW4eK0sSVIF+Ejui9TgmWqKi gzg0E+IRZs14uVRmXUIKg+0ivkNAzQDnvpXNNXT/XfJIyagbnIQaOesP6o8ZtuXLYoF+ TxLPasrCFdqggYjDaJjYU1TC6V19woZmZATA6O8K/2SWGkbDK3txfH1XfwuniPztfovf mU7A/PleH8+TpALBmKM2oxtqyWGGkIKXliXBcnM5fnx6t/Rc5ZNAIJJg7I/DdnRsNH9n CckzSxrrH/UGm5r9e9Jwpm7rRHQaVDPIRQ0EV+DBqPYoZoMFCJWlJeyBpENevDPBuE40 V96A== MIME-Version: 1.0 X-Received: by 10.42.226.8 with SMTP id iu8mr22848417icb.17.1435637126029; Mon, 29 Jun 2015 21:05:26 -0700 (PDT) Sender: chmeeedalf@gmail.com Received: by 10.36.69.80 with HTTP; Mon, 29 Jun 2015 21:05:25 -0700 (PDT) In-Reply-To: References: <8C09575A-B885-4F41-BFF8-46FEC028E755@gmail.com> <20150628193222.GP2080@kib.kiev.ua> <559059ED.80104@fgznet.ch> <20150629053248.GQ2080@kib.kiev.ua> Date: Mon, 29 Jun 2015 21:05:25 -0700 X-Google-Sender-Auth: GM0n6Je48Ut9lKo1LFHMbgW9tRw Message-ID: Subject: Re: powerpc and powerpc64 builds broken From: Justin Hibbits To: Konstantin Belousov Cc: Andreas Tobler , Garrett Cooper , FreeBSD Current , FreeBSD PowerPC ML Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Jun 2015 04:05:26 -0000 On Mon, Jun 29, 2015 at 4:58 PM, Justin Hibbits wrote: > On Sun, Jun 28, 2015 at 10:32 PM, Konstantin Belousov > wrote: >> On Sun, Jun 28, 2015 at 10:32:45PM +0200, Andreas Tobler wrote: >>> 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= >> >> No, I mean that LDFLAGS explicitely listing supposed location for libc >> is wrong, too much wrong. If mkesd is special, it might need to become >> a bootstrap tool. But the hackery above is too fragile and it is surprising >> that it went unnoticed for such long time (after the citrus enablement). > > Would anyone object to me simply removing that line? This fixes the > build on powerpc64, and I highly doubt it would impact any other > build. > > - Justin A universe build on the cluster passed, I'm nuking it. - Justin From owner-freebsd-ppc@freebsd.org Tue Jun 30 05:43:56 2015 Return-Path: Delivered-To: freebsd-ppc@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 CC6AA990BDD; Tue, 30 Jun 2015 05:43:56 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7246016F2; Tue, 30 Jun 2015 05:43:56 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.14.9/8.14.9) with ESMTP id t5U5hmGJ015151 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Tue, 30 Jun 2015 08:43:49 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.9.2 kib.kiev.ua t5U5hmGJ015151 Received: (from kostik@localhost) by tom.home (8.14.9/8.14.9/Submit) id t5U5hmtH015150; Tue, 30 Jun 2015 08:43:48 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Tue, 30 Jun 2015 08:43:48 +0300 From: Konstantin Belousov To: Justin Hibbits Cc: Andreas Tobler , Garrett Cooper , FreeBSD Current , FreeBSD PowerPC ML Subject: Re: powerpc and powerpc64 builds broken Message-ID: <20150630054348.GX2080@kib.kiev.ua> References: <8C09575A-B885-4F41-BFF8-46FEC028E755@gmail.com> <20150628193222.GP2080@kib.kiev.ua> <559059ED.80104@fgznet.ch> <20150629053248.GQ2080@kib.kiev.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Jun 2015 05:43:56 -0000 On Mon, Jun 29, 2015 at 09:05:25PM -0700, Justin Hibbits wrote: > On Mon, Jun 29, 2015 at 4:58 PM, Justin Hibbits wrote: > > On Sun, Jun 28, 2015 at 10:32 PM, Konstantin Belousov > > wrote: > >> On Sun, Jun 28, 2015 at 10:32:45PM +0200, Andreas Tobler wrote: > >>> 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= > >> > >> No, I mean that LDFLAGS explicitely listing supposed location for libc > >> is wrong, too much wrong. If mkesd is special, it might need to become > >> a bootstrap tool. But the hackery above is too fragile and it is surprising > >> that it went unnoticed for such long time (after the citrus enablement). > > > > Would anyone object to me simply removing that line? This fixes the > > build on powerpc64, and I highly doubt it would impact any other > > build. > > > > - Justin > > A universe build on the cluster passed, I'm nuking it. Fine with me. I think trying to understand why the hack was added is not possible. From owner-freebsd-ppc@freebsd.org Tue Jun 30 15:51:12 2015 Return-Path: Delivered-To: freebsd-ppc@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 96D7098D558; Tue, 30 Jun 2015 15:51:12 +0000 (UTC) (envelope-from sjg@juniper.net) Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1bon0148.outbound.protection.outlook.com [157.56.111.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 498731AE8; Tue, 30 Jun 2015 15:51:07 +0000 (UTC) (envelope-from sjg@juniper.net) Received: from BL2PR05CA0035.namprd05.prod.outlook.com (10.255.226.35) by BLUPR05MB772.namprd05.prod.outlook.com (10.141.209.27) with Microsoft SMTP Server (TLS) id 15.1.195.15; Tue, 30 Jun 2015 15:50:38 +0000 Received: from BN1AFFO11FD053.protection.gbl (2a01:111:f400:7c10::139) by BL2PR05CA0035.outlook.office365.com (2a01:111:e400:c04::35) with Microsoft SMTP Server (TLS) id 15.1.201.16 via Frontend Transport; Tue, 30 Jun 2015 15:50:38 +0000 Authentication-Results: spf=softfail (sender IP is 66.129.239.18) smtp.mailfrom=juniper.net; freebsd.org; dkim=none (message not signed) header.d=none; Received-SPF: SoftFail (protection.outlook.com: domain of transitioning juniper.net discourages use of 66.129.239.18 as permitted sender) Received: from p-emfe01b-sac.jnpr.net (66.129.239.18) by BN1AFFO11FD053.mail.protection.outlook.com (10.58.53.68) with Microsoft SMTP Server (TLS) id 15.1.190.9 via Frontend Transport; Tue, 30 Jun 2015 15:50:35 +0000 Received: from magenta.juniper.net (172.17.27.123) by p-emfe01b-sac.jnpr.net (172.24.192.21) with Microsoft SMTP Server (TLS) id 14.3.123.3; Tue, 30 Jun 2015 08:48:45 -0700 Received: from chaos.jnpr.net (chaos.jnpr.net [172.21.16.28]) by magenta.juniper.net (8.11.3/8.11.3) with ESMTP id t5UFmiD59102; Tue, 30 Jun 2015 08:48:44 -0700 (PDT) (envelope-from sjg@juniper.net) Received: from chaos (localhost [127.0.0.1]) by chaos.jnpr.net (Postfix) with ESMTP id CDD03580AA; Tue, 30 Jun 2015 08:48:43 -0700 (PDT) To: Justin Hibbits CC: Adrian Chadd , "Bjoern A. Zeeb" , FreeBSD Current , FreeBSD PowerPC ML Subject: Re: powerpc and powerpc64 builds broken In-Reply-To: References: <8C09575A-B885-4F41-BFF8-46FEC028E755@gmail.com> Comments: In-reply-to: Justin Hibbits message dated "Sun, 28 Jun 2015 20:32:24 -0700." From: "Simon J. Gerraty" X-Mailer: MH-E 8.0.3; nmh 1.3; GNU Emacs 22.3.1 Date: Tue, 30 Jun 2015 08:48:43 -0700 Message-ID: <21894.1435679323@chaos> MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD053; 1:LwbSuEzGGQRSvCDU2qCwByUyIrlAqGYx8+gVYAYf4hAJPZFb0TSh5KP6s7n2M/v7il/96Pn7RrQJuvfakXG/gbZDb9ZYCyTtxjUbEdHNFDSGQKRuF9exqJPrjHeYeKRFd7A5fwnXcH9m78fLnZz0qPe9mLANmzwhpzRV7LT9/MUAxD1bWnO4pUaEpDzDZDhbZAkTp0Qczz3fT/2f1IO74of1IMOtY22mfhKo0RlCaOpHSpumHxKJsbJVQ9Rloji8JsJzMya84CNC/EFQwy8MhA== X-Forefront-Antispam-Report: CIP:66.129.239.18; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(51704005)(189002)(199003)(24454002)(77156002)(117636001)(62966003)(92566002)(6806004)(50226001)(46102003)(86362001)(87936001)(50986999)(76176999)(105596002)(48376002)(50466002)(33716001)(57986006)(19580395003)(19580405001)(76506005)(106466001)(93886004)(5001960100002)(47776003)(2950100001)(110136002)(189998001)(77096005)(62816006)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:BLUPR05MB772; H:p-emfe01b-sac.jnpr.net; FPR:; SPF:SoftFail; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BLUPR05MB772; 2:U9qVckiWIr0Yx1DTSs2CBg8orlnSoxR0wk3kT4KCgAGE7JmZfhYH/bVUQ2KJzo9d; 3:vTJmwr6i9qw+4faZSn9EuBHD8bfu8RUoXiXeeqUYrCBYNrtGSYULui9zxCJXdAJNMtg5WEreiPedjCaDqJQXHWIVZkINEauGhalLWxxjzGieCBo2ivlt6RAaxm5y+2IOMTd7lZ1bITeiC5Rng0TSkheloasWeE412c1kW7v60YoizoSSltG1Vnw8j8UPnZ3xZW9MoiqAErsKMiMxR/kS6nTmqNV1tCpj9DTc0ZwCa5s=; 20:JF2/vJp+V7IDid8nLI7myDgt7+8jBc8COEzvFK9mbQf3iKhOSyO4GHHzZMj5r8IeG35CS8MvIpJG2an7kz8RSSCgEtX38OYVO/u3aRJhmbA6vhEdn7paYg0u30CoD5q10x1HTwvzOLQQc5i3tiyPTQUrr8DfGgCiS8MuHQ1qy0+3fvOBngnYLAbq96rQyo+q5NEaDur92Tprd/0aBz3GdHdI97oWIExIEYPIOs4gK6pV2lw6muzbBFv2oceioiYeKKClSTw+fZ5MzRrEKKtLHQVdIw41tEvA5vxmMLDciazShYmnA6HowCoTovOxKy821vXf9RVjl8DTVlS3ckcOFm34R+RM9iVTyEcAg9xcNucv4Tf0OkqJRHFYb4feWzKIivtSpI166mPrKJvEyMyo9l8O8VvEhQh8x+3Vy6SfcLZSRM1CMKkGEJD0YQ78tlgNJrUXJC4wP+4EfEu/pylxAORZQxBv3fYxz8BM3S718EK0Gxby5QnV2R0/v1gyuXUs X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR05MB772; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(3002001); SRVR:BLUPR05MB772; BCL:0; PCL:0; RULEID:; SRVR:BLUPR05MB772; X-Microsoft-Exchange-Diagnostics: 1; BLUPR05MB772; 4:Cs6N5TMMP0SbdA1eGUbS+UksgWnn77D5qqdiKZon2fhfOl8QEJ/tDEJlqjA91QFZ9A5PsvV65PiWP8NZ4PMyWeqO52feg/wtEcy+BzPpX9VqXz6Gzo6LlH02J+OnmZJUOUSwIdhzQgdSER8j+9SRdVLrVUWlhPv7ljHfo+Mu2sit3kd3Pbh2PxiamZfaebKOFb0gYBWtwFVNNyVD9TZVaeCaN6AC22rBZlYG4+YP1mAmg58c6FGVRKkXRful2RKEw6hzX/rIdhE3+B69Ko4f8C+Q926nOKlSxBj6iXatLEo= X-Forefront-PRVS: 06237E4555 X-Microsoft-Exchange-Diagnostics: 1; BLUPR05MB772; 23:0tWrgIKqKDITP32wtz/YJu6a6N7JVQqIDsdiW2jXC8zdyCaAMMrAnJzFsiTB9q9HhnNhKMiUK8RtstcI4EBeMXMBUhQXcVmJHeok9Mei5bI3hadrPj05Y/RDZ0Z4DQLxlSoQAtu4aKvat2dZYAFuqaKa9JL2uQilO4O39bO1Ps6acLxnWEm6uKuYqNPcM3s5JF/dd60T9vlbz4ZI8AORSR3JwwpQh+Pwntj9TaMVYYNlnKm0cqXPoGnvyru346YvzLFMkCyfBaCJlN2iI7yqmgY+FBrc9tgF+3PkjpZEXFW6BWaqYBLKRh3rnfd7/KGYIqeT+9kMbcu3Sjy6xE4dsyS5ZoktEyi9x3fs7trD9llw8CgicnV0t9UOdeK+VUAS6jBten5b4G5tkDwv9J3xCMcMbvkOzOGUGAXrTsQHs7nySdeuCPJZtVVZv55HK0nyr+2dKXCCAVsNvMTW15yS6EnTdtdP8zg8segIO9PcM721P7N1SF6JSEyKtZtI1Itu7g2PsgtcAwOrDuDEY/52bSIIRA1CE3rcZnKq7kKdvJobLWpR8R46uGT4VSf8JyFBVqZn7CEdGiu3IiVZO7H8MgVmho7bZQqAFPjHVb6yAyFfvKXx6qj5wTMVRSD4sY/4ws5ZPUEuTX1PGggtS0DeVSL5uSA0eOI0PzslGJoi4Yw/VlzmG9NRS0kl0/5A8DcFAXglLttGNcCCEdeY/dBxUNorDOZCE+ZprXa7pJcEPZpkYIZsFI8onuX71L+MA437HFu17f++/u/0Bd5FqpG7I6DYAi6HvtFrcIJiGSCxhZwTS65ORojH5lilqJr5vU/keOovMQCu9jIhQki6rIjOfPOgkg37ZobcrcCgYBB9UdoQ5zUfAnteYwh2E20SKClMqbBv160glIY4Kd4ErhGBkk4Nd0wuats4eYBKgV5tHfU= X-Microsoft-Exchange-Diagnostics: 1; BLUPR05MB772; 5:fUXaSFcYILKnqdYQM+Seifild5T7Hl1qi5yUj0XLPdR9Z8geDJ7OF3JPfLd0idDkmUeWI8W1b2ObwmcpYZpohA4cVxVamqL3nMxGg8Nk8tNjPxlB5UjTXmpLnkl/v8shXr7EtHbyXh5RkLBgeDIPlQ==; 24:Ee4arpgDJZM1lvFex9qEU7oOp81jtvmEr7i6TOGuLiJzBjoDFp7ZWLFAjsA/QTsz/86Lakw37kTUxSSAhHcF4g71kd1s2nC7aJSUoGA/Ko0=; 20:PvE5ZKNk0f2sp1ao/qyDUeJVMEKI7QvKNO/t6/up4JF8lCd8TSL0ADQN8qOSu/LBbGaGe/mYRFhJAvH8vub9Sg== X-OriginatorOrg: juniper.net X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jun 2015 15:50:35.8809 (UTC) X-MS-Exchange-CrossTenant-Id: bea78b3c-4cdb-4130-854a-1d193232e5f4 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=bea78b3c-4cdb-4130-854a-1d193232e5f4; Ip=[66.129.239.18]; Helo=[p-emfe01b-sac.jnpr.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR05MB772 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Jun 2015 15:51:12 -0000 Justin Hibbits wrote: > > Yeah, crossbuilds work fine. It's the actual run-on-real-hardware bit > > that doesn't. > > > > (powerpc64 runs fine in qemu-devel; people should try it!) > > r284345 (introduction of metamode) is the problem. I bisected it on > the power8 and it reliably fails this way. Andreas tested it on his > G4 (32-bit hardware) and it worked fine, so there's something > introduced that just doesn't like powerpc64. Hmm, didn't touch usr.bin/mkesdb so must be something indirect. Is this with[out] NO_CLEAN ? From owner-freebsd-ppc@freebsd.org Tue Jun 30 16:15:05 2015 Return-Path: Delivered-To: freebsd-ppc@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 190D298DA3D; Tue, 30 Jun 2015 16:15:05 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: from mail-ig0-x22f.google.com (mail-ig0-x22f.google.com [IPv6:2607:f8b0:4001:c05::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D4DB02555; Tue, 30 Jun 2015 16:15:04 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: by igcsj18 with SMTP id sj18so111138631igc.1; Tue, 30 Jun 2015 09:15:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=W6pHeoUK0wuJDdHmYy2etMZ9gKcVLFfDYuVhacnBmq4=; b=tV0Xrk8SCdO/2jjYRS0OCTGCCPqPmo8UbLdHpLVZFbHtJS5wv2LBMOvFmd3FbyOEQl +fKycgHoMACo8o4piRr1cCWmNNAZR0rLQcQPJZ6LGFfzpmScFT8R1bnxUJt0C7VRnpPb ZqqtY/tINOlN0k4sUn1GGnwfd4ABnOljXliuP5Oh39vsKv4qokD9kuURPDSTiKRHh3yk MsV34iyOjFZ4Azy9uFpL43/1TngNtYaY+ROiyxga5qJWZASUnO8xOUgcGxNagAd6sdtv Ue4OKTstZhEgg/Tktu16PqVnrx+jmQNbXzXoldqcXciUBp1LTsVsfzivR7eYmsqpeXNB LkLQ== MIME-Version: 1.0 X-Received: by 10.50.61.241 with SMTP id t17mr25679385igr.34.1435680904158; Tue, 30 Jun 2015 09:15:04 -0700 (PDT) Sender: chmeeedalf@gmail.com Received: by 10.36.69.80 with HTTP; Tue, 30 Jun 2015 09:15:04 -0700 (PDT) In-Reply-To: <21894.1435679323@chaos> References: <8C09575A-B885-4F41-BFF8-46FEC028E755@gmail.com> <21894.1435679323@chaos> Date: Tue, 30 Jun 2015 09:15:04 -0700 X-Google-Sender-Auth: -Uqm8jRsYCQXar2k-Y1ZcBvNU68 Message-ID: Subject: Re: powerpc and powerpc64 builds broken From: Justin Hibbits To: "Simon J. Gerraty" Cc: Adrian Chadd , "Bjoern A. Zeeb" , FreeBSD Current , FreeBSD PowerPC ML Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Jun 2015 16:15:05 -0000 On Tue, Jun 30, 2015 at 8:48 AM, Simon J. Gerraty wrote: > Justin Hibbits wrote: >> > Yeah, crossbuilds work fine. It's the actual run-on-real-hardware bit >> > that doesn't. >> > >> > (powerpc64 runs fine in qemu-devel; people should try it!) >> >> r284345 (introduction of metamode) is the problem. I bisected it on >> the power8 and it reliably fails this way. Andreas tested it on his >> G4 (32-bit hardware) and it worked fine, so there's something >> introduced that just doesn't like powerpc64. > > Hmm, didn't touch usr.bin/mkesdb so must be something indirect. > Is this with[out] NO_CLEAN ? Tried it both ways, with the same result. I don't think metamode necessarily is the cause of the problem, merely unmasking the latent problem. Though I've committed a fix for this, it would still be nice to understand what in r284345 exposed this. - Justin From owner-freebsd-ppc@freebsd.org Wed Jul 1 13:38:32 2015 Return-Path: Delivered-To: freebsd-ppc@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 9F0609909D4 for ; Wed, 1 Jul 2015 13:38:32 +0000 (UTC) (envelope-from jmmv@meroh.net) Received: from mail-qk0-f169.google.com (mail-qk0-f169.google.com [209.85.220.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 64B762BCD for ; Wed, 1 Jul 2015 13:38:31 +0000 (UTC) (envelope-from jmmv@meroh.net) Received: by qkei195 with SMTP id i195so29259487qke.3 for ; Wed, 01 Jul 2015 06:38:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:content-type :content-transfer-encoding:subject:message-id:date:to:mime-version; bh=IY2c6WTX0GNGS8PQNuNKvgaQOekI7Xn6AraS78TK9ck=; b=cNeZkvmv5038XF9Lw533sGC1cI25GFOEUoLFXgGO15pOuwPV5g+VHnaXhKm48e53kt l+9MaQ/gzbsuT6muCRKPI9FGeu55Tjb3hzqc6BeKTIWDUEmc8GJXsRR4tBzlszdU1yhv 8BerD4/xSL+Ys26ScPw3UweGj4Za2A7/0C1k/1SYc+dS9tcDqzvaXwFrdH6I2kTbVK1y IjoXrg9oyRG8/mLYJieY7tbSVSOEmetuLkZGzuZOkQvQXUGVwuIahgjA3XuOg64NEQj/ 80+V2WfdMd7jHAqAxvqT7o0m3HOMBguHpTL2bOqjp5DxQb914LjWpYQGMvwHDCkMuOUZ IlKg== X-Gm-Message-State: ALoCoQmbzVtCpi715IrnbZ4Ki8OwYSoISDNGS9+qfpq6E8XdlxOLnoTHVQWAassMnMhr4PFHakI3 X-Received: by 10.140.32.38 with SMTP id g35mr32863500qgg.74.1435757910361; Wed, 01 Jul 2015 06:38:30 -0700 (PDT) Received: from dhcp-172-26-106-166.nyc.corp.google.com ([172.26.106.166]) by mx.google.com with ESMTPSA id n96sm959223qkh.31.2015.07.01.06.38.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 01 Jul 2015 06:38:29 -0700 (PDT) Sender: Julio Merino From: Julio Merino Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: panic: data storage interrupt trap Message-Id: <77A0DF00-B8FE-4EC9-B17A-8CE1DA5D5423@freebsd.org> Date: Wed, 1 Jul 2015 09:38:28 -0400 To: freebsd-ppc@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) X-Mailer: Apple Mail (2.2098) X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jul 2015 13:38:32 -0000 Hello, I filed this as a bug yesterday (PR kern/201223) but thought that I = might have some better luck by asking here as well. I have had a FreeBSD stable-10 installation on a Mini G4 since September = and, so far, been unable to get a full poudriere bulk build (of a very = reduced set of packages!) to complete without panicking the machine. = This is a bit unfortunate because I'd like to use this system as a small = server... but the instability seems to make it unsuitable for that = purpose. The machine crashes like this: panic: data storage interrupt trap cpuid =3D 0 KDB: stack backtrace: #0 0x45f3e0 at vpanic+0x138 #1 0x45f480 at panic+0x54 #2 0x77da3c at trap_fatal+0x1bc #3 0x77ea04 at trap+0xfa0 #4 0x76ee9c at powerpc_interrupt+0x170 The bug above contains a copy of core.txt after the reboot with all = other relevant crash data. Any hints as to what may be wrong or how to get more information? Thanks! --=20 Julio Merino -- http://julio.meroh.net/=