[Bug 257661] www/firefox - error: crate `std` required to be available in rlib format, but was not found in this form

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 09 Aug 2021 21:01:11 +0000
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257661

--- Comment #1 from andy_at_neu.net ---
[root_at_Free_BSD_13 /usr/ports]# portupgrade -vP www/firefox
--->  Session started at: Mon, 09 Aug 2021 16:57:22 -0400
[Reading data from pkg(8) ... - 966 packages found - done]
--->  Checking for the latest package of 'www/firefox'
--->  Found a package of 'www/firefox':
/usr/ports/packages/All/firefox-90.0.1,2.txz (firefox-90.0.1,2)
--->  Fetching the package(s) for 'firefox-91.0_1,2' (www/firefox)
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
[Reading data from pkg(8) ... - 966 packages found - done]
--->  Fetching firefox-91.0_1,2
--->  Invoking a command: /usr/local/sbin/pkg fetch -U -y -o
'/var/tmp/portupgraderuX8UnLV' 'firefox-91.0_1,2'
The following packages will be fetched:

New packages to be FETCHED:
        firefox: 91.0_1,2 (54 MiB: 100.00% of the 54 MiB to download)

Number of packages to be fetched: 1

The process will require 54 MiB more space.
54 MiB to be downloaded.
Fetching firefox-91.0_1,2.pkg: 100%   54 MiB   8.1MB/s    00:07    
** Failed to fetch firefox-91.0_1,2.txz
** Failed to fetch firefox-91.0_1,2
--->  Listing the results (+:done / -:ignored / *:skipped / !:failed)
        ! firefox-91.0_1,2      (fetch error)
