firefox/ rust failed to install on FreeBSD 12-CURRENT

Kevin Oberman rkoberman at gmail.com
Sun May 28 19:49:54 UTC 2017


On Sun, May 28, 2017 at 12:24 PM, Konstantin Belousov <kostikbel at gmail.com>
wrote:

> On Mon, May 29, 2017 at 01:28:57AM +0800, blubee blubeeme wrote:
> > I'm trying to install firefox on FreeBSD
> > FreeBSD 12.0-CURRENT FreeBSD 12.0-CURRENT
> > #0 r318998: Sun May 28 04:38:22 CST 2017
> > /usr/obj/usr/src/sys/GENERIC  amd64
> >
> > ===>   firefox-i18n-53.0.3 depends on file:
> /usr/local/lib/firefox/firefox
> > - not found
> > ===>   firefox-53.0.3_1,1 depends on package: nspr>=4.13.1 - found
> > ===>   firefox-53.0.3_1,1 depends on package: nss>=3.29.5 - found
> > ===>   firefox-53.0.3_1,1 depends on package: libevent>=2.0.21_2 - found
> > ===>   firefox-53.0.3_1,1 depends on package: harfbuzz>=1.4.1 - found
> > ===>   firefox-53.0.3_1,1 depends on package: graphite2>=1.3.8 - found
> > ===>   firefox-53.0.3_1,1 depends on package: png>=1.6.28 - found
> > ===>   firefox-53.0.3_1,1 depends on package: libvorbis>=1.3.5,3 - found
> > ===>   firefox-53.0.3_1,1 depends on package: libvpx>=1.5.0 - found
> > ===>   firefox-53.0.3_1,1 depends on package: sqlite3>=3.17.0 - found
> > ===>   firefox-53.0.3_1,1 depends on package: py27-sqlite3>0 - found
> > ===>   firefox-53.0.3_1,1 depends on package: v4l_compat>0 - found
> > ===>   firefox-53.0.3_1,1 depends on executable: autoconf-2.13 - found
> > ===>   firefox-53.0.3_1,1 depends on executable: yasm - found
> > ===>   firefox-53.0.3_1,1 depends on executable: zip - found
> > ===>   firefox-53.0.3_1,1 depends on package: gtk3>=3.14.6 - found
> > ===>   firefox-53.0.3_1,1 depends on package: libnotify>0 - found
> > ===>   firefox-53.0.3_1,1 depends on executable: rustc - not found
> > ===>  Building for rust-1.17.0
> > gmake[7]: Entering directory '/usr/ports/lang/rust/work/
> rustc-1.17.0-src'
> > "/usr/local/bin/python2.7"
> > /usr/ports/lang/rust/work/rustc-1.17.0-src/src/bootstrap/bootstrap.py
> > build -v
> > info: looks like you are running this command under `sudo`
> >       and so in order to preserve your $HOME this will now
> >       use vendored sources by default. Note that if this
> >       does not work you should run a normal build first
> >       before running a command like `sudo make install`
> Build system already tries to say you what you are doing wrong.
>
> Do not build the rust port under sudo.
>
> > extracting /usr/ports/lang/rust/work/rustc-1.17.0-src/build/cache/
> > 2017-03-11/rust-std-1.16.0-x86_64-unknown-freebsd.tar.gz
> >   extracting rust-std-1.16.0-x86_64-unknown-freebsd/rust-std-x86_
> > 64-unknown-freebsd
> >   extracting rust-std-1.16.0-x86_64-unknown-freebsd/rust-std-x86_
> > 64-unknown-freebsd/lib
> >   extracting rust-std-1.16.0-x86_64-unknown-freebsd/rust-std-x86_
> > 64-unknown-freebsd/manifest.in
> >   extracting rust-std-1.16.0-x86_64-unknown-freebsd/rust-std-x86_
> > 64-unknown-freebsd/lib/rustlib
> >   extracting rust-std-1.16.0-x86_64-unknown-freebsd/rust-std-x86_
> > 64-unknown-freebsd/lib/rustlib/x86_64-unknown-freebsd
> >   extracting rust-std-1.16.0-x86_64-unknown-freebsd/rust-std-x86_
> > 64-unknown-freebsd/lib/rustlib/x86_64-unknown-freebsd/lib
> >   extracting rust-std-1.16.0-x86_64-unknown-freebsd/rust-std-x86_
> > 64-unknown-freebsd/lib/rustlib/x86_64-unknown-
> freebsd/lib/GNUSparseFile.0/
> > librustc_llvm-74a1be1110b5d4d0.so
> > gmake[7]: Leaving directory '/usr/ports/lang/rust/work/rustc-1.17.0-src'
> > *** Error code 1
> >
> > Stop.
> > make[6]: stopped in /usr/ports/lang/rust
> > *** Error code 1
> >
> > Stop.
> > make[5]: stopped in /usr/ports/lang/rust
> > *** Error code 1
> >
> > Stop.
> > make[4]: stopped in /usr/ports/www/firefox
> > *** Error code 1
> >
> > Stop.
> > make[3]: stopped in /usr/ports/www/firefox
> > *** Error code 1
> >
> > Stop.
> > make[2]: stopped in /usr/ports/www/firefox-i18n
> > *** Error code 1
> >
> > Stop.
> > make[1]: stopped in /usr/ports/www/firefox-i18n
> > *** Error code 1
> >
> > Stop.
> > make: stopped in /usr/ports/www/firefox-i18n
> >
> >
> > I am getting build failures with or without make_build_unsafe flags.
> >
> > I am building from source and ports tree is updated to revision 441919.
> >
> > Best,
> > Owen
> > _______________________________________________
> > freebsd-ports at freebsd.org mailing list
> > https://lists.freebsd.org/mailman/listinfo/freebsd-ports
> > To unsubscribe, send any mail to "freebsd-ports-unsubscribe at freebsd.org"
> _______________________________________________
> freebsd-ports at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe at freebsd.org"
>

More exactly, don't build rust with 'sudo buildcommand' where
'buildcommand' could be make, portmaster, or any other command that will
build rust.

You can, however, 'sudo -c' and then run the build with no problem. I do
this regularly. 'sudo -c' really makes your environment into root with a
new shell and you must 'exit' to get back to being yourself.
--
Kevin Oberman, Part time kid herder and retired Network Engineer
E-mail: rkoberman at gmail.com
PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683


More information about the freebsd-ports mailing list