NetBSD Problem Report #55818
From o.vd.linden@quicknet.nl Sun Nov 22 22:20:01 2020
Return-Path: <o.vd.linden@quicknet.nl>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id ABDEF1A921F
for <gnats-bugs@gnats.NetBSD.org>; Sun, 22 Nov 2020 22:20:01 +0000 (UTC)
Message-Id: <20201122221955.GA22670@sheep>
Date: Sun, 22 Nov 2020 23:19:55 +0100
From: Onno van der Linden <o.vd.linden@quicknet.nl>
To: gnats-bugs@netbsd.org
Subject: firefox build on 32-bit x86 is possible without libatomic
>Number: 55818
>Category: pkg
>Synopsis: firefox build on 32-bit x86 is possible without libatomic
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Nov 22 22:25:00 +0000 2020
>Closed-Date: Sat Jan 16 13:49:58 +0000 2021
>Last-Modified: Sat Jan 16 13:49:58 +0000 2021
>Originator: Onno van der Linden
>Release: NetBSD 9.99.75
>Organization:
>Environment:
System: NetBSD sheep 9.99.75 NetBSD 9.99.75 (SHEEPKMS) #0: Sat Nov 14 12:22:46 CET 2020 onno@sheep:/usr/src/sys/arch/i386/compile/SHEEPKMS i386
Architecture: i386
Machine: i386
>Description:
pkg/55456 describes failing to compile firefox on NetBSD/i386 9.0
due to __atomic_load unresolved external.
I've build firefox 74 on NetBSD/i386 9.99.52 with
clang 9.0 and rust 1.42 without the need for libatomic
I've also build firefox 83 on NetBSD/i386 9.99.75 with
clang 10.0.1 and rust 1.45 without the need for libatomic
>How-To-Repeat:
Build firefox on NetBSD/i386 using the packages described earlier.
>Fix:
-march=i586 has worked for a long, long time to get the __atomic_*
functions without using libatomic for gcc
I'm 100% certain that clang since version 9.x works the same way
as gcc has done for years. No idea what clang version was used
in pkg/55456.
Looks like the libatomic inclusion in mozilla-common.mk
for NetBSD/i386 could (should ?) be me made dependant on
the clang version used to compile firefox.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback
State-Changed-By: nia@NetBSD.org
State-Changed-When: Thu, 14 Jan 2021 12:09:06 +0000
State-Changed-Why:
I think this should be fixed now that firefox is including
atomic64.mk rather than libatomic/buildlink3.mk.
From: Onno van der Linden <o.vd.linden@quicknet.nl>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/55818 (firefox build on 32-bit x86 is possible without
libatomic)
Date: Thu, 14 Jan 2021 17:54:47 +0100
On Thu, Jan 14, 2021 at 12:09:07PM +0000, nia@NetBSD.org wrote:
> Synopsis: firefox build on 32-bit x86 is possible without libatomic
>
> State-Changed-From-To: open->feedback
> State-Changed-By: nia@NetBSD.org
> State-Changed-When: Thu, 14 Jan 2021 12:09:06 +0000
> State-Changed-Why:
> I think this should be fixed now that firefox is including
> atomic64.mk rather than libatomic/buildlink3.mk.
Looks fine. Close this PR please.
Onno
State-Changed-From-To: feedback->closed
State-Changed-By: nia@NetBSD.org
State-Changed-When: Sat, 16 Jan 2021 13:49:58 +0000
State-Changed-Why:
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.