From owner-freebsd-current@freebsd.org Sat Jun 25 14:29:51 2016 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 F2F9CB80020 for ; Sat, 25 Jun 2016 14:29:51 +0000 (UTC) (envelope-from cy.schubert@komquats.com) Received: from smtp-out-so.shaw.ca (smtp-out-so.shaw.ca [64.59.136.139]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id CBB59135F for ; Sat, 25 Jun 2016 14:29:51 +0000 (UTC) (envelope-from cy.schubert@komquats.com) Received: from spqr.komquats.com ([96.50.22.10]) by shaw.ca with SMTP id Goahb7WWiN9d0GoaibVw7U; Sat, 25 Jun 2016 08:29:50 -0600 X-Authority-Analysis: v=2.2 cv=QZUkhYTv c=1 sm=1 tr=0 a=jvE2nwUzI0ECrNeyr98KWA==:117 a=jvE2nwUzI0ECrNeyr98KWA==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=pD_ry4oyNxEA:10 a=YxBL1-UpAAAA:8 a=6I5d2MoRAAAA:8 a=FsueQZ-Ksh1tl_JqZ6cA:9 a=Ia-lj3WSrqcvXOmTRaiG:22 a=IjZwj45LgO3ly-622nXo:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTPS id C26C713755 for ; Sat, 25 Jun 2016 07:29:47 -0700 (PDT) Received: from slippy (localhost [127.0.0.1]) by slippy.cwsent.com (8.15.2/8.15.2) with ESMTP id u5PETkfa078605 for ; Sat, 25 Jun 2016 07:29:47 -0700 (PDT) (envelope-from Cy.Schubert@cschubert.com) Message-Id: <201606251429.u5PETkfa078605@slippy.cwsent.com> X-Mailer: exmh version 2.8.0 04/21/2012 with nmh-1.6 Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: freebsd-current@freebsd.org Subject: Cross-build Brokenness Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 25 Jun 2016 07:29:46 -0700 X-CMAE-Envelope: MS4wfBFN2RgxnT+bRPzPUrCJrqqr0NCmDc1iADxduEBD5YNOFdVyQK2d52ssnRDyyRNtAFW3QJ1uL5vxYqHvglYfBOhyldxNi1Lbb8t0xFtL4pZiL9PI7PMl dpakioXp0lVNbFOvCpgIUwi443QjzIdTPw/zKIyXjKEQq8oUFY144hPoELJUNufW9XnAWLbvHR7FYA== X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 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: Sat, 25 Jun 2016 14:29:52 -0000 It appears that the i386 cross-build is broken as follows. Builds on native amd64 are OK. --- main.o --- cc -target i386-unknown-freebsd11.0 --sysroot=/usr/obj/i386.i386/opt/src/svn -current/tmp -B/usr/obj/i386.i386/opt/src/svn-current/tmp/usr/bin -O2 -pipe -pipe -DRDUMP -g -MD -MF.depend.main.o -MTmain.o -std=gnu99 -fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Qunused-arguments -c /opt/src/svn-current/sbin/dump/main.c -o main.o --- all_subdir_lib --- /usr/obj/i386.i386/opt/src/svn-current/tmp/usr/bin/ld: /usr/bin/../lib/clang/3.8.0/lib/freebsd/libclang_rt.ubsan_standalone-i386.a: No such file: No such file or directory cc: error: linker command failed with exit code 1 (use -v to see invocation) *** [h_raw.full] Error code 1 make[7]: stopped in /opt/src/svn-current/lib/libc/tests/ssp 1 error make[7]: stopped in /opt/src/svn-current/lib/libc/tests/ssp *** [h_raw] Error code 2 make[6]: stopped in /opt/src/svn-current/lib/libc/tests/ssp 1 error make[6]: stopped in /opt/src/svn-current/lib/libc/tests/ssp --- all_subdir_kerberos5 --- A failure has been detected in another branch of the parallel make make[5]: stopped in /opt/src/svn-current/kerberos5/lib/libheimbase --- all_subdir_lib --- *** [all_subdir_lib/libc/tests/ssp] Error code 2 make[5]: stopped in /opt/src/svn-current/lib/libc/tests 1 error make[5]: stopped in /opt/src/svn-current/lib/libc/tests --- all_subdir_kerberos5 --- *** [all] Error code 2 make[4]: stopped in /opt/src/svn-current/kerberos5/lib 1 error make[4]: stopped in /opt/src/svn-current/kerberos5/lib --- all_subdir_lib --- *** [all] Error code 2 make[4]: stopped in /opt/src/svn-current/lib/libc 1 error make[4]: stopped in /opt/src/svn-current/lib/libc --- all_subdir_kerberos5 --- *** [all_subdir_kerberos5/lib] Error code 2 make[3]: stopped in /opt/src/svn-current/kerberos5 1 error make[3]: stopped in /opt/src/svn-current/kerberos5 *** [all_subdir_kerberos5] Error code 2 make[2]: stopped in /opt/src/svn-current --- all_subdir_lib --- *** [all_subdir_lib/libc] Error code 2 make[3]: stopped in /opt/src/svn-current/lib 1 error make[3]: stopped in /opt/src/svn-current/lib *** [all_subdir_lib] Error code 2 make[2]: stopped in /opt/src/svn-current --- all_subdir_rescue --- A failure has been detected in another branch of the parallel make make[6]: stopped in /opt/src/svn-current/bin/csh *** [csh_make] Error code 2 make[5]: stopped in /export/obj/i386.i386/opt/src/svn-current/rescue/rescue 1 error make[5]: stopped in /export/obj/i386.i386/opt/src/svn-current/rescue/rescue *** [objs] Error code 2 make[4]: stopped in /opt/src/svn-current/rescue/rescue 1 error make[4]: stopped in /opt/src/svn-current/rescue/rescue *** [all] Error code 2 make[3]: stopped in /opt/src/svn-current/rescue 1 error make[3]: stopped in /opt/src/svn-current/rescue *** [all_subdir_rescue] Error code 2 make[2]: stopped in /opt/src/svn-current --- all_subdir_sbin --- A failure has been detected in another branch of the parallel make make[4]: stopped in /opt/src/svn-current/sbin/dump *** [all_subdir_sbin/dump] Error code 2 make[3]: stopped in /opt/src/svn-current/sbin 1 error make[3]: stopped in /opt/src/svn-current/sbin *** [all_subdir_sbin] Error code 2 make[2]: stopped in /opt/src/svn-current 4 errors make[2]: stopped in /opt/src/svn-current *** [everything] Error code 2 make[1]: stopped in /opt/src/svn-current 1 error make[1]: stopped in /opt/src/svn-current *** [buildworld] Error code 2 make: stopped in /opt/src/svn-current 1 error make: stopped in /opt/src/svn-current slippy# The following patch fixes my i386 cross-builds on amd64 native architecture. Index: lib/libc/tests/ssp/Makefile =================================================================== --- lib/libc/tests/ssp/Makefile (revision 302191) +++ lib/libc/tests/ssp/Makefile (working copy) @@ -1,5 +1,6 @@ # $FreeBSD$ +.include .include NO_WERROR= @@ -34,10 +35,12 @@ .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" .if ${COMPILER_TYPE} == "clang" && ${MK_TOOLCHAIN} == "yes" .if ${COMPILER_VERSION} < 30500 || 30700 <= ${COMPILER_VERSION} +.if ${MACHINE_CPUARCH} == ${_HOST_ARCH} PROGS+= h_raw .endif .endif .endif +.endif PROGS+= h_read PROGS+= h_readlink PROGS+= h_snprintf -- Cheers, Cy Schubert FreeBSD UNIX: Web: http://www.FreeBSD.org The need of the many outweighs the greed of the few.