From owner-freebsd-toolchain@freebsd.org Sun Apr 8 00:01:35 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4C224F90A08 for ; Sun, 8 Apr 2018 00:01:35 +0000 (UTC) (envelope-from marklmi26-fbsd@yahoo.com) Received: from sonic305-4.consmr.mail.bf2.yahoo.com (sonic305-4.consmr.mail.bf2.yahoo.com [74.6.133.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E31F1764A2 for ; Sun, 8 Apr 2018 00:01:34 +0000 (UTC) (envelope-from marklmi26-fbsd@yahoo.com) X-YMail-OSG: jRuERlIVM1mQQKnqm5lRw8wJb_Yh2Wa.pijnMyn9LHDI.kTOJCgzHHGYZFRuDgQ ZcdebkcP7paGzdiBsC1B1.5Kl792RA9NAHOto3OteWNeXqOmyGMxIuZUgJqIHHD6wLdgq9aQtPBM smrHkyet43EqvSWDpadIPLsN295bR12rvbeofmvx7RN7wtGaRL.aU6BfRKnIvcQNx3VaXK8ZP4.J 7JCj4ECaq9eZAdbrknm3VflrYNWGV.Gq7B5zW0PjRlNh_lNa7XqL5LfB6Zje2.FLWpxTvg2WV2r8 5GSaAtZUPFjvEA50ZRvb0yQ.rOOI0VXX8ue91Zu8e.zhUbaORhFclGsfuUvd4Z5rY8LFjabrYjoi lSNO7jmspgD81SBgwziikcqXelbvkxeb3lvFqd6ki439iXT0UfUBOMUGkRgzbvdxyUYx6WWgS8x5 eE6GxO_aa3sfasVvxKtlrKPYdOwTTNuCCOYSnGsbxS52mNNFc.QG9mrtyfMeeTNgBwSk4bug0g9o cHxeGScX3iwS0rMqMOoYKx4S_e0YnQZ_eSB3f Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.bf2.yahoo.com with HTTP; Sun, 8 Apr 2018 00:01:33 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.25]) ([76.115.7.162]) by smtp422.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 0d21aa43699c708bbe193f9bd96b4e9c; Sun, 08 Apr 2018 00:01:33 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Subject: Re: amd64-binutils file name structure for utils vs. for powerpc64-binutils and aarch64-binutils From: Mark Millard In-Reply-To: <20180407193742.1c6cd33d@kan> Date: Sat, 7 Apr 2018 17:01:30 -0700 Cc: freebsd-toolchain@freebsd.org, John Baldwin Content-Transfer-Encoding: 7bit Message-Id: <4410009D-E857-4BB0-B865-9294D24187F5@yahoo.com> References: <20180407184317.3ab301e2@kan> <20180407193742.1c6cd33d@kan> To: Alexander Kabaev X-Mailer: Apple Mail (2.3445.6.18) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 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, 08 Apr 2018 00:01:35 -0000 On 2018-Apr-7, at 4:37 PM, Alexander Kabaev wrote: > On Sat, 7 Apr 2018 18:43:17 -0400 > Alexander Kabaev wrote: > > Come to think of it, I am not sure I understand the problem. > amd64-binutils installs "proper" x86_64-freebsd-prefixed binaries. Did > you expect amd64-freebsd-* ? My understanding was that cross-build tools are now supposed to have the -unknown and the os version (12.0 here) even when the cross-build is targeting the same environment as the host environment. In other words: that it is not supposed to be the same as plain binutils for the host but as-if it was from a different architecture. But I was checking my understanding. In part because it used to be that, for example, on amd64 the aarch64-binutils also omitted the -unknown and 12.0 but now has them. I just had to update my environment's references to such for that. (This was not a self-hosted cross-build context and it changed.) Also, there is a recent check-in, -r466699 , for ports that, in part, says: Log: Fix two more issues with r465416. - Force build of a cross-compiler by defining CROSS_DIRECTORY_STRUCTURE in CFLAGS even if the build host matches the build target. This fixes such a cross compiler to not include /usr/local/lib in its default library path (e.g. amd64-gcc when built on amd64). But that was for powerpc64-gcc, not powerpc64-binutils (for example). I do not know for sure if similar points should also apply to *-binutils ports. So, again, I was checking. (I might have just got involved between already-made and other pending updates for all I know.) -- Alexander Kabaev === Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-toolchain@freebsd.org Sun Apr 8 00:29:33 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0C2C3F925DB for ; Sun, 8 Apr 2018 00:29:33 +0000 (UTC) (envelope-from marklmi26-fbsd@yahoo.com) Received: from sonic303-4.consmr.mail.bf2.yahoo.com (sonic303-4.consmr.mail.bf2.yahoo.com [74.6.131.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A2BFA84C69 for ; Sun, 8 Apr 2018 00:29:32 +0000 (UTC) (envelope-from marklmi26-fbsd@yahoo.com) X-YMail-OSG: r4_o.P8VM1lDR34fIIzfEsC0L2GcKNVxdPwHKIv4Z5LiczaMQZgBBgiAp0VveI1 phjLga8yLz67G9GBMrVYyXD3GtEKF0ghWGqxqC.1ME9tq1tfJkLCKhoOZEpzomYmGKA4G3vmt9Rl 3FizuHwx5IOYsqfoPqbNWTKusBPxkvhE9kAp53dy08xRZEczSRbJY_PVtTYl.1KKo4Gj9ypYnDSA kqiKh80LJs0OuiWSD0prsMyXVVwixItFScP3jDP7fdYXpaup3DyRtRJcPFq9WOLOhl3kHacIxHCV wgda9rds8UNbDdv0.ZsLCeQ3gKQyhbqqTwfsq6BMptTwRMZaQsn9nhr7iEidHOZbFGjrZM36flqz fsdBKrJWGGrzetLU.EvpB7S8EaoFeTYFz9hrpTtqK28ZJ3PKBXfpF3JTFCTi2CqEzNzCG8RbLFCo QL5CVdQ7dvuyE7IjEA13nbP3whrYJIEuNvI30vNBQIQi27c0VSklE6VtwVkXCz71ToPBY5dDXiFC PLET3K9aVgmsHnLoQz0DUJ6XY Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.bf2.yahoo.com with HTTP; Sun, 8 Apr 2018 00:29:31 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.25]) ([76.115.7.162]) by smtp425.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID c683594b1b3b487714ecff4ddd3be1e7; Sun, 08 Apr 2018 00:29:27 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Subject: Re: Attempting a xtoolchain-gcc head amd64->aarch64 cross buildworld failed for liblto_plugin.so loading error From: Mark Millard In-Reply-To: <20180407183525.2e72ee42@kan> Date: Sat, 7 Apr 2018 17:29:24 -0700 Cc: freebsd-arm@freebsd.org, freebsd-toolchain@freebsd.org, FreeBSD Ports Content-Transfer-Encoding: quoted-printable Message-Id: <2EEE5E34-12BB-4F21-A5F2-17F232433BD8@yahoo.com> References: <20180407183525.2e72ee42@kan> To: Alexander Kabaev X-Mailer: Apple Mail (2.3445.6.18) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 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, 08 Apr 2018 00:29:33 -0000 On 2018-Apr-7, at 3:35 PM, Alexander Kabaev wrote: > On Sat, 7 Apr 2018 15:23:50 -0700 > Mark Millard via freebsd-arm wrote: >=20 >> My attempted, xtoolchain-gcc based, amd64->aarch64 >> cross-buildworld-buildkernel failed with: >>=20 >> --- libc.so.7.full --- >> /usr/local/bin/aarch64-unknown-freebsd12.0-ld: = /usr/local/libexec/gcc/aarch64-unknown-freebsd12.0/6.3.0/liblto_plugin.so:= >> error loading plugin: Service unavailable collect2: error: ld >> returned 1 exit status *** [libc.so.7.full] Error code 1 >>=20 >> (I've not attempted such a build in a long time, so I do not >> know how new this is. Historically I've done lots of such >> builds. cortex-a53 was specifically targeted here.) >> . . . >=20 > IIRC, I had to disable LTO plugin in binutils and this need to > disable it was there for a while.=20 Hmm . . . # pkg info aarch64-binutils aarch64-binutils-2.30_2,1 Name : aarch64-binutils Version : 2.30_2,1 Installed on : Tue Feb 6 17:37:31 2018 PST Origin : devel/aarch64-binutils Architecture : FreeBSD:12:amd64 Prefix : /usr/local Categories : devel Licenses : GPLv3, LGPL3 Maintainer : bapt at FreeBSD.org WWW : http://sources.redhat.com/binutils/ Comment : GNU binutils for AArch64 cross-development Options : RELRO : off STATIC : on . . . (no more options listed) . . . # poudriere options -jFBSDFSSDjail -s devel/aarch64-binutils [00:00:00] Appending to make.conf: /usr/local/etc/poudriere.d/make.conf =3D=3D=3D> The following configuration options are available for = aarch64-binutils-2.30_2,1: RELRO=3Doff: enable -z relro in ELF linker by default STATIC=3Don: Build static executables and/or libraries =3D=3D=3D> Use 'make config' to modify these settings . . . Controlling LTO's presence via my port build does not seem to be the way to disable LTO. This would suggest that I need to override part of what buildworld does in order to force avoiding lto. Such would be the first time that I've run into that. Looks like I've some research to do for how. Thanks for letting me know. =3D=3D=3D Mark Millard marklmi26-fbsd at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-toolchain@freebsd.org Sun Apr 8 00:34:43 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A4180F92BA2 for ; Sun, 8 Apr 2018 00:34:43 +0000 (UTC) (envelope-from marklmi26-fbsd@yahoo.com) Received: from sonic310-15.consmr.mail.bf2.yahoo.com (sonic310-15.consmr.mail.bf2.yahoo.com [74.6.135.125]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4D43487CD5 for ; Sun, 8 Apr 2018 00:34:43 +0000 (UTC) (envelope-from marklmi26-fbsd@yahoo.com) X-YMail-OSG: YeYVyVAVM1nhaoRhbXWf2mMy70aVk0hiQHPFu1Gci7HGGxANBAbpR6Xd.Hx4YCE PK7HNSvSmXc8gb.yzUxhWYpCvpKcxvJgRNBVOX3zeO5fbf2nkPDHCPFP5YOL5PjPg1on8jRnNVkh oiYUbP.2wXuF8jo29MSy3YBwo6Wmp8RFQLQLoEhd9agoiVof0mxzBmRjXeyepyalu17QZxbbgBwo RwTvdjFxOC2VOlqLw1mkFAwM5ibpd6YeXItqAFyoE61DIk9ueCmfWeyjKlE.FUO81XRk5.5tnx1D H8jpS6.mLfOnCWBJimzOFZ6Jv8ZJVI4E80OndUcdBWIorcBloxog15mcQAfDwpEXPqy.ylkCw_fu CK370FJxARsg3zg1iNV8kv81B_zxq06gIZTQpKh8e5WQHJ7a.hn8PH_TweNxvUpXh9KrhHa8m6Ih ywtmds2_Ef2LNgCjbkdsTe7uleTQKkmrMtY5JqVqRU6NUwCXzHPhXTQibdODEpPdvRuOSiRcSSx1 MSxmEKtBDb8PSjWgd14oZPp7motY- Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.bf2.yahoo.com with HTTP; Sun, 8 Apr 2018 00:34:42 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.25]) ([76.115.7.162]) by smtp422.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 3fcc4c8a2a156598cc85c6ef1725af75; Sun, 08 Apr 2018 00:04:20 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Subject: head amd64->aarch64 buildkernel: clang using aarch64-binutils gets /tmp/cloudabi_vdso_armv6_on_64bit-2f26ed.o: error adding symbols: File in wrong format Message-Id: Date: Sat, 7 Apr 2018 17:04:18 -0700 To: freebsd-toolchain@freebsd.org, freebsd-arm@FreeBSD.org, freebsd-ports@freebsd.org X-Mailer: Apple Mail (2.3445.6.18) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 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, 08 Apr 2018 00:34:43 -0000 (Context: buildworld completed before builkernel started.) My attempt to do buildworld buildkernel via clang but using aarch64-binutils got the following failure during buildkernel. (Note the use of: -B/usr/local/aarch64-unknown-freebsd12.0/bin/ for clang.) --- cloudabi32_vdso.o --- /tmp/cloudabi_vdso_armv6_on_64bit-2f26ed.o: error adding symbols: File = in wrong format cc: error: linker command failed with exit code 1 (use -v to see = invocation) *** [cloudabi32_vdso.o] Error code 1 make[4]: stopped in /usr/src/sys/modules/cloudabi32 .ERROR_TARGET=3D'cloudabi32_vdso.o' = .ERROR_META_FILE=3D'/usr/obj/cortexA53_clang_xbinutils/arm64.aarch64/usr/s= rc/arm64.aarch64/sys/GENERIC-NODBG/modules/usr/src/sys/modules/cloudabi32/= cloudabi32_vdso.o.meta' .MAKE.LEVEL=3D'4' MAKEFILE=3D'' .MAKE.MODE=3D'meta missing-filemon=3Dyes missing-meta=3Dyes silent=3Dyes = verbose' _ERROR_CMD=3D'cc -B/usr/local/aarch64-unknown-freebsd12.0/bin/ = -mcpu=3Dcortex-a53 -target aarch64-unknown-freebsd12.0 = --sysroot=3D/usr/obj/cortexA53_clang_xbinutils/arm64.aarch64/usr/src/arm64= .aarch64/tmp -B/usr/local/aarch64-unknown-freebsd12.0/bin/ -x = assembler-with-cpp -m32 -shared -nostdinc -nostdlib = -Wl,-T/usr/src/sys/compat/cloudabi/cloudabi_vdso.lds = /usr/src/sys/contrib/cloudabi/cloudabi_vdso_armv6_on_64bit.S -o = cloudabi32_vdso.o;' .CURDIR=3D'/usr/src/sys/modules/cloudabi32' .MAKE=3D'make' = .OBJDIR=3D'/usr/obj/cortexA53_clang_xbinutils/arm64.aarch64/usr/src/arm64.= aarch64/sys/GENERIC-NODBG/modules/usr/src/sys/modules/cloudabi32' .TARGETS=3D'all' DESTDIR=3D'' LD_LIBRARY_PATH=3D'' MACHINE=3D'arm64' MACHINE_ARCH=3D'aarch64' = MAKEOBJDIRPREFIX=3D'/usr/obj/cortexA53_clang_xbinutils/arm64.aarch64/usr/s= rc/arm64.aarch64/sys/GENERIC-NODBG/modules' MAKESYSPATH=3D'/usr/src/share/mk' MAKE_VERSION=3D'20180222' = PATH=3D'/usr/obj/cortexA53_clang_xbinutils/arm64.aarch64/usr/src/arm64.aar= ch64/tmp/legacy/usr/sbin:/usr/obj/cortexA53_clang_xbinutils/arm64.aarch64/= usr/src/arm64.aarch64/tmp/legacy/usr/bin:/usr/obj/cortexA53_clang_xbinutil= s/arm64.aarch64/usr/src/arm64.aarch64/tmp/legacy/bin:/usr/obj/cortexA53_cl= ang_xbinutils/arm64.aarch64/usr/src/arm64.aarch64/tmp/usr/sbin:/usr/obj/co= rtexA53_clang_xbinutils/arm64.aarch64/usr/src/arm64.aarch64/tmp/usr/bin:/s= bin:/bin:/usr/sbin:/usr/bin' SRCTOP=3D'/usr/src' = OBJTOP=3D'/usr/obj/cortexA53_clang_xbinutils/arm64.aarch64/usr/src/arm64.a= arch64/sys/GENERIC-NODBG/modules/usr/src' .MAKE.MAKEFILES=3D'/usr/src/share/mk/sys.mk = /usr/src/share/mk/local.sys.env.mk /usr/src/share/mk/src.sys.env.mk = /root/src.configs/src.conf.cortexA53-clang-xbinutils-bootstrap.amd64-host = /usr/src/share/mk/bsd.mkopt.mk /usr/src/share/mk/src.sys.obj.mk = /usr/src/share/mk/auto.obj.mk /usr/src/share/mk/bsd.suffixes.mk = /root/src.configs/make.conf /usr/src/share/mk/local.sys.mk = /usr/src/share/mk/src.sys.mk /dev/null = /usr/src/sys/modules/cloudabi32/Makefile /usr/src/share/mk/bsd.kmod.mk = /usr/src/sys/conf/kmod.mk /usr/src/share/mk/bsd.init.mk = /usr/src/share/mk/bsd.opts.mk /usr/src/share/mk/bsd.cpu.mk = /usr/src/share/mk/local.init.mk /usr/src/share/mk/src.init.mk = /usr/src/sys/modules/cloudabi32/../Makefile.inc = /usr/src/share/mk/bsd.own.mk /usr/src/share/mk/bsd.compiler.mk = /usr/src/share/mk/bsd.linker.mk /usr/src/sys/conf/kern.opts.mk = /usr/src/sys/conf/config.mk /usr/src/share/mk/bsd.links.mk = /usr/src/share/mk/bsd.dep.mk /usr/src/share/mk/bsd.clang-analyze.mk = /usr/src/share/mk/bsd.obj.mk /usr/src/share/mk/bsd.subdir.mk = /usr/src/sys/conf/kern.mk' .PATH=3D'. /usr/src/sys/modules/cloudabi32 = /usr/src/sys/compat/cloudabi32 /usr/src/sys/arm64/cloudabi32 = /usr/obj/cortexA53_clang_xbinutils/arm64.aarch64/usr/src/arm64.aarch64/sys= /GENERIC-NODBG' 1 error For reference: # uname -apKU FreeBSD FBSDFSSD 12.0-CURRENT FreeBSD 12.0-CURRENT r332181M amd64 = amd64 1200061 1200061 # pkg info "*binutils" aarch64-binutils-2.30_2,1 amd64-binutils-2.30_2,1 binutils-2.30_2,1 powerpc64-binutils-2.30_2,1 # 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: 466704 Last Changed Rev: 466704 buildworld buildkernel with clang using its default utilities completed. =3D=3D=3D Mark Millard marklmi26-fbsd at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-toolchain@freebsd.org Sun Apr 8 01:11:00 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 87DD0F94D8A for ; Sun, 8 Apr 2018 01:11:00 +0000 (UTC) (envelope-from marklmi26-fbsd@yahoo.com) Received: from sonic302-20.consmr.mail.gq1.yahoo.com (sonic302-20.consmr.mail.gq1.yahoo.com [98.137.68.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 102517B5C3 for ; Sun, 8 Apr 2018 01:10:59 +0000 (UTC) (envelope-from marklmi26-fbsd@yahoo.com) X-YMail-OSG: gph0To0VM1kw9kSONz_3BBKLlyElF3GV_x.3wB8oci5knbt5nFoT.bUjSS_wH7M r1L2qbClVZzrNt0igUtHeft_lObMoYHwWYnTDf5kQcEGzVun4fA.ziu4V1dSoZh8VkooW3uAu8Oe Us9ZRyPE0zIAErx.EbWGdNjmnXWDMkxe0q4awyVShuvr6a3SzDqFY7EN5N018RyOqPJWnFxHIxAb eoLOPvxARyYpFEc2lqFdhsHKaEUqS6dN4tWwpWye36uOUfn3qfJIWI4qURbtx7P6HrxlCA_1U_1R 88zbOFt_C7DnNoPBrEA2fVtxjIYbL36u0omMmQs_BmSXZMfSzUldaPgqGZH0KqhzPWdm5OzWXOod PqJB4s4SU7RPl.7SZAxRNyvTlqWb6Bje99RGgIIFgS8pSGqUwmaWFXk9_u7q0Tf5.kRD54StTF7t fo1UL9omRYuufc9vQv0XA4avUxN9VxncCmMCOLSa9Sh8lyrWbv0HaUhLCUxWVpw0D.RsaAFNEou7 z.9KeEO5NNmEzoA.XHCKdd1OgK6DGOsPjjQ-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.gq1.yahoo.com with HTTP; Sun, 8 Apr 2018 01:10:52 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.25]) ([76.115.7.162]) by smtp416.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 79fad1c6c00a9c2ac155ff9053219590; Sun, 08 Apr 2018 01:00:39 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Subject: Re: Attempting a xtoolchain-gcc head amd64->aarch64 cross buildworld failed for liblto_plugin.so loading error From: Mark Millard In-Reply-To: <2EEE5E34-12BB-4F21-A5F2-17F232433BD8@yahoo.com> Date: Sat, 7 Apr 2018 18:00:38 -0700 Cc: freebsd-arm@freebsd.org, freebsd-toolchain@freebsd.org, FreeBSD Ports Content-Transfer-Encoding: quoted-printable Message-Id: <60F5D584-4A93-4D49-94C1-209CC74ABF3A@yahoo.com> References: <20180407183525.2e72ee42@kan> <2EEE5E34-12BB-4F21-A5F2-17F232433BD8@yahoo.com> To: Alexander Kabaev X-Mailer: Apple Mail (2.3445.6.18) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 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, 08 Apr 2018 01:11:00 -0000 [The static build of binutils is what gets the lto involved.] On 2018-Apr-7, at 5:29 PM, Mark Millard = wrote: > On 2018-Apr-7, at 3:35 PM, Alexander Kabaev = wrote: >=20 >> On Sat, 7 Apr 2018 15:23:50 -0700 >> Mark Millard via freebsd-arm wrote: >>=20 >>> My attempted, xtoolchain-gcc based, amd64->aarch64 >>> cross-buildworld-buildkernel failed with: >>>=20 >>> --- libc.so.7.full --- >>> /usr/local/bin/aarch64-unknown-freebsd12.0-ld: = /usr/local/libexec/gcc/aarch64-unknown-freebsd12.0/6.3.0/liblto_plugin.so:= >>> error loading plugin: Service unavailable collect2: error: ld >>> returned 1 exit status *** [libc.so.7.full] Error code 1 >>>=20 >>> (I've not attempted such a build in a long time, so I do not >>> know how new this is. Historically I've done lots of such >>> builds. cortex-a53 was specifically targeted here.) >>> . . . >>=20 >> IIRC, I had to disable LTO plugin in binutils and this need to >> disable it was there for a while.=20 >=20 > Hmm . . . >=20 > # pkg info aarch64-binutils > aarch64-binutils-2.30_2,1 > Name : aarch64-binutils > Version : 2.30_2,1 > Installed on : Tue Feb 6 17:37:31 2018 PST > Origin : devel/aarch64-binutils > Architecture : FreeBSD:12:amd64 > Prefix : /usr/local > Categories : devel > Licenses : GPLv3, LGPL3 > Maintainer : bapt at FreeBSD.org > WWW : http://sources.redhat.com/binutils/ > Comment : GNU binutils for AArch64 cross-development > Options : > RELRO : off > STATIC : on > . . . (no more options listed) . . . >=20 > # poudriere options -jFBSDFSSDjail -s devel/aarch64-binutils > [00:00:00] Appending to make.conf: = /usr/local/etc/poudriere.d/make.conf > =3D=3D=3D> The following configuration options are available for = aarch64-binutils-2.30_2,1: > RELRO=3Doff: enable -z relro in ELF linker by default > STATIC=3Don: Build static executables and/or libraries > =3D=3D=3D> Use 'make config' to modify these settings > . . . >=20 >=20 > Controlling LTO's presence via my port build does > not seem to be the way to disable LTO. >=20 > This would suggest that I need to override part > of what buildworld does in order to force avoiding > lto. Such would be the first time that I've run > into that. >=20 > Looks like I've some research to do for how. >=20 > Thanks for letting me know. I had forgotten but I'd analyzed this once before: = https://lists.freebsd.org/pipermail/freebsd-ports/2017-August/109769.html and it traced back to: STATIC=3Don: Build static executables and/or libraries for aarch64-binutils. (Static was at the time required for a poudriere/qemu mix that used aarch64-binutils.) (I do-not/did-not see such problems for powerpc64 targeted cross builds using xtoolchain material, such as powerpc64-binutils and powerpc64-gcc. This is specific to aarch64 for some reason.) So I'll see about turning STATIC off to enable buildworld. =3D=3D=3D Mark Millard marklmi26-fbsd at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-toolchain@freebsd.org Sun Apr 8 02:14:55 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EE321F995A5 for ; Sun, 8 Apr 2018 02:14:54 +0000 (UTC) (envelope-from kabaev@gmail.com) Received: from mail-qk0-x243.google.com (mail-qk0-x243.google.com [IPv6:2607:f8b0:400d:c09::243]) (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 858297E9DC; Sun, 8 Apr 2018 02:14:54 +0000 (UTC) (envelope-from kabaev@gmail.com) Received: by mail-qk0-x243.google.com with SMTP id c188so5554474qkg.2; Sat, 07 Apr 2018 19:14:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version; bh=36Y/jpEc3xd/eApmA0wI57nxB7JpfrA5zfne6botV7M=; b=dAod1NQW11jqEm00YCm9wYF+YDN2pf3ZGKopwZDX/c8N2hZqCcHbYLsB5i+84hYbII J8AOt7vDYS6yPn1yeZXK0iuXnMtgv6xZsYd7NKlW2LFGU56C+9aMuPmU22zPT2az6dik G60QH3FLmJnMX6/yMzzJZKuF8YeVDFQ7W7Y1Mca+c4VtIYCYQa/iDNeB/tp9L5w2pBub OIZnJHDUZp2cTRMj9swufIpXopnrPL/CsQxlNsiZLBI724Hde41iNrItx5YvlXmfSRDT UlLZo6wMsoFBbmnvHPFfpX3GlRsliiJTjhxY+oKJhTJj+oPi0f3F0xE319MllhrCjq6c u4Rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version; bh=36Y/jpEc3xd/eApmA0wI57nxB7JpfrA5zfne6botV7M=; b=WdlkNswqetKoO3rGs9WAH7caG04mn7XO4Pr0wgJsGYc9qqYrcDCbPyDhIWBFBGw0Vt t/xc+1sTDberywedJez++TKHIg+Y+a79fM5gG7fhnJ6wQ6IvfynSbkZwmlLEsPn1ei0p J1hNXnnP2vUo+aizB6S57jdtrFpcHYbFmLiFee3CbFDNmoyz+cDg2l9k+YoZ981xRiww N/MnwhOWeo9IxM+V+8lZ1blc7hMShbzqsV8035RUAJgg4Y4Jp8B1XZOIzAK4DXvjW8aJ CYxZbTc8heHIqaWIHij9FXjRbjssDWDImkn0twZyT8ZFh9O6gaRFpa2K5BJFmqTY/i1g DdUQ== X-Gm-Message-State: ALQs6tCXa/Lu3pykoJViSHx+8G95fzqVUFSlJ2xXRQYGgdJjFuAUjVYY KTB4rQ6gGgSZLLrDFAHwF5dpYBw7 X-Google-Smtp-Source: AIpwx49J8X9tOrgSXcU152xtS/6NzabRtZsEEhoaNIyGldCn1rkMKYtHvNaYQfW5kCkYo8F/AaEOlQ== X-Received: by 10.55.3.140 with SMTP id 134mr43977868qkd.26.1523153694084; Sat, 07 Apr 2018 19:14:54 -0700 (PDT) Received: from kan ([2601:18f:802:4680:226:18ff:fe00:232e]) by smtp.gmail.com with ESMTPSA id m28sm3825956qta.73.2018.04.07.19.14.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 07 Apr 2018 19:14:53 -0700 (PDT) Date: Sat, 7 Apr 2018 22:14:47 -0400 From: Alexander Kabaev To: Mark Millard Cc: freebsd-toolchain@freebsd.org, John Baldwin Subject: Re: amd64-binutils file name structure for utils vs. for powerpc64-binutils and aarch64-binutils Message-ID: <20180407221447.63e016cc@kan> In-Reply-To: <4410009D-E857-4BB0-B865-9294D24187F5@yahoo.com> References: <20180407184317.3ab301e2@kan> <20180407193742.1c6cd33d@kan> <4410009D-E857-4BB0-B865-9294D24187F5@yahoo.com> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; amd64-portbld-freebsd12.0) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/2czACRa.oUqIcc1n9lAv4PM"; protocol="application/pgp-signature" X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 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, 08 Apr 2018 02:14:55 -0000 --Sig_/2czACRa.oUqIcc1n9lAv4PM Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Sat, 7 Apr 2018 17:01:30 -0700 Mark Millard wrote: > On 2018-Apr-7, at 4:37 PM, Alexander Kabaev > wrote: >=20 > > On Sat, 7 Apr 2018 18:43:17 -0400 > > Alexander Kabaev wrote: > >=20 > > Come to think of it, I am not sure I understand the problem. > > amd64-binutils installs "proper" x86_64-freebsd-prefixed binaries. > > Did you expect amd64-freebsd-* ? =20 >=20 > My understanding was that cross-build tools are now supposed > to have the -unknown and the os version (12.0 here) even > when the cross-build is targeting the same environment as the > host environment. In other words: that it is not supposed to > be the same as plain binutils for the host but as-if it was > from a different architecture. >=20 > But I was checking my understanding. In part because it used > to be that, for example, on amd64 the aarch64-binutils also > omitted the -unknown and 12.0 but now has them. I just had > to update my environment's references to such for that. (This > was not a self-hosted cross-build context and it changed.) >=20 > Also, there is a recent check-in, -r466699 , for ports that, > in part, says: >=20 > Log: > Fix two more issues with r465416. > =20 > - Force build of a cross-compiler by defining > CROSS_DIRECTORY_STRUCTURE in CFLAGS even if the build host matches > the build target. This fixes such a cross compiler to not > include /usr/local/lib in its default library path (e.g. amd64-gcc > when built on amd64). >=20 >=20 >=20 > But that was for powerpc64-gcc, not powerpc64-binutils (for example). > I do not know for sure if similar points should also apply to > *-binutils ports. So, again, I was checking. >=20 > (I might have just got involved between already-made and other pending > updates for all I know.) >=20 >=20 > --=20 > Alexander Kabaev >=20 > =3D=3D=3D > Mark Millard > marklmi at yahoo.com > ( dsl-only.net went > away in early 2018-Mar) Since I am not the maintainer of binutils ports, I missed wholesale rename. I suspect something like the patch below will make amd64-binutils follow the convention: P164: https://reviews.freebsd.org/P164 --=20 Alexander Kabaev --Sig_/2czACRa.oUqIcc1n9lAv4PM Content-Type: application/pgp-signature Content-Description: Цифровая подпись OpenPGP -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEExffZlZm2QeE8UVaRBxMimZJ5Ln4FAlrJexdfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEM1 RjdEOTk1OTlCNjQxRTEzQzUxNTY5MTA3MTMyMjk5OTI3OTJFN0UACgkQBxMimZJ5 Ln52kg//d4dbHc7byxxoWx59iKs6qrXxvV/qRdHvuOiUfvXicMY3pR9ZvdFXCIPX 0NlUWfNvDOD3v2wMFwQ6bxp5BH8GsM0FWMDSXZ9Ve+igESg0NjM98ZL5l5bEInLB K7THmu8WIm824bHUo/qxl5QfJy72Vqcp5z6YdTTk84rWYYztdxaRejqQAdCvHW4U vHf8wQEN25urek4uozfcms2Y17WfYlsIcvtxXWQrrzy1XSuozo6rG3zC+nzUeStn 3vs2NUjqcwGpf/Omrb7HRHDHvKjSO8OuTf1qA3obN8AUf1rLwotYhnLxbPn3Pp+d dDri+BrwvVQ9q9R1bdwBgqI60mBYv54EIvznUd/ILFRUtIl9s50wSNEJc/oxVFkU XrNGThT3xDS+gx+sxCIv9mKyooiPb2TGDYpLENqYP4TJ+OcKxp6zHkXGoKWQhlWe yiTx0SuJqCu3FJ5CuOqUDMy9X82mByeb4ER/EQKhti4DtBasBZ+uRYkLirfoPnxQ 4OmQOhySDYGv/BsfotP4ZNueeoFWUBgKSKHviNmkVGIzgJowzfeGuve/l/UFi0wg eKAwG+JXHJ1ncLdX7NgexqSCdxZCcCtXEc2tc90Zw8O4jeryfkHxp4VIlCtX/Rxc QaBDnI/3s+rdVv6rzjo1MsxU6lup/VXTcmrFoalh7xt9EIRILg8= =cCRp -----END PGP SIGNATURE----- --Sig_/2czACRa.oUqIcc1n9lAv4PM-- From owner-freebsd-toolchain@freebsd.org Sun Apr 8 03:09:22 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 621FEF9DA9B for ; Sun, 8 Apr 2018 03:09:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id DBAD87C83C for ; Sun, 8 Apr 2018 03:09:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 940BAF9DA95; Sun, 8 Apr 2018 03:09:21 +0000 (UTC) Delivered-To: toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7C48FF9DA94 for ; Sun, 8 Apr 2018 03:09:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 17B8D7C81B for ; Sun, 8 Apr 2018 03:09: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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 58BBC134EF for ; Sun, 8 Apr 2018 03:09:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w3839Kb4071929 for ; Sun, 8 Apr 2018 03:09:20 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w3839K6v071922 for toolchain@FreeBSD.org; Sun, 8 Apr 2018 03:09:20 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 227340] clang crashes with error in backend: Access past stack top Date: Sun, 08 Apr 2018 03:09:20 +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: 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.25 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, 08 Apr 2018 03:09:22 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227340 Mark Linimon changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|bugs@FreeBSD.org |toolchain@FreeBSD.org --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Sun Apr 8 03:09:34 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9F6E2F9DB31 for ; Sun, 8 Apr 2018 03:09:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 39E357CA0A for ; Sun, 8 Apr 2018 03:09:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id F23E4F9DB2B; Sun, 8 Apr 2018 03:09:33 +0000 (UTC) Delivered-To: toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D9203F9DB29 for ; Sun, 8 Apr 2018 03:09:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 69DCB7C9E6 for ; Sun, 8 Apr 2018 03:09:33 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 98CEF134F4 for ; Sun, 8 Apr 2018 03:09:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w3839WLA079020 for ; Sun, 8 Apr 2018 03:09:32 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w3839WIP079009 for toolchain@FreeBSD.org; Sun, 8 Apr 2018 03:09:32 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 227339] clang crashes with error in backend: SSE2 register return with SSE2 disabled Date: Sun, 08 Apr 2018 03:09:32 +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: 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.25 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, 08 Apr 2018 03:09:34 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227339 Mark Linimon changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|bugs@FreeBSD.org |toolchain@FreeBSD.org --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Sun Apr 8 03:18:45 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6D4F8F9E690 for ; Sun, 8 Apr 2018 03:18:45 +0000 (UTC) (envelope-from marklmi26-fbsd@yahoo.com) Received: from sonic303-21.consmr.mail.gq1.yahoo.com (sonic303-21.consmr.mail.gq1.yahoo.com [98.137.64.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E791B81968 for ; Sun, 8 Apr 2018 03:18:44 +0000 (UTC) (envelope-from marklmi26-fbsd@yahoo.com) X-YMail-OSG: lI47._0VM1l9aCm2eW9wAT1K6ygcYf3iHTUZ4ghZKEJdjVqUK9sxZh3S4RPyE8o TnjSr3Ju46Poj6rT8gcgER_XbYqUtrQOJIGiR8MmXD8V1NdVa9Rpa.x5Bc9JCaWd0GYqxYlzxCat JdPRldHl_wbbGdF23z.qeDuoGu.qH6M1bUn8.kGlhgg9EmTcrQwe58QJMxvsBKL.WMS8.ib1iRt6 508pD.EbfxFOQtazPYEeIIXW69xiIo0jZbqD1Wej6AmZJXUsRcaLw9pQDiWthTBAJQom5i97LcCb OZII5PVF27E0GqXqnUbcVz_XLa77v1TosI13.cjbj4TRiGUZp2Y0HaalmvHoThMubhwA7FAB_cYV ULyZbKuDHqO0teaSBs579LqJa6.qAmgxXyCZv9c_bxIV_c9_h9FhlziEU9Qfyh079zkXt9Yp0JUa Aj7r0T9ADyHZ0J8p.I6BnOXJkBMwthIGzKhfpR2D0qRR3IXo10gUFIUW5infCjqgm5XlAwOgv3j4 7XGaa32oEhCs4mh3WgLMFeXtCofE- Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.gq1.yahoo.com with HTTP; Sun, 8 Apr 2018 03:18:38 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.25]) ([76.115.7.162]) by smtp418.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 6b9b933433cf6fb85371f537a6d717b8; Sun, 08 Apr 2018 03:18:35 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Subject: Attempt to xtoolchain-gcc buildworld for head with -mcpu=cortex-a53: arm64cpuid.S:23: Error: selected processor does not support . . . Message-Id: <27FB6AC2-1E38-4974-A72F-AAE4B72070AB@yahoo.com> Date: Sat, 7 Apr 2018 20:18:34 -0700 To: freebsd-toolchain@freebsd.org, freebsd-arm@freebsd.org X-Mailer: Apple Mail (2.3445.6.18) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 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, 08 Apr 2018 03:18:45 -0000 It appears that the devel/aarch64-gcc toolchain refuses to assemble instructions that are not available to what was listed for -mcpu, even when a -march was also listed that allows such. For -mcpu=3Dcortex-a53 and a -march=3Darmv8-a+crypto : --- secure/lib/libcrypto__L --- /usr/src/crypto/openssl/crypto/arm64cpuid.S: Assembler messages: /usr/src/crypto/openssl/crypto/arm64cpuid.S:23: Error: selected = processor does not support `aese v0.16b,v0.16b' /usr/src/crypto/openssl/crypto/arm64cpuid.S:30: Error: selected = processor does not support `sha1h s0,s0' /usr/src/crypto/openssl/crypto/arm64cpuid.S:37: Error: selected = processor does not support `sha256su0 v0.4s,v0.4s' /usr/src/crypto/openssl/crypto/arm64cpuid.S:43: Error: selected = processor does not support `pmull v0.1q,v0.1d,v0.1d' See later for the command details and such for the error. This makes _armv8_aese_probe and the like unable to be assembled for -mcpu=3Dcortex-a53 . (There are 2 more source files with such potential issues.) Encoding the instructions as byte sequence values would be more likely to survive various tool chains and specifications but is likely otherwise messy. Another option might be to strip -mcpu=3D from CFLAGS, but only for processing the specific source involved. Adding "+crypto" to form -mcpu=3D+crypto might be an option (for gcc anyway). My hack to get past this was to add the +'s to form the +=3D's in: ACFLAGS.arm64cpuid.S+=3D -march=3Darmv8-a+crypto . . . ACFLAGS.aesv8-armx.S+=3D -march=3Darmv8-a+crypto . . . ACFLAGS.ghashv8-armx.S+=3D -march=3Darmv8-a+crypto for the Makefile and then to in my src.conf files also add: ACFLAGS.arm64cpuid.S+=3D -mcpu=3Dcortex-a53+crypto ACFLAGS.aesv8-armx.S+=3D -mcpu=3Dcortex-a53+crypto ACFLAGS.ghashv8-armx.S+=3D -mcpu=3Dcortex-a53+crypto (This avoided +crypto being involved elsewhere.) Supporting error details: --- secure/lib/libcrypto__L --- *** [arm64cpuid.o] Error code 1 make[4]: stopped in /usr/src/secure/lib/libcrypto .ERROR_TARGET=3D'arm64cpuid.o' = .ERROR_META_FILE=3D'/usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/sr= c/arm64.aarch64/secure/lib/libcrypto/arm64cpuid.o.meta' .MAKE.LEVEL=3D'4' MAKEFILE=3D'' .MAKE.MODE=3D'meta missing-filemon=3Dyes missing-meta=3Dyes silent=3Dyes = verbose' _ERROR_CMD=3D'/usr/local/bin/aarch64-unknown-freebsd12.0-gcc = -mcpu=3Dcortex-a53 -isystem = /usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.aarch64/tmp/= usr/include = -L/usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.aarch64/tm= p/usr/lib = -B/usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.aarch64/tm= p/usr/lib = --sysroot=3D/usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.= aarch64/tmp -B/usr/local/aarch64-unknown-freebsd12.0/bin/ -O2 -pipe = -I/usr/src/crypto/openssl -DTERMIOS -DANSI_SOURCE -DOPENSSL_THREADS = -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DSHA1_ASM -DSHA256_ASM = -DSHA512_ASM = -I/usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.aarch64/se= cure/lib/libcrypto -I/usr/src/crypto/openssl/crypto = -I/usr/src/crypto/openssl/crypto/asn1 = -I/usr/src/crypto/openssl/crypto/evp = -I/usr/src/crypto/openssl/crypto/modes -g -std=3Dgnu89 = -fstack-protector-strong -Wno-pointer-sign -Wno-error=3Daddress = -Wno-error=3Darray-bounds -Wno-error=3Dattributes = -Wno-error=3Dbool-compare -Wno-error=3Dcast-align -Wno-error=3Dclobbered = -Wno-error=3Denum-compare -Wno-error=3Dextra -Wno-error=3Dinline = -Wno-error=3Dlogical-not-parentheses -Wno-error=3Dstrict-aliasing = -Wno-error=3Duninitialized -Wno-error=3Dunused-but-set-variable = -Wno-error=3Dunused-function -Wno-error=3Dunused-value = -Wno-error=3Dmisleading-indentation -Wno-error=3Dnonnull-compare = -Wno-error=3Dshift-negative-value -Wno-error=3Dtautological-compare = -Wno-error=3Dunused-const-variable -v -Wa,--noexecstack = -march=3Darmv8-a+crypto -c /usr/src/crypto/openssl/crypto/arm64cpuid.S = -o arm64cpuid.o; ;' .CURDIR=3D'/usr/src/secure/lib/libcrypto' .MAKE=3D'make' = .OBJDIR=3D'/usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.a= arch64/secure/lib/libcrypto' .TARGETS=3D'all' = DESTDIR=3D'/usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.a= arch64/tmp' LD_LIBRARY_PATH=3D'' MACHINE=3D'arm64' MACHINE_ARCH=3D'aarch64' MAKEOBJDIRPREFIX=3D'' MAKESYSPATH=3D'/usr/src/share/mk' MAKE_VERSION=3D'20180222' = PATH=3D'/usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.aarc= h64/tmp/legacy/usr/sbin:/usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/us= r/src/arm64.aarch64/tmp/legacy/usr/bin:/usr/obj/cortexA53_xtoolchain-gcc/a= rm64.aarch64/usr/src/arm64.aarch64/tmp/legacy/bin:/usr/obj/cortexA53_xtool= chain-gcc/arm64.aarch64/usr/src/arm64.aarch64/tmp/usr/sbin:/usr/obj/cortex= A53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.aarch64/tmp/usr/bin:/sbin:/= bin:/usr/sbin:/usr/bin' SRCTOP=3D'/usr/src' = OBJTOP=3D'/usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.aa= rch64' .MAKE.MAKEFILES=3D'/usr/src/share/mk/sys.mk = /usr/src/share/mk/local.sys.env.mk /usr/src/share/mk/src.sys.env.mk = /root/src.configs/src.conf.cortexA53-xtoolchain-gcc.amd64-host = /usr/src/share/mk/bsd.mkopt.mk /usr/src/share/mk/src.sys.obj.mk = /usr/src/share/mk/auto.obj.mk /usr/src/share/mk/bsd.suffixes.mk = /root/src.configs/make.conf /usr/src/share/mk/local.sys.mk = /usr/src/share/mk/src.sys.mk /dev/null = /usr/src/secure/lib/libcrypto/Makefile /usr/src/share/mk/bsd.own.mk = /usr/src/share/mk/bsd.opts.mk /usr/src/share/mk/bsd.cpu.mk = /usr/src/share/mk/bsd.compiler.mk /usr/src/share/mk/bsd.linker.mk = /usr/src/secure/lib/libcrypto/Makefile.man = /usr/src/secure/lib/libcrypto/Makefile.inc = /usr/src/share/mk/bsd.endian.mk /usr/src/share/mk/bsd.lib.mk = /usr/src/share/mk/bsd.init.mk /usr/src/share/mk/local.init.mk = /usr/src/share/mk/src.init.mk = /usr/src/secure/lib/libcrypto/../Makefile.inc = /usr/src/secure/lib/libcrypto/../../Makefile.inc = /usr/src/share/mk/src.opts.mk /usr/src/lib/Makefile.inc = /usr/src/share/mk/bsd.libnames.mk /usr/src/share/mk/src.libnames.mk = /usr/src/share/mk/bsd.symver.mk /usr/src/share/mk/bsd.nls.mk = /usr/src/share/mk/bsd.files.mk /usr/src/share/mk/bsd.incs.mk = /usr/src/share/mk/bsd.confs.mk /usr/src/share/mk/bsd.links.mk = /usr/src/share/mk/bsd.dep.mk /usr/src/share/mk/bsd.clang-analyze.mk = /usr/src/share/mk/bsd.obj.mk /usr/src/share/mk/bsd.subdir.mk = /usr/src/share/mk/bsd.sys.mk' .PATH=3D'. /usr/src/secure/lib/libcrypto = /usr/src/secure/lib/libcrypto/aarch64 /usr/src/crypto/openssl/crypto = /usr/src/crypto/openssl/crypto/aes /usr/src/crypto/openssl/crypto/asn1 = /usr/src/crypto/openssl/crypto/bf /usr/src/crypto/openssl/crypto/bio = /usr/src/crypto/openssl/crypto/bn /usr/src/crypto/openssl/crypto/buffer = /usr/src/crypto/openssl/crypto/camellia = /usr/src/crypto/openssl/crypto/cast /usr/src/crypto/openssl/crypto/cmac = /usr/src/crypto/openssl/crypto/cms /usr/src/crypto/openssl/crypto/comp = /usr/src/crypto/openssl/crypto/conf /usr/src/crypto/openssl/crypto/des = /usr/src/crypto/openssl/crypto/dh /usr/src/crypto/openssl/crypto/dsa = /usr/src/crypto/openssl/crypto/dso /usr/src/crypto/openssl/crypto/ec = /usr/src/crypto/openssl/crypto/ecdh /usr/src/crypto/openssl/crypto/ecdsa = /usr/src/crypto/openssl/crypto/engine /usr/src/crypto/openssl/crypto/err = /usr/src/crypto/openssl/crypto/evp /usr/src/crypto/openssl/crypto/hmac = /usr/src/crypto/openssl/crypto/idea /usr/src/crypto/openssl/crypto/krb5 = /usr/src/crypto/openssl/crypto/lhash /usr/src/crypto/openssl/crypto/md4 = /usr/src/crypto/openssl/crypto/md5 /usr/src/crypto/openssl/crypto/mdc2 = /usr/src/crypto/openssl/crypto/modes = /usr/src/crypto/openssl/crypto/objects = /usr/src/crypto/openssl/crypto/ocsp /usr/src/crypto/openssl/crypto/pem = /usr/src/crypto/openssl/crypto/pkcs12 = /usr/src/crypto/openssl/crypto/pkcs7 = /usr/src/crypto/openssl/crypto/pqueue = /usr/src/crypto/openssl/crypto/rand /usr/src/crypto/openssl/crypto/rc2 = /usr/src/crypto/openssl/crypto/rc4 /usr/src/crypto/openssl/crypto/rc5 = /usr/src/crypto/openssl/crypto/ripemd /usr/src/crypto/openssl/crypto/rsa = /usr/src/crypto/openssl/crypto/seed /usr/src/crypto/openssl/crypto/sha = /usr/src/crypto/openssl/crypto/srp /usr/src/crypto/openssl/crypto/stack = /usr/src/crypto/openssl/crypto/ts /usr/src/crypto/openssl/crypto/txt_db = /usr/src/crypto/openssl/crypto/ui = /usr/src/crypto/openssl/crypto/whrlpool = /usr/src/crypto/openssl/crypto/x509 = /usr/src/crypto/openssl/crypto/x509v3 /usr/src/secure/lib/libcrypto/man' 1 error =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-toolchain@freebsd.org Sun Apr 8 04:18:40 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 914C9FA1FF4 for ; Sun, 8 Apr 2018 04:18:40 +0000 (UTC) (envelope-from marklmi26-fbsd@yahoo.com) Received: from sonic307-12.consmr.mail.ne1.yahoo.com (sonic307-12.consmr.mail.ne1.yahoo.com [66.163.190.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2ECF181F3D for ; Sun, 8 Apr 2018 04:18:39 +0000 (UTC) (envelope-from marklmi26-fbsd@yahoo.com) X-YMail-OSG: JzkM9UkVM1mJI_mnLhNbR1IFm7PQEuxLtHRAuWtQjSZxxqqmrLp0V4UTjQfgFtv f_95khZjBX8hTgl8Ng1N3QGlnnsi2MBI7CcNXlA2ajTshMdvqocaLXGveee_51ifu3Jus3mAW.8q 2Vjv6KGHUecv5JpQdZhp7F9vSA31GNaRwSScic2Zmh3V2nsR3YjDoSXhPjTHEb4sOotiCjuHflfO SUyUtcuCZM83uS.X.gUchBSwZRfsvj2E0i3djhTsl6JggYhTKLs1sVtSzmV9gSlV0Z4Q8C771RIU CXUGpZfrGI0eie_d0Ct2YhY6vZQlENVuI_uGr21piEGTlWgqnS_iupKGE5xXmgjMzILxRIWN1zdv vWGY7nc3lkrzeUTYLU4DtaL4D2.D55AX90v1ky5OGG7IDVmbuO7pV6X.z.AvL.WoFty6lCTD3JHz ttKuODuFVG.2NN6JphhjU9BLQi6rutE0MFyxoJ0ymL4EMBOwNJFYHW4Cqf2i1IEJCzDYo0PogRgb pGk._Et05D8JezAbcJmvvVtt17lg- Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.ne1.yahoo.com with HTTP; Sun, 8 Apr 2018 04:18:33 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.25]) ([76.115.7.162]) by smtp417.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 05919e714b44db5861f840386b8b9ff5; Sun, 08 Apr 2018 04:08:26 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Subject: head xtoolchain amd64 -> arm64 buildkernel attempt: locore.S: Error: unknown or missing system register name at operand (for icc_sre_el2 use) Message-Id: Date: Sat, 7 Apr 2018 21:08:25 -0700 To: freebsd-toolchain@freebsd.org, freebsd-arm@freebsd.org X-Mailer: Apple Mail (2.3445.6.18) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 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, 08 Apr 2018 04:18:40 -0000 Looks like /usr/local/bin/aarch64-unknown-freebsd12.0-gcc with -x assembler-with-cpp can reject /usr/src/sys/arm64/arm64/locore.S for operand naming/syntax: icc_sre_el2 is rejected twice (in my -mcpu=3Dcortex-a53 targeted context). The register icc_sre_el2 seems to be a GIC-specific register. --- locore.o --- /usr/src/sys/arm64/arm64/locore.S: Assembler messages: /usr/src/sys/arm64/arm64/locore.S:251: Error: unknown or missing system = register name at operand 2 -- `mrs x2,icc_sre_el2' /usr/src/sys/arm64/arm64/locore.S:254: Error: unknown or missing system = register name at operand 1 -- `msr icc_sre_el2,x2' *** [locore.o] Error code 1 make[2]: stopped in = /usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.aarch64/sys/= GENERIC-NODBG .ERROR_TARGET=3D'locore.o' = .ERROR_META_FILE=3D'/usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/sr= c/arm64.aarch64/sys/GENERIC-NODBG/locore.o.meta' .MAKE.LEVEL=3D'2' MAKEFILE=3D'' .MAKE.MODE=3D'meta missing-filemon=3Dyes missing-meta=3Dyes silent=3Dyes = verbose curdirOk=3Dyes' _ERROR_CMD=3D'/usr/local/bin/aarch64-unknown-freebsd12.0-gcc = -mcpu=3Dcortex-a53 -isystem = /usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.aarch64/tmp/= usr/include = -L/usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.aarch64/tm= p/usr/lib = -B/usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.aarch64/tm= p/usr/lib = --sysroot=3D/usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.= aarch64/tmp -B/usr/local/aarch64-unknown-freebsd12.0/bin/ -c -x = assembler-with-cpp -DLOCORE -O -pipe -g -nostdinc -I. -I/usr/src/sys = -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS = -include opt_global.h -fno-omit-frame-pointer = -mno-omit-leaf-frame-pointer -mgeneral-regs-only -ffixed-x18 = -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall = -Wredundant-decls -Wnested-externs -Wstrict-prototypes = -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef = -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs = -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error=3Daddress = -Wno-error=3Daggressive-loop-optimizations -Wno-error=3Darray-bounds = -Wno-error=3Dattributes -Wno-error=3Dcast-qual -Wno-error=3Denum-compare = -Wno-error=3Dinline -Wno-error=3Dmaybe-uninitialized -Wno-error=3Doverflow= -Wno-error=3Dsequence-point -Wno-error=3Dunused-but-set-variable = -Wno-error=3Dmisleading-indentation -Wno-error=3Dnonnull-compare = -Wno-error=3Dshift-overflow -Wno-error=3Dtautological-compare -v = -fno-common -fms-extensions -finline-limit=3D8000 --param = inline-unit-growth=3D100 --param large-function-growth=3D1000 = -std=3Diso9899:1999 -Werror /usr/src/sys/arm64/arm64/locore.S;' = .CURDIR=3D'/usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.a= arch64/sys/GENERIC-NODBG' .MAKE=3D'make' = .OBJDIR=3D'/usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.a= arch64/sys/GENERIC-NODBG' .TARGETS=3D'all' DESTDIR=3D'' LD_LIBRARY_PATH=3D'' MACHINE=3D'arm64' MACHINE_ARCH=3D'aarch64' MAKEOBJDIRPREFIX=3D'' MAKESYSPATH=3D'/usr/src/share/mk' MAKE_VERSION=3D'20180222' = PATH=3D'/usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.aarc= h64/tmp/legacy/usr/sbin:/usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/us= r/src/arm64.aarch64/tmp/legacy/usr/bin:/usr/obj/cortexA53_xtoolchain-gcc/a= rm64.aarch64/usr/src/arm64.aarch64/tmp/legacy/bin:/usr/obj/cortexA53_xtool= chain-gcc/arm64.aarch64/usr/src/arm64.aarch64/tmp/usr/sbin:/usr/obj/cortex= A53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.aarch64/tmp/usr/bin:/sbin:/= bin:/usr/sbin:/usr/bin' SRCTOP=3D'/usr/src' OBJTOP=3D'/usr/src' .MAKE.MAKEFILES=3D'/usr/src/share/mk/sys.mk = /usr/src/share/mk/local.sys.env.mk /usr/src/share/mk/src.sys.env.mk = /root/src.configs/src.conf.cortexA53-xtoolchain-gcc.amd64-host = /usr/src/share/mk/bsd.mkopt.mk /usr/src/share/mk/src.sys.obj.mk = /usr/src/share/mk/auto.obj.mk /usr/src/share/mk/bsd.suffixes.mk = /root/src.configs/make.conf /usr/src/share/mk/local.sys.mk = /usr/src/share/mk/src.sys.mk /dev/null Makefile = /usr/src/sys/conf/kern.pre.mk /usr/src/share/mk/bsd.own.mk = /usr/src/share/mk/bsd.opts.mk /usr/src/share/mk/bsd.cpu.mk = /usr/src/share/mk/bsd.compiler.mk /usr/src/share/mk/bsd.linker.mk = /usr/src/sys/conf/kern.opts.mk /usr/src/sys/conf/kern.post.mk = /usr/src/sys/conf/kern.mk' .PATH=3D'. = /usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.aarch64/sys/= GENERIC-NODBG' For reference: # uname -apKU FreeBSD FBSDFSSD 12.0-CURRENT FreeBSD 12.0-CURRENT r332181M amd64 = amd64 1200061 1200061 # pkg info "*binutils" aarch64-binutils-2.30_2,1 amd64-binutils-2.30_2,1 binutils-2.30_2,1 powerpc64-binutils-2.30_2,1 # 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: 466704 Last Changed Rev: 466704 =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-toolchain@freebsd.org Sun Apr 8 10:27:35 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2CEACF96D5D for ; Sun, 8 Apr 2018 10:27:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id A22E982A2A for ; Sun, 8 Apr 2018 10:27:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 5EE01F96D58; Sun, 8 Apr 2018 10:27:34 +0000 (UTC) Delivered-To: toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4CE02F96D57 for ; Sun, 8 Apr 2018 10:27:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DBDDB82A0E for ; Sun, 8 Apr 2018 10:27:33 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 01D661716F for ; Sun, 8 Apr 2018 10:27:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w38ARWmQ028989 for ; Sun, 8 Apr 2018 10:27:32 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w38ARWJA028987 for toolchain@FreeBSD.org; Sun, 8 Apr 2018 10:27:32 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 227339] clang crashes with error in backend: SSE2 register return with SSE2 disabled Date: Sun, 08 Apr 2018 10:27:33 +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: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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.25 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, 08 Apr 2018 10:27:35 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227339 Dimitry Andric changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dim@FreeBSD.org --- Comment #2 from Dimitry Andric --- This also reproduces with clang from head: /usr/ports/databases/arangodb33/work/arangodb-3.3.6.1/3rdParty/curl/curl-7.= 50.3/lib/timeval.c:137:8: error: SSE2 register return with SSE2 disabled double curlx_tvdiff_secs(struct timeval newer, struct timeval older) ^ 1 error generated. and I think the problem is that the command line options make it impossible= to compile this source. E.g. it compiles for amd64, but something passes: -mno-sse2 -mno-sse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -mno-sse4a -mno-avx -mno-fma -mno-bmi2 -mno-avx2 -mno-xop -mno-fma4 -mno-avx512f -mno-avx512vl -mno-avx512pf -mno-avx512er -mno-avx512cd -mno-avx512dq -mno-avx512bw -mno-avx512ifma -mno-avx512vbmi on the command line, making it impossible to work with doubles in the amd64 ABI. You should try removing all the -mno-* options, and see if it compiles then. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Sun Apr 8 10:29:27 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4DE2CF96F5F for ; Sun, 8 Apr 2018 10:29:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id D659683A1D for ; Sun, 8 Apr 2018 10:29:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 9493FF96F57; Sun, 8 Apr 2018 10:29:26 +0000 (UTC) Delivered-To: toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 828C0F96F56 for ; Sun, 8 Apr 2018 10:29:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1AE72839FA for ; Sun, 8 Apr 2018 10:29:26 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 41B1817172 for ; Sun, 8 Apr 2018 10:29:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w38ATP1a031353 for ; Sun, 8 Apr 2018 10:29:25 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w38ATP4Y031352 for toolchain@FreeBSD.org; Sun, 8 Apr 2018 10:29:25 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 227340] clang crashes with error in backend: Access past stack top Date: Sun, 08 Apr 2018 10:29: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: 11.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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.25 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, 08 Apr 2018 10:29:27 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227340 Dimitry Andric changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dim@FreeBSD.org --- Comment #3 from Dimitry Andric --- Vlad, the tarball contains multiple cpp files and shell scripts: DaemonFeature-3601e9.cpp DaemonFeature-3601e9.sh c-b2d77e.cpp c-b2d77e.sh gtest-all-cecbdb.cpp gtest-all-cecbdb.sh lru_cache-f2927e.cpp lru_cache-f2927e.sh v8-buffer-348b23.cpp v8-buffer-348b23.sh v8-conv-eb2c30.cpp v8-conv-eb2c30.sh which one caused the particular crash "Access past stack top"? --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Sun Apr 8 10:29:40 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2848BF96FB3 for ; Sun, 8 Apr 2018 10:29:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id AD47083C02 for ; Sun, 8 Apr 2018 10:29:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 67D70F96FB2; Sun, 8 Apr 2018 10:29:39 +0000 (UTC) Delivered-To: toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5564DF96FB1 for ; Sun, 8 Apr 2018 10:29:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E2D2D83BE8 for ; Sun, 8 Apr 2018 10:29:38 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 323BF17176 for ; Sun, 8 Apr 2018 10:29:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w38ATc2n031647 for ; Sun, 8 Apr 2018 10:29:38 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w38ATcB3031646 for toolchain@FreeBSD.org; Sun, 8 Apr 2018 10:29:38 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 227339] clang crashes with error in backend: SSE2 register return with SSE2 disabled Date: Sun, 08 Apr 2018 10:29:38 +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: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: dim@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.25 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, 08 Apr 2018 10:29:40 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227339 Dimitry Andric changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|toolchain@FreeBSD.org |dim@FreeBSD.org --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Sun Apr 8 10:29:45 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E38C1F96FD3 for ; Sun, 8 Apr 2018 10:29:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 7441083CBA for ; Sun, 8 Apr 2018 10:29:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 2ECACF96FD0; Sun, 8 Apr 2018 10:29:44 +0000 (UTC) Delivered-To: toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1CD04F96FCF for ; Sun, 8 Apr 2018 10:29:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9917B83C97 for ; Sun, 8 Apr 2018 10:29:43 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 0016F17179 for ; Sun, 8 Apr 2018 10:29:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w38ATgBA031776 for ; Sun, 8 Apr 2018 10:29:42 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w38ATgV1031775 for toolchain@FreeBSD.org; Sun, 8 Apr 2018 10:29:42 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 227340] clang crashes with error in backend: Access past stack top Date: Sun, 08 Apr 2018 10:29:42 +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: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: dim@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.25 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, 08 Apr 2018 10:29:45 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227340 Dimitry Andric changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|toolchain@FreeBSD.org |dim@FreeBSD.org --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Sun Apr 8 15:28:39 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D706CF8A1B4 for ; Sun, 8 Apr 2018 15:28:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 6D2F568CDA for ; Sun, 8 Apr 2018 15:28:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 2E7D1F8A1B1; Sun, 8 Apr 2018 15:28:39 +0000 (UTC) Delivered-To: toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1C0A1F8A1B0 for ; Sun, 8 Apr 2018 15:28:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A71E268CB5 for ; Sun, 8 Apr 2018 15:28:38 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id C904619A6C for ; Sun, 8 Apr 2018 15:28:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w38FSbmS039773 for ; Sun, 8 Apr 2018 15:28:37 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w38FSbla039772 for toolchain@FreeBSD.org; Sun, 8 Apr 2018 15:28:37 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 227339] clang crashes with error in backend: SSE2 register return with SSE2 disabled Date: Sun, 08 Apr 2018 15:28:37 +0000 X-Bugzilla-Reason: CC 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: rgrimes@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: dim@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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.25 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, 08 Apr 2018 15:28:40 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227339 Rodney W. Grimes changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |toolchain@FreeBSD.org --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-toolchain@freebsd.org Sun Apr 8 15:29:39 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 67146F8A2DF for ; Sun, 8 Apr 2018 15:29:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id F2C07695F3 for ; Sun, 8 Apr 2018 15:29:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id B7652F8A2DE; Sun, 8 Apr 2018 15:29:38 +0000 (UTC) Delivered-To: toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A60F4F8A2DD for ; Sun, 8 Apr 2018 15:29:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47234695D5 for ; Sun, 8 Apr 2018 15:29:38 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 912B019A6E for ; Sun, 8 Apr 2018 15:29:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w38FTbsK041118 for ; Sun, 8 Apr 2018 15:29:37 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w38FTbWY041117 for toolchain@FreeBSD.org; Sun, 8 Apr 2018 15:29:37 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 227340] clang crashes with error in backend: Access past stack top Date: Sun, 08 Apr 2018 15:29:37 +0000 X-Bugzilla-Reason: CC 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: rgrimes@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: dim@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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.25 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, 08 Apr 2018 15:29:39 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227340 Rodney W. Grimes changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |toolchain@FreeBSD.org --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-toolchain@freebsd.org Mon Apr 9 19:52:47 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C983FF9E2C8 for ; Mon, 9 Apr 2018 19:52:47 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from mail.baldwin.cx (bigwig.baldwin.cx [96.47.65.170]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5ABB66EB85 for ; Mon, 9 Apr 2018 19:52:47 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from ralph.baldwin.cx (ralph.baldwin.cx [66.234.199.215]) by mail.baldwin.cx (Postfix) with ESMTPSA id B3F4210B45D; Mon, 9 Apr 2018 15:52:46 -0400 (EDT) From: John Baldwin To: Alexander Kabaev Cc: Mark Millard , freebsd-toolchain@freebsd.org Subject: Re: amd64-binutils file name structure for utils vs. for powerpc64-binutils and aarch64-binutils Date: Mon, 09 Apr 2018 12:27:18 -0700 Message-ID: <1666724.ZHi5oRvF8N@ralph.baldwin.cx> User-Agent: KMail/4.14.10 (FreeBSD/11.1-STABLE; KDE/4.14.30; amd64; ; ) In-Reply-To: <20180407221447.63e016cc@kan> References: <4410009D-E857-4BB0-B865-9294D24187F5@yahoo.com> <20180407221447.63e016cc@kan> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (mail.baldwin.cx); Mon, 09 Apr 2018 15:52:46 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.99.2 at mail.baldwin.cx X-Virus-Status: Clean X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 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, 09 Apr 2018 19:52:48 -0000 On Saturday, April 07, 2018 10:14:47 PM Alexander Kabaev wrote: > On Sat, 7 Apr 2018 17:01:30 -0700 > Mark Millard wrote: > > > On 2018-Apr-7, at 4:37 PM, Alexander Kabaev > > wrote: > > > > > On Sat, 7 Apr 2018 18:43:17 -0400 > > > Alexander Kabaev wrote: > > > > > > Come to think of it, I am not sure I understand the problem. > > > amd64-binutils installs "proper" x86_64-freebsd-prefixed binaries. > > > Did you expect amd64-freebsd-* ? > > > > My understanding was that cross-build tools are now supposed > > to have the -unknown and the os version (12.0 here) even > > when the cross-build is targeting the same environment as the > > host environment. In other words: that it is not supposed to > > be the same as plain binutils for the host but as-if it was > > from a different architecture. > > > > But I was checking my understanding. In part because it used > > to be that, for example, on amd64 the aarch64-binutils also > > omitted the -unknown and 12.0 but now has them. I just had > > to update my environment's references to such for that. (This > > was not a self-hosted cross-build context and it changed.) > > > > Also, there is a recent check-in, -r466699 , for ports that, > > in part, says: > > > > Log: > > Fix two more issues with r465416. > > > > - Force build of a cross-compiler by defining > > CROSS_DIRECTORY_STRUCTURE in CFLAGS even if the build host matches > > the build target. This fixes such a cross compiler to not > > include /usr/local/lib in its default library path (e.g. amd64-gcc > > when built on amd64). > > > > > > > > But that was for powerpc64-gcc, not powerpc64-binutils (for example). > > I do not know for sure if similar points should also apply to > > *-binutils ports. So, again, I was checking. > > > > (I might have just got involved between already-made and other pending > > updates for all I know.) > > > > > > Since I am not the maintainer of binutils ports, I missed wholesale > rename. I suspect something like the patch below will make > amd64-binutils follow the convention: > > P164: https://reviews.freebsd.org/P164 Huh, I didn't need this change when using amd64-xtoolchain-gcc, but it does seem correct. I wonder if you will need to fix the amd64-xtoolchain-gcc package as well. In general I actually don't like having the OS version present as the xtoolchain packages should not be version-specific (that is, I can use mips-gcc to compile 10, 11, or 12), and even if it was, it the _host's_ OS version is not necessarily the OS version of the target I want to build. However, GCC's FreeBSD specific bits currently require a major version for FBSD_MAJOR, and I had to resort to the hack in the commit above to set CROSS_DIRECTORY_STRUCTURE explicitly. If we were to drop OSREL from the GCC and BU targets then the normal cross logic in GCC would work such that I wouldn't have needed the hack. We could perhaps patch GCC to assume that if FBSD_MAJOR is not set it should assume some minimum default version (I think any value >= 6 is treated the same). We could then drop OSREL from the external toolchain ports (binutils and GCC) which I would prefer. -- John Baldwin From owner-freebsd-toolchain@freebsd.org Tue Apr 10 00:58:38 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 981D9F8D879 for ; Tue, 10 Apr 2018 00:58:38 +0000 (UTC) (envelope-from kabaev@gmail.com) Received: from mail-qk0-x236.google.com (mail-qk0-x236.google.com [IPv6:2607:f8b0:400d:c09::236]) (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 2DDA97BD2E; Tue, 10 Apr 2018 00:58:38 +0000 (UTC) (envelope-from kabaev@gmail.com) Received: by mail-qk0-x236.google.com with SMTP id p67so11589382qke.13; Mon, 09 Apr 2018 17:58:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version; bh=81Twg47iJVAq46pj5PGRe3Wgp4mdEBpCRtGARoBAr6U=; b=uezsg4CzUbcz/g+L6DVr2Gwd3etgPJ478eIJZOrFXzR6sZpKDr3p0bQ4ynF6hC9FtH amRPQ24n4JxbpiXz6hCdTgDqJYu8OY9HGFym1BU4FqqPFoGfxVCdUt5iI+GLy6M7IoMj Q/uNHT8GiUQUIu/0qj0MmR4B9itfVJeqxANvBsEvU7G7+GeBEAnOZ0aEAeK8/v2Cykt5 8O2Dp5uIGj0Zksz7rVYb/8Iz5is142RvWEi6V0BzFE6JxGARXamuIQt5jN2S3qNBDdR8 cxeJbR0cq3keoYgRZoBbhl/obDJJucQTGDksthLSkPAukxju12nmGDaCbsOMj2V6Ax0l EAcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version; bh=81Twg47iJVAq46pj5PGRe3Wgp4mdEBpCRtGARoBAr6U=; b=ILdXjovkerSK5f0SgIkCEb8uud3irmMyO9PqoirCEVm8lagoJv9CBnFgoN00Hv0315 dD9L0ZtFk6sn64nsHJGU/DifVl+ZpY4Ft0USALCYA2dI7DP0mtdJtabnuMlu4QU3IACx 0Lj7fVEqkPqxi99bOVizoD5UxlTf/NckDqtbYWINiZ4SQR95e1IUI4WKtSEsSWyF2CzL mt2A4c9bo6A639w6WZbI0093F7yKj92XhtOZIyXstv8XwgsMeyV6e5gOc8zyPg0LSHo7 1jYVdgm8LoqFbemOrvZMOtULIWgEqqWSagFOw4OBmkNfqkItcrKzvpF/t7oRLK6uuXBc ZHGQ== X-Gm-Message-State: ALQs6tCTBJg4CqWbdK7XkVKNzycGwyQcJwtufTYIpIDvJgx3Q8lr0lLv MHYgJd403E9OGFgTbBfJ+aduPZlA X-Google-Smtp-Source: AIpwx48azF23wUQLr+GalwMYEfofBOkXK4yXNf8ad4lQWIECPu8UpSK8PCecvqJEFpEBkEErF0flIg== X-Received: by 10.55.200.151 with SMTP id t23mr54304726qkl.146.1523321917470; Mon, 09 Apr 2018 17:58:37 -0700 (PDT) Received: from kan ([2601:18f:802:4680:226:18ff:fe00:232e]) by smtp.gmail.com with ESMTPSA id o4sm1288192qkl.69.2018.04.09.17.58.35 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 09 Apr 2018 17:58:36 -0700 (PDT) Date: Mon, 9 Apr 2018 20:58:29 -0400 From: Alexander Kabaev To: John Baldwin Cc: Mark Millard , freebsd-toolchain@freebsd.org Subject: Re: amd64-binutils file name structure for utils vs. for powerpc64-binutils and aarch64-binutils Message-ID: <20180409205829.37a11479@kan> In-Reply-To: <1666724.ZHi5oRvF8N@ralph.baldwin.cx> References: <4410009D-E857-4BB0-B865-9294D24187F5@yahoo.com> <20180407221447.63e016cc@kan> <1666724.ZHi5oRvF8N@ralph.baldwin.cx> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; amd64-portbld-freebsd12.0) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/.eJVy14DIec8PkP/pZF4nDR"; protocol="application/pgp-signature" X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Apr 2018 00:58:38 -0000 --Sig_/.eJVy14DIec8PkP/pZF4nDR Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Mon, 09 Apr 2018 12:27:18 -0700 John Baldwin wrote: > On Saturday, April 07, 2018 10:14:47 PM Alexander Kabaev wrote: > > On Sat, 7 Apr 2018 17:01:30 -0700 > > Mark Millard wrote: > > =20 > > > On 2018-Apr-7, at 4:37 PM, Alexander Kabaev > > > wrote: > > > =20 > > > > On Sat, 7 Apr 2018 18:43:17 -0400 > > > > Alexander Kabaev wrote: > > > >=20 > > > > Come to think of it, I am not sure I understand the problem. > > > > amd64-binutils installs "proper" x86_64-freebsd-prefixed > > > > binaries. Did you expect amd64-freebsd-* ? =20 > > >=20 > > > My understanding was that cross-build tools are now supposed > > > to have the -unknown and the os version (12.0 here) even > > > when the cross-build is targeting the same environment as the > > > host environment. In other words: that it is not supposed to > > > be the same as plain binutils for the host but as-if it was > > > from a different architecture. > > >=20 > > > But I was checking my understanding. In part because it used > > > to be that, for example, on amd64 the aarch64-binutils also > > > omitted the -unknown and 12.0 but now has them. I just had > > > to update my environment's references to such for that. (This > > > was not a self-hosted cross-build context and it changed.) > > >=20 > > > Also, there is a recent check-in, -r466699 , for ports that, > > > in part, says: > > >=20 > > > Log: > > > Fix two more issues with r465416. > > > =20 > > > - Force build of a cross-compiler by defining > > > CROSS_DIRECTORY_STRUCTURE in CFLAGS even if the build host matches > > > the build target. This fixes such a cross compiler to not > > > include /usr/local/lib in its default library path (e.g. amd64-gcc > > > when built on amd64). > > >=20 > > >=20 > > >=20 > > > But that was for powerpc64-gcc, not powerpc64-binutils (for > > > example). I do not know for sure if similar points should also > > > apply to *-binutils ports. So, again, I was checking. > > >=20 > > > (I might have just got involved between already-made and other > > > pending updates for all I know.) > > >=20 > > > =20 > >=20 > > Since I am not the maintainer of binutils ports, I missed wholesale > > rename. I suspect something like the patch below will make > > amd64-binutils follow the convention: > >=20 > > P164: https://reviews.freebsd.org/P164 =20 >=20 > Huh, I didn't need this change when using amd64-xtoolchain-gcc, but it > does seem correct. I wonder if you will need to fix the > amd64-xtoolchain-gcc package as well. >=20 > In general I actually don't like having the OS version present as the > xtoolchain packages should not be version-specific (that is, I can use > mips-gcc to compile 10, 11, or 12), and even if it was, it the > _host's_ OS version is not necessarily the OS version of the target I > want to build. However, GCC's FreeBSD specific bits currently require > a major version for FBSD_MAJOR, and I had to resort to the hack in > the commit above to set CROSS_DIRECTORY_STRUCTURE explicitly. If we > were to drop OSREL from the GCC and BU targets then the normal cross > logic in GCC would work such that I wouldn't have needed the hack. >=20 > We could perhaps patch GCC to assume that if FBSD_MAJOR is not set it > should assume some minimum default version (I think any value >=3D 6 is > treated the same). We could then drop OSREL from the external > toolchain ports (binutils and GCC) which I would prefer. >=20 > --=20 > John Baldwin OSREL is an artifact of old times where we had wildly different specs. This is not true anymore, so deorbiting the OSREL suffix makes sense. For the time being, having binutils with same prefox as corresponding GCC is actually a good thing. --=20 Alexander Kabaev --Sig_/.eJVy14DIec8PkP/pZF4nDR Content-Type: application/pgp-signature Content-Description: Цифровая подпись OpenPGP -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEExffZlZm2QeE8UVaRBxMimZJ5Ln4FAlrMDDZfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEM1 RjdEOTk1OTlCNjQxRTEzQzUxNTY5MTA3MTMyMjk5OTI3OTJFN0UACgkQBxMimZJ5 Ln7I+hAAnz74ijZsiUFV9hdKVeTjfA8Zi+65nv4RGrk0koNfK3Mn4rtf2S4xVUTp LqnSWxgOhEdn4fYCD/rGLAUJ2hWZSMdr1+0oDWHvR150Iydr9HCGFXpJbmiobxoQ VbwTiKk036U9I2yUd8Np/cQMB0f/TUAkxp26o6ZXwLC0p6UYnVMB6fKS6orVW8CW X/jlEElVcwtgETENmaIPnaL5Mp7JzvumD8CZR9JlDPtIYrtk2NDslvNKJAlbYr5e tnf98AaVmCyTrd0rr2sznsStCxmuWCHEVZyyZz2AfrrRPFvtHVRsSSUa9pZgxvP+ y/NX/e6vnC8DqDOa8SzBBWkVOB5OWNvliNn4w8YslMBIs9S2RlwVlNASYCzyX+RS uySrFE+mdr+9fzIqC1BIHSlw54WQ55p9qVHjG1kukAOekVF6/eeK9XAvT9IC7Y/2 iyfU7fDK8LYHFQwlCDOIyQYw3i645g0Mguj4Av1lxqCsOW4Fj60CF08WBvuiYb8n rt2G8yn63s8qMh8Etz9bJh/cuZQXKwMgdwPDnIc8oIE1PZSbzRI5mh965RhgZIi1 uPWFQ4idkmUqmQYzZrylrScvR9m2Ckc18g1I26B5pFRydvzfmvtIXu8N/i7M/YJP 0xX8oC+Q9caLQ1VNIe8zXzr6yT49oFti2kzlTIK5cGxL0xYgfnU= =Xltm -----END PGP SIGNATURE----- --Sig_/.eJVy14DIec8PkP/pZF4nDR-- From owner-freebsd-toolchain@freebsd.org Tue Apr 10 15:51:19 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 418BBF8261E for ; Tue, 10 Apr 2018 15:51:19 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from mail.baldwin.cx (bigwig.baldwin.cx [96.47.65.170]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E7BF46E91B for ; Tue, 10 Apr 2018 15:51:18 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from ralph.baldwin.cx (ralph.baldwin.cx [66.234.199.215]) by mail.baldwin.cx (Postfix) with ESMTPSA id AF2BE10AFCD; Tue, 10 Apr 2018 11:51:16 -0400 (EDT) From: John Baldwin To: Alexander Kabaev Cc: Mark Millard , freebsd-toolchain@freebsd.org Subject: Re: amd64-binutils file name structure for utils vs. for powerpc64-binutils and aarch64-binutils Date: Tue, 10 Apr 2018 08:46:05 -0700 Message-ID: <1889186.M1zOzkklTl@ralph.baldwin.cx> User-Agent: KMail/4.14.10 (FreeBSD/11.1-STABLE; KDE/4.14.30; amd64; ; ) In-Reply-To: <20180409205829.37a11479@kan> References: <1666724.ZHi5oRvF8N@ralph.baldwin.cx> <20180409205829.37a11479@kan> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (mail.baldwin.cx); Tue, 10 Apr 2018 11:51:16 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.99.2 at mail.baldwin.cx X-Virus-Status: Clean X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Apr 2018 15:51:19 -0000 On Monday, April 09, 2018 08:58:29 PM Alexander Kabaev wrote: > On Mon, 09 Apr 2018 12:27:18 -0700 > John Baldwin wrote: > > > On Saturday, April 07, 2018 10:14:47 PM Alexander Kabaev wrote: > > > On Sat, 7 Apr 2018 17:01:30 -0700 > > > Mark Millard wrote: > > > > > > > On 2018-Apr-7, at 4:37 PM, Alexander Kabaev > > > > wrote: > > > > > > > > > On Sat, 7 Apr 2018 18:43:17 -0400 > > > > > Alexander Kabaev wrote: > > > > > > > > > > Come to think of it, I am not sure I understand the problem. > > > > > amd64-binutils installs "proper" x86_64-freebsd-prefixed > > > > > binaries. Did you expect amd64-freebsd-* ? > > > > > > > > My understanding was that cross-build tools are now supposed > > > > to have the -unknown and the os version (12.0 here) even > > > > when the cross-build is targeting the same environment as the > > > > host environment. In other words: that it is not supposed to > > > > be the same as plain binutils for the host but as-if it was > > > > from a different architecture. > > > > > > > > But I was checking my understanding. In part because it used > > > > to be that, for example, on amd64 the aarch64-binutils also > > > > omitted the -unknown and 12.0 but now has them. I just had > > > > to update my environment's references to such for that. (This > > > > was not a self-hosted cross-build context and it changed.) > > > > > > > > Also, there is a recent check-in, -r466699 , for ports that, > > > > in part, says: > > > > > > > > Log: > > > > Fix two more issues with r465416. > > > > > > > > - Force build of a cross-compiler by defining > > > > CROSS_DIRECTORY_STRUCTURE in CFLAGS even if the build host matches > > > > the build target. This fixes such a cross compiler to not > > > > include /usr/local/lib in its default library path (e.g. amd64-gcc > > > > when built on amd64). > > > > > > > > > > > > > > > > But that was for powerpc64-gcc, not powerpc64-binutils (for > > > > example). I do not know for sure if similar points should also > > > > apply to *-binutils ports. So, again, I was checking. > > > > > > > > (I might have just got involved between already-made and other > > > > pending updates for all I know.) > > > > > > > > > > > > > > Since I am not the maintainer of binutils ports, I missed wholesale > > > rename. I suspect something like the patch below will make > > > amd64-binutils follow the convention: > > > > > > P164: https://reviews.freebsd.org/P164 > > > > Huh, I didn't need this change when using amd64-xtoolchain-gcc, but it > > does seem correct. I wonder if you will need to fix the > > amd64-xtoolchain-gcc package as well. > > > > In general I actually don't like having the OS version present as the > > xtoolchain packages should not be version-specific (that is, I can use > > mips-gcc to compile 10, 11, or 12), and even if it was, it the > > _host's_ OS version is not necessarily the OS version of the target I > > want to build. However, GCC's FreeBSD specific bits currently require > > a major version for FBSD_MAJOR, and I had to resort to the hack in > > the commit above to set CROSS_DIRECTORY_STRUCTURE explicitly. If we > > were to drop OSREL from the GCC and BU targets then the normal cross > > logic in GCC would work such that I wouldn't have needed the hack. > > > > We could perhaps patch GCC to assume that if FBSD_MAJOR is not set it > > should assume some minimum default version (I think any value >= 6 is > > treated the same). We could then drop OSREL from the external > > toolchain ports (binutils and GCC) which I would prefer. > > > > OSREL is an artifact of old times where we had wildly different specs. > This is not true anymore, so deorbiting the OSREL suffix makes sense. > For the time being, having binutils with same prefox as corresponding > GCC is actually a good thing. Note that the riscv64-binutils hack in Makefile.inc1 doesn't currently work since it assumes no OSREL suffix btw: src/Makefile.inc1: # If we do not have a bootstrap binutils (because the in-tree one does not # support the target architecture), provide a default cross-binutils prefix. # This allows riscv64 builds, for example, to automatically use the # riscv64-binutils port or package. .if !make(showconfig) .if !empty(BROKEN_OPTIONS:MBINUTILS_BOOTSTRAP) && \ ${MK_LLD_BOOTSTRAP} == "no" && \ !defined(CROSS_BINUTILS_PREFIX) CROSS_BINUTILS_PREFIX=/usr/local/${TARGET_ARCH}-freebsd/bin/ However, it's hard to fix this right, so long term I'd like us to strip the OSREL instead. (Right now make tinderbox still happens to work for riscv64 because src/Makefile forces CROSS_TOOLCHAIN for riscv64 before Makefile.inc1 is included which sets CROSS_BINUTILS_PREFIX explicitly.) -- John Baldwin From owner-freebsd-toolchain@freebsd.org Wed Apr 11 05:29:00 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 531FDF9788A for ; Wed, 11 Apr 2018 05:29:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id D4E5A7003A for ; Wed, 11 Apr 2018 05:28:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 8EE23F97889; Wed, 11 Apr 2018 05:28:59 +0000 (UTC) Delivered-To: toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7C81DF97888 for ; Wed, 11 Apr 2018 05:28:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1A9C970038 for ; Wed, 11 Apr 2018 05:28:59 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 6BBB3199B4 for ; Wed, 11 Apr 2018 05:28:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w3B5SwvY008710 for ; Wed, 11 Apr 2018 05:28:58 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w3B5SwvE008709 for toolchain@FreeBSD.org; Wed, 11 Apr 2018 05:28:58 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 227438] -fopenmp=libgomp doesn't work Date: Wed, 11 Apr 2018 05:28:55 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new 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 Only Me X-Bugzilla-Who: jbeich@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Apr 2018 05:29:00 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227438 Bug ID: 227438 Summary: -fopenmp=3Dlibgomp doesn't work Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: toolchain@FreeBSD.org Reporter: jbeich@FreeBSD.org libomp has limited platform availability (currently, only i386 and amd64), = so ports/ may prefer to use another library to avoid ugly conditionals. Using = GCC isn't always an option due to conflicts in libgcc_s, libstdc++, broken ASAN= and hard to use with LLD. Steps to reproduce: $ pkg install ca_root_nss gcc7 $ fetch https://computing.llnl.gov/tutorials/openMP/samples/C/omp_hello.c $ cc -fopenmp=3Dlibgomp -isystem$(find /usr/local/lib/gcc7 -name omp.h | = xargs dirname) -L/usr/local/lib/gcc7 omp_hello.c Actual result $ ./a.out Hello World from thread =3D 0 Number of threads =3D 1 Expected result: $ ./a.out Hello World from thread =3D 4 Hello World from thread =3D 0 Number of threads =3D 8 Hello World from thread =3D 2 Hello World from thread =3D 1 Hello World from thread =3D 6 Hello World from thread =3D 5 Hello World from thread =3D 7 Hello World from thread =3D 3 --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Wed Apr 11 05:32:18 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 141D1F97D4C for ; Wed, 11 Apr 2018 05:32:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 8DBDF71401 for ; Wed, 11 Apr 2018 05:32:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 4D5E8F97D46; Wed, 11 Apr 2018 05:32:17 +0000 (UTC) Delivered-To: toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3AFA2F97D44 for ; Wed, 11 Apr 2018 05:32:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C1AE1713DE for ; Wed, 11 Apr 2018 05:32:16 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id EC5BA19B03 for ; Wed, 11 Apr 2018 05:32:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w3B5WFSf021942 for ; Wed, 11 Apr 2018 05:32:15 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w3B5WF2q021941 for toolchain@FreeBSD.org; Wed, 11 Apr 2018 05:32:15 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 227438] clang -fopenmp=libgomp doesn't work Date: Wed, 11 Apr 2018 05:32:15 +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 Only Me X-Bugzilla-Who: jbeich@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: short_desc 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.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Apr 2018 05:32:18 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227438 Jan Beich changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|-fopenmp=3Dlibgomp doesn't |clang -fopenmp=3Dlibgomp |work |doesn't work --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Wed Apr 11 18:53:45 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 47509F87FD3 for ; Wed, 11 Apr 2018 18:53:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id D41217F296 for ; Wed, 11 Apr 2018 18:53:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 988D6F87FD1; Wed, 11 Apr 2018 18:53:44 +0000 (UTC) Delivered-To: toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8636DF87FD0 for ; Wed, 11 Apr 2018 18:53:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 240B67F28F for ; Wed, 11 Apr 2018 18:53:44 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 6EBBC206FF for ; Wed, 11 Apr 2018 18:53:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w3BIrh2G084197 for ; Wed, 11 Apr 2018 18:53:43 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w3BIrhCx084196 for toolchain@FreeBSD.org; Wed, 11 Apr 2018 18:53:43 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 225330] clang bug can incorrectly enable or disable interrupts on amd64 Date: Wed, 11 Apr 2018 18:53:42 +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 Some People X-Bugzilla-Who: jtl@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: 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.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Apr 2018 18:53:45 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D225330 --- Comment #3 from Jonathan T. Looney --- The upstream bug is fixed in r329657 and r329673. Also, dim@ fixed a related bug that allows us to use -msahf as a workaround (committed in upstream r325446). Once those revisions appear in our tree, this bug should be fixed. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Thu Apr 12 20:09:02 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 46FA5F8CA5D for ; Thu, 12 Apr 2018 20:09:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id CE30585305 for ; Thu, 12 Apr 2018 20:09:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 8D4AFF8CA5B; Thu, 12 Apr 2018 20:09:01 +0000 (UTC) Delivered-To: toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 65093F8CA58 for ; Thu, 12 Apr 2018 20:09:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AFD20852E8 for ; Thu, 12 Apr 2018 20:09:00 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id E937156C1 for ; Thu, 12 Apr 2018 20:08:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w3CK8xpS006404 for ; Thu, 12 Apr 2018 20:08:59 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w3CK8xUM006403 for toolchain@FreeBSD.org; Thu, 12 Apr 2018 20:08:59 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 227438] clang -fopenmp=libgomp doesn't work Date: Thu, 12 Apr 2018 20:09:00 +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 Only Me X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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.25 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, 12 Apr 2018 20:09:02 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227438 Dimitry Andric changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dim@FreeBSD.org --- Comment #1 from Dimitry Andric --- Hmm, I don't think -fopenmp=3Dlibgomp is functional at all. It's probably = better to report this upstream, as I have no clue whatsoever if it is supposed to work. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Thu Apr 12 20:23:59 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7BAE1F8DDEE for ; Thu, 12 Apr 2018 20:23:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 156136889F for ; Thu, 12 Apr 2018 20:23:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id CD02EF8DDEA; Thu, 12 Apr 2018 20:23:58 +0000 (UTC) Delivered-To: toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BB9E1F8DDE8 for ; Thu, 12 Apr 2018 20:23:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6D45D6889B for ; Thu, 12 Apr 2018 20:23:58 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 9E3415972 for ; Thu, 12 Apr 2018 20:23:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w3CKNv5f044285 for ; Thu, 12 Apr 2018 20:23:57 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w3CKNvfl044284 for toolchain@FreeBSD.org; Thu, 12 Apr 2018 20:23:57 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 227438] clang -fopenmp=libgomp doesn't work Date: Thu, 12 Apr 2018 20:23:57 +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 Only Me X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: 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.25 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, 12 Apr 2018 20:23:59 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227438 --- Comment #2 from Dimitry Andric --- 22:19.11 dim: -fopenmp=3Dlibgomp is just like you compile without -fopenmp 22:19.24 ABataev: aha. 22:21.13 dim: It works. Clang uses only libomp interface and does= not rely on libgomp. -fopenmp=3Dlibgomp is used as a stub-like option 22:23.09 dim: Yes, if they want to use libgomp, they must use gcc --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Sat Apr 14 03:09:49 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 05E6DF9AB40 for ; Sat, 14 Apr 2018 03:09:49 +0000 (UTC) (envelope-from marklmi26-fbsd@yahoo.com) Received: from sonic307-4.consmr.mail.bf2.yahoo.com (sonic307-4.consmr.mail.bf2.yahoo.com [74.6.134.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3700677100 for ; Sat, 14 Apr 2018 03:09:48 +0000 (UTC) (envelope-from marklmi26-fbsd@yahoo.com) X-YMail-OSG: sp0mUtcVM1mJ4BzoKzgFy37nf1tdrst2_1PZFtiD0WqXStlXzkND8d09LcA0wsu _hLo0R_GZIMIFjvj5Rj5yDMSDmoNG11U_XOC00Lp9aSSt8iQSPW76sOy_DbfGdwDxzenXXCu3jcu _T4xi9z0ptcresnyaiEW785viqrudsRmjiTs7zPIzH9FXshQIUFLjAtK0ES34r6rIl5uQHeCpa3u TEClAS0FLdlT9DNNFnxV2G5TfwupS.bewuLTHKbah6IvVlBb6bC9B5k68i8ZIKixfzCK1Pi8aNDN 489QOSBq9q5z0k7I3Oh3B350MN3TerZ10UKp3hmJucDiON6cfTXsQoAnljvqMaQ_MLJgngxKUhTT l14app0PK7jVeU3BviyxAs8K8oMXkRhBX7E0ijVJz46BTjClGWvHPjb42KehZo3ZsSudYSxyecBd vTUnBiKcCdbKwjchrKlOD8_XTAdQCKfewGPFsKGQUKJIZJya8CuLGpK6FmHhOXVxXE06IXDticKO NxPeGmVbjR38PWxnVWlV_NByYy_VbKosusERb Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.bf2.yahoo.com with HTTP; Sat, 14 Apr 2018 03:09:47 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.25]) ([76.115.7.162]) by smtp418.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID f6bb6a77d9f4ead9d4db9db8a8023391; Sat, 14 Apr 2018 03:09:44 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Subject: Re: svn commit: r466933 - head/devel/amd64-binutils Message-Id: <45734867-9598-4C2A-916F-A09B91B7BFD5@yahoo.com> Date: Fri, 13 Apr 2018 20:09:41 -0700 To: kan@FreeBSD.org, svn-ports-head@freebsd.org, freebsd-toolchain@freebsd.org, FreeBSD Ports X-Mailer: Apple Mail (2.3445.6.18) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Apr 2018 03:09:49 -0000 > Author: kan > Date: Tue Apr 10 01:00:30 2018 > New Revision: 466933 > URL: > https://svnweb.freebsd.org/changeset/ports/466933 > > > Log: > Catch up with changed binutils prefix > > . . . > -BUTARGET= x86_64-${OPSYS:tl} > +BUTARGET= x86_64-unknown-${OPSYS:tl}${OSREL} Should something have been done to force the port to rebuild after a svnlite update picks up this change? The change has significant file name differences in what would be installed but poudriere bulk did not classify my reference to devel/amd64-xtoolchain-gcc as needing to update devel/amd64-binutils . === Mark Millard marklmi26-fbsd at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-toolchain@freebsd.org Sat Apr 14 04:27:27 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 44140FA1C3B for ; Sat, 14 Apr 2018 04:27:27 +0000 (UTC) (envelope-from marklmi26-fbsd@yahoo.com) Received: from sonic307-12.consmr.mail.ne1.yahoo.com (sonic307-12.consmr.mail.ne1.yahoo.com [66.163.190.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B83E186043 for ; Sat, 14 Apr 2018 04:27:26 +0000 (UTC) (envelope-from marklmi26-fbsd@yahoo.com) X-YMail-OSG: lQw3i0oVM1lptrVWFwE2QW3gleR7HUQzkv34fMZFGctF4l_pdkvXxl3nVtLZMeT cJNbmK9zYvm..BQ.zQR4yu7LGhRwNVfumpHIXw3SL8mTNR8kJDMOtwIpOEvWLhvH3Ryn67s4N5eK beDp9jJOinFbuwbDcZ_IQOsxY0JZhIcQgVyDUx6svYtNfBkTEadxMFSQSFyhhTjUKdCirqKKRu8i wpVpDK2fqo0M.cvJl7.D3VFLyrzThKLy90zv1gD49goECmiok_3Ii3DB8GdSebJNUK4SNgxZMkiN p9_hpeze6mIPAbBZuAXuXITvGtygXSJkNJsaXvl_6PGY2zN5G45hAMooVJP3f7Kxw2ztvKuIBvja UPUyUXdWM7p0t.gLjtVJ6wVV0jBRacRBkWQ_3w5ourR_toHTEFQsYjeVRk1V9k8poXaXAwsN0m6l zPM9wBOPXTkf8c2u3vWx.rThFRFwqjXpGxrAifuGXgtZYDFE.QXgL_1LxJCkoRWpKAmpSn5aZGhx LORFo_5_.mybu8qdT4yz4Pjb.vyNnTpQuwTbt Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.ne1.yahoo.com with HTTP; Sat, 14 Apr 2018 04:27:20 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.25]) ([76.115.7.162]) by smtp418.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 997985bccac3710255fce95504baa589; Sat, 14 Apr 2018 04:17:08 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Subject: Re: svn commit: r466933 - head/devel/amd64-binutils Date: Fri, 13 Apr 2018 21:17:07 -0700 References: <45734867-9598-4C2A-916F-A09B91B7BFD5@yahoo.com> To: kan@FreeBSD.org, svn-ports-head@freebsd.org, freebsd-toolchain@freebsd.org, FreeBSD Ports In-Reply-To: <45734867-9598-4C2A-916F-A09B91B7BFD5@yahoo.com> Message-Id: X-Mailer: Apple Mail (2.3445.6.18) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Apr 2018 04:27:27 -0000 On 2018-Apr-13, at 8:09 PM, Mark Millard = wrote: >> Author: kan >> Date: Tue Apr 10 01:00:30 2018 >> New Revision: 466933 >> URL:=20 >> https://svnweb.freebsd.org/changeset/ports/466933 >>=20 >>=20 >> Log: >> Catch up with changed binutils prefix >>=20 >> . . . >> -BUTARGET=3D x86_64-${OPSYS:tl} >> +BUTARGET=3D x86_64-unknown-${OPSYS:tl}${OSREL} >=20 > Should something have been done to force the port > to rebuild after a svnlite update picks up this > change? The change has significant file name > differences in what would be installed but poudriere > bulk did not classify my reference to > devel/amd64-xtoolchain-gcc as needing to update > devel/amd64-binutils . Forcing devel/amd64-binutils to build worked. But afterwards devel/amd64-gcc fails to build because: . . . =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> amd64-gcc-6.3.0_3 depends on executable: x86_64-freebsd-as = - not found =3D=3D=3D> Installing existing package = /packages/All/amd64-binutils-2.30_2,1.txz [FBSDFSSDjailVariant] Installing amd64-binutils-2.30_2,1... [FBSDFSSDjailVariant] Extracting amd64-binutils-2.30_2,1: .......... = done =3D=3D=3D> amd64-gcc-6.3.0_3 depends on executable: x86_64-freebsd-as = - not found *** Error code 1 Stop. make: stopped in /usr/ports/devel/amd64-gcc =3D>> Cleaning up wrkdir =3D=3D=3D> Cleaning for amd64-gcc-6.3.0_3 build of devel/amd64-gcc | amd64-gcc-6.3.0_3 ended at Fri Apr 13 = 20:58:39 PDT 2018 build time: 00:01:16 !!! build failure encountered !!! This looks to be because of BU_PREFIX in devel/amd64-gcc/Makefile : GCC_TARGET=3D x86_64-unknown-${OPSYS:tl}${OSREL} BU_PREFIX=3D x86_64-${OPSYS:tl} devel/powerpc64-gcc (the master) shows the normal structure is: .if empty(GCC_TARGET) # We are building for a FreeBSD target GCC_TARGET?=3D ${PKGNAMEPREFIX}unknown-${OPSYS:tl}${OSREL} BU_PREFIX?=3D ${PKGNAMEPREFIX}unknown-${OPSYS:tl}${OSREL} EXTRA_PATCHES+=3D ${FILESDIR}/freebsd-format-extensions . . . amd64 does need the x86_64- part of what it has but the suffix after that needs the unknown-${OPSYS:tl}${OSREL} part as well. Again, forcing an update after a svn update picks up such a change is likely appropriate. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-toolchain@freebsd.org Sat Apr 14 12:07:27 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B8602F9A692 for ; Sat, 14 Apr 2018 12:07:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 486D76A250 for ; Sat, 14 Apr 2018 12:07:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 07919F9A691; Sat, 14 Apr 2018 12:07:27 +0000 (UTC) Delivered-To: toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D6752F9A68C for ; Sat, 14 Apr 2018 12:07:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6F7336A24B for ; Sat, 14 Apr 2018 12:07:26 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 8E4A22198A for ; Sat, 14 Apr 2018 12:07:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w3EC7Phi031981 for ; Sat, 14 Apr 2018 12:07:25 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w3EC7Pp1031972 for toolchain@FreeBSD.org; Sat, 14 Apr 2018 12:07:25 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 225330] clang bug can incorrectly enable or disable interrupts on amd64 Date: Sat, 14 Apr 2018 12:07:24 +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 Some People X-Bugzilla-Who: commit-hook@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: 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.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Apr 2018 12:07:28 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D225330 --- Comment #4 from commit-hook@freebsd.org --- A commit references this bug: Author: dim Date: Sat Apr 14 12:07:07 UTC 2018 New revision: 332501 URL: https://svnweb.freebsd.org/changeset/base/332501 Log: Pull in r325446 from upstream clang trunk (by me): [X86] Add 'sahf' CPU feature to frontend Summary: Make clang accept `-msahf` (and `-mno-sahf`) flags to activate the `+sahf` feature for the backend, for bug 36028 (Incorrect use of pushf/popf enables/disables interrupts on amd64 kernels). This was originally submitted in bug 36037 by Jonathan Looney . As described there, GCC also uses `-msahf` for this feature, and the backend already recognizes the `+sahf` feature. All that is needed is to teach clang to pass this on to the backend. The mapping of feature support onto CPUs may not be complete; rather, it was chosen to match LLVM's idea of which CPUs support this feature (see lib/Target/X86/X86.td). I also updated the affected test case (CodeGen/attr-target-x86.c) to match the emitted output. Reviewers: craig.topper, coby, efriedma, rsmith Reviewed By: craig.topper Subscribers: emaste, cfe-commits Differential Revision: https://reviews.llvm.org/D43394 Pull in r328944 from upstream llvm trunk (by Chandler Carruth): [x86] Expose more of the condition conversion routines in the public API for X86's instruction information. I've now got a second patch under review that needs these same APIs. This bit is nicely orthogonal and obvious, so landing it. NFC. Pull in r329414 from upstream llvm trunk (by Craig Topper): [X86] Merge itineraries for CLC, CMC, and STC. These are very simple flag setting instructions that appear to only be a single uop. They're unlikely to need this separation. Pull in r329657 from upstream llvm trunk (by Chandler Carruth): [x86] Introduce a pass to begin more systematically fixing PR36028 and similar issues. The key idea is to lower COPY nodes populating EFLAGS by scanning the uses of EFLAGS and introducing dedicated code to preserve the necessary state in a GPR. In the vast majority of cases, these uses are cmovCC and jCC instructions. For such cases, we can very easily save and restore the necessary information by simply inserting a setCC into a GPR where the original flags are live, and then testing that GPR directly to feed the cmov or conditional branch. However, things are a bit more tricky if arithmetic is using the flags. This patch handles the vast majority of cases that seem to come up in practice: adc, adcx, adox, rcl, and rcr; all without taking advantage of partially preserved EFLAGS as LLVM doesn't currently model that at all. There are a large number of operations that techinaclly observe EFLAGS currently but shouldn't in this case -- they typically are using DF. Currently, they will not be handled by this approach. However, I have never seen this issue come up in practice. It is already pretty rare to have these patterns come up in practical code with LLVM. I had to resort to writing MIR tests to cover most of the logic in this pass already. I suspect even with its current amount of coverage of arithmetic users of EFLAGS it will be a significant improvement over the current use of pushf/popf. It will also produce substantially faster code in most of the common patterns. This patch also removes all of the old lowering for EFLAGS copies, and the hack that forced us to use a frame pointer when EFLAGS copies were found anywhere in a function so that the dynamic stack adjustment wasn't a problem. None of this is needed as we now lower all of these copies directly in MI and without require stack adjustments. Lots of thanks to Reid who came up with several aspects of this approach, and Craig who helped me work out a couple of things tripping me up while working on this. Differential Revision: https://reviews.llvm.org/D45146 Pull in r329673 from upstream llvm trunk (by Chandler Carruth): [x86] Model the direction flag (DF) separately from the rest of EFLAGS. This cleans up a number of operations that only claimed te use EFLAGS due to using DF. But no instructions which we think of us setting EFLAGS actually modify DF (other than things like popf) and so this needlessly creates uses of EFLAGS that aren't really there. In fact, DF is so restrictive it is pretty easy to model. Only STD, CLD, and the whole-flags writes (WRFLAGS and POPF) need to model this. I've also somewhat cleaned up some of the flag management instruction definitions to be in the correct .td file. Adding this extra register also uncovered a failure to use the correct datatype to hold X86 registers, and I've corrected that as necessary here. Differential Revision: https://reviews.llvm.org/D45154 Together, these should ensure clang does not use pushf/popf sequences to save and restore flags, avoiding problems with unrelated flags (such as the interrupt flag) being restored unexpectedly. Requested by: jtl PR: 225330 MFC after: 1 week Changes: head/contrib/llvm/include/llvm/CodeGen/MachineBasicBlock.h head/contrib/llvm/lib/CodeGen/MachineBasicBlock.cpp head/contrib/llvm/lib/Target/X86/Disassembler/X86Disassembler.cpp head/contrib/llvm/lib/Target/X86/X86.h head/contrib/llvm/lib/Target/X86/X86FlagsCopyLowering.cpp head/contrib/llvm/lib/Target/X86/X86ISelLowering.cpp head/contrib/llvm/lib/Target/X86/X86ISelLowering.h head/contrib/llvm/lib/Target/X86/X86InstrCompiler.td head/contrib/llvm/lib/Target/X86/X86InstrInfo.cpp head/contrib/llvm/lib/Target/X86/X86InstrInfo.h head/contrib/llvm/lib/Target/X86/X86InstrInfo.td head/contrib/llvm/lib/Target/X86/X86InstrSystem.td head/contrib/llvm/lib/Target/X86/X86RegisterInfo.td head/contrib/llvm/lib/Target/X86/X86Schedule.td head/contrib/llvm/lib/Target/X86/X86ScheduleAtom.td head/contrib/llvm/lib/Target/X86/X86TargetMachine.cpp head/contrib/llvm/tools/clang/include/clang/Driver/Options.td head/contrib/llvm/tools/clang/lib/Basic/Targets/X86.cpp head/contrib/llvm/tools/clang/lib/Basic/Targets/X86.h head/lib/clang/freebsd_cc_version.h head/lib/clang/libllvm/Makefile --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Sat Apr 14 12:26:51 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D00A3F9C332 for ; Sat, 14 Apr 2018 12:26:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 660336E726 for ; Sat, 14 Apr 2018 12:26:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 225E4F9C32B; Sat, 14 Apr 2018 12:26:51 +0000 (UTC) Delivered-To: toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0F58FF9C32A for ; Sat, 14 Apr 2018 12:26:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A02066E704 for ; Sat, 14 Apr 2018 12:26:50 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id DD13521C2F for ; Sat, 14 Apr 2018 12:26:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w3ECQnGm053545 for ; Sat, 14 Apr 2018 12:26:49 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w3ECQnfr053544 for toolchain@FreeBSD.org; Sat, 14 Apr 2018 12:26:49 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 225330] clang bug can incorrectly enable or disable interrupts on amd64 Date: Sat, 14 Apr 2018 12:26:49 +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 Some People X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: dim@FreeBSD.org X-Bugzilla-Flags: mfc-stable11+ X-Bugzilla-Changed-Fields: bug_status flagtypes.name 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.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Apr 2018 12:26:52 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D225330 Dimitry Andric changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |In Progress Flags| |mfc-stable11+ Assignee|toolchain@FreeBSD.org |dim@FreeBSD.org --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Sat Apr 14 13:40:05 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A94B6FA1435 for ; Sat, 14 Apr 2018 13:40:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 64DCA7FFA7 for ; Sat, 14 Apr 2018 13:40:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 1BD29FA142E; Sat, 14 Apr 2018 13:40:05 +0000 (UTC) Delivered-To: toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0A385FA142D for ; Sat, 14 Apr 2018 13:40:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9F5697FF9F for ; Sat, 14 Apr 2018 13:40:04 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id C9F5422591 for ; Sat, 14 Apr 2018 13:40:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w3EDe3cV060270 for ; Sat, 14 Apr 2018 13:40:03 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w3EDe3DF060268 for toolchain@FreeBSD.org; Sat, 14 Apr 2018 13:40:03 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 225330] clang bug can incorrectly enable or disable interrupts on amd64 Date: Sat, 14 Apr 2018 13:40:03 +0000 X-Bugzilla-Reason: CC 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 Some People X-Bugzilla-Who: rgrimes@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: dim@FreeBSD.org X-Bugzilla-Flags: mfc-stable11+ X-Bugzilla-Changed-Fields: 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.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Apr 2018 13:40:05 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D225330 Rodney W. Grimes changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |toolchain@FreeBSD.org --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-toolchain@freebsd.org Sat Apr 14 14:57:45 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9F541FA5ECB for ; Sat, 14 Apr 2018 14:57:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 1F6196ECED for ; Sat, 14 Apr 2018 14:57:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id D52BFFA5ECA; Sat, 14 Apr 2018 14:57:44 +0000 (UTC) Delivered-To: toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 95ED3FA5EC9 for ; Sat, 14 Apr 2018 14:57:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2D8466ECE0 for ; Sat, 14 Apr 2018 14:57:44 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 1BA1423027 for ; Sat, 14 Apr 2018 14:57:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w3EEvgmu053755 for ; Sat, 14 Apr 2018 14:57:42 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w3EEvgBZ053754 for toolchain@FreeBSD.org; Sat, 14 Apr 2018 14:57:42 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 225330] clang bug can incorrectly enable or disable interrupts on amd64 Date: Sat, 14 Apr 2018 14:57:42 +0000 X-Bugzilla-Reason: CC 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 Some People X-Bugzilla-Who: commit-hook@freebsd.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: dim@FreeBSD.org X-Bugzilla-Flags: mfc-stable11+ 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.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Apr 2018 14:57:45 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D225330 --- Comment #5 from commit-hook@freebsd.org --- A commit references this bug: Author: dim Date: Sat Apr 14 14:57:34 UTC 2018 New revision: 332503 URL: https://svnweb.freebsd.org/changeset/base/332503 Log: Revert r332501 for now, as it can cause build failures on i386. Reported upstream as . Reported by: emaste, ci.freebsd.org PR: 225330 Changes: head/contrib/llvm/include/llvm/CodeGen/MachineBasicBlock.h head/contrib/llvm/lib/CodeGen/MachineBasicBlock.cpp head/contrib/llvm/lib/Target/X86/Disassembler/X86Disassembler.cpp head/contrib/llvm/lib/Target/X86/X86.h head/contrib/llvm/lib/Target/X86/X86FlagsCopyLowering.cpp head/contrib/llvm/lib/Target/X86/X86ISelLowering.cpp head/contrib/llvm/lib/Target/X86/X86ISelLowering.h head/contrib/llvm/lib/Target/X86/X86InstrCompiler.td head/contrib/llvm/lib/Target/X86/X86InstrInfo.cpp head/contrib/llvm/lib/Target/X86/X86InstrInfo.h head/contrib/llvm/lib/Target/X86/X86InstrInfo.td head/contrib/llvm/lib/Target/X86/X86InstrSystem.td head/contrib/llvm/lib/Target/X86/X86RegisterInfo.td head/contrib/llvm/lib/Target/X86/X86Schedule.td head/contrib/llvm/lib/Target/X86/X86ScheduleAtom.td head/contrib/llvm/lib/Target/X86/X86TargetMachine.cpp head/contrib/llvm/tools/clang/include/clang/Driver/Options.td head/contrib/llvm/tools/clang/lib/Basic/Targets/X86.cpp head/contrib/llvm/tools/clang/lib/Basic/Targets/X86.h head/lib/clang/freebsd_cc_version.h head/lib/clang/libllvm/Makefile --=20 You are receiving this mail because: You are on the CC list for the bug.=