NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

ArcticFox undefined _c99_cabs and OOM error



Hi,

I am trying to port ArcticFox to NetBSD: it is a PaleMoon 27 fork and thus close parent of firefox from 36 to 45 mostly. Primary idea was to keep support for older MacOS versions, but it is also very good as lighter browser on other OS! Of course I want it on NetBSD!

I backported  many fixes from FF 52 and other small code upgrades, to pass from gcc4 vintage to GCC 6 and clang. It already builds successfully on linux with gcc6 and there is partial progress with GCC8

Not on NetBSD though. I get this error:

20:43.67 ld: warning: libintl.so.1, needed by /usr/pkg/lib/libdbus-glib-1.so, may conflict with libintl.so.8 20:43.68 ld: warning: libintl.so.1, needed by /usr/pkg/lib/libdbus-glib-1.so, may conflict with libintl.so.8 20:43.68 ../../dom/media/webaudio/Unified_cpp_dom_media_webaudio1.o: In function `std::__complex_abs(doublecomplex )':
20:43.69 /usr/include/g++/complex:602: undefined reference to `__c99_cabs'
20:43.69 /usr/include/g++/complex:602: undefined reference to `__c99_cabs'
20:43.69 /usr/include/g++/complex:602: undefined reference to `__c99_cabs'
20:43.69 /usr/include/g++/complex:602: undefined reference to `__c99_cabs'
20:43.69 ../../dom/media/webaudio/blink/Unified_cpp_webaudio_blink0.o: In function `std::__complex_abs(doublecomplex )':
20:43.70 /usr/include/g++/complex:602: undefined reference to `__c99_cabs'
20:43.70 ../../dom/media/webaudio/blink/Unified_cpp_webaudio_blink0.o:/usr/include/g++/complex:602: more undefined references to `__c99_cabs' follow 20:45.53 gmake[5]: *** [/home/multix/code/Arctic-Fox/config/rules.mk:820: libxul.so] Error 1


ON the internet I read about the need of linking with libm, what do you think? Any better ideas? It did not work for me

It look very similar to this:
http://mail-index.netbsd.org/pkgsrc-wip-changes/2016/03/21/msg002220.html
http://mail-index.netbsd.org/pkgsrc-wip-changes/2016/04/25/msg002567.html

however I cannot find the exact patch that fixes it. What is different in NetBSD here than Linux? I suppose the C library more than the compiler.

More promising looks this:
https://mail-index.netbsd.org/pkgsrc-wip-changes/2016/04/29/msg002618.html

But then I don't know why and if the patch is portable or should be specific to NetBSD. However, it allowed to build, so it is the correct patch, would be just good to know "why" before pushing it upstream.

Now with a couple of other minor fixes (but not the whole load I see for FF45 as patches.. I just need to tweak some includes) AF compiles, but does not run:

disc$ ./mach run
 0:02.50 /home/multix/code/Arctic-Fox/obj-x86_64-unknown-netbsd8.99.26/dist/bin/arcticfox -no-remote -profile /home/multix/code/Arctic-Fox/obj-x86_64-unknown-netbsd8.99.26/tmp/scratch_user
out of memory
Assertion failure: [unhandlable oom] OOM in createJitRuntime, at /home/multix/code/Arctic-Fox/js/src/jscntxt.cpp:1191

It is not a RAM issue but a way to trigger an exception.. any ideas?

Riccardo


Home | Main Index | Thread Index | Old Index