From owner-freebsd-toolchain@freebsd.org Sun Sep 24 20:29:50 2017 Return-Path: Delivered-To: freebsd-toolchain@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 E5F8EE006F1 for ; Sun, 24 Sep 2017 20:29:50 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-74.reflexion.net [208.70.210.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A8E252008 for ; Sun, 24 Sep 2017 20:29:49 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 20226 invoked from network); 24 Sep 2017 20:29:42 -0000 Received: from unknown (HELO mail-cs-02.app.dca.reflexion.local) (10.81.19.2) by 0 (rfx-qmail) with SMTP; 24 Sep 2017 20:29:42 -0000 Received: by mail-cs-02.app.dca.reflexion.local (Reflexion email security v8.40.3) with SMTP; Sun, 24 Sep 2017 16:29:42 -0400 (EDT) Received: (qmail 11075 invoked from network); 24 Sep 2017 20:29:42 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 24 Sep 2017 20:29:42 -0000 Received: from [192.168.1.109] (c-67-170-167-181.hsd1.or.comcast.net [67.170.167.181]) by iron2.pdx.net (Postfix) with ESMTPSA id C27E4EC770C; Sun, 24 Sep 2017 13:29:41 -0700 (PDT) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: head -r323676 and ports -r450478 audio/liba52 for arm.armv6 (cortex-a7): unresolvable R_ARM_MOVW_ABS_NC relocation against symbol `__stderrp@@FBSD_1.0' Message-Id: Date: Sun, 24 Sep 2017 13:29:40 -0700 To: FreeBSD Toolchain , freebsd-arm X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Sep 2017 20:29:51 -0000 My prodriere amd64 -> armv6 (cortex-a7) cross build of some ports based based on /usr/ports/ -r450478 and head -r323676 got: (cd . && ln -s parse.o parse.lo) /bin/sh ../libtool --mode=3Dlink /nxb-bin/usr/bin/cc -pipe = -mcpu=3Dcortex-a7 -g -fno-strict-aliasing -O2 -pipe = -fomit-frame-pointer -prefer-non-pic -o liba52.la -rpath = /usr/local/lib -no-undefined bitstream.lo imdct.lo bit_allocate.lo = parse.lo downmix.lo -lm=20 rm -fr .libs/liba52.la .libs/liba52.* .libs/liba52.* /nxb-bin/usr/bin/cc -shared bitstream.lo imdct.lo bit_allocate.lo = parse.lo downmix.lo -lm -Wl,-soname -Wl,liba52.so.0 -o = .libs/liba52.so.0.0.0 /nxb-bin/usr/bin/ld: imdct.lo(.text+0x890): unresolvable = R_ARM_MOVW_ABS_NC relocation against symbol `__stderrp@@FBSD_1.0' /nxb-bin/usr/bin/ld: final link failed: Nonrepresentable section on = output cc: error: linker command failed with exit code 1 (use -v to see = invocation) gmake[2]: *** [Makefile:196: liba52.la] Error 1 gmake[2]: Leaving directory = '/wrkdirs/usr/ports/audio/liba52/work/a52dec-0.7.4/liba52' gmake[1]: *** [Makefile:152: all-recursive] Error 1 gmake[1]: Leaving directory = '/wrkdirs/usr/ports/audio/liba52/work/a52dec-0.7.4' =3D=3D=3D> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=3Dyes and rebuild before reporting the = failure to the maintainer. *** Error code 1 Stop. make: stopped in /usr/ports/audio/liba52 =3D>> Cleaning up wrkdir =3D=3D=3D> Cleaning for liba52-0.7.4_3 build of audio/liba52 | liba52-0.7.4_3 ended at Sun Sep 24 02:28:37 PDT = 2017 build time: 00:01:15 !!! build failure encountered !!! I was updating from an earlier version of /usr/ports (-r449363 ?). Note: audio/liba52 was indirectly built by something else requiring it. Ultimately it traces back to my trying to build x11/lumina explicitly and it in turn needing the likes of audio/gstreamer1-plugins-a52dec via multimedia/gstreamer1-plugins-core . # uname -apKU FreeBSD FreeBSDx64OPC 12.0-CURRENT FreeBSD 12.0-CURRENT r323676M amd64 = amd64 1200044 1200044 # svnlite info /usr/ports/ | grep "Re[plv]" Relative URL: ^/head Repository Root: svn://svn.freebsd.org/ports Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5 Revision: 450478 Last Changed Rev: 450478 # diff /usr/local/etc/poudriere.conf = /usr/local/etc/poudriere.conf.sample 13d12 < ZPOOL=3DzrFBSDx64C 31,32c30 < #FREEBSD_HOST=3D_PROTO_://_CHANGE_THIS_ < FREEBSD_HOST=3Dftp://ftp.freebsd.org --- > FREEBSD_HOST=3D_PROTO_://_CHANGE_THIS_ 168d165 < SAVE_WRKDIR=3Dyes 195d191 < ALLOW_MAKE_JOBS=3Dyes 201d196 < ALLOW_MAKE_JOBS_PACKAGES=3D"pkg ccache py* gcc* llvm* ghc* *webkit* = *office* chromium* iridium* mongodb*" 258d252 < BUILDER_HOSTNAME=3DAzrFBSDx64CjailVariant 270d263 < BUILD_AS_NON_ROOT=3Dno (Actually I changed the BUILDER_HOSTNAME since the build.) # more /usr/local/etc/poudriere.d/make.conf WANT_QT_VERBOSE_CONFIGURE=3D1 # DEFAULT_VERSIONS+=3Dperl5=3D5.24 gcc=3D7 # # =46rom a local /usr/ports/Mk/bsd.port.mk extension: ALLOW_OPTIMIZATIONS_FOR_WITH_DEBUG=3D # .if ${.CURDIR:M*/devel/llvm*} #WITH_DEBUG=3D .elif ${.CURDIR:M*/www/qt5-webkit*} #WITH_DEBUG=3D .else WITH_DEBUG=3D .endif MALLOC_PRODUCTION=3D # more /usr/local/etc/poudriere.d/zrFBSDx64CjailArmV7-make.conf CFLAGS+=3D -mcpu=3Dcortex-a7 CXXFLAGS+=3D -mcpu=3Dcortex-a7 CPPFLAGS+=3D -mcpu=3Dcortex-a7 # svnlite status /usr/ports/=20 M /usr/ports/Mk/bsd.port.mk M /usr/ports/base/gcc/Makefile M /usr/ports/base/gcc/distinfo M /usr/ports/base/gcc/pkg-plist M /usr/ports/devel/libunwind/Makefile M /usr/ports/sysutils/cdrdao/Makefile (Yes: poudriere's build is based on that.) # svnlite diff /usr/ports/Mk/bsd.port.mk Index: /usr/ports/Mk/bsd.port.mk =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- /usr/ports/Mk/bsd.port.mk (revision 450478) +++ /usr/ports/Mk/bsd.port.mk (working copy) @@ -1130,12 +1130,12 @@ =20 # Get the operating system type .if !defined(OPSYS) -OPSYS!=3D ${UNAME} -s +OPSYS!=3D echo FreeBSD .endif _EXPORTED_VARS+=3D OPSYS =20 .if !defined(_OSRELEASE) -_OSRELEASE!=3D ${UNAME} -r +_OSRELEASE!=3D echo 12.0-CURRENT .endif _EXPORTED_VARS+=3D _OSRELEASE =20 @@ -1651,7 +1651,11 @@ STRIP_CMD=3D ${TRUE} .endif DEBUG_FLAGS?=3D -g +.if defined(ALLOW_OPTIMIZATIONS_FOR_WITH_DEBUG) +CFLAGS:=3D ${CFLAGS} ${DEBUG_FLAGS} +.else CFLAGS:=3D ${CFLAGS:N-O*:N-fno-strict*} ${DEBUG_FLAGS} +.endif .if defined(INSTALL_TARGET) INSTALL_TARGET:=3D ${INSTALL_TARGET:S/^install-strip$/install/g} .endif (I've had problems with the ${UNAME} notation ending up with empty string results. Thus my forcing the FreeBSD and 12.0-CURRENT that are listed. But the real point of the above is the ALLOW_OPTIMIZATIONS_FOR_WITH_DEBUG use.) The poudriere jail was built via: poudriere jail -c -j zrFBSDx64CjailArmV7 -a arm.armv6 -x -m null -M = /usr/obj/DESTDIRs/clang-armv7-installworld-poud -S /usr/src -v = 12.0-CURRENT but in order to do this I've updated by adding a build_native_xtools to an FCT assignment . . . /usr/local/share/poudriere/jail.sh : null) JAILFS=3Dnone FCT=3Dbuild_native_xtools ;; The bulk build was started with: # poudriere bulk -j zrFBSDx64CjailArmV7 -w -f /root/armv7-origins.txt [00:00:00] Cross-building ports for arm.armv6 on amd64 requires QEMU [00:00:00] Creating the reference jail... done [00:00:04] Mounting system devices for zrFBSDx64CjailArmV7-default [00:00:04] Mounting ports/packages/distfiles [00:00:04] Stashing existing package repository [00:00:04] Mounting packages from: = /usr/local/poudriere/data/packages/zrFBSDx64CjailArmV7-default [00:00:04] Copying /var/db/ports from: = /usr/local/etc/poudriere.d/options [00:00:04] Setting up native-xtools environment in jail... done [00:00:04] Raising MAX_EXECUTION_TIME and NOHANG_TIME for QEMU [00:00:04] Copying latest version of the emulator from: = /usr/local/bin/qemu-arm-static [00:00:04] Appending to make.conf: /usr/local/etc/poudriere.d/make.conf [00:00:04] Appending to make.conf: = /usr/local/etc/poudriere.d/zrFBSDx64CjailArmV7-make.conf /etc/resolv.conf -> = /usr/local/poudriere/data/.m/zrFBSDx64CjailArmV7-default/ref/etc/resolv.co= nf [00:00:04] Starting jail zrFBSDx64CjailArmV7-default [00:00:04] Logs: = /usr/local/poudriere/data/logs/bulk/zrFBSDx64CjailArmV7-default/2017-09-24= _02h20m59s [00:00:04] Loading MOVED [00:00:04] Ports supports: DEPENDS_ARGS SELECTED_OPTIONS [00:00:04] Gathering ports metadata [00:00:06] Calculating ports order and dependencies [00:00:06] Sanity checking the repository [00:00:06] Checking packages for incremental rebuild needs [00:00:08] Deleting stale symlinks... done [00:00:08] Deleting empty directories... done [00:00:08] Cleaning the build queue [00:00:08] Sanity checking build queue [00:00:08] Processing PRIORITY_BOOST [00:00:08] Balancing pool [00:00:08] Recording filesystem state for prepkg... done [00:00:08] Building 146 packages using 14 builders [00:00:08] Starting/Cloning builders . . . # more /root/armv7-origins.txt archivers/unzip archivers/zip benchmarks/bonnie benchmarks/bonnie++ benchmarks/iorate benchmarks/iozone benchmarks/randomio devel/dwarfdump devel/gdb devel/git-lite devel/kyua devel/patch devel/xtoolchain-llvm50 ftp/wget lang/gcc7 net/rsync ports-mgmt/bsdadminscripts2 ports-mgmt/pkg ports-mgmt/portlint ports-mgmt/portmaster ports-mgmt/poudriere-devel security/sudo sysutils/DTraceToolkit sysutils/bsdadminscripts sysutils/stress sysutils/u-boot-rpi2 sysutils/u-boot-sinovoip-bpi-m3 x11/lumina x11/xorg-minimal x11/xterm =3D=3D=3D Mark Millard markmi at dsl-only.net From owner-freebsd-toolchain@freebsd.org Sun Sep 24 22:50:47 2017 Return-Path: Delivered-To: freebsd-toolchain@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 F29FEE033BE for ; Sun, 24 Sep 2017 22:50:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E0A2C65101 for ; Sun, 24 Sep 2017 22:50:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v8OMolaq075400 for ; Sun, 24 Sep 2017 22:50:47 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 222551] Code generated by Clang using union aliasing results in segmentation fault Date: Sun, 24 Sep 2017 22:50:47 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 11.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: linimon@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Sep 2017 22:50:48 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222551 Mark Linimon changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|freebsd-bugs@FreeBSD.org |freebsd-toolchain@FreeBSD.o | |rg --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Sun Sep 24 22:52:06 2017 Return-Path: Delivered-To: freebsd-toolchain@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 16C17E03609 for ; Sun, 24 Sep 2017 22:52:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 04F5965287 for ; Sun, 24 Sep 2017 22:52:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v8OMq537085124 for ; Sun, 24 Sep 2017 22:52:05 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 222562] c++filt and libelftc do not demangle names correctly Date: Sun, 24 Sep 2017 22:52:05 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: linimon@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Sep 2017 22:52:06 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222562 Mark Linimon changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|freebsd-bugs@FreeBSD.org |freebsd-toolchain@FreeBSD.o | |rg --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Sun Sep 24 22:54:25 2017 Return-Path: Delivered-To: freebsd-toolchain@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 630B4E03777 for ; Sun, 24 Sep 2017 22:54:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 50DB0654DF for ; Sun, 24 Sep 2017 22:54:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v8OMsP1Y089747 for ; Sun, 24 Sep 2017 22:54:25 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 222563] libcxxrt abi::__cxa_demangle() does not successfully demangle names Date: Sun, 24 Sep 2017 22:54:25 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: linimon@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Sep 2017 22:54:25 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222563 Mark Linimon changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|freebsd-bugs@FreeBSD.org |freebsd-toolchain@FreeBSD.o | |rg --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Mon Sep 25 06:59:59 2017 Return-Path: Delivered-To: freebsd-toolchain@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 0EACCE0C6C4; Mon, 25 Sep 2017 06:59:59 +0000 (UTC) (envelope-from mikael.urankar@gmail.com) Received: from mail-pf0-x231.google.com (mail-pf0-x231.google.com [IPv6:2607:f8b0:400e:c00::231]) (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 D26B070A4E; Mon, 25 Sep 2017 06:59:58 +0000 (UTC) (envelope-from mikael.urankar@gmail.com) Received: by mail-pf0-x231.google.com with SMTP id l188so3357753pfc.6; Sun, 24 Sep 2017 23:59:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=n5xYih4qjyOCnhg940T7Cr3r3tYWhzOkRzp0vlmz6Hk=; b=dxgP4Z/Qb7bOZ/EHSpGGNb6eKcHc7D7izIcrUR8hVpWDXaUCZptfshPyd8rAS8JVNh zRCM19mBL6b+qJjF7gIn85PdWAS2k9qO4769mD9TCr3ng9rPnZjMNjXXrNOFWZ5o7jdY bRAby1yaNJ/e3TZPStj5w+j7otlY+/SiD4stZkiMfMptuZYIKncEGMuO3icuwWBkdzgE Bsgs6AHLZC6H7x7zona/XhRP68EDqG7nMvirMBj/uaS2qUnlDdEAsSA7pIbrbfW3bYCQ AZplDFiiEf4U3EIUYDvJc9sWcyx9MV/aZqh2YTYuzFgJihvIrcpFtAzuyYHTd8XpZsUz SWnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=n5xYih4qjyOCnhg940T7Cr3r3tYWhzOkRzp0vlmz6Hk=; b=oLLNAwG+IE5SVjBSnmDVlsM8yP73Yg1CaRokKcwYnbxHigjiTghJKOdoIIO1MPb2NC uPEGRZCDilUCJ7l4LJh4k3egpgTK2H1b6wtr82hvc8VqdYyZ4YEkbTuOU/03Mukl5eEM 9mGqEEsgNmdy7qrMYe4V9RMLVYXVmqKQ74453t9MlOUKk1WAXdVn+kMhGl8SAydDqGrS aFcopzVWXt8AHLYgIEUFIf7eBcJRZnRJYWTEWWmoYldaXsbckeLbKVHZCuTgUihU7Y9h wtaJ82bhTagS2xLJdS7n6iZq7E6nc9SGNGYIKy3L3MsWC5RTI26mKdQ7TxFcFMXKYFKE C5Wg== X-Gm-Message-State: AHPjjUjxfpCpNNgnd440U3sxjrV+Jy/y5/vuDQ5E2lbO0sry6gTcVX8+ T5IOW1iX6c7XLt+o1GPJOC2IhVfHozyLU4UDkme9+eCi X-Google-Smtp-Source: AOwi7QDm21uSNfxXfOuJr/VlyItVXZh+aeAOtiBTSqLJKJ9BBxHNjnjqB3L3nbAkXZbwiJbDGPCUb6cgIyCYm14nbks= X-Received: by 10.99.63.135 with SMTP id m129mr6876286pga.207.1506322798358; Sun, 24 Sep 2017 23:59:58 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.168.1 with HTTP; Sun, 24 Sep 2017 23:59:18 -0700 (PDT) In-Reply-To: References: From: =?UTF-8?Q?Mika=C3=ABl_Urankar?= Date: Mon, 25 Sep 2017 08:59:18 +0200 Message-ID: Subject: Re: head -r323676 and ports -r450478 audio/liba52 for arm.armv6 (cortex-a7): unresolvable R_ARM_MOVW_ABS_NC relocation against symbol `__stderrp@@FBSD_1.0' To: Mark Millard Cc: FreeBSD Toolchain , freebsd-arm Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Sep 2017 06:59:59 -0000 2017-09-24 22:29 GMT+02:00 Mark Millard : > My prodriere amd64 -> armv6 (cortex-a7) cross build of > some ports based based on /usr/ports/ -r450478 and > head -r323676 got: > > (cd . && ln -s parse.o parse.lo) > /bin/sh ../libtool --mode=3Dlink /nxb-bin/usr/bin/cc -pipe -mcpu=3Dcorte= x-a7 -g -fno-strict-aliasing -O2 -pipe -fomit-frame-pointer -prefer-non-= pic -o liba52.la -rpath /usr/local/lib -no-undefined bitstream.lo imdct.lo= bit_allocate.lo parse.lo downmix.lo -lm > rm -fr .libs/liba52.la .libs/liba52.* .libs/liba52.* > /nxb-bin/usr/bin/cc -shared bitstream.lo imdct.lo bit_allocate.lo parse.= lo downmix.lo -lm -Wl,-soname -Wl,liba52.so.0 -o .libs/liba52.so.0.0.0 > /nxb-bin/usr/bin/ld: imdct.lo(.text+0x890): unresolvable R_ARM_MOVW_ABS_N= C relocation against symbol `__stderrp@@FBSD_1.0' > /nxb-bin/usr/bin/ld: final link failed: Nonrepresentable section on outpu= t > cc: error: linker command failed with exit code 1 (use -v to see invocati= on) > gmake[2]: *** [Makefile:196: liba52.la] Error 1 > gmake[2]: Leaving directory '/wrkdirs/usr/ports/audio/liba52/work/a52dec-= 0.7.4/liba52' > gmake[1]: *** [Makefile:152: all-recursive] Error 1 > gmake[1]: Leaving directory '/wrkdirs/usr/ports/audio/liba52/work/a52dec-= 0.7.4' > =3D=3D=3D> Compilation failed unexpectedly. > Try to set MAKE_JOBS_UNSAFE=3Dyes and rebuild before reporting the failur= e to > the maintainer. > *** Error code 1 It seems similar to this bug: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D215974 From owner-freebsd-toolchain@freebsd.org Mon Sep 25 09:19:48 2017 Return-Path: Delivered-To: freebsd-toolchain@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 DD308E0EE7F for ; Mon, 25 Sep 2017 09:19:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CA6867404A for ; Mon, 25 Sep 2017 09:19:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v8P9JmnU056652 for ; Mon, 25 Sep 2017 09:19:48 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 222551] Code generated by Clang using union aliasing results in segmentation fault Date: Mon, 25 Sep 2017 09:19:48 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 11.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: dim@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to bug_status cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Sep 2017 09:19:49 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222551 Dimitry Andric changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|freebsd-toolchain@FreeBSD.o |dim@FreeBSD.org |rg | Status|New |Open CC| |dim@FreeBSD.org, | |emaste@freebsd.org --- Comment #1 from Dimitry Andric --- clang 5.0.0 has been merged into head as of r323245 (2017-09-06), and it wi= ll land in stable/11 pretty soon. So I'll close this bug when it lands there. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Thu Sep 28 19:32:21 2017 Return-Path: Delivered-To: freebsd-toolchain@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 57C26E07306 for ; Thu, 28 Sep 2017 19:32:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3F7106B013 for ; Thu, 28 Sep 2017 19:32:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v8SJWLwV015715 for ; Thu, 28 Sep 2017 19:32:21 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 218808] www/firefox: usr/bin/ld: error: unknown argument: --warn-unresolved-symbols (WITH_LLD_IS_LD) Date: Thu, 28 Sep 2017 19:32:21 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: commit-hook@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gecko@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback+ X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Sep 2017 19:32:21 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D218808 --- Comment #9 from commit-hook@freebsd.org --- A commit references this bug: Author: jbeich Date: Thu Sep 28 19:32:05 UTC 2017 New revision: 450860 URL: https://svnweb.freebsd.org/changeset/ports/450860 Log: gecko: unbreak on 11.1 aarch64 /usr/bin/ld: error: unknown argument: --warn-unresolved-symbols PR: 218808 Reported by: O. Hartmann, pkg-fallout (for /head before lld 5.0 update) Changes: head/Mk/bsd.gecko.mk --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-toolchain@freebsd.org Thu Sep 28 19:36:22 2017 Return-Path: Delivered-To: freebsd-toolchain@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 C6595E0753E for ; Thu, 28 Sep 2017 19:36:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B3C316B4EF for ; Thu, 28 Sep 2017 19:36:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v8SJaMgN021588 for ; Thu, 28 Sep 2017 19:36:22 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 218808] www/firefox: usr/bin/ld: error: unknown argument: --warn-unresolved-symbols (WITH_LLD_IS_LD) Date: Thu, 28 Sep 2017 19:36:22 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: jbeich@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gecko@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback+ X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Sep 2017 19:36:22 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D218808 Jan Beich changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |Closed Resolution|--- |FIXED --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-toolchain@freebsd.org Fri Sep 29 00:50:27 2017 Return-Path: Delivered-To: freebsd-toolchain@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 E4D81E10814 for ; Fri, 29 Sep 2017 00:50:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D2B7073CF4 for ; Fri, 29 Sep 2017 00:50:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v8T0oRtS043546 for ; Fri, 29 Sep 2017 00:50:27 GMT (envelope-from bugzilla-noreply@freebsd.org) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: maintainer-feedback requested: [Bug 222641] www/firefox libgkrust.a: could not read symbols Date: Fri, 29 Sep 2017 00:50:28 +0000 X-Bugzilla-Type: request X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gecko@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback+ maintainer-feedback? Message-ID: In-Reply-To: References: X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Sep 2017 00:50:28 -0000 Jan Beich has asked freebsd-toolchain@FreeBSD.org for maintainer-feedback: Bug 222641: www/firefox libgkrust.a: could not read symbols https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222641 --- Comment #7 from Jan Beich --- Maybe someone from toolchain@ has a clue. From owner-freebsd-toolchain@freebsd.org Fri Sep 29 00:50:30 2017 Return-Path: Delivered-To: freebsd-toolchain@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 9EBD8E10822 for ; Fri, 29 Sep 2017 00:50:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8C3D273CFE for ; Fri, 29 Sep 2017 00:50:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v8T0oRtk043546 for ; Fri, 29 Sep 2017 00:50:30 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 222641] www/firefox libgkrust.a: could not read symbols Date: Fri, 29 Sep 2017 00:50:28 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gecko@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback+ maintainer-feedback? X-Bugzilla-Changed-Fields: cc flagtypes.name Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Sep 2017 00:50:30 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222641 Jan Beich changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |freebsd-toolchain@FreeBSD.o | |rg Flags| |maintainer-feedback?(freebs | |d-toolchain@FreeBSD.org) --- Comment #7 from Jan Beich --- Maybe someone from toolchain@ has a clue. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-toolchain@freebsd.org Fri Sep 29 07:11:47 2017 Return-Path: Delivered-To: freebsd-toolchain@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 B4CD3E25872 for ; Fri, 29 Sep 2017 07:11:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A325B81154 for ; Fri, 29 Sep 2017 07:11:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v8T7BlDP087558 for ; Fri, 29 Sep 2017 07:11:47 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 222641] www/firefox libgkrust.a: could not read symbols Date: Fri, 29 Sep 2017 07:11:47 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: kib@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gecko@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback+ maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Sep 2017 07:11:47 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222641 --- Comment #8 from Konstantin Belousov --- (In reply to Jan Beich from comment #7) There are a lot of clues in the reports. I am almost sure, that the error message comes out because in-tree ld(1) does not know about some relocation type used by some object file included into libgkrust.a. When people insta= ll the binutils from ports and set a knob to force use /usr/local/bin/ld, the build finishes successfully because new ld understands this relocation. The solution would be to force use binutils port ld(1) for linking. libgkrust.a is produced by the rust compiler, unless I am wrong. It probab= ly triggers some code generation paths in llvm backend which caused to issue unusual relocations, which typically not created by clang. So the C compilation is not affected and do not trip old linker in base. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-toolchain@freebsd.org Fri Sep 29 08:20:44 2017 Return-Path: Delivered-To: freebsd-toolchain@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 C8100E26BBD for ; Fri, 29 Sep 2017 08:20:44 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-211-151.reflexion.net [208.70.211.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 86CBB829E3 for ; Fri, 29 Sep 2017 08:20:44 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 18281 invoked from network); 29 Sep 2017 08:14:03 -0000 Received: from unknown (HELO rtc-sm-01.app.dca.reflexion.local) (10.81.150.1) by 0 (rfx-qmail) with SMTP; 29 Sep 2017 08:14:03 -0000 Received: by rtc-sm-01.app.dca.reflexion.local (Reflexion email security v8.40.3) with SMTP; Fri, 29 Sep 2017 04:14:03 -0400 (EDT) Received: (qmail 14458 invoked from network); 29 Sep 2017 08:14:02 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 29 Sep 2017 08:14:02 -0000 Received: from [192.168.1.109] (c-67-170-167-181.hsd1.or.comcast.net [67.170.167.181]) by iron2.pdx.net (Postfix) with ESMTPSA id 3B377EC94DA; Fri, 29 Sep 2017 01:14:02 -0700 (PDT) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: head -r324071 system clang 5 based powerpc64 building ports: lang/gcc7 messed up by a matching name vec_step? Message-Id: <47941770-2A08-4524-8BCC-3FE1D2F3B7F2@dsl-only.net> Date: Fri, 29 Sep 2017 01:14:01 -0700 To: FreeBSD PowerPC ML , FreeBSD Toolchain X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Sep 2017 08:20:44 -0000 I attempted a poudriere based build of some ports and the gcc7 build involved failed with the following sorts of notices: = /wrkdirs/usr/ports/lang/gcc7/work/gcc-7.2.0/gcc/tree-vect-loop.c:3835:27: = error: expected unqualified-id tree new_vec, vec_init, vec_step, t; ^ = /wrkdirs/usr/ports/lang/gcc7/work/gcc-7.2.0/gcc/tree-vect-loop.c:3835:26: = error: expected ';' at end of declaration tree new_vec, vec_init, vec_step, t; ^ ; /wrkdirs/usr/ports/lang/gcc7/work/gcc-7.2.0/gcc/tree-vect-loop.c:3983:3: = error: use of undeclared identifier 't' t =3D unshare_expr (new_name); ^ = /wrkdirs/usr/ports/lang/gcc7/work/gcc-7.2.0/gcc/tree-vect-loop.c:3988:49: = error: use of undeclared identifier 't' new_vec =3D build_vector_from_val (stepvectype, t); ^ = /wrkdirs/usr/ports/lang/gcc7/work/gcc-7.2.0/gcc/tree-vect-loop.c:3989:12: = error: expected expression vec_step =3D vect_init_vector (iv_phi, new_vec, stepvectype, NULL); ^ = /wrkdirs/usr/ports/lang/gcc7/work/gcc-7.2.0/gcc/tree-vect-loop.c:4011:75: = error: expected expression new_stmt =3D gimple_build_assign (vec_dest, PLUS_EXPR, induc_def, = vec_step); = ^ /wrkdirs/usr/ports/lang/gcc7/work/gcc-7.2.0/gcc/tree-vect-loop.c:4048:7: = error: use of undeclared identifier 't' t =3D unshare_expr (new_name); ^ = /wrkdirs/usr/ports/lang/gcc7/work/gcc-7.2.0/gcc/tree-vect-loop.c:4051:53: = error: use of undeclared identifier 't' new_vec =3D build_vector_from_val (stepvectype, t); ^ = /wrkdirs/usr/ports/lang/gcc7/work/gcc-7.2.0/gcc/tree-vect-loop.c:4052:16: = error: expected expression vec_step =3D vect_init_vector (iv_phi, new_vec, stepvectype, = NULL); ^ = /wrkdirs/usr/ports/lang/gcc7/work/gcc-7.2.0/gcc/tree-vect-loop.c:4060:25: = error: expected expression vec_def, vec_step); ^ /wrkdirs/usr/ports/lang/gcc7/work/gcc-7.2.0/gcc/tree-vect-loop.c:6327:9: = error: expected unqualified-id tree vec_step =3D build_vector_from_val (cr_index_vector_type, = step); ^ = /wrkdirs/usr/ports/lang/gcc7/work/gcc-7.2.0/gcc/tree-vect-loop.c:6333:36: = error: expected expression create_iv (series_vect, vec_step, NULL_TREE, loop, &incr_gsi, ^ 50 warnings and 12 errors generated. gmake[3]: *** [Makefile:1099: tree-vect-loop.o] Error 1 gmake[3]: *** Waiting for unfinished jobs.... 42 warnings generated. 51 warnings generated. 50 warnings generated. rm gfortran.pod gcc.pod gmake[3]: Leaving directory = '/wrkdirs/usr/ports/lang/gcc7/work/.build/gcc' gmake[2]: *** [Makefile:4225: all-gcc] Error 2 gmake[2]: Leaving directory '/wrkdirs/usr/ports/lang/gcc7/work/.build' gmake[1]: *** [Makefile:893: all] Error 2 gmake[1]: Leaving directory '/wrkdirs/usr/ports/lang/gcc7/work/.build' =3D=3D=3D> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=3Dyes and rebuild before reporting the = failure to the maintainer. *** Error code 1 Stop. make: stopped in /usr/ports/lang/gcc7 =3D>> Cleaning up wrkdir =3D=3D=3D> Cleaning for gcc7-7.2.0_1 build of lang/gcc7 | gcc7-7.2.0_1 ended at Fri Sep 29 00:22:00 PDT 2017 build time: 00:29:27 !!! build failure encountered !!! FYI: # grep -r "\" /usr/src/* | more /usr/src/contrib/llvm/tools/clang/lib/AST/ASTDumper.cpp: OS << " = vec_step"; /usr/src/contrib/llvm/tools/clang/lib/AST/StmtPrinter.cpp: OS << = "vec_step"; /usr/src/contrib/llvm/tools/clang/lib/AST/ExprConstant.cpp:/// = VisitUnaryExprOrTypeTraitExpr - Evaluate a sizeof, alignof or vec_step = with /usr/src/contrib/llvm/tools/clang/lib/AST/ExprConstant.cpp: // The = vec_step built-in functions that take a 3-component /usr/src/contrib/llvm/tools/clang/lib/AST/ItaniumMangle.cpp: = "cannot yet mangle vec_step expression"); /usr/src/contrib/llvm/tools/clang/lib/Headers/opencl-c.h: * by = vec_step(gentypem). The shuffle mask operand /usr/src/contrib/llvm/tools/clang/lib/Parse/ParseExpr.cpp: case = tok::kw_vec_step: // unary-expression: OpenCL 'vec_step' expression /usr/src/contrib/llvm/tools/clang/lib/Parse/ParseExpr.cpp:/// vec_step = and we are at the start of an expression or a parenthesized /usr/src/contrib/llvm/tools/clang/lib/Parse/ParseExpr.cpp:/// [OpenCL = 1.1 6.11.12] vec_step built-in function: /usr/src/contrib/llvm/tools/clang/lib/Parse/ParseExpr.cpp:/// = vec_step ( expressions ) /usr/src/contrib/llvm/tools/clang/lib/Parse/ParseExpr.cpp:/// = vec_step ( type-name ) /usr/src/contrib/llvm/tools/clang/lib/Parse/ParseExpr.cpp: "Not = a typeof/sizeof/alignof/vec_step expression!"); /usr/src/contrib/llvm/tools/clang/lib/Parse/ParseExpr.cpp: "Not = a sizeof/alignof/vec_step expression!"); /usr/src/contrib/llvm/tools/clang/lib/Sema/SemaExpr.cpp: // [OpenCL 1.1 = 6.11.12] "The vec_step built-in function takes a built-in /usr/src/contrib/llvm/tools/clang/lib/Sema/TreeTransform.h: /// \brief = Build a new sizeof, alignof or vec_step expression with a /usr/src/contrib/llvm/tools/clang/include/clang/AST/Expr.h:/// vec_step = (OpenCL 1.1 6.11.12). = /usr/src/contrib/llvm/tools/clang/include/clang/ASTMatchers/ASTMatchers.h:= /// \brief Matches sizeof (C99), alignof (C++11) and vec_step (OpenCL) = /usr/src/contrib/llvm/tools/clang/include/clang/Basic/DiagnosticSemaKinds.= td: "invalid application of '%select{sizeof|alignof|vec_step}0' to a " = /usr/src/contrib/llvm/tools/clang/include/clang/Basic/DiagnosticSemaKinds.= td: "invalid application of '%select{sizeof|alignof|vec_step}0' to a = void " = /usr/src/contrib/llvm/tools/clang/include/clang/Basic/DiagnosticSemaKinds.= td: "invalid application of = '%select{sizeof|alignof|vec_step|__builtin_omp_required_simd_align}0' to = a void type">; = /usr/src/contrib/llvm/tools/clang/include/clang/Basic/DiagnosticSemaKinds.= td: "invalid application of = '%select{sizeof|alignof|vec_step|__builtin_omp_required_simd_align}0' to = an " = /usr/src/contrib/llvm/tools/clang/include/clang/Basic/DiagnosticSemaKinds.= td: "invalid application of = '%select{sizeof|alignof|vec_step|__builtin_omp_required_simd_align}0' to = a " = /usr/src/contrib/llvm/tools/clang/include/clang/Basic/DiagnosticSemaKinds.= td: "'vec_step' requires built-in scalar or vector type, %0 invalid">; = /usr/src/contrib/llvm/tools/clang/include/clang/Basic/TokenKinds.def:KEYWO= RD(vec_step , KEYOPENCL|KEYALTIVEC|KEYZVECTOR) /usr/src/contrib/gcc/config/rs6000/altivec.h:/* Given the vec_step of a = type, return the corresponding bool type. */ /usr/src/contrib/gcc/config/rs6000/altivec.h:typename __altivec_bool_ret = ::__ret \ /usr/src/contrib/gcc/config/rs6000/altivec.h: to #define vec_step to = __builtin_vec_step. */ /usr/src/contrib/gcc/config/rs6000/altivec.h:#define vec_step(x) = __builtin_vec_step (* (__typeof__ (x) *) 0) /usr/src/contrib/gcc/ChangeLog-2002: * config/rs6000/altivec.h = (vec_step): Remove extraneous /usr/src/contrib/gcc/ChangeLog-2002: (vec_step): Implement for C++. Context: # uname -apKU FreeBSD FBSDG5L 12.0-CURRENT FreeBSD 12.0-CURRENT r324071M powerpc = powerpc64 1200047 1200047 Built via amd64 -> powerpc64 cross build, using clang for buildworld: [Note: The kernel was built with gcc 4.2.1 .] # poudriere jail -l JAILNAME VERSION ARCH METHOD TIMESTAMP = PATH FBSDpowerpc64 12.0-CURRENT powerpc.powerpc64 null 2017-09-28 20:55:01 = /usr/obj/DESTDIRs/clang-powerpc64-installworld_altbinutils-poud (It is using /usr/src .) # poudriere ports -l PORTSTREE METHOD TIMESTAMP PATH default null 2017-09-28 17:04:57 /usr/ports # more = ~/src.configs/src.conf.powerpc64-clang_altbinutils-bootstrap.amd64-host=20= TO_TYPE=3Dpowerpc64 TOOLS_TO_TYPE=3D${TO_TYPE} VERSION_CONTEXT=3D12.0 # KERNCONF=3DGENERIC64vtsc-NODBG TARGET=3Dpowerpc .if ${.MAKE.LEVEL} =3D=3D 0 TARGET_ARCH=3D${TO_TYPE} .export TARGET_ARCH .endif # WITH_CROSS_COMPILER=3D WITHOUT_SYSTEM_COMPILER=3D # WITH_LIBCPLUSPLUS=3D WITHOUT_BINUTILS_BOOTSTRAP=3D WITH_ELFTOOLCHAIN_BOOTSTRAP=3D WITH_CLANG_BOOTSTRAP=3D WITH_CLANG=3D WITH_CLANG_IS_CC=3D WITH_CLANG_FULL=3D WITH_CLANG_EXTRAS=3D WITHOUT_LLD_BOOTSTRAP=3D WITH_LLD=3D WITHOUT_LLD_IS_LD=3D WITH_LLDB=3D # WITH_BOOT=3D WITH_LIB32=3D # WITHOUT_GCC_BOOTSTRAP=3D WITHOUT_GCC=3D WITHOUT_GCC_IS_CC=3D WITHOUT_GNUCXX=3D # NO_WERROR=3D MALLOC_PRODUCTION=3D # # Avoid converts between pointers to integer types with different sign = [-Werror,-Wpointer-sign] # and such from blocking the build. WERROR=3D # WITH_REPRODUCIBLE_BUILD=3D WITH_DEBUG_FILES=3D # # # For TO (so-called "cross") stages . . . # So-called-cross via ${TO_TYPE}-xtoolchain-gcc/${TO_TYPE}-gcc. . . # TOOLS_TO_TYPE based on ${TO_TYPE}-xtoolchain-gcc related binutils. . . # CROSS_BINUTILS_PREFIX=3D/usr/local/${TOOLS_TO_TYPE}-freebsd/bin/ .if ${.MAKE.LEVEL} =3D=3D 0 # # Note: The WITH_CROSS_COMPILER picks up the CROSS_BINUTILS_PREFIX # binding automatically. # XAS=3D/usr/local/${TOOLS_TO_TYPE}-freebsd/bin/as XAR=3D/usr/local/${TOOLS_TO_TYPE}-freebsd/bin/ar XNM=3D/usr/local/${TOOLS_TO_TYPE}-freebsd/bin/nm XOBJCOPY=3D/usr/local/${TOOLS_TO_TYPE}-freebsd/bin/objcopy XOBJDUMP=3D/usr/local/${TOOLS_TO_TYPE}-freebsd/bin/objdump XRANLIB=3D/usr/local/${TOOLS_TO_TYPE}-freebsd/bin/ranlib XSIZE=3D/usr/local/${TOOLS_TO_TYPE}-freebsd/bin/size #NO-SUCH: XSTRINGS=3D/usr/local/${TOOLS_TO_TYPE}-freebsd/bin/strings XSTRINGS=3D/usr/local/bin/${TOOLS_TO_TYPE}-freebsd-strings .export XAS .export XAR .export XNM .export XOBJCOPY .export XOBJDUMP .export XRANLIB .export XSIZE .export XSTRINGS XLD=3D/usr/local/${TOOLS_TO_TYPE}-freebsd/bin/ld .export XLD .endif # svnlite status /usr/src/ | sort ? /usr/src/sys/amd64/conf/GENERIC-DBG ? /usr/src/sys/amd64/conf/GENERIC-NODBG ? /usr/src/sys/arm/conf/GENERIC-DBG ? /usr/src/sys/arm/conf/GENERIC-NODBG ? /usr/src/sys/arm64/conf/GENERIC-DBG ? /usr/src/sys/arm64/conf/GENERIC-NODBG ? /usr/src/sys/powerpc/conf/GENERIC64vtsc-DBG ? /usr/src/sys/powerpc/conf/GENERIC64vtsc-NODBG ? /usr/src/sys/powerpc/conf/GENERICvtsc-DBG ? /usr/src/sys/powerpc/conf/GENERICvtsc-NODBG M /usr/src/contrib/llvm/lib/Target/PowerPC/PPCFrameLowering.cpp M /usr/src/contrib/llvm/tools/lld/ELF/Arch/PPC64.cpp M /usr/src/crypto/openssl/crypto/armcap.c M /usr/src/lib/Makefile M /usr/src/lib/libkvm/kvm_powerpc.c M /usr/src/lib/libkvm/kvm_private.c M /usr/src/sys/arm64/arm64/identcpu.c M /usr/src/sys/arm64/arm64/mp_machdep.c M /usr/src/sys/boot/ofw/Makefile.inc M /usr/src/sys/boot/powerpc/Makefile.inc M /usr/src/sys/boot/powerpc/boot1.chrp/Makefile M /usr/src/sys/boot/powerpc/kboot/Makefile M /usr/src/sys/boot/uboot/Makefile.inc M /usr/src/sys/conf/kmod.mk M /usr/src/sys/conf/ldscript.powerpc M /usr/src/sys/ddb/db_main.c M /usr/src/sys/ddb/db_script.c M /usr/src/sys/kern/subr_pcpu.c M /usr/src/sys/powerpc/aim/mmu_oea64.c M /usr/src/sys/powerpc/ofw/ofw_machdep.c M /usr/src/sys/powerpc/powerpc/interrupt.c M /usr/src/sys/powerpc/powerpc/mp_machdep.c M /usr/src/sys/powerpc/powerpc/trap.c # svnlite info /usr/ports/ | grep "Re[plv]" Relative URL: ^/head Repository Root: svn://svn0.us-west.freebsd.org/ports Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5 Revision: 450478 Last Changed Rev: 450478 # svnlite status /usr/ports M /usr/ports/Mk/bsd.port.mk M /usr/ports/Mk/bsd.qt.mk M /usr/ports/audio/liba52/Makefile M /usr/ports/base/gcc/Makefile M /usr/ports/base/gcc/distinfo M /usr/ports/base/gcc/pkg-plist M /usr/ports/devel/libunwind/Makefile ? = /usr/ports/devel/qt5/files/extrapatch-config.tests_unix_arch.test M /usr/ports/lang/gcc7/Makefile M /usr/ports/sysutils/cdrdao/Makefile ? = /usr/ports/www/qt5-webkit/files/patch-Source_JavaScriptCore_assembler_ARMA= ssembler.h ? = /usr/ports/www/qt5-webkit/files/patch-Source_JavaScriptCore_assembler_ARMv= 7Assembler.h ? = /usr/ports/www/qt5-webkit/files/patch-Source_JavaScriptCore_offlineasm_arm= .rb ? /usr/ports/www/qt5-webkit/files/patch-Source_WTF_wtf_Platform.h ? = /usr/ports/www/qt5-webkit/files/patch-Source_WebCore_platform_graphics_cpu= _arm_filters_FELightingNEON.cpp ? = /usr/ports/www/qt5-webkit/files/patch-Source_bmalloc_bmalloc_BPlatform.h # more /usr/local/etc/poudriere.d/make.conf WANT_QT_VERBOSE_CONFIGURE=3D1 # DEFAULT_VERSIONS+=3Dperl5=3D5.24 gcc=3D7 # # =46rom a local /usr/ports/Mk/bsd.port.mk extension: ALLOW_OPTIMIZATIONS_FOR_WITH_DEBUG=3D # .if ${.CURDIR:M*/devel/llvm*} #WITH_DEBUG=3D .elif ${.CURDIR:M*/www/qt5-webkit*} #WITH_DEBUG=3D .else WITH_DEBUG=3D .endif MALLOC_PRODUCTION=3D # # The system clang for TARGET_ARCH=3Dpowerpc64 # and the system binutils (such as ld) do not # (yet?) mix well. So for ports use the # devel/binutils ones. (A problem before # they are already in place!) #USE_BINUTILS=3D CFLAGS+=3D-B${LOCALBASE}/bin/ CXXFLAGS+=3D-B${LOCALBASE}/bin/ CPPFLAGS+=3D-B${LOCALBASE}/bin/ # svnlite diff /usr/ports/Mk/bsd.port.mk Index: /usr/ports/Mk/bsd.port.mk =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- /usr/ports/Mk/bsd.port.mk (revision 450478) +++ /usr/ports/Mk/bsd.port.mk (working copy) @@ -1130,12 +1130,12 @@ =20 # Get the operating system type .if !defined(OPSYS) -OPSYS!=3D ${UNAME} -s +OPSYS!=3D echo FreeBSD .endif _EXPORTED_VARS+=3D OPSYS =20 .if !defined(_OSRELEASE) -_OSRELEASE!=3D ${UNAME} -r +_OSRELEASE!=3D echo 12.0-CURRENT .endif _EXPORTED_VARS+=3D _OSRELEASE =20 @@ -1651,7 +1651,11 @@ STRIP_CMD=3D ${TRUE} .endif DEBUG_FLAGS?=3D -g +.if defined(ALLOW_OPTIMIZATIONS_FOR_WITH_DEBUG) +CFLAGS:=3D ${CFLAGS} ${DEBUG_FLAGS} +.else CFLAGS:=3D ${CFLAGS:N-O*:N-fno-strict*} ${DEBUG_FLAGS} +.endif .if defined(INSTALL_TARGET) INSTALL_TARGET:=3D ${INSTALL_TARGET:S/^install-strip$/install/g} .endif (Note: I've had problems with some ${UNAME} use returning empty strings, which is why I've used echo as a replacement in places. The real point for the above is the ALLOW_OPTIMIZATIONS_FOR_WITH_DEBUG use.) =3D=3D=3D Mark Millard markmi at dsl-only.net From owner-freebsd-toolchain@freebsd.org Fri Sep 29 08:51:42 2017 Return-Path: Delivered-To: freebsd-toolchain@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 83C77E27497 for ; Fri, 29 Sep 2017 08:51:42 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-211-151.reflexion.net [208.70.211.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48BD48361A for ; Fri, 29 Sep 2017 08:51:41 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 2857 invoked from network); 29 Sep 2017 08:51:40 -0000 Received: from unknown (HELO mail-cs-02.app.dca.reflexion.local) (10.81.19.2) by 0 (rfx-qmail) with SMTP; 29 Sep 2017 08:51:40 -0000 Received: by mail-cs-02.app.dca.reflexion.local (Reflexion email security v8.40.3) with SMTP; Fri, 29 Sep 2017 04:51:40 -0400 (EDT) Received: (qmail 5292 invoked from network); 29 Sep 2017 08:51:40 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 29 Sep 2017 08:51:40 -0000 Received: from [192.168.1.109] (c-67-170-167-181.hsd1.or.comcast.net [67.170.167.181]) by iron2.pdx.net (Postfix) with ESMTPSA id 7B8A8EC8148; Fri, 29 Sep 2017 01:51:39 -0700 (PDT) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: head -r324071 system clang 5 based powerpc64 building ports: lang/gcc7 messed up by a matching name vec_step? [vec_step macro name in gcc7's altivec.h] Date: Fri, 29 Sep 2017 01:51:39 -0700 References: <47941770-2A08-4524-8BCC-3FE1D2F3B7F2@dsl-only.net> To: FreeBSD PowerPC ML , FreeBSD Toolchain , FreeBSD Ports , Gerald Pfeifer In-Reply-To: <47941770-2A08-4524-8BCC-3FE1D2F3B7F2@dsl-only.net> Message-Id: <54D59906-80CE-4936-B5FD-BCCD87A09F76@dsl-only.net> X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Sep 2017 08:51:42 -0000 [Looks like gcc7 might be causing its own problem via a vec_step macro name in its altivec.h .] On 2017-Sep-29, at 1:14 AM, Mark Millard wrote: > I attempted a poudriere based build of some > ports and the gcc7 build involved failed > with the following sorts of notices: >=20 >=20 > = /wrkdirs/usr/ports/lang/gcc7/work/gcc-7.2.0/gcc/tree-vect-loop.c:3835:27: = error: expected unqualified-id > tree new_vec, vec_init, vec_step, t; > ^ > = /wrkdirs/usr/ports/lang/gcc7/work/gcc-7.2.0/gcc/tree-vect-loop.c:3835:26: = error: expected ';' at end of declaration > tree new_vec, vec_init, vec_step, t; > ^ > ; > = /wrkdirs/usr/ports/lang/gcc7/work/gcc-7.2.0/gcc/tree-vect-loop.c:3983:3: = error: use of undeclared identifier 't' > t =3D unshare_expr (new_name); > ^ > = /wrkdirs/usr/ports/lang/gcc7/work/gcc-7.2.0/gcc/tree-vect-loop.c:3988:49: = error: use of undeclared identifier 't' > new_vec =3D build_vector_from_val (stepvectype, t); > ^ > = /wrkdirs/usr/ports/lang/gcc7/work/gcc-7.2.0/gcc/tree-vect-loop.c:3989:12: = error: expected expression > vec_step =3D vect_init_vector (iv_phi, new_vec, stepvectype, NULL); > ^ > = /wrkdirs/usr/ports/lang/gcc7/work/gcc-7.2.0/gcc/tree-vect-loop.c:4011:75: = error: expected expression > new_stmt =3D gimple_build_assign (vec_dest, PLUS_EXPR, induc_def, = vec_step); > = ^ > = /wrkdirs/usr/ports/lang/gcc7/work/gcc-7.2.0/gcc/tree-vect-loop.c:4048:7: = error: use of undeclared identifier 't' > t =3D unshare_expr (new_name); > ^ > = /wrkdirs/usr/ports/lang/gcc7/work/gcc-7.2.0/gcc/tree-vect-loop.c:4051:53: = error: use of undeclared identifier 't' > new_vec =3D build_vector_from_val (stepvectype, t); > ^ > = /wrkdirs/usr/ports/lang/gcc7/work/gcc-7.2.0/gcc/tree-vect-loop.c:4052:16: = error: expected expression > vec_step =3D vect_init_vector (iv_phi, new_vec, stepvectype, = NULL); > ^ > = /wrkdirs/usr/ports/lang/gcc7/work/gcc-7.2.0/gcc/tree-vect-loop.c:4060:25: = error: expected expression > vec_def, vec_step); > ^ > = /wrkdirs/usr/ports/lang/gcc7/work/gcc-7.2.0/gcc/tree-vect-loop.c:6327:9: = error: expected unqualified-id > tree vec_step =3D build_vector_from_val = (cr_index_vector_type, step); > ^ > = /wrkdirs/usr/ports/lang/gcc7/work/gcc-7.2.0/gcc/tree-vect-loop.c:6333:36: = error: expected expression > create_iv (series_vect, vec_step, NULL_TREE, loop, &incr_gsi, > ^ > 50 warnings and 12 errors generated. > gmake[3]: *** [Makefile:1099: tree-vect-loop.o] Error 1 > gmake[3]: *** Waiting for unfinished jobs.... > 42 warnings generated. > 51 warnings generated. > 50 warnings generated. > rm gfortran.pod gcc.pod > gmake[3]: Leaving directory = '/wrkdirs/usr/ports/lang/gcc7/work/.build/gcc' > gmake[2]: *** [Makefile:4225: all-gcc] Error 2 > gmake[2]: Leaving directory '/wrkdirs/usr/ports/lang/gcc7/work/.build' > gmake[1]: *** [Makefile:893: all] Error 2 > gmake[1]: Leaving directory '/wrkdirs/usr/ports/lang/gcc7/work/.build' > =3D=3D=3D> Compilation failed unexpectedly. > Try to set MAKE_JOBS_UNSAFE=3Dyes and rebuild before reporting the = failure to > the maintainer. > *** Error code 1 >=20 > Stop. > make: stopped in /usr/ports/lang/gcc7 > =3D>> Cleaning up wrkdir > =3D=3D=3D> Cleaning for gcc7-7.2.0_1 > build of lang/gcc7 | gcc7-7.2.0_1 ended at Fri Sep 29 00:22:00 PDT = 2017 > build time: 00:29:27 > !!! build failure encountered !!! Turns out that there is: # grep -r "\" ~/poudriere_failure/lang_gcc7/ | more . . . = /root/poudriere_failure/lang_gcc7/work/gcc-7.2.0/gcc/config/rs6000/altivec= .h:/* Given the vec_step of a type, return the corresponding bool type. = */ = /root/poudriere_failure/lang_gcc7/work/gcc-7.2.0/gcc/config/rs6000/altivec= .h:typename __altivec_bool_ret ::__ret \ = /root/poudriere_failure/lang_gcc7/work/gcc-7.2.0/gcc/config/rs6000/altivec= .h: to #define vec_step to __builtin_vec_step. */ = /root/poudriere_failure/lang_gcc7/work/gcc-7.2.0/gcc/config/rs6000/altivec= .h:#define vec_step(x) __builtin_vec_step (* (__typeof__ (x) *) 0) . . . ( config/s390/vecintrin.h has something similar.) > FYI: >=20 > # grep -r "\" /usr/src/* | more > /usr/src/contrib/llvm/tools/clang/lib/AST/ASTDumper.cpp: OS << " = vec_step"; > /usr/src/contrib/llvm/tools/clang/lib/AST/StmtPrinter.cpp: OS << = "vec_step"; > /usr/src/contrib/llvm/tools/clang/lib/AST/ExprConstant.cpp:/// = VisitUnaryExprOrTypeTraitExpr - Evaluate a sizeof, alignof or vec_step = with > /usr/src/contrib/llvm/tools/clang/lib/AST/ExprConstant.cpp: // = The vec_step built-in functions that take a 3-component > /usr/src/contrib/llvm/tools/clang/lib/AST/ItaniumMangle.cpp: = "cannot yet mangle vec_step expression"); > /usr/src/contrib/llvm/tools/clang/lib/Headers/opencl-c.h: * by = vec_step(gentypem). The shuffle mask operand > /usr/src/contrib/llvm/tools/clang/lib/Parse/ParseExpr.cpp: case = tok::kw_vec_step: // unary-expression: OpenCL 'vec_step' expression > /usr/src/contrib/llvm/tools/clang/lib/Parse/ParseExpr.cpp:/// vec_step = and we are at the start of an expression or a parenthesized > /usr/src/contrib/llvm/tools/clang/lib/Parse/ParseExpr.cpp:/// [OpenCL = 1.1 6.11.12] vec_step built-in function: > /usr/src/contrib/llvm/tools/clang/lib/Parse/ParseExpr.cpp:/// = vec_step ( expressions ) > /usr/src/contrib/llvm/tools/clang/lib/Parse/ParseExpr.cpp:/// = vec_step ( type-name ) > /usr/src/contrib/llvm/tools/clang/lib/Parse/ParseExpr.cpp: = "Not a typeof/sizeof/alignof/vec_step expression!"); > /usr/src/contrib/llvm/tools/clang/lib/Parse/ParseExpr.cpp: = "Not a sizeof/alignof/vec_step expression!"); > /usr/src/contrib/llvm/tools/clang/lib/Sema/SemaExpr.cpp: // [OpenCL = 1.1 6.11.12] "The vec_step built-in function takes a built-in > /usr/src/contrib/llvm/tools/clang/lib/Sema/TreeTransform.h: /// = \brief Build a new sizeof, alignof or vec_step expression with a > /usr/src/contrib/llvm/tools/clang/include/clang/AST/Expr.h:/// = vec_step (OpenCL 1.1 6.11.12). > = /usr/src/contrib/llvm/tools/clang/include/clang/ASTMatchers/ASTMatchers.h:= /// \brief Matches sizeof (C99), alignof (C++11) and vec_step (OpenCL) > = /usr/src/contrib/llvm/tools/clang/include/clang/Basic/DiagnosticSemaKinds.= td: "invalid application of '%select{sizeof|alignof|vec_step}0' to a " > = /usr/src/contrib/llvm/tools/clang/include/clang/Basic/DiagnosticSemaKinds.= td: "invalid application of '%select{sizeof|alignof|vec_step}0' to a = void " > = /usr/src/contrib/llvm/tools/clang/include/clang/Basic/DiagnosticSemaKinds.= td: "invalid application of = '%select{sizeof|alignof|vec_step|__builtin_omp_required_simd_align}0' to = a void type">; > = /usr/src/contrib/llvm/tools/clang/include/clang/Basic/DiagnosticSemaKinds.= td: "invalid application of = '%select{sizeof|alignof|vec_step|__builtin_omp_required_simd_align}0' to = an " > = /usr/src/contrib/llvm/tools/clang/include/clang/Basic/DiagnosticSemaKinds.= td: "invalid application of = '%select{sizeof|alignof|vec_step|__builtin_omp_required_simd_align}0' to = a " > = /usr/src/contrib/llvm/tools/clang/include/clang/Basic/DiagnosticSemaKinds.= td: "'vec_step' requires built-in scalar or vector type, %0 invalid">; > = /usr/src/contrib/llvm/tools/clang/include/clang/Basic/TokenKinds.def:KEYWO= RD(vec_step , KEYOPENCL|KEYALTIVEC|KEYZVECTOR) > /usr/src/contrib/gcc/config/rs6000/altivec.h:/* Given the vec_step of = a type, return the corresponding bool type. */ > /usr/src/contrib/gcc/config/rs6000/altivec.h:typename = __altivec_bool_ret ::__ret \ > /usr/src/contrib/gcc/config/rs6000/altivec.h: to #define vec_step to = __builtin_vec_step. */ > /usr/src/contrib/gcc/config/rs6000/altivec.h:#define vec_step(x) = __builtin_vec_step (* (__typeof__ (x) *) 0) > /usr/src/contrib/gcc/ChangeLog-2002: * config/rs6000/altivec.h = (vec_step): Remove extraneous > /usr/src/contrib/gcc/ChangeLog-2002: (vec_step): Implement for C++. >=20 >=20 > Context: >=20 > # uname -apKU > FreeBSD FBSDG5L 12.0-CURRENT FreeBSD 12.0-CURRENT r324071M powerpc = powerpc64 1200047 1200047 >=20 > Built via amd64 -> powerpc64 cross build, using clang > for buildworld: >=20 > [Note: The kernel was built with gcc 4.2.1 .] >=20 > # poudriere jail -l > JAILNAME VERSION ARCH METHOD TIMESTAMP = PATH > FBSDpowerpc64 12.0-CURRENT powerpc.powerpc64 null 2017-09-28 = 20:55:01 /usr/obj/DESTDIRs/clang-powerpc64-installworld_altbinutils-poud >=20 > (It is using /usr/src .) >=20 > # poudriere ports -l > PORTSTREE METHOD TIMESTAMP PATH > default null 2017-09-28 17:04:57 /usr/ports >=20 >=20 > # more = ~/src.configs/src.conf.powerpc64-clang_altbinutils-bootstrap.amd64-host=20= > TO_TYPE=3Dpowerpc64 > TOOLS_TO_TYPE=3D${TO_TYPE} > VERSION_CONTEXT=3D12.0 > # > KERNCONF=3DGENERIC64vtsc-NODBG > TARGET=3Dpowerpc > .if ${.MAKE.LEVEL} =3D=3D 0 > TARGET_ARCH=3D${TO_TYPE} > .export TARGET_ARCH > .endif > # > WITH_CROSS_COMPILER=3D > WITHOUT_SYSTEM_COMPILER=3D > # > WITH_LIBCPLUSPLUS=3D > WITHOUT_BINUTILS_BOOTSTRAP=3D > WITH_ELFTOOLCHAIN_BOOTSTRAP=3D > WITH_CLANG_BOOTSTRAP=3D > WITH_CLANG=3D > WITH_CLANG_IS_CC=3D > WITH_CLANG_FULL=3D > WITH_CLANG_EXTRAS=3D > WITHOUT_LLD_BOOTSTRAP=3D > WITH_LLD=3D > WITHOUT_LLD_IS_LD=3D > WITH_LLDB=3D > # > WITH_BOOT=3D > WITH_LIB32=3D > # > WITHOUT_GCC_BOOTSTRAP=3D > WITHOUT_GCC=3D > WITHOUT_GCC_IS_CC=3D > WITHOUT_GNUCXX=3D > # > NO_WERROR=3D > MALLOC_PRODUCTION=3D > # > # Avoid converts between pointers to integer types with different sign = [-Werror,-Wpointer-sign] > # and such from blocking the build. > WERROR=3D > # > WITH_REPRODUCIBLE_BUILD=3D > WITH_DEBUG_FILES=3D > # > # > # For TO (so-called "cross") stages . . . > # So-called-cross via ${TO_TYPE}-xtoolchain-gcc/${TO_TYPE}-gcc. . . > # TOOLS_TO_TYPE based on ${TO_TYPE}-xtoolchain-gcc related binutils. . = . > # > CROSS_BINUTILS_PREFIX=3D/usr/local/${TOOLS_TO_TYPE}-freebsd/bin/ > .if ${.MAKE.LEVEL} =3D=3D 0 > # > # Note: The WITH_CROSS_COMPILER picks up the CROSS_BINUTILS_PREFIX > # binding automatically. > # > XAS=3D/usr/local/${TOOLS_TO_TYPE}-freebsd/bin/as > XAR=3D/usr/local/${TOOLS_TO_TYPE}-freebsd/bin/ar > XNM=3D/usr/local/${TOOLS_TO_TYPE}-freebsd/bin/nm > XOBJCOPY=3D/usr/local/${TOOLS_TO_TYPE}-freebsd/bin/objcopy > XOBJDUMP=3D/usr/local/${TOOLS_TO_TYPE}-freebsd/bin/objdump > XRANLIB=3D/usr/local/${TOOLS_TO_TYPE}-freebsd/bin/ranlib > XSIZE=3D/usr/local/${TOOLS_TO_TYPE}-freebsd/bin/size > #NO-SUCH: XSTRINGS=3D/usr/local/${TOOLS_TO_TYPE}-freebsd/bin/strings > XSTRINGS=3D/usr/local/bin/${TOOLS_TO_TYPE}-freebsd-strings > .export XAS > .export XAR > .export XNM > .export XOBJCOPY > .export XOBJDUMP > .export XRANLIB > .export XSIZE > .export XSTRINGS > XLD=3D/usr/local/${TOOLS_TO_TYPE}-freebsd/bin/ld > .export XLD > .endif >=20 > # svnlite status /usr/src/ | sort > ? /usr/src/sys/amd64/conf/GENERIC-DBG > ? /usr/src/sys/amd64/conf/GENERIC-NODBG > ? /usr/src/sys/arm/conf/GENERIC-DBG > ? /usr/src/sys/arm/conf/GENERIC-NODBG > ? /usr/src/sys/arm64/conf/GENERIC-DBG > ? /usr/src/sys/arm64/conf/GENERIC-NODBG > ? /usr/src/sys/powerpc/conf/GENERIC64vtsc-DBG > ? /usr/src/sys/powerpc/conf/GENERIC64vtsc-NODBG > ? /usr/src/sys/powerpc/conf/GENERICvtsc-DBG > ? /usr/src/sys/powerpc/conf/GENERICvtsc-NODBG > M /usr/src/contrib/llvm/lib/Target/PowerPC/PPCFrameLowering.cpp > M /usr/src/contrib/llvm/tools/lld/ELF/Arch/PPC64.cpp > M /usr/src/crypto/openssl/crypto/armcap.c > M /usr/src/lib/Makefile > M /usr/src/lib/libkvm/kvm_powerpc.c > M /usr/src/lib/libkvm/kvm_private.c > M /usr/src/sys/arm64/arm64/identcpu.c > M /usr/src/sys/arm64/arm64/mp_machdep.c > M /usr/src/sys/boot/ofw/Makefile.inc > M /usr/src/sys/boot/powerpc/Makefile.inc > M /usr/src/sys/boot/powerpc/boot1.chrp/Makefile > M /usr/src/sys/boot/powerpc/kboot/Makefile > M /usr/src/sys/boot/uboot/Makefile.inc > M /usr/src/sys/conf/kmod.mk > M /usr/src/sys/conf/ldscript.powerpc > M /usr/src/sys/ddb/db_main.c > M /usr/src/sys/ddb/db_script.c > M /usr/src/sys/kern/subr_pcpu.c > M /usr/src/sys/powerpc/aim/mmu_oea64.c > M /usr/src/sys/powerpc/ofw/ofw_machdep.c > M /usr/src/sys/powerpc/powerpc/interrupt.c > M /usr/src/sys/powerpc/powerpc/mp_machdep.c > M /usr/src/sys/powerpc/powerpc/trap.c >=20 >=20 >=20 > # svnlite info /usr/ports/ | grep "Re[plv]" > Relative URL: ^/head > Repository Root: svn://svn0.us-west.freebsd.org/ports > Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5 > Revision: 450478 > Last Changed Rev: 450478 >=20 > # svnlite status /usr/ports > M /usr/ports/Mk/bsd.port.mk > M /usr/ports/Mk/bsd.qt.mk > M /usr/ports/audio/liba52/Makefile > M /usr/ports/base/gcc/Makefile > M /usr/ports/base/gcc/distinfo > M /usr/ports/base/gcc/pkg-plist > M /usr/ports/devel/libunwind/Makefile > ? = /usr/ports/devel/qt5/files/extrapatch-config.tests_unix_arch.test > M /usr/ports/lang/gcc7/Makefile > M /usr/ports/sysutils/cdrdao/Makefile > ? = /usr/ports/www/qt5-webkit/files/patch-Source_JavaScriptCore_assembler_ARMA= ssembler.h > ? = /usr/ports/www/qt5-webkit/files/patch-Source_JavaScriptCore_assembler_ARMv= 7Assembler.h > ? = /usr/ports/www/qt5-webkit/files/patch-Source_JavaScriptCore_offlineasm_arm= .rb > ? = /usr/ports/www/qt5-webkit/files/patch-Source_WTF_wtf_Platform.h > ? = /usr/ports/www/qt5-webkit/files/patch-Source_WebCore_platform_graphics_cpu= _arm_filters_FELightingNEON.cpp > ? = /usr/ports/www/qt5-webkit/files/patch-Source_bmalloc_bmalloc_BPlatform.h >=20 >=20 > # more /usr/local/etc/poudriere.d/make.conf > WANT_QT_VERBOSE_CONFIGURE=3D1 > # > DEFAULT_VERSIONS+=3Dperl5=3D5.24 gcc=3D7 > # > # =46rom a local /usr/ports/Mk/bsd.port.mk extension: > ALLOW_OPTIMIZATIONS_FOR_WITH_DEBUG=3D > # > .if ${.CURDIR:M*/devel/llvm*} > #WITH_DEBUG=3D > .elif ${.CURDIR:M*/www/qt5-webkit*} > #WITH_DEBUG=3D > .else > WITH_DEBUG=3D > .endif > MALLOC_PRODUCTION=3D > # > # The system clang for TARGET_ARCH=3Dpowerpc64 > # and the system binutils (such as ld) do not > # (yet?) mix well. So for ports use the > # devel/binutils ones. (A problem before > # they are already in place!) > #USE_BINUTILS=3D > CFLAGS+=3D-B${LOCALBASE}/bin/ > CXXFLAGS+=3D-B${LOCALBASE}/bin/ > CPPFLAGS+=3D-B${LOCALBASE}/bin/ >=20 >=20 > # svnlite diff /usr/ports/Mk/bsd.port.mk > Index: /usr/ports/Mk/bsd.port.mk > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- /usr/ports/Mk/bsd.port.mk (revision 450478) > +++ /usr/ports/Mk/bsd.port.mk (working copy) > @@ -1130,12 +1130,12 @@ >=20 > # Get the operating system type > .if !defined(OPSYS) > -OPSYS!=3D ${UNAME} -s > +OPSYS!=3D echo FreeBSD > .endif > _EXPORTED_VARS+=3D OPSYS >=20 > .if !defined(_OSRELEASE) > -_OSRELEASE!=3D ${UNAME} -r > +_OSRELEASE!=3D echo 12.0-CURRENT > .endif > _EXPORTED_VARS+=3D _OSRELEASE >=20 > @@ -1651,7 +1651,11 @@ > STRIP_CMD=3D ${TRUE} > .endif > DEBUG_FLAGS?=3D -g > +.if defined(ALLOW_OPTIMIZATIONS_FOR_WITH_DEBUG) > +CFLAGS:=3D ${CFLAGS} ${DEBUG_FLAGS} > +.else > CFLAGS:=3D ${CFLAGS:N-O*:N-fno-strict*} ${DEBUG_FLAGS} > +.endif > .if defined(INSTALL_TARGET) > INSTALL_TARGET:=3D ${INSTALL_TARGET:S/^install-strip$/install/g} > .endif >=20 >=20 > (Note: I've had problems with some ${UNAME} use returning empty = strings, > which is why I've used echo as a replacement in places. The real point > for the above is the ALLOW_OPTIMIZATIONS_FOR_WITH_DEBUG use.) =3D=3D=3D Mark Millard markmi at dsl-only.net From owner-freebsd-toolchain@freebsd.org Fri Sep 29 12:51:53 2017 Return-Path: Delivered-To: freebsd-toolchain@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 644DBE2C897 for ; Fri, 29 Sep 2017 12:51:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 50BA7656A8 for ; Fri, 29 Sep 2017 12:51:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v8TCprD5001025 for ; Fri, 29 Sep 2017 12:51:53 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 218808] www/firefox: usr/bin/ld: error: unknown argument: --warn-unresolved-symbols (WITH_LLD_IS_LD) Date: Fri, 29 Sep 2017 12:51:53 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: commit-hook@freebsd.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gecko@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback+ X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Sep 2017 12:51:53 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D218808 --- Comment #10 from commit-hook@freebsd.org --- A commit references this bug: Author: jbeich Date: Fri Sep 29 12:51:15 UTC 2017 New revision: 450890 URL: https://svnweb.freebsd.org/changeset/ports/450890 Log: gecko: unbreak on 12.0 (lld by default) /usr/bin/ld: error: ../../js/src/jsarray.o: string table non-null termina= ted PR: 218808 Changes: head/Mk/bsd.gecko.mk --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-toolchain@freebsd.org Fri Sep 29 19:14:32 2017 Return-Path: Delivered-To: freebsd-toolchain@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 35AF0E3322C for ; Fri, 29 Sep 2017 19:14:32 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-211-151.reflexion.net [208.70.211.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E754472034 for ; Fri, 29 Sep 2017 19:14:31 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 15517 invoked from network); 29 Sep 2017 19:14:29 -0000 Received: from unknown (HELO rtc-sm-01.app.dca.reflexion.local) (10.81.150.1) by 0 (rfx-qmail) with SMTP; 29 Sep 2017 19:14:29 -0000 Received: by rtc-sm-01.app.dca.reflexion.local (Reflexion email security v8.40.3) with SMTP; Fri, 29 Sep 2017 15:14:29 -0400 (EDT) Received: (qmail 7249 invoked from network); 29 Sep 2017 19:14:29 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 29 Sep 2017 19:14:29 -0000 Received: from [192.168.1.109] (c-67-170-167-181.hsd1.or.comcast.net [67.170.167.181]) by iron2.pdx.net (Postfix) with ESMTPSA id 4BD6AEC94F5; Fri, 29 Sep 2017 12:14:28 -0700 (PDT) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: head -r324071 system clang 5 based powerpc64 building ports: lang/gcc7 messed up by a matching name vec_step? [vec_step macro name in gcc7's altivec.h] Date: Fri, 29 Sep 2017 12:14:27 -0700 References: <47941770-2A08-4524-8BCC-3FE1D2F3B7F2@dsl-only.net> <54D59906-80CE-4936-B5FD-BCCD87A09F76@dsl-only.net> To: FreeBSD PowerPC ML , FreeBSD Toolchain , FreeBSD Ports , Gerald Pfeifer In-Reply-To: <54D59906-80CE-4936-B5FD-BCCD87A09F76@dsl-only.net> Message-Id: <750985A4-754C-402A-A5D2-5B48738598CD@dsl-only.net> X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Sep 2017 19:14:32 -0000 Summary of later additions: devel/powerpc64-gcc has the same problem as gcc7 in this clang-based powerpc64. My note about using gcc 4.2.1 for the kernel build was wrong. (My 32-bit powerpc builds are that way, not the powerpc64 ones.) On 2017-Sep-29, at 1:51 AM, Mark Millard wrote: > [Looks like gcc7 might be causing its own problem > via a vec_step macro name in its altivec.h .] >=20 > On 2017-Sep-29, at 1:14 AM, Mark Millard = wrote: >=20 >> I attempted a poudriere based build of some >> ports and the gcc7 build involved failed >> with the following sorts of notices: devel/powerpc64-gcc has the same problem as gcc7 in this clang-based powerpc64 >> = /wrkdirs/usr/ports/lang/gcc7/work/gcc-7.2.0/gcc/tree-vect-loop.c:3835:27: = error: expected unqualified-id >> tree new_vec, vec_init, vec_step, t; >> ^ >> = /wrkdirs/usr/ports/lang/gcc7/work/gcc-7.2.0/gcc/tree-vect-loop.c:3835:26: = error: expected ';' at end of declaration >> tree new_vec, vec_init, vec_step, t; >> ^ >> ; >> = /wrkdirs/usr/ports/lang/gcc7/work/gcc-7.2.0/gcc/tree-vect-loop.c:3983:3: = error: use of undeclared identifier 't' >> t =3D unshare_expr (new_name); >> ^ >> = /wrkdirs/usr/ports/lang/gcc7/work/gcc-7.2.0/gcc/tree-vect-loop.c:3988:49: = error: use of undeclared identifier 't' >> new_vec =3D build_vector_from_val (stepvectype, t); >> ^ >> = /wrkdirs/usr/ports/lang/gcc7/work/gcc-7.2.0/gcc/tree-vect-loop.c:3989:12: = error: expected expression >> vec_step =3D vect_init_vector (iv_phi, new_vec, stepvectype, NULL); >> ^ >> = /wrkdirs/usr/ports/lang/gcc7/work/gcc-7.2.0/gcc/tree-vect-loop.c:4011:75: = error: expected expression >> new_stmt =3D gimple_build_assign (vec_dest, PLUS_EXPR, induc_def, = vec_step); >> = ^ >> = /wrkdirs/usr/ports/lang/gcc7/work/gcc-7.2.0/gcc/tree-vect-loop.c:4048:7: = error: use of undeclared identifier 't' >> t =3D unshare_expr (new_name); >> ^ >> = /wrkdirs/usr/ports/lang/gcc7/work/gcc-7.2.0/gcc/tree-vect-loop.c:4051:53: = error: use of undeclared identifier 't' >> new_vec =3D build_vector_from_val (stepvectype, t); >> ^ >> = /wrkdirs/usr/ports/lang/gcc7/work/gcc-7.2.0/gcc/tree-vect-loop.c:4052:16: = error: expected expression >> vec_step =3D vect_init_vector (iv_phi, new_vec, stepvectype, = NULL); >> ^ >> = /wrkdirs/usr/ports/lang/gcc7/work/gcc-7.2.0/gcc/tree-vect-loop.c:4060:25: = error: expected expression >> vec_def, vec_step); >> ^ >> = /wrkdirs/usr/ports/lang/gcc7/work/gcc-7.2.0/gcc/tree-vect-loop.c:6327:9: = error: expected unqualified-id >> tree vec_step =3D build_vector_from_val = (cr_index_vector_type, step); >> ^ >> = /wrkdirs/usr/ports/lang/gcc7/work/gcc-7.2.0/gcc/tree-vect-loop.c:6333:36: = error: expected expression >> create_iv (series_vect, vec_step, NULL_TREE, loop, &incr_gsi, >> ^ >> 50 warnings and 12 errors generated. >> gmake[3]: *** [Makefile:1099: tree-vect-loop.o] Error 1 >> gmake[3]: *** Waiting for unfinished jobs.... >> 42 warnings generated. >> 51 warnings generated. >> 50 warnings generated. >> rm gfortran.pod gcc.pod >> gmake[3]: Leaving directory = '/wrkdirs/usr/ports/lang/gcc7/work/.build/gcc' >> gmake[2]: *** [Makefile:4225: all-gcc] Error 2 >> gmake[2]: Leaving directory = '/wrkdirs/usr/ports/lang/gcc7/work/.build' >> gmake[1]: *** [Makefile:893: all] Error 2 >> gmake[1]: Leaving directory = '/wrkdirs/usr/ports/lang/gcc7/work/.build' >> =3D=3D=3D> Compilation failed unexpectedly. >> Try to set MAKE_JOBS_UNSAFE=3Dyes and rebuild before reporting the = failure to >> the maintainer. >> *** Error code 1 >>=20 >> Stop. >> make: stopped in /usr/ports/lang/gcc7 >> =3D>> Cleaning up wrkdir >> =3D=3D=3D> Cleaning for gcc7-7.2.0_1 >> build of lang/gcc7 | gcc7-7.2.0_1 ended at Fri Sep 29 00:22:00 PDT = 2017 >> build time: 00:29:27 >> !!! build failure encountered !!! >=20 > Turns out that there is: >=20 > # grep -r "\" ~/poudriere_failure/lang_gcc7/ | more > . . . > = /root/poudriere_failure/lang_gcc7/work/gcc-7.2.0/gcc/config/rs6000/altivec= .h:/* Given the vec_step of a type, return the corresponding bool type. = */ > = /root/poudriere_failure/lang_gcc7/work/gcc-7.2.0/gcc/config/rs6000/altivec= .h:typename __altivec_bool_ret ::__ret \ > = /root/poudriere_failure/lang_gcc7/work/gcc-7.2.0/gcc/config/rs6000/altivec= .h: to #define vec_step to __builtin_vec_step. */ > = /root/poudriere_failure/lang_gcc7/work/gcc-7.2.0/gcc/config/rs6000/altivec= .h:#define vec_step(x) __builtin_vec_step (* (__typeof__ (x) *) 0) > . . . >=20 > ( config/s390/vecintrin.h has something similar.) >=20 >=20 >=20 >> FYI: >>=20 >> # grep -r "\" /usr/src/* | more >> /usr/src/contrib/llvm/tools/clang/lib/AST/ASTDumper.cpp: OS << " = vec_step"; >> /usr/src/contrib/llvm/tools/clang/lib/AST/StmtPrinter.cpp: OS << = "vec_step"; >> /usr/src/contrib/llvm/tools/clang/lib/AST/ExprConstant.cpp:/// = VisitUnaryExprOrTypeTraitExpr - Evaluate a sizeof, alignof or vec_step = with >> /usr/src/contrib/llvm/tools/clang/lib/AST/ExprConstant.cpp: // = The vec_step built-in functions that take a 3-component >> /usr/src/contrib/llvm/tools/clang/lib/AST/ItaniumMangle.cpp: = "cannot yet mangle vec_step expression"); >> /usr/src/contrib/llvm/tools/clang/lib/Headers/opencl-c.h: * by = vec_step(gentypem). The shuffle mask operand >> /usr/src/contrib/llvm/tools/clang/lib/Parse/ParseExpr.cpp: case = tok::kw_vec_step: // unary-expression: OpenCL 'vec_step' expression >> /usr/src/contrib/llvm/tools/clang/lib/Parse/ParseExpr.cpp:/// = vec_step and we are at the start of an expression or a parenthesized >> /usr/src/contrib/llvm/tools/clang/lib/Parse/ParseExpr.cpp:/// [OpenCL = 1.1 6.11.12] vec_step built-in function: >> /usr/src/contrib/llvm/tools/clang/lib/Parse/ParseExpr.cpp:/// = vec_step ( expressions ) >> /usr/src/contrib/llvm/tools/clang/lib/Parse/ParseExpr.cpp:/// = vec_step ( type-name ) >> /usr/src/contrib/llvm/tools/clang/lib/Parse/ParseExpr.cpp: = "Not a typeof/sizeof/alignof/vec_step expression!"); >> /usr/src/contrib/llvm/tools/clang/lib/Parse/ParseExpr.cpp: = "Not a sizeof/alignof/vec_step expression!"); >> /usr/src/contrib/llvm/tools/clang/lib/Sema/SemaExpr.cpp: // [OpenCL = 1.1 6.11.12] "The vec_step built-in function takes a built-in >> /usr/src/contrib/llvm/tools/clang/lib/Sema/TreeTransform.h: /// = \brief Build a new sizeof, alignof or vec_step expression with a >> /usr/src/contrib/llvm/tools/clang/include/clang/AST/Expr.h:/// = vec_step (OpenCL 1.1 6.11.12). >> = /usr/src/contrib/llvm/tools/clang/include/clang/ASTMatchers/ASTMatchers.h:= /// \brief Matches sizeof (C99), alignof (C++11) and vec_step (OpenCL) >> = /usr/src/contrib/llvm/tools/clang/include/clang/Basic/DiagnosticSemaKinds.= td: "invalid application of '%select{sizeof|alignof|vec_step}0' to a " >> = /usr/src/contrib/llvm/tools/clang/include/clang/Basic/DiagnosticSemaKinds.= td: "invalid application of '%select{sizeof|alignof|vec_step}0' to a = void " >> = /usr/src/contrib/llvm/tools/clang/include/clang/Basic/DiagnosticSemaKinds.= td: "invalid application of = '%select{sizeof|alignof|vec_step|__builtin_omp_required_simd_align}0' to = a void type">; >> = /usr/src/contrib/llvm/tools/clang/include/clang/Basic/DiagnosticSemaKinds.= td: "invalid application of = '%select{sizeof|alignof|vec_step|__builtin_omp_required_simd_align}0' to = an " >> = /usr/src/contrib/llvm/tools/clang/include/clang/Basic/DiagnosticSemaKinds.= td: "invalid application of = '%select{sizeof|alignof|vec_step|__builtin_omp_required_simd_align}0' to = a " >> = /usr/src/contrib/llvm/tools/clang/include/clang/Basic/DiagnosticSemaKinds.= td: "'vec_step' requires built-in scalar or vector type, %0 invalid">; >> = /usr/src/contrib/llvm/tools/clang/include/clang/Basic/TokenKinds.def:KEYWO= RD(vec_step , KEYOPENCL|KEYALTIVEC|KEYZVECTOR) >> /usr/src/contrib/gcc/config/rs6000/altivec.h:/* Given the vec_step of = a type, return the corresponding bool type. */ >> /usr/src/contrib/gcc/config/rs6000/altivec.h:typename = __altivec_bool_ret ::__ret \ >> /usr/src/contrib/gcc/config/rs6000/altivec.h: to #define vec_step = to __builtin_vec_step. */ >> /usr/src/contrib/gcc/config/rs6000/altivec.h:#define vec_step(x) = __builtin_vec_step (* (__typeof__ (x) *) 0) >> /usr/src/contrib/gcc/ChangeLog-2002: * config/rs6000/altivec.h = (vec_step): Remove extraneous >> /usr/src/contrib/gcc/ChangeLog-2002: (vec_step): Implement for = C++. >>=20 >>=20 >> Context: >>=20 >> # uname -apKU >> FreeBSD FBSDG5L 12.0-CURRENT FreeBSD 12.0-CURRENT r324071M powerpc = powerpc64 1200047 1200047 >>=20 >> Built via amd64 -> powerpc64 cross build, using clang >> for buildworld: >>=20 >> [Note: The kernel was built with gcc 4.2.1 .] Wrong: I was thinking of the powerpc (32- bit) build when I wrote that. powerpc64 is a pure clang based build. >>=20 >> # poudriere jail -l >> JAILNAME VERSION ARCH METHOD TIMESTAMP = PATH >> FBSDpowerpc64 12.0-CURRENT powerpc.powerpc64 null 2017-09-28 = 20:55:01 /usr/obj/DESTDIRs/clang-powerpc64-installworld_altbinutils-poud >>=20 >> (It is using /usr/src .) >>=20 >> # poudriere ports -l >> PORTSTREE METHOD TIMESTAMP PATH >> default null 2017-09-28 17:04:57 /usr/ports >>=20 >>=20 >> # more = ~/src.configs/src.conf.powerpc64-clang_altbinutils-bootstrap.amd64-host=20= >> TO_TYPE=3Dpowerpc64 >> TOOLS_TO_TYPE=3D${TO_TYPE} >> VERSION_CONTEXT=3D12.0 >> # >> KERNCONF=3DGENERIC64vtsc-NODBG >> TARGET=3Dpowerpc >> .if ${.MAKE.LEVEL} =3D=3D 0 >> TARGET_ARCH=3D${TO_TYPE} >> .export TARGET_ARCH >> .endif >> # >> WITH_CROSS_COMPILER=3D >> WITHOUT_SYSTEM_COMPILER=3D >> # >> WITH_LIBCPLUSPLUS=3D >> WITHOUT_BINUTILS_BOOTSTRAP=3D >> WITH_ELFTOOLCHAIN_BOOTSTRAP=3D >> WITH_CLANG_BOOTSTRAP=3D >> WITH_CLANG=3D >> WITH_CLANG_IS_CC=3D >> WITH_CLANG_FULL=3D >> WITH_CLANG_EXTRAS=3D >> WITHOUT_LLD_BOOTSTRAP=3D >> WITH_LLD=3D >> WITHOUT_LLD_IS_LD=3D >> WITH_LLDB=3D >> # >> WITH_BOOT=3D >> WITH_LIB32=3D >> # >> WITHOUT_GCC_BOOTSTRAP=3D >> WITHOUT_GCC=3D >> WITHOUT_GCC_IS_CC=3D >> WITHOUT_GNUCXX=3D >> # >> NO_WERROR=3D >> MALLOC_PRODUCTION=3D >> # >> # Avoid converts between pointers to integer types with different = sign [-Werror,-Wpointer-sign] >> # and such from blocking the build. >> WERROR=3D >> # >> WITH_REPRODUCIBLE_BUILD=3D >> WITH_DEBUG_FILES=3D >> # >> # >> # For TO (so-called "cross") stages . . . >> # So-called-cross via ${TO_TYPE}-xtoolchain-gcc/${TO_TYPE}-gcc. . . >> # TOOLS_TO_TYPE based on ${TO_TYPE}-xtoolchain-gcc related binutils. = . . >> # >> CROSS_BINUTILS_PREFIX=3D/usr/local/${TOOLS_TO_TYPE}-freebsd/bin/ >> .if ${.MAKE.LEVEL} =3D=3D 0 >> # >> # Note: The WITH_CROSS_COMPILER picks up the CROSS_BINUTILS_PREFIX >> # binding automatically. >> # >> XAS=3D/usr/local/${TOOLS_TO_TYPE}-freebsd/bin/as >> XAR=3D/usr/local/${TOOLS_TO_TYPE}-freebsd/bin/ar >> XNM=3D/usr/local/${TOOLS_TO_TYPE}-freebsd/bin/nm >> XOBJCOPY=3D/usr/local/${TOOLS_TO_TYPE}-freebsd/bin/objcopy >> XOBJDUMP=3D/usr/local/${TOOLS_TO_TYPE}-freebsd/bin/objdump >> XRANLIB=3D/usr/local/${TOOLS_TO_TYPE}-freebsd/bin/ranlib >> XSIZE=3D/usr/local/${TOOLS_TO_TYPE}-freebsd/bin/size >> #NO-SUCH: XSTRINGS=3D/usr/local/${TOOLS_TO_TYPE}-freebsd/bin/strings >> XSTRINGS=3D/usr/local/bin/${TOOLS_TO_TYPE}-freebsd-strings >> .export XAS >> .export XAR >> .export XNM >> .export XOBJCOPY >> .export XOBJDUMP >> .export XRANLIB >> .export XSIZE >> .export XSTRINGS >> XLD=3D/usr/local/${TOOLS_TO_TYPE}-freebsd/bin/ld >> .export XLD >> .endif >>=20 >> # svnlite status /usr/src/ | sort >> ? /usr/src/sys/amd64/conf/GENERIC-DBG >> ? /usr/src/sys/amd64/conf/GENERIC-NODBG >> ? /usr/src/sys/arm/conf/GENERIC-DBG >> ? /usr/src/sys/arm/conf/GENERIC-NODBG >> ? /usr/src/sys/arm64/conf/GENERIC-DBG >> ? /usr/src/sys/arm64/conf/GENERIC-NODBG >> ? /usr/src/sys/powerpc/conf/GENERIC64vtsc-DBG >> ? /usr/src/sys/powerpc/conf/GENERIC64vtsc-NODBG >> ? /usr/src/sys/powerpc/conf/GENERICvtsc-DBG >> ? /usr/src/sys/powerpc/conf/GENERICvtsc-NODBG >> M /usr/src/contrib/llvm/lib/Target/PowerPC/PPCFrameLowering.cpp >> M /usr/src/contrib/llvm/tools/lld/ELF/Arch/PPC64.cpp >> M /usr/src/crypto/openssl/crypto/armcap.c >> M /usr/src/lib/Makefile >> M /usr/src/lib/libkvm/kvm_powerpc.c >> M /usr/src/lib/libkvm/kvm_private.c >> M /usr/src/sys/arm64/arm64/identcpu.c >> M /usr/src/sys/arm64/arm64/mp_machdep.c >> M /usr/src/sys/boot/ofw/Makefile.inc >> M /usr/src/sys/boot/powerpc/Makefile.inc >> M /usr/src/sys/boot/powerpc/boot1.chrp/Makefile >> M /usr/src/sys/boot/powerpc/kboot/Makefile >> M /usr/src/sys/boot/uboot/Makefile.inc >> M /usr/src/sys/conf/kmod.mk >> M /usr/src/sys/conf/ldscript.powerpc >> M /usr/src/sys/ddb/db_main.c >> M /usr/src/sys/ddb/db_script.c >> M /usr/src/sys/kern/subr_pcpu.c >> M /usr/src/sys/powerpc/aim/mmu_oea64.c >> M /usr/src/sys/powerpc/ofw/ofw_machdep.c >> M /usr/src/sys/powerpc/powerpc/interrupt.c >> M /usr/src/sys/powerpc/powerpc/mp_machdep.c >> M /usr/src/sys/powerpc/powerpc/trap.c >>=20 >>=20 >>=20 >> # svnlite info /usr/ports/ | grep "Re[plv]" >> Relative URL: ^/head >> Repository Root: svn://svn0.us-west.freebsd.org/ports >> Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5 >> Revision: 450478 >> Last Changed Rev: 450478 >>=20 >> # svnlite status /usr/ports >> M /usr/ports/Mk/bsd.port.mk >> M /usr/ports/Mk/bsd.qt.mk >> M /usr/ports/audio/liba52/Makefile >> M /usr/ports/base/gcc/Makefile >> M /usr/ports/base/gcc/distinfo >> M /usr/ports/base/gcc/pkg-plist >> M /usr/ports/devel/libunwind/Makefile >> ? = /usr/ports/devel/qt5/files/extrapatch-config.tests_unix_arch.test >> M /usr/ports/lang/gcc7/Makefile >> M /usr/ports/sysutils/cdrdao/Makefile >> ? = /usr/ports/www/qt5-webkit/files/patch-Source_JavaScriptCore_assembler_ARMA= ssembler.h >> ? = /usr/ports/www/qt5-webkit/files/patch-Source_JavaScriptCore_assembler_ARMv= 7Assembler.h >> ? = /usr/ports/www/qt5-webkit/files/patch-Source_JavaScriptCore_offlineasm_arm= .rb >> ? = /usr/ports/www/qt5-webkit/files/patch-Source_WTF_wtf_Platform.h >> ? = /usr/ports/www/qt5-webkit/files/patch-Source_WebCore_platform_graphics_cpu= _arm_filters_FELightingNEON.cpp >> ? = /usr/ports/www/qt5-webkit/files/patch-Source_bmalloc_bmalloc_BPlatform.h >>=20 >>=20 >> # more /usr/local/etc/poudriere.d/make.conf >> WANT_QT_VERBOSE_CONFIGURE=3D1 >> # >> DEFAULT_VERSIONS+=3Dperl5=3D5.24 gcc=3D7 >> # >> # =46rom a local /usr/ports/Mk/bsd.port.mk extension: >> ALLOW_OPTIMIZATIONS_FOR_WITH_DEBUG=3D >> # >> .if ${.CURDIR:M*/devel/llvm*} >> #WITH_DEBUG=3D >> .elif ${.CURDIR:M*/www/qt5-webkit*} >> #WITH_DEBUG=3D >> .else >> WITH_DEBUG=3D >> .endif >> MALLOC_PRODUCTION=3D >> # >> # The system clang for TARGET_ARCH=3Dpowerpc64 >> # and the system binutils (such as ld) do not >> # (yet?) mix well. So for ports use the >> # devel/binutils ones. (A problem before >> # they are already in place!) >> #USE_BINUTILS=3D >> CFLAGS+=3D-B${LOCALBASE}/bin/ >> CXXFLAGS+=3D-B${LOCALBASE}/bin/ >> CPPFLAGS+=3D-B${LOCALBASE}/bin/ >>=20 >>=20 >> # svnlite diff /usr/ports/Mk/bsd.port.mk >> Index: /usr/ports/Mk/bsd.port.mk >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> --- /usr/ports/Mk/bsd.port.mk (revision 450478) >> +++ /usr/ports/Mk/bsd.port.mk (working copy) >> @@ -1130,12 +1130,12 @@ >>=20 >> # Get the operating system type >> .if !defined(OPSYS) >> -OPSYS!=3D ${UNAME} -s >> +OPSYS!=3D echo FreeBSD >> .endif >> _EXPORTED_VARS+=3D OPSYS >>=20 >> .if !defined(_OSRELEASE) >> -_OSRELEASE!=3D ${UNAME} -r >> +_OSRELEASE!=3D echo 12.0-CURRENT >> .endif >> _EXPORTED_VARS+=3D _OSRELEASE >>=20 >> @@ -1651,7 +1651,11 @@ >> STRIP_CMD=3D ${TRUE} >> .endif >> DEBUG_FLAGS?=3D -g >> +.if defined(ALLOW_OPTIMIZATIONS_FOR_WITH_DEBUG) >> +CFLAGS:=3D ${CFLAGS} ${DEBUG_FLAGS} >> +.else >> CFLAGS:=3D ${CFLAGS:N-O*:N-fno-strict*} ${DEBUG_FLAGS} >> +.endif >> .if defined(INSTALL_TARGET) >> INSTALL_TARGET:=3D ${INSTALL_TARGET:S/^install-strip$/install/g} >> .endif >>=20 >>=20 >> (Note: I've had problems with some ${UNAME} use returning empty = strings, >> which is why I've used echo as a replacement in places. The real = point >> for the above is the ALLOW_OPTIMIZATIONS_FOR_WITH_DEBUG use.) =3D=3D=3D Mark Millard markmi at dsl-only.net From owner-freebsd-toolchain@freebsd.org Fri Sep 29 19:24:50 2017 Return-Path: Delivered-To: freebsd-toolchain@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 D6AA3E337DA for ; Fri, 29 Sep 2017 19:24:50 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-211-151.reflexion.net [208.70.211.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 95C58727EE for ; Fri, 29 Sep 2017 19:24:50 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 7770 invoked from network); 29 Sep 2017 19:24:48 -0000 Received: from unknown (HELO mail-cs-01.app.dca.reflexion.local) (10.81.19.1) by 0 (rfx-qmail) with SMTP; 29 Sep 2017 19:24:48 -0000 Received: by mail-cs-01.app.dca.reflexion.local (Reflexion email security v8.40.3) with SMTP; Fri, 29 Sep 2017 15:24:48 -0400 (EDT) Received: (qmail 20717 invoked from network); 29 Sep 2017 19:24:48 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 29 Sep 2017 19:24:48 -0000 Received: from [192.168.1.109] (c-67-170-167-181.hsd1.or.comcast.net [67.170.167.181]) by iron2.pdx.net (Postfix) with ESMTPSA id CE6ABEC9511; Fri, 29 Sep 2017 12:24:47 -0700 (PDT) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: head -r324071 system clang 5 based powerpc64 building ports: x11-toolkit/qt5-gui gets "clang++: error: unknown argument: '-mminimal-toc'" Message-Id: Date: Fri, 29 Sep 2017 12:24:47 -0700 To: FreeBSD Toolchain , FreeBSD PowerPC ML , FreeBSD Ports X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Sep 2017 19:24:51 -0000 I attempted a poudriere based build of some ports and the qt5-gui build involved failed with the following sorts of notices. But the context is using the same sources as I've been testing various proposed armv6 related build fixes with (fixes taken from bugzilla activity, not my own). I doubt that they matter to the powerpc64 issue. DEFAULT_LIBDIRS=3D"/lib /usr/lib /usr/local/lib" Running configuration tests... Determining architecture... () clang++ -c -pipe -O2 -pipe -B/usr/local/bin/ -g -fno-strict-aliasing = -mminimal-toc -B/usr/local/bin/ -g -Wall -W -fPIC -I. = -I/usr/local/include -I/usr/local/lib/qt5/mkspecs/freebsd-clang -o = arch.o arch.cpp clang++: error: unknown argument: '-mminimal-toc' *** Error code 1 Stop. make[1]: stopped in = /wrkdirs/usr/ports/x11-toolkits/qt5-gui/work/qtbase-opensource-src-5.7.1/c= onfig.tests/arch Unable to determine architecture! Could not determine the target architecture! Turn on verbose messaging (-v) to see the final report. System architecture: 'unknown' Host architecture: 'unknown' clang++ -c -fvisibility=3Dhidden fvisibility.c clang++: warning: treating 'c' input as 'c++' when in C++ mode, this = behavior is deprecated [-Wdeprecated] Symbol visibility control enabled. clang++ -o libtest.so -shared -Wl,-Bsymbolic-functions -fPIC = bsymbolic_functions.c clang++: warning: treating 'c' input as 'c++' when in C++ mode, this = behavior is deprecated [-Wdeprecated] bsymbolic_functions.c:2:2: error: "Symbolic function binding on this = architecture may be broken, disabling it (see QTBUG-36129)." #error "Symbolic function binding on this architecture may be broken, = disabling it (see QTBUG-36129)." ^ 1 error generated. Symbolic function binding disabled. checking for objcopy...=20 clang++ -c -pipe -O2 -B/usr/local/bin/ -g -fno-strict-aliasing = -mminimal-toc -O2 -Wall -W -fPIC -I. -I/usr/local/include = -I/usr/local/lib/qt5/mkspecs/freebsd-clang -o objcopy.o objcopy.cpp clang++: error: unknown argument: '-mminimal-toc' *** Error code 1 Stop. make[1]: stopped in = /wrkdirs/usr/ports/x11-toolkits/qt5-gui/work/qtbase-opensource-src-5.7.1/c= onfig.tests/unix/objcopy objcopy disabled. ERROR: -separate-debug-info was requested but this binutils does not = support it. Re-run configure with -v for more information =3D=3D=3D> Script "configure" failed unexpectedly. Please report the problem to kde@FreeBSD.org [maintainer] and attach the = "/wrkdirs/usr/ports/x11-toolkits/qt5-gui/work/qtbase-opensource-src-5.7.1/= config.log" including the output of the failure of your make command. Also, it might = be a good idea to provide an overview of all packages installed on your = system (e.g. a /usr/local/sbin/pkg-static info -g -Ea). *** Error code 1 Stop. make: stopped in /usr/ports/x11-toolkits/qt5-gui =3D>> Cleaning up wrkdir =3D=3D=3D> Cleaning for qt5-gui-5.7.1_1 build of x11-toolkits/qt5-gui | qt5-gui-5.7.1_1 ended at Fri Sep 29 = 11:24:04 PDT 2017 build time: 00:13:38 !!! build failure encountered !!! Context: # uname -apKU FreeBSD FBSDG5L 12.0-CURRENT FreeBSD 12.0-CURRENT r324071M powerpc = powerpc64 1200047 1200047 Built via amd64 -> powerpc64 cross build, using clang for buildworld: [Note: The kernel was built with gcc 4.2.1 .] # poudriere jail -l JAILNAME VERSION ARCH METHOD TIMESTAMP = PATH FBSDpowerpc64 12.0-CURRENT powerpc.powerpc64 null 2017-09-28 20:55:01 = /usr/obj/DESTDIRs/clang-powerpc64-installworld_altbinutils-poud (It is using /usr/src .) # poudriere ports -l PORTSTREE METHOD TIMESTAMP PATH default null 2017-09-28 17:04:57 /usr/ports # more = ~/src.configs/src.conf.powerpc64-clang_altbinutils-bootstrap.amd64-host=20= TO_TYPE=3Dpowerpc64 TOOLS_TO_TYPE=3D${TO_TYPE} VERSION_CONTEXT=3D12.0 # KERNCONF=3DGENERIC64vtsc-NODBG TARGET=3Dpowerpc .if ${.MAKE.LEVEL} =3D=3D 0 TARGET_ARCH=3D${TO_TYPE} .export TARGET_ARCH .endif # WITH_CROSS_COMPILER=3D WITHOUT_SYSTEM_COMPILER=3D # WITH_LIBCPLUSPLUS=3D WITHOUT_BINUTILS_BOOTSTRAP=3D WITH_ELFTOOLCHAIN_BOOTSTRAP=3D WITH_CLANG_BOOTSTRAP=3D WITH_CLANG=3D WITH_CLANG_IS_CC=3D WITH_CLANG_FULL=3D WITH_CLANG_EXTRAS=3D WITHOUT_LLD_BOOTSTRAP=3D WITH_LLD=3D WITHOUT_LLD_IS_LD=3D WITH_LLDB=3D # WITH_BOOT=3D WITH_LIB32=3D # WITHOUT_GCC_BOOTSTRAP=3D WITHOUT_GCC=3D WITHOUT_GCC_IS_CC=3D WITHOUT_GNUCXX=3D # NO_WERROR=3D MALLOC_PRODUCTION=3D # # Avoid converts between pointers to integer types with different sign = [-Werror,-Wpointer-sign] # and such from blocking the build. WERROR=3D # WITH_REPRODUCIBLE_BUILD=3D WITH_DEBUG_FILES=3D # # # For TO (so-called "cross") stages . . . # So-called-cross via ${TO_TYPE}-xtoolchain-gcc/${TO_TYPE}-gcc. . . # TOOLS_TO_TYPE based on ${TO_TYPE}-xtoolchain-gcc related binutils. . . # CROSS_BINUTILS_PREFIX=3D/usr/local/${TOOLS_TO_TYPE}-freebsd/bin/ .if ${.MAKE.LEVEL} =3D=3D 0 # # Note: The WITH_CROSS_COMPILER picks up the CROSS_BINUTILS_PREFIX # binding automatically. # XAS=3D/usr/local/${TOOLS_TO_TYPE}-freebsd/bin/as XAR=3D/usr/local/${TOOLS_TO_TYPE}-freebsd/bin/ar XNM=3D/usr/local/${TOOLS_TO_TYPE}-freebsd/bin/nm XOBJCOPY=3D/usr/local/${TOOLS_TO_TYPE}-freebsd/bin/objcopy XOBJDUMP=3D/usr/local/${TOOLS_TO_TYPE}-freebsd/bin/objdump XRANLIB=3D/usr/local/${TOOLS_TO_TYPE}-freebsd/bin/ranlib XSIZE=3D/usr/local/${TOOLS_TO_TYPE}-freebsd/bin/size #NO-SUCH: XSTRINGS=3D/usr/local/${TOOLS_TO_TYPE}-freebsd/bin/strings XSTRINGS=3D/usr/local/bin/${TOOLS_TO_TYPE}-freebsd-strings .export XAS .export XAR .export XNM .export XOBJCOPY .export XOBJDUMP .export XRANLIB .export XSIZE .export XSTRINGS XLD=3D/usr/local/${TOOLS_TO_TYPE}-freebsd/bin/ld .export XLD .endif # svnlite status /usr/src/ | sort ? /usr/src/sys/amd64/conf/GENERIC-DBG ? /usr/src/sys/amd64/conf/GENERIC-NODBG ? /usr/src/sys/arm/conf/GENERIC-DBG ? /usr/src/sys/arm/conf/GENERIC-NODBG ? /usr/src/sys/arm64/conf/GENERIC-DBG ? /usr/src/sys/arm64/conf/GENERIC-NODBG ? /usr/src/sys/powerpc/conf/GENERIC64vtsc-DBG ? /usr/src/sys/powerpc/conf/GENERIC64vtsc-NODBG ? /usr/src/sys/powerpc/conf/GENERICvtsc-DBG ? /usr/src/sys/powerpc/conf/GENERICvtsc-NODBG M /usr/src/contrib/llvm/lib/Target/PowerPC/PPCFrameLowering.cpp M /usr/src/contrib/llvm/tools/lld/ELF/Arch/PPC64.cpp M /usr/src/crypto/openssl/crypto/armcap.c M /usr/src/lib/Makefile M /usr/src/lib/libkvm/kvm_powerpc.c M /usr/src/lib/libkvm/kvm_private.c M /usr/src/sys/arm64/arm64/identcpu.c M /usr/src/sys/arm64/arm64/mp_machdep.c M /usr/src/sys/boot/ofw/Makefile.inc M /usr/src/sys/boot/powerpc/Makefile.inc M /usr/src/sys/boot/powerpc/boot1.chrp/Makefile M /usr/src/sys/boot/powerpc/kboot/Makefile M /usr/src/sys/boot/uboot/Makefile.inc M /usr/src/sys/conf/kmod.mk M /usr/src/sys/conf/ldscript.powerpc M /usr/src/sys/ddb/db_main.c M /usr/src/sys/ddb/db_script.c M /usr/src/sys/kern/subr_pcpu.c M /usr/src/sys/powerpc/aim/mmu_oea64.c M /usr/src/sys/powerpc/ofw/ofw_machdep.c M /usr/src/sys/powerpc/powerpc/interrupt.c M /usr/src/sys/powerpc/powerpc/mp_machdep.c M /usr/src/sys/powerpc/powerpc/trap.c # svnlite info /usr/ports/ | grep "Re[plv]" Relative URL: ^/head Repository Root: svn://svn0.us-west.freebsd.org/ports Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5 Revision: 450478 Last Changed Rev: 450478 # svnlite status /usr/ports M /usr/ports/Mk/bsd.port.mk M /usr/ports/Mk/bsd.qt.mk M /usr/ports/audio/liba52/Makefile M /usr/ports/base/gcc/Makefile M /usr/ports/base/gcc/distinfo M /usr/ports/base/gcc/pkg-plist M /usr/ports/devel/libunwind/Makefile ? = /usr/ports/devel/qt5/files/extrapatch-config.tests_unix_arch.test M /usr/ports/lang/gcc7/Makefile M /usr/ports/sysutils/cdrdao/Makefile ? = /usr/ports/www/qt5-webkit/files/patch-Source_JavaScriptCore_assembler_ARMA= ssembler.h ? = /usr/ports/www/qt5-webkit/files/patch-Source_JavaScriptCore_assembler_ARMv= 7Assembler.h ? = /usr/ports/www/qt5-webkit/files/patch-Source_JavaScriptCore_offlineasm_arm= .rb ? /usr/ports/www/qt5-webkit/files/patch-Source_WTF_wtf_Platform.h ? = /usr/ports/www/qt5-webkit/files/patch-Source_WebCore_platform_graphics_cpu= _arm_filters_FELightingNEON.cpp ? = /usr/ports/www/qt5-webkit/files/patch-Source_bmalloc_bmalloc_BPlatform.h # more /usr/local/etc/poudriere.d/make.conf WANT_QT_VERBOSE_CONFIGURE=3D1 # DEFAULT_VERSIONS+=3Dperl5=3D5.24 gcc=3D7 # # =46rom a local /usr/ports/Mk/bsd.port.mk extension: ALLOW_OPTIMIZATIONS_FOR_WITH_DEBUG=3D # .if ${.CURDIR:M*/devel/llvm*} #WITH_DEBUG=3D .elif ${.CURDIR:M*/www/qt5-webkit*} #WITH_DEBUG=3D .else WITH_DEBUG=3D .endif MALLOC_PRODUCTION=3D # # The system clang for TARGET_ARCH=3Dpowerpc64 # and the system binutils (such as ld) do not # (yet?) mix well. So for ports use the # devel/binutils ones. (A problem before # they are already in place!) .if ${.CURDIR:M*/devel/binutils} .elif ${.CURDIR:M*/math/gmp} .elif ${.CURDIR:M*/math/mpfr} .elif ${.CURDIR:M*/devel/bison} .elif ${.CURDIR:M*/devel/gmake} .elif ${.CURDIR:M*/devel/gettext-tools} .elif ${.CURDIR:M*/print/indexinfo} .elif ${.CURDIR:M*/devel/gettext-runtime} .elif ${.CURDIR:M*/ports-mgmt/pkg} .elif ${.CURDIR:M*/devel/m4} .elif ${.CURDIR:M*/lang/perl5.*} .elif ${.CURDIR:M*/print/texinfo} .elif ${.CURDIR:M*/misc/help2man} .elif ${.CURDIR:M*/devel/p5-Locale-gettext} .else USE_BINUTILS=3D CFLAGS+=3D-B${LOCALBASE}/bin/ CXXFLAGS+=3D-B${LOCALBASE}/bin/ CPPFLAGS+=3D-B${LOCALBASE}/bin/ .endif (In the future I will eliminate the explicit ?FLAGS assignments from my environment but they were in use here.) # svnlite diff /usr/ports/Mk/bsd.port.mk Index: /usr/ports/Mk/bsd.port.mk =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- /usr/ports/Mk/bsd.port.mk (revision 450478) +++ /usr/ports/Mk/bsd.port.mk (working copy) @@ -1130,12 +1130,12 @@ =20 # Get the operating system type .if !defined(OPSYS) -OPSYS!=3D ${UNAME} -s +OPSYS!=3D echo FreeBSD .endif _EXPORTED_VARS+=3D OPSYS =20 .if !defined(_OSRELEASE) -_OSRELEASE!=3D ${UNAME} -r +_OSRELEASE!=3D echo 12.0-CURRENT .endif _EXPORTED_VARS+=3D _OSRELEASE =20 @@ -1651,7 +1651,11 @@ STRIP_CMD=3D ${TRUE} .endif DEBUG_FLAGS?=3D -g +.if defined(ALLOW_OPTIMIZATIONS_FOR_WITH_DEBUG) +CFLAGS:=3D ${CFLAGS} ${DEBUG_FLAGS} +.else CFLAGS:=3D ${CFLAGS:N-O*:N-fno-strict*} ${DEBUG_FLAGS} +.endif .if defined(INSTALL_TARGET) INSTALL_TARGET:=3D ${INSTALL_TARGET:S/^install-strip$/install/g} .endif (Note: I've had problems with some ${UNAME} use returning empty strings, which is why I've used echo as a replacement in places. The real point for the above is the ALLOW_OPTIMIZATIONS_FOR_WITH_DEBUG use.) =3D=3D=3D Mark Millard markmi at dsl-only.net