From owner-freebsd-toolchain@freebsd.org Sun Jan 22 03:51:50 2017 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 505DACAECF8 for ; Sun, 22 Jan 2017 03:51: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 mx1.freebsd.org (Postfix) with ESMTPS id 3FFE892A for ; Sun, 22 Jan 2017 03:51:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v0M3pn5N020927 for ; Sun, 22 Jan 2017 03:51:50 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 214971] clang + lld 3.9.1: Unhandled relocation 1031 Date: Sun, 22 Jan 2017 03:51:50 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: emaste@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Jan 2017 03:51:50 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214971 --- Comment #3 from Ed Maste --- See also thread at https://lists.freebsd.org/pipermail/freebsd-arm/2017-January/015257.html --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Sun Jan 22 12:46:32 2017 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C8434CB06C2 for ; Sun, 22 Jan 2017 12:46:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9CDC726E for ; Sun, 22 Jan 2017 12:46:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v0MCkWwk021586 for ; Sun, 22 Jan 2017 12:46:32 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 216229] head: (e.g. -r312009): kernel-toolchain: bootstrap-tools stage libllvmminimal can fail for lack of -I options (e.g., from scratch kernel-toolchain) Date: Sun, 22 Jan 2017 12:46: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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me 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: X-Bugzilla-Changed-Fields: cc assigned_to bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Jan 2017 12:46:32 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216229 Dimitry Andric changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dim@FreeBSD.org Assignee|freebsd-toolchain@FreeBSD.o |dim@FreeBSD.org |rg | Status|New |In Progress --- Comment #1 from Dimitry Andric --- (In reply to Mark Millard from comment #0) > So the lines from /usr/src/lib/clang/llvm.build.mk for CFLAGS: >=20 > CFLAGS+=3D -I${SRCTOP}/lib/clang/include > CFLAGS+=3D -I${LLVM_SRCS}/include > CFLAGS+=3D -DLLVM_ON_UNIX > CFLAGS+=3D -DLLVM_ON_FREEBSD > CFLAGS+=3D -D__STDC_LIMIT_MACROS > CFLAGS+=3D -D__STDC_CONSTANT_MACROS > #CFLAGS+=3D -DNDEBUG > . . . > CFLAGS+=3D -DLLVM_DEFAULT_TARGET_TRIPLE=3D\"${TARGET_TRIPLE}\" > CFLAGS+=3D -DLLVM_HOST_TRIPLE=3D\"${BUILD_TRIPLE}\" > CFLAGS+=3D -DDEFAULT_SYSROOT=3D\"${TOOLS_PREFIX}\" >=20 > do not contribute to the C++ compiles for libllvmminimal. This is incorrect: in share/mk/sys.mk, CXXFLAGS are derived from CFLAGS, wi= th the following rule: CXXFLAGS ?=3D=20=20=20=20=20 ${CFLAGS:N-std=3D*:N-Wnested-externs:N-W*-prototypes:N-Wno-pointer-sign:N-W= old-style-definition} E.g. -std flags and some others are filtered out. > The lack of -I definitions for C++ ends up with build failures > such as below (from a first-time kernel-toolchain example): I have seen such failures before, and they were almost always caused by set= ting CFLAGS or CXXFLAGS incorrectly in /etc/make.conf, e.g. doing: CFLAGS=3D -DFOO CXXFLAGS=3D -DBAR while one should use the +=3D operator instead, e.g.: CFLAGS+=3D -DFOO CXXFLAGS+=3D -DBAR Can you please post your make.conf? --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Sun Jan 22 18:26:40 2017 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 23412CBCC90 for ; Sun, 22 Jan 2017 18:26:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 12674210 for ; Sun, 22 Jan 2017 18:26:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v0MIQdVS023506 for ; Sun, 22 Jan 2017 18:26:39 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 216316] objcopy in 11 appears to have a regression compared to the version in 10 Date: Sun, 22 Jan 2017 18:26:40 +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.0-STABLE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: pete@twisted.org.uk X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Jan 2017 18:26:40 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216316 --- Comment #2 from pete@twisted.org.uk --- (In reply to Ed Maste from comment #1) Slightly too big to attach (7 meg uncompressed) so have uploaded here, xz compressed: http://www.twisted.org.uk/~pete/ipxe.pxe.tmp.xz --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Mon Jan 23 15:27:53 2017 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9689DCBE7C3 for ; Mon, 23 Jan 2017 15:27:53 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: from mail-qt0-x22c.google.com (mail-qt0-x22c.google.com [IPv6:2607:f8b0:400d:c0d::22c]) (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 4F99A1E89 for ; Mon, 23 Jan 2017 15:27:53 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: by mail-qt0-x22c.google.com with SMTP id l7so130269854qtd.1 for ; Mon, 23 Jan 2017 07:27:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hardenedbsd-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=Wb8kyVotEVYIBvQSYnGM1IV8k3IcIge0bfT3hafX1ww=; b=HKsEeRtSiSnNSQkineMeqm7obu7TgtaTjH98vPC6Fr5+mCUzSldRBJRVq8HSUyG+Uv qSL8wf92nG/4eM+hp6iPh9dztTf5M0OJ3bQSHoqYfzC0XHlHvrfcS7DRtmnhrFfmfeFz AWl293OzH5tdSiuxgwD8OwBmmb3e7N83L4/qoQqryCI4hs/GoxR28VbJuHc81T3jhTSC CcKGD0fMWPzltChjfCXWVFpBNeiaSGo09rbQ7evjFuqQiBWMmM+CBh0fI6fqEFmBBoLJ dIGEAxk4chrBpREMFYkTpPImsaetJRgQYKVMJ2xjIsz4jrE3KpW0Jy3uxLReoVZC+mkp Gsrg== 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:subject:message-id:mime-version :content-disposition:user-agent; bh=Wb8kyVotEVYIBvQSYnGM1IV8k3IcIge0bfT3hafX1ww=; b=rwA5DmSRvjU8Pe/BV6IfQFGY2AS9a47GtGz/LIfKfyhhLvYIvHE6QL3nrl14ujlzhm LJpqDaWttJsw2dyxZsWIRbrKB9J4jbUMrDVnfocjRd9V6R85MKc/rx8L5PzKJgN3MlYZ Tf33MuyKzq0PCHOecVViu6TxZt1agEzvIsHznB3r7wSkiZiducJJqd0rdmRpWkZapF9c R7vp2dAQtYc/oLjr9A/53eE47dPAhbTTlbffJLS0vOlwFhDuul10kvgcmmtwZHBTUli5 seBWFM8Beca0A83Ap5cmZZNuGaoDWcoM5fd6Z7B6WIP/F241CLC+2gxDwX1uiLn7X1T+ YnMQ== X-Gm-Message-State: AIkVDXLLQKSIfFiwBOus9B3e3NXirs3KW+z8LXNwlU7wJQKs3lUrntc6C/dmkt5zfCRw2IftKWCTayUJJIW8PRznnhAgG0VryIThQHrrhLfkaxvv9DOpL+Ppb2v4ebYJlm/BX7dUYvx9oFOvzZYbXmesQVXSYuvX53BMZgAUyf4vjjhxWtfWMRDRVGQTkwZtiuRsYnq+0kI= X-Received: by 10.55.161.75 with SMTP id k72mr14195768qke.193.1485185272201; Mon, 23 Jan 2017 07:27:52 -0800 (PST) Received: from mutt-hardenedbsd ([63.88.83.66]) by smtp.gmail.com with ESMTPSA id m85sm13364929qkl.28.2017.01.23.07.27.51 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 23 Jan 2017 07:27:51 -0800 (PST) Date: Mon, 23 Jan 2017 10:27:51 -0500 From: Shawn Webb To: freebsd-toolchain@freebsd.org Subject: [clang/lld 4.0.0 arm64] link failure in sys/boot/efi/loader Message-ID: <20170123152751.szrkvk73a2wwp2ee@mutt-hardenedbsd> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="quuuzbot47bv4pk2" Content-Disposition: inline X-Operating-System: FreeBSD mutt-hardenedbsd 12.0-CURRENT-HBSD FreeBSD 12.0-CURRENT-HBSD X-PGP-Key: http://pgp.mit.edu/pks/lookup?op=vindex&search=0x6A84658F52456EEE User-Agent: NeoMutt/20161126 (1.7.1) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Jan 2017 15:27:53 -0000 --quuuzbot47bv4pk2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Here's an interesting failure I'm seeing on HardenedBSD with clang 4.0.0 bits mixed in: =3D=3D=3D=3D BEGIN LOG =3D=3D=3D=3D cc -target aarch64-unknown-freebsd12.0 --sysroot=3D/usr/obj/usr/src/tmp -B/= usr -O2 -pipe -DHARDENEDBSD -DSKEIN_LOOP=3D111 -I/usr/src/sys/boot/efi/load= er/../../arm64/libarm64 -msoft-float -mgeneral-regs-only -I/usr/src/sys/boo= t/efi/loader -I/usr/src/sys/boot/efi/loader/arch/arm64 -I/usr/src/sys/boot/= efi/loader/../include -I/usr/src/sys/boot/efi/loader/../include/arm64 -I/us= r/src/sys/boot/efi/loader/../../../contrib/dev/acpica/include -I/usr/src/sy= s/boot/efi/loader/../../.. -I/usr/src/sys/boot/efi/loader/../../i386/libi38= 6 -I/usr/src/sys/boot/efi/loader/../../zfs -I/usr/src/sys/boot/efi/loader/.= =2E/../../cddl/boot/zfs -I/usr/src/sys/boot/efi/loader/../../../crypto/skei= n -DEFI_ZFS_BOOT -DNO_PCI -DEFI -DSMBIOS_SERIAL_NUMBERS -DBOOT_FORTH -I/usr= /src/sys/boot/efi/loader/../../ficl -I/usr/src/sys/boot/efi/loader/../../fi= cl/aarch64 -I/usr/src/sys/boot/efi/loader/../../fdt -I/usr/obj/usr/src/sys/= boot/efi/loader/../../fdt -DLOADER_FDT_SUPPORT -DLOADER_DISK_SUPPORT -DLOAD= ER_GPT_SUPPORT -DLOADER_MBR_SUPPORT -I/usr/src/sys/boot/ficl -I/usr/src/sys= /boot/ficl/aarch64 -I/usr/src/sys/boot/ficl/../common -I/usr/src/sys/boot/e= fi/loader/../../common -ffreestanding -Wformat -msoft-float -fshort-wchar -= fPIC -g -DHAVE_LIBRESSL -std=3Dgnu99 -Wsystem-headers -Werror -Wall -Wno-fo= rmat-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes = -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -Wno-empty-body -Wno-s= tring-plus-int -Wno-unused-const-variable -Wno-tautological-compare -Wno-un= used-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-convers= ion -Wno-unused-local-typedef -Wno-address-of-packed-member -Qunused-argume= nts -Wl,-T/usr/src/sys/boot/efi/loader/arch/arm64/ldscript.arm64 -Wl,-Bsym= bolic -shared -nostdlib -Wl,-z,relro -Wl,-z,now -o loader.sym.full autoload= =2Eo bootinfo.o conf.o copy.o devicename.o main.o self_reloc.o smbios.o ver= s.o zfs.o skein.o skein_block.o exec.o start.o cache.o boot.o commands.o co= nsole.o devopen.o interp.o interp_backslash.o interp_parse.o ls.o misc.o mo= dule.o panic.o load_elf64.o reloc_elf64.o disk.o part.o crc32.o bcache.o in= terp_forth.o /usr/obj/usr/src/sys/boot/efi/loader/../../ficl/libficl.a /us= r/obj/usr/src/sys/boot/efi/loader/../libefi/libefi.a /usr/obj/usr/src/sys/b= oot/efi/loader/../../fdt/libfdt.a /usr/obj/usr/src/sys/boot/efi/loader/../.= =2E/efi/fdt/libefi_fdt.a /usr/obj/usr/src/sys/boot/efi/loader/../../../../l= ib/libstand/libstand.a /usr/bin/ld: error: Section has flags incompatible with others with the sam= e name autoload.o:(.text) /usr/bin/ld: error: /usr/src/sys/boot/ficl/ficl.c:(.rodata+0x0): can't crea= te dynamic relocation R_AARCH64_ABS64 against local symbol in readonly segm= ent defined in /usr/obj/usr/src/sys/boot/efi/loader/../../ficl/libficl.a(fi= cl.o) /usr/bin/ld: error: /usr/src/sys/boot/ficl/ficl.c:(.rodata+0x8): can't crea= te dynamic relocation R_AARCH64_ABS64 against local symbol in readonly segm= ent defined in /usr/obj/usr/src/sys/boot/efi/loader/../../ficl/libficl.a(fi= cl.o) /usr/bin/ld: error: /usr/src/sys/boot/ficl/ficl.c:(.rodata+0x10): can't cre= ate dynamic relocation R_AARCH64_ABS64 against local symbol in readonly seg= ment defined in /usr/obj/usr/src/sys/boot/efi/loader/../../ficl/libficl.a(f= icl.o) /usr/bin/ld: error: /usr/src/sys/boot/ficl/ficl.c:(.rodata+0x18): can't cre= ate dynamic relocation R_AARCH64_ABS64 against local symbol in readonly seg= ment defined in /usr/obj/usr/src/sys/boot/efi/loader/../../ficl/libficl.a(f= icl.o) /usr/bin/ld: error: /usr/src/sys/boot/ficl/ficl.c:(.rodata+0x20): can't cre= ate dynamic relocation R_AARCH64_ABS64 against local symbol in readonly seg= ment defined in /usr/obj/usr/src/sys/boot/efi/loader/../../ficl/libficl.a(f= icl.o) /usr/bin/ld: error: /usr/src/sys/boot/ficl/ficl.c:(.rodata+0x28): can't cre= ate dynamic relocation R_AARCH64_ABS64 against local symbol in readonly seg= ment defined in /usr/obj/usr/src/sys/boot/efi/loader/../../ficl/libficl.a(f= icl.o) /usr/bin/ld: error: /usr/src/sys/boot/ficl/words.c:(.rodata+0x0): can't cre= ate dynamic relocation R_AARCH64_ABS64 against local symbol in readonly seg= ment defined in /usr/obj/usr/src/sys/boot/efi/loader/../../ficl/libficl.a(w= ords.o) /usr/bin/ld: error: /usr/src/sys/boot/ficl/words.c:(.rodata+0x8): can't cre= ate dynamic relocation R_AARCH64_ABS64 against local symbol in readonly seg= ment defined in /usr/obj/usr/src/sys/boot/efi/loader/../../ficl/libficl.a(w= ords.o) /usr/bin/ld: error: /usr/src/sys/boot/ficl/words.c:(.rodata+0x10): can't cr= eate dynamic relocation R_AARCH64_ABS64 against local symbol in readonly se= gment defined in /usr/obj/usr/src/sys/boot/efi/loader/../../ficl/libficl.a(= words.o) /usr/bin/ld: error: /usr/src/sys/boot/ficl/words.c:(.rodata+0x18): can't cr= eate dynamic relocation R_AARCH64_ABS64 against local symbol in readonly se= gment defined in /usr/obj/usr/src/sys/boot/efi/loader/../../ficl/libficl.a(= words.o) /usr/bin/ld: error: /usr/src/sys/boot/ficl/words.c:(.rodata+0x20): can't cr= eate dynamic relocation R_AARCH64_ABS64 against local symbol in readonly se= gment defined in /usr/obj/usr/src/sys/boot/efi/loader/../../ficl/libficl.a(= words.o) /usr/bin/ld: error: /usr/src/sys/boot/ficl/words.c:(.rodata+0x28): can't cr= eate dynamic relocation R_AARCH64_ABS64 against local symbol in readonly se= gment defined in /usr/obj/usr/src/sys/boot/efi/loader/../../ficl/libficl.a(= words.o) /usr/bin/ld: error: /usr/src/sys/boot/ficl/words.c:(.rodata+0x30): can't cr= eate dynamic relocation R_AARCH64_ABS64 against local symbol in readonly se= gment defined in /usr/obj/usr/src/sys/boot/efi/loader/../../ficl/libficl.a(= words.o) /usr/bin/ld: error: /usr/src/sys/boot/ficl/words.c:(.rodata+0x38): can't cr= eate dynamic relocation R_AARCH64_ABS64 against local symbol in readonly se= gment defined in /usr/obj/usr/src/sys/boot/efi/loader/../../ficl/libficl.a(= words.o) /usr/bin/ld: error: /usr/src/sys/boot/ficl/words.c:(.rodata+0x40): can't cr= eate dynamic relocation R_AARCH64_ABS64 against local symbol in readonly se= gment defined in /usr/obj/usr/src/sys/boot/efi/loader/../../ficl/libficl.a(= words.o) /usr/bin/ld: error: /usr/src/sys/boot/ficl/words.c:(.rodata+0x48): can't cr= eate dynamic relocation R_AARCH64_ABS64 against local symbol in readonly se= gment defined in /usr/obj/usr/src/sys/boot/efi/loader/../../ficl/libficl.a(= words.o) /usr/bin/ld: error: /usr/src/sys/boot/ficl/words.c:(.rodata+0x50): can't cr= eate dynamic relocation R_AARCH64_ABS64 against local symbol in readonly se= gment defined in /usr/obj/usr/src/sys/boot/efi/loader/../../ficl/libficl.a(= words.o) /usr/bin/ld: error: /usr/src/sys/boot/ficl/words.c:(.rodata+0x58): can't cr= eate dynamic relocation R_AARCH64_ABS64 against local symbol in readonly se= gment defined in /usr/obj/usr/src/sys/boot/efi/loader/../../ficl/libficl.a(= words.o) /usr/bin/ld: error: /usr/src/sys/boot/ficl/words.c:(.rodata+0x60): can't cr= eate dynamic relocation R_AARCH64_ABS64 against local symbol in readonly se= gment defined in /usr/obj/usr/src/sys/boot/efi/loader/../../ficl/libficl.a(= words.o) /usr/bin/ld: error: too many errors emitted, stopping now (use -error-limit= =3D0 to see all errors) cc: error: linker command failed with exit code 1 (use -v to see invocation) =3D=3D=3D=3D END LOG =3D=3D=3D=3D --=20 Shawn Webb Cofounder and Security Engineer HardenedBSD GPG Key ID: 0x6A84658F52456EEE GPG Key Fingerprint: 2ABA B6BD EF6A F486 BE89 3D9E 6A84 658F 5245 6EEE --quuuzbot47bv4pk2 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEKrq2ve9q9Ia+iT2eaoRlj1JFbu4FAliGIPQACgkQaoRlj1JF bu6PgRAAhToF/01z0ZgKtvPYToCAZ6zdVQAVEIinxzTuoLSIPhbbZmaklOHmB2CI OGi5eafIFqcQ8XfNARIevytXkMcVSrXWxipt9gkPcYof/z8HmIdMLVPsyk6SsCPZ Zdt+oT7rVzrGCUO5aBuDfF3CdTKrH0IrHbCVX/kZN6eeibSko4tjBX8Dcw/p10pM YweEiDgXdeMcurucPzVKg6PLSvuDj6UvFIc165xot91tPn73NRovxKvTlDmnavOU GYa3vKQSGS4JyUXZg3mnkmEnAW+Iypxhf9k3eEJFFHOkhHdq9YWP1YnNZ0UPFZba ZmM62TG9+snae8bjHb50QxEMGPPQ9PqjMiYsKCEnVlWSsmp6hdgOiUMR+GqVyP9H FgVXVVw1YLRMfFIxljTYcQOK2GMOm4nFM7HAa5aEOSyQICRP3hp5i81Crcw4pglW d99YncdoO7ssO3DFamj9EeWWu8DlhKo9JFd1JvBrqc4L57ZEIqGKXSRgqks9ZUhS YVvHoHCwu5tIzSdBCzM4xj5ZfVmcsTL+x53SnpfOxR/M9/QOZ9e4kyLPzXiKdUcQ 3C08mVg7mmPY+SyB7nNK6l3EHZu8olWdp3+/+ATYUY02JMnjFI1rVlh0pWNsJzP+ UEr+IhU+xx3pqat9RpyuzwIXNzVgzBnWxggzL3Z/WwPOelj8JZM= =4sB+ -----END PGP SIGNATURE----- --quuuzbot47bv4pk2-- From owner-freebsd-toolchain@freebsd.org Mon Jan 23 18:38:07 2017 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 23A92CBE02A for ; Mon, 23 Jan 2017 18:38:07 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A2DC9F10; Mon, 23 Jan 2017 18:38:06 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:7b8:3a7::5436:f0fa:fd22:db1b] (unknown [IPv6:2001:7b8:3a7:0:5436:f0fa:fd22:db1b]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 7F03D488CA; Mon, 23 Jan 2017 19:37:57 +0100 (CET) Content-Type: multipart/signed; boundary="Apple-Mail=_D5DE581D-BCE9-4194-84AB-17EF185B8585"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: [clang/lld 4.0.0 arm64] link failure in sys/boot/efi/loader From: Dimitry Andric In-Reply-To: <20170123152751.szrkvk73a2wwp2ee@mutt-hardenedbsd> Date: Mon, 23 Jan 2017 19:37:47 +0100 Cc: FreeBSD Toolchain , Ed Maste Message-Id: References: <20170123152751.szrkvk73a2wwp2ee@mutt-hardenedbsd> To: Shawn Webb X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Jan 2017 18:38:07 -0000 --Apple-Mail=_D5DE581D-BCE9-4194-84AB-17EF185B8585 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 23 Jan 2017, at 16:27, Shawn Webb wrote: >=20 > Here's an interesting failure I'm seeing on HardenedBSD with clang = 4.0.0 > bits mixed in: >=20 > =3D=3D=3D=3D BEGIN LOG =3D=3D=3D=3D > cc -target aarch64-unknown-freebsd12.0 --sysroot=3D/usr/obj/usr/src/tmp = -B/usr -O2 -pipe -DHARDENEDBSD -DSKEIN_LOOP=3D111 = -I/usr/src/sys/boot/efi/loader/../../arm64/libarm64 -msoft-float = -mgeneral-regs-only -I/usr/src/sys/boot/efi/loader = -I/usr/src/sys/boot/efi/loader/arch/arm64 = -I/usr/src/sys/boot/efi/loader/../include = -I/usr/src/sys/boot/efi/loader/../include/arm64 = -I/usr/src/sys/boot/efi/loader/../../../contrib/dev/acpica/include = -I/usr/src/sys/boot/efi/loader/../../.. = -I/usr/src/sys/boot/efi/loader/../../i386/libi386 = -I/usr/src/sys/boot/efi/loader/../../zfs = -I/usr/src/sys/boot/efi/loader/../../../cddl/boot/zfs = -I/usr/src/sys/boot/efi/loader/../../../crypto/skein -DEFI_ZFS_BOOT = -DNO_PCI -DEFI -DSMBIOS_SERIAL_NUMBERS -DBOOT_FORTH = -I/usr/src/sys/boot/efi/loader/../../ficl = -I/usr/src/sys/boot/efi/loader/../../ficl/aarch64 = -I/usr/src/sys/boot/efi/loader/../../fdt = -I/usr/obj/usr/src/sys/boot/efi/loader/../../fdt -DLOADER_FDT_SUPPORT = -DLOADER_DISK_SUPPORT -DLOADER_GPT_SUPPORT -DLOADER_MBR_SUPPORT = -I/usr/src/sys/boot/ficl -I/usr/src/sys/boot/ficl/aarch64 = -I/usr/src/sys/boot/ficl/../common = -I/usr/src/sys/boot/efi/loader/../../common -ffreestanding -Wformat = -msoft-float -fshort-wchar -fPIC -g -DHAVE_LIBRESSL -std=3Dgnu99 = -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter = -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith = -Wno-uninitialized -Wno-pointer-sign -Wno-empty-body = -Wno-string-plus-int -Wno-unused-const-variable = -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality = -Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef = -Wno-address-of-packed-member -Qunused-arguments = -Wl,-T/usr/src/sys/boot/efi/loader/arch/arm64/ldscript.arm64 = -Wl,-Bsymbolic -shared -nostdlib -Wl,-z,relro -Wl,-z,now -o = loader.sym.full autoload.o bootinfo.o conf.o copy.o devicename.o main.o = self_reloc.o smbios.o vers.o zfs.o skein.o skein_block.o exec.o start.o = cache.o boot.o commands.o console.o devopen.o interp.o = interp_backslash.o interp_parse.o ls.o misc.o module.o panic.o = load_elf64.o reloc_elf64.o disk.o part.o crc32.o bcache.o interp_forth.o = /usr/obj/usr/src/sys/boot/efi/loader/../../ficl/libficl.a = /usr/obj/usr/src/sys/boot/efi/loader/../libefi/libefi.a = /usr/obj/usr/src/sys/boot/efi/loader/../../fdt/libfdt.a = /usr/obj/usr/src/sys/boot/efi/loader/../../efi/fdt/libefi_fdt.a = /usr/obj/usr/src/sys/boot/efi/loader/../../../../lib/libstand/libstand.a > /usr/bin/ld: error: Section has flags incompatible with others with = the same name autoload.o:(.text) > /usr/bin/ld: error: /usr/src/sys/boot/ficl/ficl.c:(.rodata+0x0): can't = create dynamic relocation R_AARCH64_ABS64 against local symbol in = readonly segment defined in = /usr/obj/usr/src/sys/boot/efi/loader/../../ficl/libficl.a(ficl.o) > /usr/bin/ld: error: /usr/src/sys/boot/ficl/ficl.c:(.rodata+0x8): can't = create dynamic relocation R_AARCH64_ABS64 against local symbol in = readonly segment defined in = /usr/obj/usr/src/sys/boot/efi/loader/../../ficl/libficl.a(ficl.o) Not an AArch64 expert here, but if I understand correctly AArch64's world must be linked with a ports version of binutils? Ed, any clues about this? Then again, this could also point to some real problem with the section flags. -Dimitry --Apple-Mail=_D5DE581D-BCE9-4194-84AB-17EF185B8585 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.30 iEYEARECAAYFAliGTYgACgkQsF6jCi4glqONMACg+2QI/7MJHOwshgfQGWAVpEf/ tnMAoJjWZluXlNKEL243tJ6eGUXfvzCj =BpmB -----END PGP SIGNATURE----- --Apple-Mail=_D5DE581D-BCE9-4194-84AB-17EF185B8585-- From owner-freebsd-toolchain@freebsd.org Wed Jan 25 00:35:50 2017 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1CBA4CBEACC for ; Wed, 25 Jan 2017 00:35: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 mx1.freebsd.org (Postfix) with ESMTPS id 0A88A9E for ; Wed, 25 Jan 2017 00:35:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v0P0Zndk044366 for ; Wed, 25 Jan 2017 00:35:49 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 216451] Assertion failed: (NodeToMatch->getOpcode() != ISD::DELETED_NODE && "NodeToMatch was removed partway through selection"), function SelectCodeCommon, file /usr/src/contrib/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp, line 3387 Date: Wed, 25 Jan 2017 00:35:50 +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: cem@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: rep_platform cc assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jan 2017 00:35:50 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216451 Conrad Meyer changed: What |Removed |Added ---------------------------------------------------------------------------- Hardware|amd64 |Any CC|freebsd-amd64@FreeBSD.org |cem@freebsd.org, | |dim@FreeBSD.org Assignee|freebsd-bugs@FreeBSD.org |freebsd-toolchain@FreeBSD.o | |rg --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Wed Jan 25 00:47:27 2017 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7D7D9CC00CC for ; Wed, 25 Jan 2017 00:47:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6443999C for ; Wed, 25 Jan 2017 00:47:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v0P0lRWH068561 for ; Wed, 25 Jan 2017 00:47:27 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 216451] Assertion failed: (NodeToMatch->getOpcode() != ISD::DELETED_NODE && "NodeToMatch was removed partway through selection"), function SelectCodeCommon, file /usr/src/contrib/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp, line 3387 Date: Wed, 25 Jan 2017 00:47:27 +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: otacilio.neto@bsd.com.br X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jan 2017 00:47:27 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216451 --- Comment #3 from otacilio.neto@bsd.com.br --- Created attachment 179298 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D179298&action= =3Dedit Patch to reproduce the error OpenCV 3.1 is not in the ports tree. This patch is a beta port of opencv3.1= to FreeBSD. To reproduce the bug apply this patch to ports tree and cd /usr/ports/graphics/opencv3-core && make --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Wed Jan 25 00:50:05 2017 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3129DCC0145 for ; Wed, 25 Jan 2017 00:50:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1EF28A11 for ; Wed, 25 Jan 2017 00:50:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v0P0o4sa071830 for ; Wed, 25 Jan 2017 00:50:04 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 216451] Assertion failed: (NodeToMatch->getOpcode() != ISD::DELETED_NODE && "NodeToMatch was removed partway through selection"), function SelectCodeCommon, file /usr/src/contrib/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp, line 3387 Date: Wed, 25 Jan 2017 00:50:04 +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: otacilio.neto@bsd.com.br X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jan 2017 00:50:05 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216451 --- Comment #4 from otacilio.neto@bsd.com.br --- (In reply to otacilio.neto from comment #3) Sorry, this patch do not reproduce the error. I'm creating a new one. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Wed Jan 25 01:19:02 2017 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0F8E9CC0C4C for ; Wed, 25 Jan 2017 01:19:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id F127BB8C for ; Wed, 25 Jan 2017 01:19:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v0P1J1OA047298 for ; Wed, 25 Jan 2017 01:19:01 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 216451] Assertion failed: (NodeToMatch->getOpcode() != ISD::DELETED_NODE && "NodeToMatch was removed partway through selection"), function SelectCodeCommon, file /usr/src/contrib/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp, line 3387 Date: Wed, 25 Jan 2017 01:19:01 +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: otacilio.neto@bsd.com.br X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.isobsolete attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jan 2017 01:19:02 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216451 otacilio.neto@bsd.com.br changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #179298|0 |1 is obsolete| | --- Comment #5 from otacilio.neto@bsd.com.br --- Created attachment 179299 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D179299&action= =3Dedit Patch to reproduce the error OpenCV 3.1 is not in the ports tree. This patch is a beta port of opencv3.1= to FreeBSD. To reproduce the bug apply this patch to ports tree and cd /usr/ports/graphics/opencv3-core && make --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Wed Jan 25 10:43:58 2017 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C7BD3CBFFA2 for ; Wed, 25 Jan 2017 10:43: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 mx1.freebsd.org (Postfix) with ESMTPS id AC9631381 for ; Wed, 25 Jan 2017 10:43:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v0PAhwf1071230 for ; Wed, 25 Jan 2017 10:43:58 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 214258] devel/openmp: spurious libm dependency Date: Wed, 25 Jan 2017 10:43:58 +0000 X-Bugzilla-Reason: CC AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: needs-patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: nigoro.dev@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: cc attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jan 2017 10:43:58 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214258 Yuta Satoh changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nigoro.dev@gmail.com --- Comment #2 from Yuta Satoh --- Created attachment 179304 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D179304&action= =3Dedit ports/devel/openmp/files/patch-link-libm.patch Sample patch for devel/openmp-3.9.0. The attached patch links libm. -Wl,--no-as-needed is necessary for forced linking. Before applying the patch) # ldd /usr/local/lib/libomp.so /usr/local/lib/libomp.so: libthr.so.3 =3D> /lib/libthr.so.3 (0x801288000) libc.so.7 =3D> /lib/libc.so.7 (0x800823000) After applying the patch) # ldd /usr/local/lib/libomp.so /usr/local/lib/libomp.so: libm.so.5 =3D> /lib/libm.so.5 (0x801288000) libthr.so.3 =3D> /lib/libthr.so.3 (0x8014b3000) libc.so.7 =3D> /lib/libc.so.7 (0x800823000) $ echo 'int main() { }' | cc -fopenmp -L/usr/local/lib -xc - -v FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based on LLVM 3.8.0) Target: x86_64-unknown-freebsd11.0 Thread model: posix InstalledDir: /usr/bin "/usr/bin/cc" -cc1 -triple x86_64-unknown-freebsd11.0 -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name - -mrelocation-model static -mthread-model posix -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -v -dwarf-column-i= nfo -debugger-tuning=3Dgdb -resource-dir /usr/bin/../lib/clang/3.8.0 -fdebug-compilation-dir /usr/home/nigoro -ferror-limit 19 -fmessage-length = 172 -fopenmp -fobjc-runtime=3Dgnustep -fdiagnostics-show-option -fcolor-diagnos= tics -o /tmp/--26d632.o -x c - clang -cc1 version 3.8.0 based upon LLVM 3.8.0 default target x86_64-unknown-freebsd11.0 #include "..." search starts here: #include <...> search starts here: /usr/bin/../lib/clang/3.8.0/include /usr/include End of search list. "/usr/bin/ld" --eh-frame-hdr -dynamic-linker /libexec/ld-elf.so.1 --hash-style=3Dboth --enable-new-dtags -o a.out /usr/lib/crt1.o /usr/lib/cr= ti.o /usr/lib/crtbegin.o -L/usr/local/lib -L/usr/lib /tmp/--26d632.o -lomp -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-ne= eded /usr/lib/crtend.o /usr/lib/crtn.o --=20 You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Wed Jan 25 12:01:54 2017 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 036F9CBFEF9 for ; Wed, 25 Jan 2017 12:01:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E553CE5C for ; Wed, 25 Jan 2017 12:01:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v0PC1rnD066040 for ; Wed, 25 Jan 2017 12:01:53 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 216451] Assertion failed: (NodeToMatch->getOpcode() != ISD::DELETED_NODE && "NodeToMatch was removed partway through selection"), function SelectCodeCommon, file /usr/src/contrib/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp, line 3387 Date: Wed, 25 Jan 2017 12:01:53 +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: Closed X-Bugzilla-Resolution: DUPLICATE X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jan 2017 12:01:54 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216451 Dimitry Andric changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |DUPLICATE Status|New |Closed --- Comment #6 from Dimitry Andric --- This was already reported against OpenCV 3.2 in bug 215649. There is no definite fix from upstream yet, but I could probably apply a workaround. *** This bug has been marked as a duplicate of bug 215649 *** --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Wed Jan 25 17:36:17 2017 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E54DECC1D0D for ; Wed, 25 Jan 2017 17:36:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D5059DF1 for ; Wed, 25 Jan 2017 17:36:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v0PHaHkQ093591 for ; Wed, 25 Jan 2017 17:36:17 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-toolchain@FreeBSD.org Subject: [Bug 214971] clang + lld 3.9.1: Unhandled relocation 1031 Date: Wed, 25 Jan 2017 17:36:18 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: commit-hook@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jan 2017 17:36:18 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214971 --- Comment #4 from commit-hook@freebsd.org --- A commit references this bug: Author: andrew Date: Wed Jan 25 17:35:11 UTC 2017 New revision: 312764 URL: https://svnweb.freebsd.org/changeset/base/312764 Log: Pull the R_AARCH64_TLSDESC code out into a common function and use them in both the plt and non-plt case. This fixes an issue where libraries built with LLD can fail with "Unhandled relocation 1031" PR: 214971 Obtained from: 1 week Sponsored by: DARPA, AFRL Changes: head/libexec/rtld-elf/aarch64/reloc.c --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-toolchain@freebsd.org Thu Jan 26 01:27:53 2017 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D3433CC1E5D for ; Thu, 26 Jan 2017 01:27:53 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-11.reflexion.net [208.70.210.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 876ACDCB for ; Thu, 26 Jan 2017 01:27:52 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 19390 invoked from network); 26 Jan 2017 01:27:46 -0000 Received: from unknown (HELO mail-cs-01.app.dca.reflexion.local) (10.81.19.1) by 0 (rfx-qmail) with SMTP; 26 Jan 2017 01:27:46 -0000 Received: by mail-cs-01.app.dca.reflexion.local (Reflexion email security v8.20.1) with SMTP; Wed, 25 Jan 2017 20:27:46 -0500 (EST) Received: (qmail 28178 invoked from network); 26 Jan 2017 01:27:45 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 26 Jan 2017 01:27:45 -0000 Received: from [192.168.1.111] (c-67-170-167-181.hsd1.or.comcast.net [67.170.167.181]) by iron2.pdx.net (Postfix) with ESMTPSA id 3131CEC8255; Wed, 25 Jan 2017 17:27:45 -0800 (PST) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Subject: Re: 3.9.1's lld and powerpc64 for -pie use: can't create dynamic relocation R_PPC64_REL24 against readonly segment Date: Wed, 25 Jan 2017 17:27:44 -0800 References: <5FF1F3C4-E169-4967-9B08-F97A52B33E6F@dsl-only.net> To: FreeBSD Toolchain , FreeBSD PowerPC ML In-Reply-To: <5FF1F3C4-E169-4967-9B08-F97A52B33E6F@dsl-only.net> Message-Id: <2C07C1E1-4549-43CC-BF23-A83CEE090448@dsl-only.net> X-Mailer: Apple Mail (2.3259) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jan 2017 01:27:53 -0000 On 2017-Jan-21, at 2:16 PM, Mark Millard wrote: > For: >=20 > # more main.c = = static volatile = char big_area[67001] =3D "This is a test"; >=20 > int main () > { > big_area[67000] =3D '9'; > } >=20 > I get (the -fPIE is not required for the behavior): >=20 > # clang -fuse-ld=3Dlld -Wl,-t -pie -fPIE main.c > /usr/lib/Scrt1.o > /usr/lib/crti.o > /usr/lib/crtbeginS.o > /tmp/main-c6f752.o > /usr/lib/libgcc_s.so > /lib/libc.so.7 > /usr/lib/libgcc_s.so > /usr/lib/crtendS.o > /usr/lib/crtn.o > can't create dynamic relocation R_PPC64_REL24 against readonly segment > can't create dynamic relocation R_PPC64_REL24 against readonly segment > can't create dynamic relocation R_PPC64_REL24 against readonly segment > can't create dynamic relocation R_PPC64_REL24 against readonly segment > can't create dynamic relocation R_PPC64_REL24 against readonly segment > can't create dynamic relocation R_PPC64_REL24 against readonly segment > clang: error: linker command failed with exit code 1 (use -v to see = invocation) >=20 > (This is difficult to study because it does not leave even a > partial a.out and it does not report the specifics of what > segment or what symbol or the like.) >=20 > Even an empty source produces that, but also including the > expected: >=20 > undefined symbol: main in /usr/lib/Scrt1.o >=20 > It appears that the R_PPC64_REL24's are some subset of. . . >=20 > /usr/lib/Scrt1.o : >=20 > 00000000000000cc R_PPC64_REL24 atexit > 00000000000000d8 R_PPC64_REL24 _init_tls > 00000000000000f8 R_PPC64_REL24 atexit > 00000000000001b4 R_PPC64_REL24 _init > 0000000000000240 R_PPC64_REL24 main > 0000000000000248 R_PPC64_REL24 exit > 00000000000002fc R_PPC64_REL24 _fini >=20 > (That would be 6 by ignoring main, matching > the message count.) >=20 > /usr/lib/crtbeginS.o : >=20 > 0000000000000040 R_PPC64_REL24 __cxa_finalize > 0000000000000000 R_PPC64_REL24 .opd > 0000000000000000 R_PPC64_REL24 .opd+0x0000000000000018 >=20 > /usr/lib/crtendS.o : >=20 > 0000000000000000 R_PPC64_REL24 .opd >=20 > main.o , if I have it produced, does not have R_PPC64_REL24 > in it. I have submitted this as llvm bugzilla 31762 and added it to llvm bugzilla 25780's Depends On list (the meta submittal for using clang and [its toolchain] as the FreeBSD powerpc and powerpc64 system compiler [and toolchain]). =3D=3D=3D Mark Millard markmi at dsl-only.net From owner-freebsd-toolchain@freebsd.org Thu Jan 26 10:10:15 2017 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3C16BCC0476 for ; Thu, 26 Jan 2017 10:10:15 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-10.reflexion.net [208.70.210.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BDF942A2 for ; Thu, 26 Jan 2017 10:10:14 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 14335 invoked from network); 26 Jan 2017 10:10:37 -0000 Received: from unknown (HELO mail-cs-01.app.dca.reflexion.local) (10.81.19.1) by 0 (rfx-qmail) with SMTP; 26 Jan 2017 10:10:37 -0000 Received: by mail-cs-01.app.dca.reflexion.local (Reflexion email security v8.20.1) with SMTP; Thu, 26 Jan 2017 05:10:07 -0500 (EST) Received: (qmail 21198 invoked from network); 26 Jan 2017 10:10:07 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 26 Jan 2017 10:10:07 -0000 Received: from [192.168.1.111] (c-67-170-167-181.hsd1.or.comcast.net [67.170.167.181]) by iron2.pdx.net (Postfix) with ESMTPSA id DD618EC7D56; Thu, 26 Jan 2017 02:10:05 -0800 (PST) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Subject: =mcpu=cortex-a7 buildlworld (for example) vs. __aeabi_uidiv use in ports from pkg Message-Id: <15C25780-588B-43EF-8DAC-000C301018BE@dsl-only.net> Date: Thu, 26 Jan 2017 02:10:05 -0800 To: FreeBSD Toolchain , freebsd-arm X-Mailer: Apple Mail (2.3259) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jan 2017 10:10:15 -0000 If I buildworld buildkernel for arm.armv6 with the likes of: CFLAGS+= =mcpu=cortex-a7 CXXFLAGS+= =mcpu=cortex-a7 CPPFLAGS+= =mcpu=cortex-a7 (say for targeting a bpim3 or rpi2) then what package installs for that context tends to report: Undefined symbol "__aeabi_uidiv" In other words __aeabi_uidiv is only implemented for armv6 buildworld, not if one explicitly targets armv7. (armv7 has instruction support but that does not make software built to support other processor variants that are without instruction support also work unless the routine is still provided.) Note: I normally build ports from source anyway so this is just an FYI in case the lack of __aeabi_uidiv was not deliberate. === Mark Millard markmi at dsl-only.net From owner-freebsd-toolchain@freebsd.org Thu Jan 26 15:59:13 2017 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 35730CC273B for ; Thu, 26 Jan 2017 15:59:13 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound1a.eu.mailhop.org (outbound1a.eu.mailhop.org [52.58.109.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C6296868 for ; Thu, 26 Jan 2017 15:59:12 +0000 (UTC) (envelope-from ian@freebsd.org) X-MHO-User: 5f73f5e4-e3e0-11e6-95b5-6dfd7dbb0ee5 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 73.78.92.27 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [73.78.92.27]) by outbound1.eu.mailhop.org (Halon) with ESMTPSA id 5f73f5e4-e3e0-11e6-95b5-6dfd7dbb0ee5; Thu, 26 Jan 2017 15:59:10 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id v0QFx4eE003821; Thu, 26 Jan 2017 08:59:04 -0700 (MST) (envelope-from ian@freebsd.org) Message-ID: <1485446344.30533.72.camel@freebsd.org> Subject: Re: =mcpu=cortex-a7 buildlworld (for example) vs. __aeabi_uidiv use in ports from pkg From: Ian Lepore To: Mark Millard , FreeBSD Toolchain , freebsd-arm Date: Thu, 26 Jan 2017 08:59:04 -0700 In-Reply-To: <15C25780-588B-43EF-8DAC-000C301018BE@dsl-only.net> References: <15C25780-588B-43EF-8DAC-000C301018BE@dsl-only.net> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.5.1 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jan 2017 15:59:13 -0000 On Thu, 2017-01-26 at 02:10 -0800, Mark Millard wrote: > If I buildworld buildkernel for arm.armv6 with the likes of: > > CFLAGS+= =mcpu=cortex-a7 > CXXFLAGS+= =mcpu=cortex-a7 > CPPFLAGS+= =mcpu=cortex-a7 > > (say for targeting a bpim3 or rpi2) then what package > installs for that context tends to report: > > Undefined symbol "__aeabi_uidiv" > > In other words __aeabi_uidiv is only implemented > for armv6 buildworld, not if one explicitly targets > armv7. (armv7 has instruction support but that does > not make software built to support other processor > variants that are without instruction support also > work unless the routine is still provided.) > > Note: I normally build ports from source anyway > so this is just an FYI in case the lack of > __aeabi_uidiv was not deliberate. > > === > Mark Millard > markmi at dsl-only.net I believe problems like this will not go away unless we stop trying to pretend that armv6 and armv7 are the same thing, and actually start treating armv7 as its own arch, especially for the purpose of packages and ports. I've said/suggested this more than once, and every time it gets shot down by the people who actually understand what it takes to create a new arch (if I knew how to do it, I would have, long ago).  As near as I can tell, the argument against doing it is essentially "because it's hard". So I guess... don't expect it to get better any time soon. -- Ian