--->  Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed
--->  Located a package version 90.0.1,2
(/usr/ports/packages/All/firefox-90.0.1,2.txz)
** Ignoring the package, which is older than what is installed (90.0.2,2)
--->  Using the port instead of a package
--->  Upgrade of www/firefox started at: Mon, 09 Aug 2021 16:57:31 -0400
--->  Upgrading 'firefox-90.0.2,2' to 'firefox-91.0_1,2' (www/firefox)
--->  Build of www/firefox started at: Mon, 09 Aug 2021 16:57:31 -0400
--->  Building '/usr/ports/www/firefox'
===>  Cleaning for firefox-91.0_1,2
===>   firefox-91.0_1,2 depends on file: /usr/local/sbin/pkg - found
=> firefox-91.0.source.tar.xz doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch
https://download.cdn.mozilla.net/pub/firefox/releases/91.0/source/firefox-91.0.source.tar.xz
firefox-91.0.source.tar.xz                             363 MB   23 MBps    15s
===> Fetching all distfiles required by firefox-91.0_1,2 for building
===>  Extracting for firefox-91.0_1,2
=> SHA256 Checksum OK for firefox-91.0.source.tar.xz.
===>  Patching for firefox-91.0_1,2
===>  Applying FreeBSD patches for firefox-91.0_1,2 from
/usr/ports/www/firefox/files
===>   firefox-91.0_1,2 depends on package: nspr>=4.32 - found
===>   firefox-91.0_1,2 depends on package: nss>=3.68 - found
===>   firefox-91.0_1,2 depends on package: icu>=67.1,1 - found
===>   firefox-91.0_1,2 depends on package: libevent>=2.1.8 - found
===>   firefox-91.0_1,2 depends on package: harfbuzz>=2.8.1 - found
===>   firefox-91.0_1,2 depends on package: graphite2>=1.3.14 - found
===>   firefox-91.0_1,2 depends on package: png>=1.6.37 - found
===>   firefox-91.0_1,2 depends on package: libvpx>=1.8.2 - found
===>   firefox-91.0_1,2 depends on package: py38-sqlite3>0 - found
===>   firefox-91.0_1,2 depends on package: v4l_compat>0 - found
===>   firefox-91.0_1,2 depends on executable: autoconf-2.13 - found
===>   firefox-91.0_1,2 depends on executable: nasm - found
===>   firefox-91.0_1,2 depends on executable: yasm - found
===>   firefox-91.0_1,2 depends on executable: zip - found
===>   firefox-91.0_1,2 depends on package: llvm12>0 - found
===>   firefox-91.0_1,2 depends on package: rust-cbindgen>=0.19.0 - found
===>   firefox-91.0_1,2 depends on package: rust>=1.53.0 - found
===>   firefox-91.0_1,2 depends on executable: node - found
===>   firefox-91.0_1,2 depends on file: /usr/local/bin/clang12 - found
===>   firefox-91.0_1,2 depends on package: libnotify>0 - found
===>   firefox-91.0_1,2 depends on file: /usr/local/include/alsa/asoundlib.h -
found
===>   firefox-91.0_1,2 depends on file: /usr/local/include/pulse/pulseaudio.h
- found
===>   firefox-91.0_1,2 depends on package: gmake>=4.3 - found
===>   firefox-91.0_1,2 depends on package: libiconv>=1.14_11 - found
===>   firefox-91.0_1,2 depends on package: pkgconf>=1.3.0_1 - found
===>   firefox-91.0_1,2 depends on file: /usr/local/bin/python3.8 - found
===>   firefox-91.0_1,2 depends on executable: update-desktop-database - found
===>   firefox-91.0_1,2 depends on package: xorgproto>=0 - found
===>   firefox-91.0_1,2 depends on file: /usr/local/libdata/pkgconfig/x11.pc -
found
===>   firefox-91.0_1,2 depends on file: /usr/local/libdata/pkgconfig/xcb.pc -
found
===>   firefox-91.0_1,2 depends on file:
/usr/local/libdata/pkgconfig/xcomposite.pc - found
===>   firefox-91.0_1,2 depends on file:
/usr/local/libdata/pkgconfig/xdamage.pc - found
===>   firefox-91.0_1,2 depends on file: /usr/local/libdata/pkgconfig/xext.pc -
found
===>   firefox-91.0_1,2 depends on file: /usr/local/libdata/pkgconfig/xfixes.pc
- found
===>   firefox-91.0_1,2 depends on file:
/usr/local/libdata/pkgconfig/xrender.pc - found
===>   firefox-91.0_1,2 depends on file: /usr/local/libdata/pkgconfig/xt.pc -
found
===>   firefox-91.0_1,2 depends on package: perl5>=5.32.r0<5.33 - found
===>   firefox-91.0_1,2 depends on shared library: libdrm.so - found
(/usr/local/lib/libdrm.so)
===>   firefox-91.0_1,2 depends on shared library: libfontconfig.so - found
(/usr/local/lib/libfontconfig.so)
===>   firefox-91.0_1,2 depends on shared library: libfreetype.so - found
(/usr/local/lib/libfreetype.so)
===>   firefox-91.0_1,2 depends on shared library: libaom.so - found
(/usr/local/lib/libaom.so)
===>   firefox-91.0_1,2 depends on shared library: libdav1d.so - found
(/usr/local/lib/libdav1d.so)
===>   firefox-91.0_1,2 depends on shared library: libevent.so - found
(/usr/local/lib/libevent.so)
===>   firefox-91.0_1,2 depends on shared library: libffi.so - found
(/usr/local/lib/libffi.so)
===>   firefox-91.0_1,2 depends on shared library: libgraphite2.so - found
(/usr/local/lib/libgraphite2.so)
===>   firefox-91.0_1,2 depends on shared library: libharfbuzz.so - found
(/usr/local/lib/libharfbuzz.so)
===>   firefox-91.0_1,2 depends on shared library: libicui18n.so - found
(/usr/local/lib/libicui18n.so)
===>   firefox-91.0_1,2 depends on shared library: libnspr4.so - found
(/usr/local/lib/libnspr4.so)
===>   firefox-91.0_1,2 depends on shared library: libnss3.so - found
(/usr/local/lib/libnss3.so)
===>   firefox-91.0_1,2 depends on shared library: libpng.so - found
(/usr/local/lib/libpng.so)
===>   firefox-91.0_1,2 depends on shared library: libpixman-1.so - found
(/usr/local/lib/libpixman-1.so)
===>   firefox-91.0_1,2 depends on shared library: libvpx.so - found
(/usr/local/lib/libvpx.so)
===>   firefox-91.0_1,2 depends on shared library: libwebp.so - found
(/usr/local/lib/libwebp.so)
===>   firefox-91.0_1,2 depends on shared library: libdbus-1.so - found
(/usr/local/lib/libdbus-1.so)
===>   firefox-91.0_1,2 depends on shared library: libdbus-glib-1.so - found
(/usr/local/lib/libdbus-glib-1.so)
===>   firefox-91.0_1,2 depends on shared library: libGL.so - found
(/usr/local/lib/libGL.so)
===>   firefox-91.0_1,2 depends on shared library: libatk-1.0.so - found
(/usr/local/lib/libatk-1.0.so)
===>   firefox-91.0_1,2 depends on shared library: libcairo.so - found
(/usr/local/lib/libcairo.so)
===>   firefox-91.0_1,2 depends on shared library: libgdk_pixbuf-2.0.so - found
(/usr/local/lib/libgdk_pixbuf-2.0.so)
===>   firefox-91.0_1,2 depends on shared library: libglib-2.0.so - found
(/usr/local/lib/libglib-2.0.so)
===>   firefox-91.0_1,2 depends on shared library: libintl.so - found
(/usr/local/lib/libintl.so)
===>   firefox-91.0_1,2 depends on shared library: libgtk-3.so - found
(/usr/local/lib/libgtk-3.so)
===>   firefox-91.0_1,2 depends on shared library: libpango-1.0.so - found
(/usr/local/lib/libpango-1.0.so)
===>   firefox-91.0_1,2 depends on shared library: libjpeg.so - found
(/usr/local/lib/libjpeg.so)
===>  Configuring for firefox-91.0_1,2
(cd /usr/ports/www/firefox/work/firefox-91.0 && /usr/local/bin/autoconf-2.13)
(cd /usr/ports/www/firefox/work/firefox-91.0/js/src/ &&
/usr/local/bin/autoconf-2.13)
Creating Python 3 environment
created virtual environment CPython3.8.11.final.0-64 in 264ms
  creator
