Bug 209704 - www/firefox: Build fails with RUST=on option.
Summary: www/firefox: Build fails with RUST=on option.
Status: Closed Feedback Timeout
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-gecko (Nobody)
URL:
Keywords: needs-qa
Depends on:
Blocks:
 
Reported: 2016-05-23 04:14 UTC by sasamotikomi
Modified: 2017-03-19 12:09 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sasamotikomi 2016-05-23 04:14:32 UTC
Firefox fail at build with options RUST=on.
Comment 1 Jan Beich freebsd_committer freebsd_triage 2016-05-23 06:09:25 UTC
pkg-fallout@ haven't complained[1]. ;) Provide more details like a build log, preferably from poudriere. Note, RUST=on isn't supported on 9.x or non-x86 platforms due to lack of bootstrap which is lang/rust issue.

[1] http://portsmon.freebsd.org/portoverview.py?category=www&portname=firefox
Comment 2 sasamotikomi 2016-05-24 03:24:58 UTC
(In reply to Jan Beich from comment #1)
It's fail to build on real(not jail/poudriere) hardware even on x86:
/usr/local/bin/rustc -O --crate-type staticlib --emit dep-info=.deps/libMP4Metadata.a.pp,link=libMP4Metadata.a /usr/ports/www/firefox/work/firefox-46.0.1/media/libstagefright/binding/MP4Metadata.rs
/usr/ports/www/firefox/work/firefox-46.0.1/config/rules.mk:958: recipe for target 'libMP4Metadata.a' failed
gmake[7]: *** [libMP4Metadata.a] Illegal instruction (core dumped)
gmake[7]: Leaving directory '/usr/ports/www/firefox/work/firefox-46.0.1/obj-i386-portbld-freebsd10.1/media/libstagefright'
/usr/ports/www/firefox/work/firefox-46.0.1/config/recurse.mk:71: recipe for target 'media/libstagefright/target' failed
gmake[6]: *** [media/libstagefright/target] Error 2
gmake[6]: Leaving directory '/usr/ports/www/firefox/work/firefox-46.0.1/obj-i386-portbld-freebsd10.1'
/usr/ports/www/firefox/work/firefox-46.0.1/config/recurse.mk:32: recipe for target 'compile' failed
gmake[5]: *** [compile] Error 2
gmake[5]: Leaving directory '/usr/ports/www/firefox/work/firefox-46.0.1/obj-i386-portbld-freebsd10.1'
/usr/ports/www/firefox/work/firefox-46.0.1/config/rules.mk:557: recipe for target 'default' failed
gmake[4]: *** [default] Error 2
gmake[4]: Leaving directory '/usr/ports/www/firefox/work/firefox-46.0.1/obj-i386-portbld-freebsd10.1'
/usr/ports/www/firefox/work/firefox-46.0.1/client.mk:396: recipe for target 'realbuild' failed
gmake[3]: *** [realbuild] Error 2
gmake[3]: Leaving directory '/usr/ports/www/firefox/work/firefox-46.0.1'
/usr/ports/www/firefox/work/firefox-46.0.1/client.mk:171: recipe for target 'build' failed
gmake[2]: *** [build] Error 2
gmake[2]: Leaving directory '/usr/ports/www/firefox/work/firefox-46.0.1'
*** Error code 1
Also about this situation has been reported few times in #freebsd (freenode).
Comment 3 Jan Beich freebsd_committer freebsd_triage 2016-05-24 04:11:01 UTC
> /usr/local/bin/rustc -O --crate-type staticlib --emit dep-info=.deps/libMP4Metadata.a.pp,link=libMP4Metadata.a
> gmake[7]: *** [libMP4Metadata.a] Illegal instruction (core dumped)

lang/rust crashes. To investigate you have to rebuild the port WITH_DEBUG=1 and run gdb/lldb against the core(5) file that's likely somewhere under WRKDIR.

Can you also show dmesg(1) output? IIRC, until recently Rust standard library used to require SSE2 support.

> Also about this situation has been reported few times in #freebsd (freenode).

I'm not using IRC and if the channel doesn't have public logging enabled I won't care e.g.,

http://logs.glob.uno/?a=search&c=mozilla%23developers&q=freebsd&ss=1+Jan+2016
Comment 4 Jean-Sébastien Pédron freebsd_committer freebsd_triage 2017-01-21 13:18:15 UTC
Hi!

Is this crash still a problem?