From owner-freebsd-ppc@freebsd.org Wed Nov 9 12:19:40 2016 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 67F5CC37F2F for ; Wed, 9 Nov 2016 12:19:40 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-56.reflexion.net [208.70.210.56]) (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 290B16CD for ; Wed, 9 Nov 2016 12:19:39 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 19425 invoked from network); 9 Nov 2016 12:20:37 -0000 Received: from unknown (HELO mail-cs-02.app.dca.reflexion.local) (10.81.19.2) by 0 (rfx-qmail) with SMTP; 9 Nov 2016 12:20:37 -0000 Received: by mail-cs-02.app.dca.reflexion.local (Reflexion email security v8.10.1) with SMTP; Wed, 09 Nov 2016 07:19:43 -0500 (EST) Received: (qmail 23789 invoked from network); 9 Nov 2016 12:19:43 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 9 Nov 2016 12:19:43 -0000 Received: from [192.168.1.106] (c-76-115-7-162.hsd1.or.comcast.net [76.115.7.162]) by iron2.pdx.net (Postfix) with ESMTPSA id 7F081EC881E; Wed, 9 Nov 2016 04:19:37 -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.1 \(3251\)) Subject: base/gcc (from ports/head -r424540) lookups do not match base/binutils 's /usr/powerpc64-freebsd/bin/ld or /usr/bin/ld (ld example) Message-Id: <432CF4F5-ECC1-4573-AE32-74E7B88E2624@dsl-only.net> Date: Wed, 9 Nov 2016 04:19:36 -0800 To: FreeBSD Toolchain , FreeBSD PowerPC ML X-Mailer: Apple Mail (2.3251) X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Nov 2016 12:19:40 -0000 The gcc (and cc) from base/gcc 's freebsd-gcc-5.4.0.txz for powerpc64 = (via cross builds) by default can not find ld from either the system ( = /usr/bin/ld ) or from base/binutils 's FreeBSD-binutils-2.25.1_3,1.txz = expanded content : > # cc main.c > collect2: fatal error: cannot find 'ld' > compilation terminated. Before showing truss output that reports for where ld is searched for: = here is were it actually is (along with some other files that match the = pattern that I used): > # find / -name "*ld" -print | grep "[/-]ld$" > /usr/src/contrib/netbsd-tests/usr.bin/ld > /usr/src/contrib/binutils/ld > /usr/src/gnu/usr.bin/binutils/ld > /usr/bin/ld > /usr/ports/devel/bcc/files/patch-ld > /usr/powerpc64-freebsd/bin/ld (The "env ABI=3DFreeBSD:12:powerpc64 pkg-static add = FreeBSD-binutils-2.25.1_3,1.txz" generated that last line's file.) The "truss -f output cc main.c" output shows none of those paths being = involved. It does show a stat for: > /usr/bin/powerpc64-portbld-freebsd12.0-powerpc64-freebsd-ld and another for: > /bin/powerpc64-portbld-freebsd12.0-powerpc64-freebsd-ld among others. (ld is not the only thing with such a naming convention = for what is before the tool's base name.) None of the paths end in "/ld" = : all end in "-ld". None of the lookups are directly in /usr either: if = /usr is involved in the path then so is at least one subdirectory. The truss "ld" lookup reports are included in the output below, they are = all not-found failures: > # truss -f cc main.c 2>&1 | grep '[/-]ld"'=20 > 2873: = stat("/usr/libexec/gcc/powerpc64-portbld-freebsd12.0/5.4.0/real-ld",0xffff= ffffffffd2f8) ERR#2 'No such file or directory' > 2873: = stat("/usr/libexec/gcc/powerpc64-portbld-freebsd12.0/5.4.0/real-ld",0xffff= ffffffffd2f8) ERR#2 'No such file or directory' > 2873: = stat("/usr/libexec/gcc/powerpc64-portbld-freebsd12.0/real-ld",0xffffffffff= ffd2f8) ERR#2 'No such file or directory' > 2873: = stat("/usr/lib/gcc/powerpc64-portbld-freebsd12.0/5.4.0/real-ld",0xffffffff= ffffd2f8) ERR#2 'No such file or directory' > 2873: = stat("/usr/lib/gcc/powerpc64-portbld-freebsd12.0/real-ld",0xffffffffffffd2= f8) ERR#2 'No such file or directory' > 2873: = stat("/usr/libexec/gcc/powerpc64-portbld-freebsd12.0/5.4.0/collect-ld",0xf= fffffffffffd2f8) ERR#2 'No such file or directory' > 2873: = stat("/usr/libexec/gcc/powerpc64-portbld-freebsd12.0/5.4.0/collect-ld",0xf= fffffffffffd2f8) ERR#2 'No such file or directory' > 2873: = stat("/usr/libexec/gcc/powerpc64-portbld-freebsd12.0/collect-ld",0xfffffff= fffffd2f8) ERR#2 'No such file or directory' > 2873: = stat("/usr/lib/gcc/powerpc64-portbld-freebsd12.0/5.4.0/collect-ld",0xfffff= fffffffd2f8) ERR#2 'No such file or directory' > 2873: = stat("/usr/lib/gcc/powerpc64-portbld-freebsd12.0/collect-ld",0xfffffffffff= fd2f8) ERR#2 'No such file or directory' > 2873: = stat("/usr/libexec/gcc/powerpc64-portbld-freebsd12.0/5.4.0/powerpc64-freeb= sd-ld",0xffffffffffffd2f8) ERR#2 'No such file or directory' > 2873: = stat("/usr/libexec/gcc/powerpc64-portbld-freebsd12.0/5.4.0/powerpc64-freeb= sd-ld",0xffffffffffffd2f8) ERR#2 'No such file or directory' > 2873: = stat("/usr/libexec/gcc/powerpc64-portbld-freebsd12.0/powerpc64-freebsd-ld"= ,0xffffffffffffd2f8) ERR#2 'No such file or directory' > 2873: = stat("/usr/lib/gcc/powerpc64-portbld-freebsd12.0/5.4.0/powerpc64-freebsd-l= d",0xffffffffffffd2f8) ERR#2 'No such file or directory' > 2873: = stat("/usr/lib/gcc/powerpc64-portbld-freebsd12.0/powerpc64-freebsd-ld",0xf= fffffffffffd2f8) ERR#2 'No such file or directory' > 2873: = stat("/sbin/powerpc64-portbld-freebsd12.0-powerpc64-freebsd-ld",0xffffffff= ffffd2f8) ERR#2 'No such file or directory' > 2873: = stat("/bin/powerpc64-portbld-freebsd12.0-powerpc64-freebsd-ld",0xfffffffff= fffd2f8) ERR#2 'No such file or directory' > 2873: = stat("/usr/sbin/powerpc64-portbld-freebsd12.0-powerpc64-freebsd-ld",0xffff= ffffffffd2f8) ERR#2 'No such file or directory' > 2873: = stat("/usr/bin/powerpc64-portbld-freebsd12.0-powerpc64-freebsd-ld",0xfffff= fffffffd2f8) ERR#2 'No such file or directory' > 2873: = stat("/usr/local/sbin/powerpc64-portbld-freebsd12.0-powerpc64-freebsd-ld",= 0xffffffffffffd2f8) ERR#2 'No such file or directory' > 2873: = stat("/usr/local/bin/powerpc64-portbld-freebsd12.0-powerpc64-freebsd-ld",0= xffffffffffffd2f8) ERR#2 'No such file or directory' > 2873: = stat("/home/markmi/bin/powerpc64-portbld-freebsd12.0-powerpc64-freebsd-ld"= ,0xffffffffffffd2f8) ERR#2 'No such file or directory' =3D=3D=3D Mark Millard markmi at dsl-only.net