CPython3Posix(dest=/usr/ports/www/firefox/work/.build/_virtualenvs/common,
clear=False, no_vcs_ignore=False, global=False)
  seeder FromAppData(download=False, pip=bundle, setuptools=bundle,
wheel=bundle, via=copy, app_data_dir=/usr/ports/www/firefox/work/virtualenv)
    added seed packages: pip==20.3.1, setuptools==51.0.0, wheel==0.36.1
  activators
BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
Re-executing in the virtualenv
Adding configure options from
/usr/ports/www/firefox/work/firefox-91.0/.mozconfig
  --enable-application=browser
  --enable-official-branding
  --prefix=/usr/local
  --with-libclang-path=/usr/local/llvm12/lib
  --with-system-av1
  --with-system-libevent
  --enable-system-ffi
  --with-system-graphite2
  --with-system-harfbuzz
  --with-system-icu
  --with-intl-api
  --with-system-jpeg=/usr/local
  --with-system-nspr
  --with-system-nss
  --with-system-png=/usr/local
  --enable-system-pixman
  --with-system-libvpx
  --with-system-webp
  --enable-update-channel=release
  --disable-updater
  --with-system-zlib
  --enable-optimize
  --disable-libproxy
  --enable-alsa
  --enable-pulseaudio
  --disable-debug
  --disable-debug-symbols
  --enable-release
  --enable-rust-simd
  --enable-profiling
  --disable-tests
  --disable-strip
  --disable-install-strip
  PERL=/usr/local/bin/perl
  RUSTFLAGS=
  MOZ_OPTIMIZE_FLAGS=-O2 -O3
  MOZ_GOOGLE_SAFEBROWSING_API_KEY=AIzaSyBsp9n41JLW8jCokwn7vhoaMejDFRd1mp8
  MOZ_GOOGLE_LOCATION_SERVICE_API_KEY=AIzaSyBsp9n41JLW8jCokwn7vhoaMejDFRd1mp8
