NetBSD Problem Report #48595
From www@NetBSD.org Wed Feb 12 23:53:31 2014
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id 05743A645E
for <gnats-bugs@gnats.NetBSD.org>; Wed, 12 Feb 2014 23:53:31 +0000 (UTC)
Message-Id: <20140212235329.5F153A6494@mollari.NetBSD.org>
Date: Wed, 12 Feb 2014 23:53:29 +0000 (UTC)
From: jdbaker@mylinuxisp.com
Reply-To: jdbaker@consolidated.net
To: gnats-bugs@NetBSD.org
Subject: www/firefox on NetBSD/macppc
X-Send-Pr-Version: www-1.0
>Number: 48595
>Notify-List: jdbaker@consolidated.net
>Category: pkg
>Synopsis: www/firefox on NetBSD/macppc
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: ryoon
>State: closed
>Class: support
>Submitter-Id: net
>Arrival-Date: Wed Feb 12 23:55:00 +0000 2014
>Closed-Date: Thu May 05 21:12:24 +0000 2022
>Last-Modified: Thu May 05 21:12:24 +0000 2022
>Originator: John D. Baker
>Release: NetBSD/macppc-6.99.31, pkgsrc-2013Q4 (www/firefox from -HEAD)
>Organization:
>Environment:
NetBSD sawtooth.technoskunk.fur 6.99.31 NetBSD 6.99.31 (GENERIC_LOWRES) #2: Sat Feb 8 14:38:40 CST 2014 sysop@verthandi.technoskunk.fur:/d0/build/current/obj/macppc/sys/arch/macppc/compile/GENERIC_LOWRES macppc
>Description:
The following changes allow "www/firefox" (firefox-27.0 from
pkgsrc-HEAD) to compile, link, and install on NetBSD/macppc-6.99.31.
Revised "patches/patch-mb":
+--- xpcom/reflect/xptcall/src/md/unix/Makefile.in.orig 2014-01-27 22:04:07.000000000 -0600
++++ xpcom/reflect/xptcall/src/md/unix/Makefile.in 2014-02-12 14:10:35.000000000 -0600
+@@ -174,7 +174,8 @@
+ #
+ # NetBSD/PPC
+ #
+-ifneq (,$(filter NetBSDmacppc NetBSDbebox NetBSDofppc NetBSDprep NetBSDamigappc,$(OS_ARCH)$(OS_TEST)))
++ifeq ($(OS_ARCH)$(OS_TEST),NetBSDpowerpc)
++CPPSRCS := xptcinvoke_ppc_openbsd.cpp xptcstubs_ppc_openbsd.cpp
+ ASFILES := xptcinvoke_asm_ppc_netbsd.s xptcstubs_asm_ppc_netbsd.s
+ endif
+
+@@ -226,6 +227,13 @@
+ ASFILES := xptcinvoke_asm_sparc64_openbsd.s xptcstubs_asm_sparc64_openbsd.s
+ endif
+ #
++# NetBSD/SPARC64
++#
++ifeq ($(OS_ARCH)$(OS_TEST),NetBSDsparc64)
++CPPSRCS := xptcinvoke_sparc64_netbsd.cpp xptcstubs_sparc64_openbsd.cpp
++ASFILES := xptcinvoke_asm_sparc64_openbsd.s xptcstubs_asm_sparc64_netbsd.s
++endif
++#
+ # Solaris/SPARC
+ #
+ ifeq ($(OS_ARCH),SunOS)
Revised "patches/patch-xl":
+--- xpcom/reflect/xptcall/src/md/unix/xptcinvoke_asm_ppc_netbsd.s.orig 2014-01-27 22:04:07.000000000 -0600
++++ xpcom/reflect/xptcall/src/md/unix/xptcinvoke_asm_ppc_netbsd.s 2014-02-12 17:04:29.000000000 -0600
+@@ -20,15 +20,15 @@
+
+ .section ".text"
+ .align 2
+- .globl XPTC_InvokeByIndex
+- .type XPTC_InvokeByIndex,@function
++ .globl NS_InvokeByIndex
++ .type NS_InvokeByIndex,@function
+
+ #
+-# XPTC_InvokeByIndex(nsISupports* that, uint32_t methodIndex,
+-# uint32_t paramCount, nsXPTCVariant* params)
++# NS_InvokeByIndex(nsISupports* that, PRUint32 methodIndex,
++# PRUint32 paramCount, nsXPTCVariant* params)
+ #
+
+-XPTC_InvokeByIndex:
++NS_InvokeByIndex:
+ stwu sp,-32(sp) # setup standard stack frame
+ mflr r0 # save LR
+ stw r3,8(sp) # r3 <= that
Whether it runs or not has yet to be tested. Just wanted to make
sure these patches got recorded.
>How-To-Repeat:
See above.
>Fix:
See above.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->ryoon
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Thu, 13 Feb 2014 08:58:24 +0000
Responsible-Changed-Why:
over to maintainer
From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/48595 (www/firefox on NetBSD/macppc)
Date: Sat, 7 Feb 2015 22:42:18 -0600 (CST)
As of NetBSD-7.99.4 and pkgsrc-2014Q4, the following revised patches
allow "www/firefox" to build on port-macppc:
Revised patch-xpcom_reflect_xptcall_md_unix_Makefile.in:
+$NetBSD: patch-xpcom_reflect_xptcall_md_unix_Makefile.in,v 1.1 2014/10/15 13:43:32 ryoon Exp $
+
+--- xpcom/reflect/xptcall/md/unix/Makefile.in.orig 2014-11-26 06:30:27.000000000 -0600
++++ xpcom/reflect/xptcall/md/unix/Makefile.in 2015-02-05 16:17:24.000000000 -0600
+@@ -51,11 +51,51 @@ ifeq ($(OS_ARCH),AIX)
+ # #24617 Building the CPP's (CXX) optimized causes a crash
+ CXXFLAGS := $(filter-out $(MOZ_OPTIMIZE_FLAGS), $(CXXFLAGS))
+ endif
++#
++# NetBSD/PPC
++#
++ifeq ($(OS_ARCH)$(OS_TEST),NetBSDpowerpc)
++CPPSRCS := xptcinvoke_ppc_openbsd.cpp xptcstubs_ppc_openbsd.cpp
++ASFILES := xptcinvoke_asm_ppc_netbsd.s xptcstubs_asm_ppc_netbsd.s
++endif
+
+ ######################################################################
+ # SPARC
+ ######################################################################
+ #
++# Linux/SPARC
++#
++ifeq ($(OS_ARCH),Linux)
++ifneq (,$(findstring sparc,$(OS_TEST)))
++ASFILES := xptcinvoke_asm_sparc_linux_GCC3.s xptcstubs_asm_sparc_solaris.s
++endif
++endif
++#
++# NetBSD/SPARC
++#
++ifeq ($(OS_ARCH)$(OS_TEST),NetBSDsparc)
++ASFILES := xptcinvoke_asm_sparc_netbsd.s xptcstubs_asm_sparc_netbsd.s
++endif
++#
++# OpenBSD/SPARC
++#
++ifeq ($(OS_ARCH)$(OS_TEST),OpenBSDsparc)
++ASFILES := xptcinvoke_asm_sparc_openbsd.s xptcstubs_asm_sparc_openbsd.s
++endif
++#
++# OpenBSD/SPARC64
++#
++ifneq (,$(filter OpenBSDsparc64 FreeBSDsparc64,$(OS_ARCH)$(OS_TEST)))
++ASFILES := xptcinvoke_asm_sparc64_openbsd.s xptcstubs_asm_sparc64_openbsd.s
++endif
++#
++# NetBSD/SPARC64
++#
++ifeq ($(OS_ARCH)$(OS_TEST),NetBSDsparc64)
++CPPSRCS := xptcinvoke_sparc64_netbsd.cpp xptcstubs_sparc64_openbsd.cpp
++ASFILES := xptcinvoke_asm_sparc64_openbsd.s xptcstubs_asm_sparc64_netbsd.s
++endif
++#
+ # Solaris/SPARC
+ #
+ ifeq ($(OS_ARCH),SunOS)
Revised patch-xpcom_reflect_xptcall_md_unix_xptcinvoke__asm__ppc__netbsd.s:
+$NetBSD: patch-xpcom_reflect_xptcall_md_unix_xptcinvoke__asm__ppc__netbsd.s,v 1.1 2014/10/15 13:43:32 ryoon Exp $
+
+--- xpcom/reflect/xptcall/md/unix/xptcinvoke_asm_ppc_netbsd.s.orig 2014-10-11 09:06:50.000000000 +0000
++++ xpcom/reflect/xptcall/md/unix/xptcinvoke_asm_ppc_netbsd.s
+@@ -20,15 +20,15 @@
+
+ .section ".text"
+ .align 2
+- .globl XPTC_InvokeByIndex
+- .type XPTC_InvokeByIndex,@function
++ .globl NS_InvokeByIndex
++ .type NS_InvokeByIndex,@function
+
+ #
+-# XPTC_InvokeByIndex(nsISupports* that, uint32_t methodIndex,
+-# uint32_t paramCount, nsXPTCVariant* params)
++# NS_InvokeByIndex(nsISupports* that, PRUint32 methodIndex,
++# PRUint32 paramCount, nsXPTCVariant* params)
+ #
+
+-XPTC_InvokeByIndex:
++NS_InvokeByIndex:
+ stwu sp,-32(sp) # setup standard stack frame
+ mflr r0 # save LR
+ stw r3,8(sp) # r3 <= that
--
|/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X
|\ / jdbaker[snail]mylinuxisp[flyspeck]com OpenBSD FreeBSD
| X No HTML/proprietary data in email. BSD just sits there and works!
|/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645
From: Sevan Janiyan <venture37@geeklan.co.uk>
To: "gnats-bugs@netbsd.org" <gnats-bugs@NetBSD.org>
Cc:
Subject: Re: pkg/48595: www/firefox on NetBSD/macppc
Date: Tue, 3 Jan 2017 03:00:19 +0000
Hi,
I've tried this on NetBSD/macppc HEAD 7.99.52 and after some
considerable time the build still blows up, now with undefined
references to nearbyintf __atomic_fetch_add_8 __atomic_store_8
__atomic_load_8 __attomic_fetch_sub_8 and nearbyint in libxul.so.
Sevan
From: Sevan Janiyan <venture37@geeklan.co.uk>
To: "gnats-bugs@netbsd.org" <gnats-bugs@NetBSD.org>
Cc:
Subject: Re: pkg/48595: www/firefox on NetBSD/macppc
Date: Sat, 7 Jan 2017 03:45:00 +0000
On 03/01/2017 03:00, Sevan Janiyan wrote:
> Hi,
> I've tried this on NetBSD/macppc HEAD 7.99.52 and after some
> considerable time the build still blows up, now with undefined
> references to nearbyintf __atomic_fetch_add_8 __atomic_store_8
> __atomic_load_8 __attomic_fetch_sub_8 and nearbyint in libxul.so.
>
Tried on another mac running 7.99.33 with an up to date pkgsrc tree &
build everything from scratch.
Still fails with the second patch.
Executing: ../../../.cwrapper/bin/c++ -std=gnu++11 -o plugin-container
-DPNG_NO_ASSEMBLER_CODE -I/usr/pkg/include -I/usr/include -I/usr/pkg/includ
e/nspr -I/usr/pkg/include/nss/nss -I/usr/X11R7/include
-I/usr/X11R7/include/libdrm -I/usr/X11R7/include/freetype2
-I/usr/pkg/include/ffmpeg3 -Wall
-Wc++11-compat -Wempty-body -Wignored-qualifiers -Woverloaded-virtual
-Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wwrite-str
ings -Wc++14-compat -Wno-invalid-offsetof -Wno-error=maybe-uninitialized
-Wno-error=deprecated-declarations -Wno-error=array-bounds -O2 -I/usr/pkg
/include -I/usr/include -I/usr/pkg/include/nspr
-I/usr/pkg/include/nss/nss -I/usr/X11R7/include
-I/usr/X11R7/include/libdrm -I/usr/X11R7/include/f
reetype2 -I/usr/pkg/include/ffmpeg3 -fno-exceptions -fno-strict-aliasing
-Dunix -fno-rtti -fno-exceptions -fno-math-errno -pthread -pipe -I/usr/pk
g/include -O2 -fomit-frame-pointer
/usr/pkgsrc/www/firefox/work/build/ipc/app/tmppeQX1r.list -lpthread
-Wl,-R/usr/pkg/lib/firefox -Wl,-R/usr/pkg/l
ib -L/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib/nspr
-Wl,-R/usr/pkg/lib/nspr -L/usr/pkg/lib/nss -Wl,-R/usr/pkg/lib/nss
-L/usr/X11R7/lib
-Wl,-R/usr/X11R7/lib -L/usr/pkg/lib/ffmpeg3 -Wl,-R/usr/pkg/lib/ffmpeg3
-Wl,-z,noexecstack -Wl,-z,text -Wl,--build-id -rdynamic -Wl,-rpath-link,/u
sr/pkgsrc/www/firefox/work/build/dist/bin -Wl,-rpath-link,/usr/pkg/lib
../../xpcom/glue/libxpcomglue_s.a -pie ../../toolkit/library/libxul.so -Wl,
-R/usr/pkg/lib/nspr -L/usr/pkg/lib/nspr -lplds4 -lplc4 -lnspr4
-L/usr/lib -pthread -Wl,--export-dynamic
/usr/pkgsrc/www/firefox/work/build/ipc/app/tmppeQX1r.list:
INPUT("GMPLoader.o")
INPUT("MozillaRuntimeMain.o")
INPUT("../../mozglue/build/dummy.o")
INPUT("../../memory/mozalloc/Unified_cpp_memory_mozalloc0.o")
INPUT("../../mozglue/misc/StackWalk.o")
INPUT("../../mozglue/misc/TimeStamp.o")
INPUT("../../mozglue/misc/TimeStamp_posix.o")
INPUT("../../mfbt/Compression.o")
INPUT("../../mfbt/Decimal.o")
INPUT("../../mfbt/Unified_cpp_mfbt0.o")
INPUT("../../memory/fallible/fallible.o")
INPUT("../../dom/media/gmp/rlz/Unified_cpp_dom_media_gmp_rlz0.o")
../../toolkit/library/libxul.so: undefined reference to `nearbyintf'
../../toolkit/library/libxul.so: undefined reference to
`__atomic_fetch_add_8'
../../toolkit/library/libxul.so: undefined reference to `__atomic_store_8'
../../toolkit/library/libxul.so: undefined reference to `__atomic_load_8'
../../toolkit/library/libxul.so: undefined reference to
`__atomic_fetch_sub_8'
../../toolkit/library/libxul.so: undefined reference to `nearbyint'
/usr/pkgsrc/www/firefox/work/firefox-50.1.0/config/rules.mk:657: recipe
for target 'plugin-container' failed
Sevan
From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: Havard Eidnes <he@netbsd.org>
Subject: Re: pkg/48595 (www/firefox on NetBSD/macppc)
Date: Fri, 8 Sep 2017 13:08:15 -0500 (CDT)
Beginning with this commit:
http://mail-index.netbsd.org/pkgsrc-changes/2017/08/26/msg162097.html
The issues in this PR appear to have been at least partially addressed.
It may be some time before I can try it myself.
--
|/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X
|\ / jdbaker[snail]mylinuxisp[flyspeck]com OpenBSD FreeBSD
| X No HTML/proprietary data in email. BSD just sits there and works!
|/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645
From: "David H. Gutteridge" <david@gutteridge.ca>
To: gnats-bugs@netbsd.org
Cc: venture37@geeklan.co.uk, he@netbsd.org
Subject: Re: pkg/48595: www/firefox on NetBSD/macppc
Date: Fri, 22 Mar 2019 01:09:31 -0400
In the discussion that developed in this PR, it's unclear to me *which*
version(s) of Firefox are being discussed, beyond the initial detail of
Firefox 27. I'm assuming three years later the discussion shifted to a
much more recent version, but it's unclear what's being referred to.
As I just noted in PR 53380, the issue Sevan is referencing with
specific atomic operations on 32-bit PowerPC can be resolved by GCC's
libatomic. I've already done so for lang/spidermonkey52. (Or, at least,
it seems to work for me, on macppc/8.0!)
Dave
State-Changed-From-To: open->feedback
State-Changed-By: gutteridge@NetBSD.org
State-Changed-When: Fri, 04 Oct 2019 23:32:48 +0000
State-Changed-Why:
Please advise if this is relevant for current versions in pkgsrc.
From: "John D. Baker" <jdbaker@consolidated.net>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/48595 (www/firefox on NetBSD/macppc)
Date: Mon, 2 Dec 2019 17:32:11 -0600 (CST)
On Fri, 4 Oct 2019, gutteridge@NetBSD.org wrote:
> State-Changed-From-To: open->feedback
> State-Changed-By: gutteridge@NetBSD.org
> State-Changed-When: Fri, 04 Oct 2019 23:32:48 +0000
> State-Changed-Why:
> Please advise if this is relevant for current versions in pkgsrc.
I haven't booted my one remaining working macppc box in a long time,
let alone updated packages on it nevermind any firefoxen.
Now that physical ailments that prevented me from accessing the macppc
system are starting to abate, I hope to do so again soon-ish.
--
|/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X
|\ / jdbaker[snail]consolidated[flyspeck]net OpenBSD FreeBSD
| X No HTML/proprietary data in email. BSD just sits there and works!
|/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645
From: "John D. Baker" <jdbaker@consolidated.net>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/48595: www/firefox on NetBSD/macppc
Date: Thu, 5 May 2022 12:16:44 -0500 (CDT)
I no longer have any operational macppc systems, so cannot test anything
myself.
The import of "www/arcticfox" to pkgsrc appears to mirror the changes I
made to "www/firefox" at the time this PR was opened. I see reports
of successful build and run of 'arcticfox', so I believe this PR may
be closed as no-longer relevant.
--
|/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X
|\ / jdbaker[snail]consolidated[flyspeck]net OpenBSD FreeBSD
| X No HTML/proprietary data in email. BSD just sits there and works!
|/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645
State-Changed-From-To: feedback->closed
State-Changed-By: gutteridge@NetBSD.org
State-Changed-When: Thu, 05 May 2022 21:12:24 +0000
State-Changed-Why:
Submitter fine to close, package supplanted by arcticfox in this context.
>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.