Bug 256213 - www/firefox: build fails on 2021Q2
Summary: www/firefox: build fails on 2021Q2
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-gecko (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-28 07:17 UTC by Tomohiro Hosaka
Modified: 2021-05-30 02:24 UTC (History)
1 user (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 Tomohiro Hosaka 2021-05-28 07:17:40 UTC
===========================================================================
=======================<phase: configure      >============================
===>  Configuring for firefox-89.0,2
(cd /wrkdirs/usr/ports/www/firefox/work/firefox-89.0 && /usr/local/bin/autoconf-2.13)
(cd /wrkdirs/usr/ports/www/firefox/work/firefox-89.0/js/src/ && /usr/local/bin/autoconf-2.13)
Creating Python 3 environment
created virtual environment CPython3.7.10.final.0-64 in 584ms
  creator CPython3Posix(dest=/wrkdirs/usr/ports/www/firefox/work/.build/_virtualenvs/init_py3, clear=False, no_vcs_ignore=False, global=False)
  seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/wrkdirs/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
Error processing command. Ignoring because optional. (optional:packages.txt:comm/build/virtualenv_packages.txt)
Re-executing in the virtualenv
Adding configure options from /wrkdirs/usr/ports/www/firefox/work/firefox-89.0/.mozconfig
  --enable-application=browser
  --enable-official-branding
  --prefix=/usr/local
  --with-libclang-path=/usr/local/llvm11/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-lto=cross
  --enable-jack
  --enable-pulseaudio
  --disable-debug
  --disable-debug-symbols
  --enable-release
  --enable-rust-simd
  --enable-profiling
  --disable-tests
  --disable-strip
  --disable-install-strip
  RUSTFLAGS=
  MOZ_GOOGLE_SAFEBROWSING_API_KEY=AIzaSyBsp9n41JLW8jCokwn7vhoaMejDFRd1mp8
  PERL=/usr/local/bin/perl
  MOZ_GOOGLE_LOCATION_SERVICE_API_KEY=AIzaSyBsp9n41JLW8jCokwn7vhoaMejDFRd1mp8
  MOZ_OPTIMIZE_FLAGS=-O2 -O3
  PATH=/wrkdirs/usr/ports/www/firefox/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
checking for vcs source checkout... no
checking for a shell... /bin/sh
checking for host system type... x86_64-unknown-freebsd12.2
checking for target system type... x86_64-unknown-freebsd12.2
checking whether cross compiling... no
checking for Python 3... /wrkdirs/usr/ports/www/firefox/work/.build/_virtualenvs/init_py3/bin/python (3.7.10)
checking for wget... not found
checking for ccache... not found
checking for the target C compiler... /usr/local/bin/clang11
checking whether the target C compiler can be used... yes
checking the target C compiler version... 11.0.1
checking the target C compiler works... yes
checking for the target C++ compiler... /usr/local/bin/clang++11
checking whether the target C++ compiler can be used... yes
checking the target C++ compiler version... 11.0.1
checking the target C++ compiler works... yes
checking for the host C compiler... /usr/local/bin/clang11
checking whether the host C compiler can be used... yes
checking the host C compiler version... 11.0.1
checking the host C compiler works... yes
checking for the host C++ compiler... /usr/local/bin/clang++11
checking whether the host C++ compiler can be used... yes
checking the host C++ compiler version... 11.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/clang11
checking for ar... /usr/local/llvm11/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... no
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 -Wshadow-field-in-constructor-modified... yes
checking whether the C++ compiler supports -Wshadow-field-in-constructor-modified... 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 -Wimplicit-fallthrough... yes
checking whether the C++ compiler supports -Wunused-function... yes
checking whether the C++ compiler supports -Wunused-variable... 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 -Wtautological-overlap-compare... yes
checking whether the C++ compiler supports -Wtautological-overlap-compare... yes
checking whether the C compiler supports -Wtautological-unsigned-enum-zero-compare... yes
checking whether the C++ compiler supports -Wtautological-unsigned-enum-zero-compare... yes
checking whether the C compiler supports -Wtautological-unsigned-zero-compare... yes
checking whether the C++ compiler supports -Wtautological-unsigned-zero-compare... 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 -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... no
checking whether the C++ compiler supports -Wno-error=free-nonheap-object... no
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 -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 jack... yes
checking MOZ_JACK_CFLAGS... -I/usr/local/include
checking MOZ_JACK_LIBS... -L/usr/local/lib -ljack -pthread
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.26... 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.51.0
checking cargo version... 1.51.0
checking for rust host triplet... x86_64-unknown-freebsd
checking for rust target triplet... x86_64-unknown-freebsd
checking for rustdoc... /usr/local/bin/rustdoc
checking for cbindgen... 
DEBUG: trying cbindgen: /usr/local/bin/cbindgen
DEBUG: Executing: `/usr/local/bin/cbindgen --version`
DEBUG: /usr/local/bin/cbindgen has version 0.18.0
DEBUG: trying cbindgen: /usr/local/bin/cbindgen
DEBUG: Executing: `/usr/local/bin/cbindgen --version`
DEBUG: /usr/local/bin/cbindgen has version 0.18.0
DEBUG: trying cbindgen: /usr/local/bin/cbindgen
DEBUG: Executing: `/usr/local/bin/cbindgen --version`
DEBUG: /usr/local/bin/cbindgen has version 0.18.0
ERROR: cbindgen version 0.18.0 is too old. At least version 0.19.0 is required.

Please update using 'cargo install cbindgen --force' or running
'./mach bootstrap', after removing the existing executable located at
/usr/local/bin/cbindgen.

===>  Script "configure" failed unexpectedly.
Please report the problem to gecko@FreeBSD.org [maintainer] and attach the
"/wrkdirs/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: stopped in /usr/ports/www/firefox
=>> Cleaning up wrkdir
===>  Cleaning for firefox-89.0,2
build of www/firefox | firefox-89.0,2 ended at Fri May 28 13:21:50 JST 2021
build time: 00:08:18
!!! build failure encountered !!!
Comment 1 Tomohiro Hosaka 2021-05-28 07:20:26 UTC
This is necessary.

git cherry-pick 2ac2c33875a4fcb11d6d2fb445fb55888ec25051

commit 2ac2c33875a4fcb11d6d2fb445fb55888ec25051
Author: Jan Beich <jbeich@FreeBSD.org>
Date:   Thu Apr 8 16:19:38 2021 +0000

    devel/rust-cbindgen: update to 0.19.0
    
    Changes:        https://github.com/eqrion/cbindgen/releases/tag/v0.19.0
    Reported by:    GitHub (watch releases)
Comment 2 Tomohiro Hosaka 2021-05-30 02:23:54 UTC
Thank you for your support. It has been resolved.

# git log -1 --pretty=fuller origin/2021Q2 devel/rust-cbindgen
commit 3c770fea0977b1b0c1a6a97634ccf899cfbff777
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: Thu Apr 8 16:19:38 2021 +0000
Commit:     Christoph Moench-Tegeder <cmt@FreeBSD.org>
CommitDate: Sat May 29 01:23:18 2021 +0200

    devel/rust-cbindgen: update to 0.19.0
    
    Changes:        https://github.com/eqrion/cbindgen/releases/tag/v0.19.0
    Reported by:    GitHub (watch releases)
    
    (cherry picked from commit 2ac2c33875a4fcb11d6d2fb445fb55888ec25051)