NetBSD Problem Report #54509

From  Thu Aug 29 22:05:30 2019
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer " CA" (not verified))
	by (Postfix) with ESMTPS id 78BEB7A1E0
	for <>; Thu, 29 Aug 2019 22:05:30 +0000 (UTC)
Message-Id: <>
Date: Thu, 29 Aug 2019 22:57:10 +0100 (BST)
Subject: clang build fails for aarch64
X-Send-Pr-Version: 3.95

>Number:         54509
>Category:       toolchain
>Synopsis:       clang build of NetBSD for aarch64 fails
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 29 22:10:00 +0000 2019
>Originator:     Robert Swindells
>Release:        NetBSD 9.99.10
System: NetBSD 9.99.4 NetBSD 9.99.4 (REN) #16: Wed Aug 7 22:21:07 BST 2019 amd64
Architecture: x86_64
Machine: amd64
Build for aarch64 using clang fails with this error:

#     build  libc/
rm -f
/u8/build/aarch64l-tools/bin/aarch64--netbsd-clang -nodefaultlibs -shared -Wl,-s
oname,  -Wl,--warn-shared-textrel -Wl, -Wl,-z,initf
irst -Wl,-z,defs   --sysroot=/var/obj/aarch64l -Wl,--fatal-warnings -Wl,--warn-s
hared-textrel  -o  -Wl,-rpath,/lib  -L=/lib -Wl,-x  -Wl,--who
le-archive libc_pic.a  -Wl,--no-whole-archive
/u8/build/aarch64l-tools/bin/aarch64--netbsd-ld: libc_pic.a(fixxfdi.pico): in
function `__fixxfdi':
fixxfdi.c:(.text+0x40): undefined reference to `__gttf2'
aarch64--netbsd-clang: error: linker command failed with exit code 1 (use -v to
see invocation)

With these variables set:


# ./ -m evbarm64-el distribution



NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD:,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.