checking for vcs source checkout... no
checking for a shell... /bin/sh
checking for host system type... x86_64-unknown-freebsd13.0
checking for target system type... x86_64-unknown-freebsd13.0
checking whether cross compiling... no
checking for Python 3...
/usr/ports/www/firefox/work/.build/_virtualenvs/common/bin/python (3.8.11)
checking for wget... not found
checking for ccache... not found
checking for the target C compiler... /usr/local/bin/clang12
checking whether the target C compiler can be used... yes
checking the target C compiler version... 12.0.1
checking the target C compiler works... yes
checking for the target C++ compiler... /usr/local/bin/clang++12
checking whether the target C++ compiler can be used... yes
checking the target C++ compiler version... 12.0.1
checking the target C++ compiler works... yes
checking for the host C compiler... /usr/local/bin/clang12
checking whether the host C compiler can be used... yes
checking the host C compiler version... 12.0.1
checking the host C compiler works... yes
checking for the host C++ compiler... /usr/local/bin/clang++12
checking whether the host C++ compiler can be used... yes
checking the host C++ compiler version... 12.0.1
checking the host C++ compiler works... yes
checking for 64-bit OS... yes
checking for linker... lld
checking for the assembler... /usr/local/bin/clang12
checking for ar... /usr/local/llvm12/bin/llvm-ar
checking for pkg_config... /usr/local/bin/pkgconf
checking for pkg-config version... 1.7.4
checking for stdint.h... yes
checking for inttypes.h... yes
checking for malloc.h... yes
checking for alloca.h... no
checking for sys/byteorder.h... no
checking for getopt.h... yes
checking for unistd.h... yes
checking for nl_types.h... yes
checking for cpuid.h... yes
checking for fts.h... yes
checking for sys/statvfs.h... yes
checking for sys/statfs.h... no
checking for sys/vfs.h... no
checking for sys/mount.h... yes
checking for sys/quota.h... no
checking for sys/queue.h... yes
checking for sys/types.h... yes
checking for netinet/in.h... yes
checking for byteswap.h... no
checking for memfd_create in sys/mman.h... yes
checking for perf_event_open system call... no
checking whether the C compiler supports -Wbitfield-enum-conversion... yes
checking whether the C++ compiler supports -Wbitfield-enum-conversion... yes
checking whether the C++ compiler supports -Wdeprecated-this-capture... yes
checking whether the C compiler supports -Wformat-type-confusion... yes
checking whether the C++ compiler supports -Wformat-type-confusion... yes
checking whether the C compiler supports
-Wshadow-field-in-constructor-modified... yes
checking whether the C++ compiler supports
-Wshadow-field-in-constructor-modified... yes
checking whether the C++ compiler supports -Wshadow-uncaptured-local... yes
checking whether the C compiler supports
-Wno-error=tautological-type-limit-compare... yes
checking whether the C++ compiler supports
-Wno-error=tautological-type-limit-compare... yes
checking whether the C compiler supports -Wunreachable-code-return... yes
checking whether the C++ compiler supports -Wunreachable-code-return... yes
checking whether the C compiler supports -Wclass-varargs... yes
checking whether the C++ compiler supports -Wclass-varargs... yes
checking whether the C++ compiler supports -Wempty-init-stmt... yes
checking whether the C compiler supports -Wfloat-overflow-conversion... yes
checking whether the C++ compiler supports -Wfloat-overflow-conversion... yes
checking whether the C compiler supports -Wfloat-zero-conversion... yes
checking whether the C++ compiler supports -Wfloat-zero-conversion... yes
checking whether the C compiler supports -Wloop-analysis... yes
checking whether the C++ compiler supports -Wloop-analysis... yes
checking whether the C compiler supports -Wno-range-loop-analysis... yes
checking whether the C++ compiler supports -Wno-range-loop-analysis... yes
checking whether the C++ compiler supports -Wc++2a-compat... yes
checking whether the C++ compiler supports -Wcomma... yes
checking whether the C compiler supports -Wduplicated-cond... no
checking whether the C++ compiler supports -Wduplicated-cond... no
checking whether the C compiler supports -Wenum-compare-conditional... yes
checking whether the C++ compiler supports -Wenum-compare-conditional... yes
checking whether the C++ compiler supports -Wimplicit-fallthrough... yes
checking whether the C compiler supports -Wstring-conversion... yes
checking whether the C++ compiler supports -Wstring-conversion... yes
checking whether the C++ compiler supports -Wno-inline-new-delete... yes
checking whether the C compiler supports -Wno-error=maybe-uninitialized... no
checking whether the C++ compiler supports -Wno-error=maybe-uninitialized... no
checking whether the C compiler supports -Wno-error=deprecated-declarations...
yes
checking whether the C++ compiler supports
-Wno-error=deprecated-declarations... yes
checking whether the C compiler supports -Wno-error=array-bounds... yes
checking whether the C++ compiler supports -Wno-error=array-bounds... yes
checking whether the C compiler supports -Wno-error=coverage-mismatch... no
checking whether the C++ compiler supports -Wno-error=coverage-mismatch... no
checking whether the C compiler supports -Wno-error=backend-plugin... yes
checking whether the C++ compiler supports -Wno-error=backend-plugin... yes
checking whether the C compiler supports -Wno-error=free-nonheap-object... yes
checking whether the C++ compiler supports -Wno-error=free-nonheap-object...
yes
checking whether the C compiler supports -Wno-multistatement-macros... no
checking whether the C++ compiler supports -Wno-multistatement-macros... no
checking whether the C compiler supports -Wno-error=return-std-move... yes
checking whether the C++ compiler supports -Wno-error=return-std-move... yes
checking whether the C compiler supports -Wno-error=class-memaccess... no
checking whether the C++ compiler supports -Wno-error=class-memaccess... no
checking whether the C compiler supports -Wno-error=atomic-alignment... yes
checking whether the C++ compiler supports -Wno-error=atomic-alignment... yes
checking whether the C compiler supports -Wno-error=deprecated-copy... yes
checking whether the C++ compiler supports -Wno-error=deprecated-copy... yes
checking whether the C compiler supports -Wno-error=unused-but-set-variable...
no
checking whether the C++ compiler supports
-Wno-error=unused-but-set-variable... no
checking whether the C compiler supports -Wformat... yes
checking whether the C++ compiler supports -Wformat... yes
checking whether the C compiler supports -Wformat-security... yes
checking whether the C++ compiler supports -Wformat-security... yes
checking whether the C compiler supports -Wformat-overflow=2... no
checking whether the C++ compiler supports -Wformat-overflow=2... no
checking whether the C compiler supports
-Wno-gnu-zero-variadic-macro-arguments... yes
checking whether the C++ compiler supports
-Wno-gnu-zero-variadic-macro-arguments... yes
checking whether the C compiler supports
-Werror=implicit-function-declaration... yes
checking whether the C compiler supports -Wno-psabi... yes
checking whether the C++ compiler supports -Wno-psabi... yes
checking whether the C++ compiler supports -fno-sized-deallocation... yes
checking whether the C++ compiler supports -fno-aligned-new... yes
checking for llvm_profdata... /usr/bin/llvm-profdata
checking for alsa... yes
checking MOZ_ALSA_CFLAGS... -I/usr/local/include
checking MOZ_ALSA_LIBS... -L/usr/local/lib -lasound
checking for libpulse... yes
checking MOZ_PULSEAUDIO_CFLAGS... -I/usr/local/include -D_REENTRANT
checking MOZ_PULSEAUDIO_LIBS... -L/usr/local/lib -lpulse -lpthread
checking for nspr >= 4.32... yes
checking NSPR_CFLAGS... -I/usr/local/include/nspr
checking NSPR_LIBS... -L/usr/local/lib -lplds4 -lplc4 -lnspr4 -pthread -ldl
checking for rustc... /usr/local/bin/rustc
checking for cargo... /usr/local/bin/cargo
checking rustc version... 1.53.0
checking cargo version... 1.53.0
checking for rust host triplet... 
DEBUG: Creating `/tmp/conftestw7o1jkiy.rs` with content:
DEBUG: | pub extern fn hello() { println!("Hello world"); }
DEBUG: Executing: `/usr/local/bin/rustc --crate-type staticlib
--target=x86_64-unknown-freebsd -o /tmp/confteste84riii_.rlib
/tmp/conftestw7o1jkiy.rs`
DEBUG: The command returned non-zero exit status 1.
DEBUG: Its error output was:
DEBUG: | error: crate `std` required to be available in rlib format, but was
not found in this form
DEBUG: | 
DEBUG: | error: aborting due to previous error
DEBUG: | 
ERROR: Cannot compile for x86_64-unknown-freebsd13.0 with /usr/local/bin/rustc
The target may be unsupported, or you may not have
a rust std library for that target installed. Try:

  rustup target add x86_64-unknown-freebsd

