From owner-freebsd-arm@freebsd.org Mon Apr 3 17:54:14 2017 Return-Path: Delivered-To: freebsd-arm@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 082A2D2C8D4 for ; Mon, 3 Apr 2017 17:54:14 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-78.reflexion.net [208.70.210.78]) (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 AFE06843 for ; Mon, 3 Apr 2017 17:54:12 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 5736 invoked from network); 3 Apr 2017 17:55:03 -0000 Received: from unknown (HELO rtc-sm-01.app.dca.reflexion.local) (10.81.150.1) by 0 (rfx-qmail) with SMTP; 3 Apr 2017 17:55:03 -0000 Received: by rtc-sm-01.app.dca.reflexion.local (Reflexion email security v8.40.0) with SMTP; Mon, 03 Apr 2017 13:54:06 -0400 (EDT) Received: (qmail 22932 invoked from network); 3 Apr 2017 17:54:06 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 3 Apr 2017 17:54:06 -0000 Received: from [192.168.1.119] (c-67-170-167-181.hsd1.or.comcast.net [67.170.167.181]) by iron2.pdx.net (Postfix) with ESMTPSA id 66EDDEC8AE2; Mon, 3 Apr 2017 10:54:05 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: Can't link base From: Mark Millard In-Reply-To: <20170403164254.erxbtdzqdjl3th54@mutt-hbsd> Date: Mon, 3 Apr 2017 10:54:04 -0700 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <32C50831-55CF-48DC-857F-4E601AE3F9BD@dsl-only.net> References: <20170403164254.erxbtdzqdjl3th54@mutt-hbsd> To: Shawn Webb X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Apr 2017 17:54:14 -0000 On 2017-Apr-3, at 9:42 AM, Shawn Webb = wrote: > Looks like aarch64-binutils 2.28 causes linking issues when building > base. LLD 4.0.0 in base can't link aarch64 base, either. >=20 > /usr/local/aarch64-freebsd/bin/ld: getutxent.pico(.debug_info+0x3b): = R_AARCH64_ABS64 used with TLS symbol udb > /usr/local/aarch64-freebsd/bin/ld: getutxent.pico(.debug_info+0x58): = R_AARCH64_ABS64 used with TLS symbol uf > /usr/local/aarch64-freebsd/bin/ld: utxdb.pico(.debug_info+0x5a): = R_AARCH64_ABS64 used with TLS symbol futx_to_utx.ut > /usr/local/aarch64-freebsd/bin/ld: = jemalloc_tsd.pico(.debug_info+0x3c): R_AARCH64_ABS64 used with TLS = symbol __je_tsd_tls > /usr/local/aarch64-freebsd/bin/ld: = jemalloc_tsd.pico(.debug_info+0x146e): R_AARCH64_ABS64 used with TLS = symbol __je_tsd_initialized > /usr/local/aarch64-freebsd/bin/ld: = cxa_thread_atexit_impl.pico(.debug_info+0x3b): R_AARCH64_ABS64 used with = TLS symbol dtors > /usr/local/aarch64-freebsd/bin/ld: xlocale.pico(.debug_info+0x403): = R_AARCH64_ABS64 used with TLS symbol __thread_locale > /usr/local/aarch64-freebsd/bin/ld: = setrunelocale.pico(.debug_info+0x3c): R_AARCH64_ABS64 used with TLS = symbol _ThreadRuneLocale > cc: error: linker command failed with exit code 1 (use -v to see = invocation) > --- libc.so.7.full --- > *** [libc.so.7.full] Error code 1 See: Bugzilla 218198 ( = https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D218198 ) https://lists.freebsd.org/pipermail/freebsd-ports/2017-March/107859.html https://ci.freebsd.org/job/FreeBSD-head-aarch64-build/1433/console Comment 7 of the Bugzilla report from Antoon Yuzhaninov says that 2.27 also generates those messages but returns a zero exit code. 2.28's ld returns a non-zero exit code because of the issue. So the messages are visible even in old logs for WITH_DEBUG contexts. Antoon has been pursuing evidence and has found: https://bugs.llvm.org//show_bug.cgi?id=3D21077 on the llvm side and: = https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;a=3Dcommit;h=3D= 4519d071387f374932616b588ddb4ec8cabe2a52 on the binutils side for the return code change. =3D=3D=3D Mark Millard markmi at dsl-only.net