Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 667096 - www-client/firefox-62.0.2[clang]: build error: SandboxOpenedFiles.cpp: use of undeclared identifier 'errno'
Summary: www-client/firefox-62.0.2[clang]: build error: SandboxOpenedFiles.cpp: use of...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
: 627506 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-09-26 03:23 UTC by Chris Vittal
Modified: 2018-10-22 10:07 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Build Log for the package (build_firefox-62.0.2.log.gz,218.67 KB, application/gzip)
2018-09-26 03:23 UTC, Chris Vittal
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Vittal 2018-09-26 03:23:02 UTC
Created attachment 547946 [details]
Build Log for the package

The exact error I see is:
35:39.32 /usr/lib/llvm/7/bin/x86_64-pc-linux-gnu-clang++ -o SandboxOpenedFiles.o -c -I/var/tmp/portage/www-client/firefox-62.0.2/work/firefox-62.0.2/ff/dist/system_wrappers -include /var/tmp/portage/www-client/firefox-62.0.2/work/firefox-62.0.2/config/gcc_hidden.h -DNDEBUG=1 -DTRIMMED=1 -DNS_NO_XPCOM -I/var/tmp/portage/www-client/firefox-62.0.2/work/firefox-62.0.2/security/sandbox/linux -I/var/tmp/portage/www-client/firefox-62.0.2/work/firefox-62.0.2/ff/security/sandbox/linux -I/var/tmp/portage/www-client/firefox-62.0.2/work/firefox-62.0.2/security/sandbox/linux -I/var/tmp/portage/www-client/firefox-62.0.2/work/firefox-62.0.2/security/sandbox/chromium-shim -I/var/tmp/portage/www-client/firefox-62.0.2/work/firefox-62.0.2/security/sandbox/chromium -I/var/tmp/portage/www-client/firefox-62.0.2/work/firefox-62.0.2/nsprpub -I/var/tmp/portage/www-client/firefox-62.0.2/work/firefox-62.0.2/ff/dist/include -I/usr/include/nspr -I/usr/include/nss -I/usr/include/pixman-1 -fPIC -DMOZILLA_CLIENT -include /var/tmp/portage/www-client/firefox-62.0.2/work/firefox-62.0.2/ff/mozilla-config.h -Qunused-arguments -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Qunused-arguments -Wall -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wunreachable-code-return -Wwrite-strings -Wno-invalid-offsetof -Wclass-varargs -Wloop-analysis -Wc++1z-compat -Wcomma -Wimplicit-fallthrough -Wstring-conversion -Wno-inline-new-delete -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=return-std-move -Wformat -Wformat-security -Wno-gnu-zero-variadic-macro-arguments -Wno-unknown-warning-option -Wno-return-type-c-linkage -fno-sized-deallocation -march=native -mtune=native -pipe -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-exceptions -fno-strict-aliasing -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -pthread -pipe -O2 -fomit-frame-pointer -Wno-shadow  -MD -MP -MF .deps/SandboxOpenedFiles.o.pp  -fcolor-diagnostics  /var/tmp/portage/www-client/firefox-62.0.2/work/firefox-62.0.2/security/sandbox/linux/SandboxOpenedFiles.cpp
35:39.87 /var/tmp/portage/www-client/firefox-62.0.2/work/firefox-62.0.2/security/sandbox/linux/SandboxOpenedFiles.cpp:47:47: error: use of undeclared identifier 'errno'
35:39.87         SANDBOX_LOG_ERROR("dup: %s", strerror(errno));
35:39.87                                               ^
35:39.93 1 error generated.
35:39.93 gmake[4]: *** [/var/tmp/portage/www-client/firefox-62.0.2/work/firefox-62.0.2/config/rules.mk:1033: SandboxOpenedFiles.o] Error 1
35:39.93 gmake[4]: Leaving directory '/var/tmp/portage/www-client/firefox-62.0.2/work/firefox-62.0.2/ff/security/sandbox/linux'
35:39.93 gmake[3]: *** [/var/tmp/portage/www-client/firefox-62.0.2/work/firefox-62.0.2/config/recurse.mk:74: security/sandbox/linux/target] Error 2

Portage info:

# emerge -pqv '=www-client/firefox-62.0.2::gentoo'                                                                                                                                                                                       [130]
[ebuild   R   ] www-client/firefox-62.0.2  USE="clang* dbus gmp-autoupdate hwaccel pulseaudio screenshot startup-notification -bindist -custom-cflags -custom-optimization -debug -eme-free -geckodriver -hardened -jack -lto (-neon) (-selinux) -system-harfbuzz -system-icu -system-jpeg -system-libevent -system-libvpx -system-sqlite -test -wifi" L10N="-ach -af -an -ar -as -ast -az -bg -bn-BD -bn-IN -br -bs -ca -cak -cs -cy -da -de -dsb -el -en-GB -en-ZA -eo -es-AR -es-CL -es-ES -es-MX -et -eu -fa -ff -fi -fr -fy -ga -gd -gl -gn -gu -he -hi -hr -hsb -hu -hy -id -is -it -ja -ka -kab -kk -km -kn -ko -lij -lt -lv -mai -mk -ml -mr -ms -nb -nl -nn -or -pa -pl -pt-BR -pt-PT -rm -ro -ru -si -sk -sl -son -sq -sr -sv -ta -te -th -tr -uk -uz -vi -xh -zh-CN -zh-TW" 