===>  Script "configure" failed unexpectedly.
Please report the problem to gecko_at_FreeBSD.org [maintainer] and attach the
"/usr/ports/www/firefox/work/.build/config.log" including the output of the
failure of your make command. Also, it might be a good idea to provide an
overview of all packages installed on your system (e.g. a
/usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1

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

Stop.
make: stopped in /usr/ports/www/firefox
egrep: empty (sub)expression
** Command failed [exit code 1]: /usr/bin/script -qa
/tmp/portupgrade20210809-37400-eqbhox env UPGRADE_TOOL=portupgrade
UPGRADE_PORT=firefox-90.0.2,2 UPGRADE_PORT_VER=90.0.2,2 make
** Fix the problem and try again.
--->  Build of www/firefox ended at: Mon, 09 Aug 2021 16:58:50 -0400 (consumed
00:01:18)
--->  Upgrade of www/firefox ended at: Mon, 09 Aug 2021 16:58:50 -0400
(consumed 00:01:18)
--->  ** Upgrade tasks 1: 0 done, 0 ignored, 0 skipped and 1 failed
--->  Listing the results (+:done / -:ignored / *:skipped / !:failed)
        ! www/firefox (firefox-90.0.2,2)        (unknown build error)
--->  Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed
--->  Session ended at: Mon, 09 Aug 2021 16:58:50 -0400 (consumed 00:01:27)

-- 
You are receiving this mail because:
You are the assignee for the bug.
Received on Mon Aug 09 2021 - 21:01:11 UTC

Original text of this message