Bug 201607 - www/firefox: Fails to configure on PowerPC
Summary: www/firefox: Fails to configure on PowerPC
Status: Closed Feedback Timeout
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: powerpc Any
: --- Affects Only Me
Assignee: freebsd-gecko (Nobody)
URL:
Keywords: needs-qa
Depends on:
Blocks:
 
Reported: 2015-07-16 02:37 UTC by herminio.hernandezjr
Modified: 2016-11-03 23:01 UTC (History)
2 users (show)

See Also:
koobs: maintainer-feedback? (gecko)


Attachments
error file (30.61 KB, text/plain)
2015-07-16 02:37 UTC, herminio.hernandezjr
no flags Details
output (2.32 KB, text/plain)
2015-08-10 00:19 UTC, herminio.hernandezjr
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description herminio.hernandezjr 2015-07-16 02:37:18 UTC
Created attachment 158824 [details]
error file

I am trying to build firefox on PowerPC but the build is failing. I am attaching the error.
Comment 1 Jan Beich freebsd_committer freebsd_triage 2015-07-16 22:04:11 UTC
Try to update lang/python27 and make sure it's built with SEM=on and THREADS=on. In the past mozbuild sometimes tripped upon broken 'multiprocessing' when SEM=off that OpenBSD buildbot tended to catch until it implemented sem_open().
Comment 2 herminio.hernandezjr 2015-08-10 00:19:52 UTC
Created attachment 159715 [details]
output
Comment 3 herminio.hernandezjr 2015-08-10 00:20:51 UTC
updated python and set SEM and THREADS to on and still failed. see file that I recently added.
Comment 4 Jan Beich freebsd_committer freebsd_triage 2015-08-10 00:57:59 UTC
Comment on attachment 159715 [details]
output

>dtrace -x nolibs -G -C -s /usr/ports/www/firefox/work/mozilla-release/js/src/devtools/javascript-trace.d -o js-dtrace.o RegExp.o ...
><jemalloc>: /usr/src/lib/libc/../../contrib/jemalloc/include/jemalloc/internal/arena.h:990: Failed assertion: "arena_mapbits_allocated_get(chunk, pageind) != 0"
>/usr/ports/www/firefox/work/mozilla-release/config/rules.mk:800: recipe for target 'js-dtrace.o' failed
>gmake[7]: *** [js-dtrace.o] Abort trap (core dumped)

Try building with DTRACE=off. "Not a Bug" for ports scope.

If you want to pursue DTRACE=on try to:
- Build dtrace(1) and all libs it depends on with DEBUG_FLAGS=-g
- Get a backtrace with gdb/lldb
- Change bugzilla Product to Base System + check "Reset Assignee to default"
Comment 5 herminio.hernandezjr 2015-08-10 02:06:02 UTC
Added DTRACE=off and still failed. see below

gmake[7]: Entering directory '/usr/ports/www/firefox/work/mozilla-release/obj-powerpc-portbld-freebsd11.0/js/src'
dtrace -x nolibs -G -C -s /usr/ports/www/firefox/work/mozilla-release/js/src/devtools/javascript-trace.d -o js-dtrace.o RegExp.o CTypes.o Library.o Parser.o ExecutableAllocatorPosix.o jsarray.o jsatom.o jsmath.o jsutil.o pm_stub.o TraceLogging.o TraceLoggingGraph.o TraceLoggingTypes.o Unified_cpp_js_src0.o Unified_cpp_js_src1.o Unified_cpp_js_src10.o Unified_cpp_js_src11.o Unified_cpp_js_src2.o Unified_cpp_js_src3.o Unified_cpp_js_src4.o Unified_cpp_js_src5.o Unified_cpp_js_src6.o Unified_cpp_js_src7.o Unified_cpp_js_src8.o Unified_cpp_js_src9.o
<jemalloc>: /usr/src/lib/libc/../../contrib/jemalloc/include/jemalloc/internal/arena.h:990: Failed assertion: "arena_mapbits_allocated_get(chunk, pageind) != 0"
/usr/ports/www/firefox/work/mozilla-release/config/rules.mk:800: recipe for target 'js-dtrace.o' failed
gmake[7]: *** [js-dtrace.o] Abort trap (core dumped)
gmake[7]: Leaving directory '/usr/ports/www/firefox/work/mozilla-release/obj-powerpc-portbld-freebsd11.0/js/src'
/usr/ports/www/firefox/work/mozilla-release/config/recurse.mk:74: recipe for target 'js/src/target' failed
gmake[6]: *** [js/src/target] Error 2
gmake[6]: Leaving directory '/usr/ports/www/firefox/work/mozilla-release/obj-powerpc-portbld-freebsd11.0'
/usr/ports/www/firefox/work/mozilla-release/config/recurse.mk:36: recipe for target 'compile' failed
gmake[5]: *** [compile] Error 2
gmake[5]: Leaving directory '/usr/ports/www/firefox/work/mozilla-release/obj-powerpc-portbld-freebsd11.0'
/usr/ports/www/firefox/work/mozilla-release/config/rules.mk:541: recipe for target 'default' failed
gmake[4]: *** [default] Error 2
gmake[4]: Leaving directory '/usr/ports/www/firefox/work/mozilla-release/obj-powerpc-portbld-freebsd11.0'
/usr/ports/www/firefox/work/mozilla-release/client.mk:400: recipe for target 'realbuild' failed
gmake[3]: *** [realbuild] Error 2
gmake[3]: Leaving directory '/usr/ports/www/firefox/work/mozilla-release'
/usr/ports/www/firefox/work/mozilla-release/client.mk:171: recipe for target 'build' failed
gmake[2]: *** [build] Error 2
gmake[2]: Leaving directory '/usr/ports/www/firefox/work/mozilla-release'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/www/firefox
*** Error code 1

Stop.
make: stopped in /usr/ports/www/firefox
Comment 6 Jan Beich freebsd_committer freebsd_triage 2015-08-10 06:28:58 UTC
(In reply to herminio.hernandezjr from comment #5)
> Added DTRACE=off and still failed.

Did you turn off DTRACE in |make config| and |make showconfig| now shows DTRACE=off? If so --disable-dtrace should be passed during configure stage.

It's hard to tell more without more complete build log and |make showconfig| output. There could be a genuine issue if some of the base tools used by configure script behaves erratically on powerpc.

For one, freebsd.org packages don't invoke dtrace(1) during build as you can see in the linked log below. The reason is DTRACE option being disabled by default.

http://beefy5.nyi.freebsd.org/data/101i386-default/393044/logs/firefox-39.0,1.log
Comment 7 Jan Beich freebsd_committer freebsd_triage 2016-11-03 23:01:48 UTC
This is too old. Please, re-try with firefox-50.0,1.