# emerge --info '=www-client/firefox-62.0.2::gentoo'                                                                                                                                                                                       [1]
Portage 2.3.50 (python 3.6.6-final-0, default/linux/amd64/17.0/desktop, gcc-8.2.0, glibc-2.27-r6, 4.18.8-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.18.8-gentoo-x86_64-Intel-R-_Core-TM-_i5-6600K_CPU_@_3.50GHz-with-gentoo-2.6
KiB Mem:    16335788 total,   2730572 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Tue, 25 Sep 2018 23:30:01 +0000
Head commit of repository gentoo: a2238f7bda1d483bbcc12a32a34d2549fe2b632d
Head commit of repository haskell: 480ac6e908c5f9d5d614c79ec3a43565f04e9713

sh bash 4.4_p23
ld GNU ld (Gentoo 2.31.1 p3) 2.31.1
app-shells/bash:          4.4_p23::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.6::gentoo, 3.7.0::gentoo
dev-util/cmake:           3.12.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.38.2::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.31.1-r1::gentoo
sys-devel/gcc:            8.2.0-r3::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.17::gentoo (virtual/os-headers)
sys-libs/glibc:           2.27-r6::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts: 

localrepo
    location: /usr/local/portage
    masters: gentoo

haskell
    location: /var/lib/layman/haskell
    sync-type: git
    sync-uri: https://github.com/gentoo-haskell/gentoo-haskell.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -mtune=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=native -mtune=native -O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -mtune=native -O2 -pipe"
GENTOO_MIRRORS="http://mirrors.rit.edu/gentoo/ http://mirror.lug.udel.edu/pub/gentoo/ http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://www.gtlib.gatech.edu/pub/gentoo http://gentoo.mirrors.pair.com/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam flac fortran gcrypt gdbm gif glamor gles2 gpg gpm gtk iconv ipv6 jpeg lcms ldap libnotify libtirpc lua luajit lzma mad mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf perl pm-utils png policykit ppds pulseaudio python qt5 readline ruby sdl seccomp spell ssl startup-notification svg tcl tcpd tiff truetype udev udisks unicode upower usb vim-syntax vorbis wxwidgets x264 xattr xcb xinerama xml xv xvid zlib zsh-completion" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 popcnt sse3 sse4_1 sse4_2 ssse3" CURL_SSL="gnutls" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" L10N="en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AArch64 AMDGPU ARM NVPTX" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6 python3_7" RUBY_TARGETS="ruby23 ruby25" USERLAND="GNU" VIDEO_CARDS="fbdev intel nouveau vesa dummy" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

www-client/firefox-62.0.2::gentoo was built with the following:
USE="dbus gmp-autoupdate hwaccel pulseaudio screenshot startup-notification -bindist -clang -custom-cflags -custom-optimization -debug -eme-free -geckodriver -hardened -jack -lto (-neon) (-selinux) -system-harfbuzz -system-icu -system-jpeg -system-libevent -system-libvpx -system-sqlite -test -wifi" ABI_X86="(64)" L10N="-ach -af -an -ar -as -ast -az -bg -bn-BD -bn-IN -br -bs -ca -cak -cs -cy -da -de -dsb -el -en-GB -en-ZA -eo -es-AR -es-CL -es-ES -es-MX -et -eu -fa -ff -fi -fr -fy -ga -gd -gl -gn -gu -he -hi -hr -hsb -hu -hy -id -is -it -ja -ka -kab -kk -km -kn -ko -lij -lt -lv -mai -mk -ml -mr -ms -nb -nl -nn -or -pa -pl -pt-BR -pt-PT -rm -ro -ru -si -sk -sl -son -sq -sr -sv -ta -te -th -tr -uk -uz -vi -xh -zh-CN -zh-TW"
CFLAGS="-march=native -mtune=native -pipe"
CXXFLAGS="-march=native -mtune=native -pipe -fno-delete-null-pointer-checks -fno-lifetime-dse -fno-schedule-insns -fno-schedule-insns2"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-rpath=/usr/lib64/firefox,--enable-new-dtags"
Comment 1 Thomas Deutschmann (RETIRED) gentoo-dev 2018-09-27 22:02:18 UTC
This sounds like bug 627506 but I wonder why you hit that and I cannot reproduce.
Comment 2 Perfect Gentleman 2018-09-28 10:41:10 UTC
(In reply to Thomas Deutschmann from comment #1)
> This sounds like bug 627506 but I wonder why you hit that and I cannot
> reproduce.

have the same bug but patch from one of the previois bug-reports helped
Comment 3 Larry the Git Cow gentoo-dev 2018-09-28 12:00:18 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a9acbce822f8f8459f2cc8dfe187fd036cf116b

commit 1a9acbce822f8f8459f2cc8dfe187fd036cf116b
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2018-09-28 11:59:39 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2018-09-28 12:00:09 +0000

    www-client/firefox: add missing "errno.h" include in SandboxOpenedFiles.cpp
    
    In addition, patch "firefox-60.0-rust-1.29-comp.patch" was dropped from
    firefox-62.x wchi was added in previous commit b1e7185593b8d3f4c46481d4
    because patch is already present.
    
    Closes: https://bugs.gentoo.org/667096
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
    Package-Manager: Portage-2.3.50, Repoman-2.3.11

 ...missing-errno_h-in-SandboxOpenedFiles_cpp.patch | 27 ++++++++++++++++++++++
 www-client/firefox/firefox-60.2.1-r1.ebuild        |  1 +
 www-client/firefox/firefox-62.0.2.ebuild           |  2 +-
 3 files changed, 29 insertions(+), 1 deletion(-)
Comment 4 Thomas Deutschmann (RETIRED) gentoo-dev 2018-10-22 10:07:09 UTC
*** Bug 627506 has been marked as a duplicate of this bug. ***