Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 672862 - dev-util/gn - No such file or directory: base/numerics/safe_coversions_arm_impl.h
Summary: dev-util/gn - No such file or directory: base/numerics/safe_coversions_arm_im...
Status: IN_PROGRESS
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM Linux
: Normal normal (vote)
Assignee: Chromium Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-10 08:37 UTC by Handsome0hell
Modified: 2018-12-10 23:00 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Handsome0hell 2018-12-10 08:37:42 UTC
When I compile www-client/chromium, it request it's dependency dev-util/gn. I try to emerge it with ** keywords but it failed with "No such file or directory: base/numerics/safe_coversions_arm_impl.h" and also missing safe_math_arm_impl.h.

Reproducible: Always

Steps to Reproduce:
1. Emerge dev-util/gn
Actual Results:  
Compile error

Expected Results:  
Successfully installing.

I tried to search these headers and I found them in git repository of chromium. After placing them to the right place and enabling "keepwork" feature, I successfully installed dev-util/gn.

I'm in chroot cross compile on VPS environment to do these.

emerge --info gn:
Portage 2.3.51 (python 3.6.5-final-0, default/linux/arm/17.0/armv7a, gcc-7.3.0, glibc-2.27-r6, 4.14.83-gentoo armv7l)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.14.83-gentoo-armv7l-Virtual_CPU_82d9ed4018dd-with-gentoo-2.6
KiB Mem:     8168280 total,   1989256 free
KiB Swap:    4194300 total,   4194300 free
Timestamp of repository gentoo: Thu, 06 Dec 2018 07:30:01 +0000
Head commit of repository gentoo: aec637849567363046687e2c31ef913a68f0dcd3
sh bash 4.4_p12
ld GNU ld (Gentoo 2.30 p5) 2.30.0
distcc 3.2rc1 armv7a-unknown-linux-gnueabihf [disabled]
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.24.3-r1::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.5::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.38.3::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.15.1-r2::gentoo
sys-devel/binutils:       2.30-r4::gentoo
sys-devel/gcc:            7.3.0-r3::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.13::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-extra-opts: 
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24

ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="armv7a-unknown-linux-gnueabihf"
CFLAGS="-O2 -pipe -fomit-frame-pointer -march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard -fno-stack-protector"
CHOST="armv7a-unknown-linux-gnueabihf"
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/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -fomit-frame-pointer -march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard -fno-stack-protector"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--load-average 5"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN 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="-O2 -pipe -march=armv7-a"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news nodoc noinfo noman parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=armv7-a"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/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="/tmp/"
USE="X acl arm armv5te armv6 armv6t2 berkdb bluetooth bzip2 cairo cleartype cli corefonts crypt cxx dbus dri fontconfig fortran gdbm iconv icu infinality ipv6 jpeg2k ncurses nls nptl opengl openmp pam pcre png policykit readline seccomp ssl tcpd truetype type1 unicode vc4 vim-syntax xattr xcb zlib" 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_ARM="edsp thumb thumb2 v4 v5 v6 v7 vfp" 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 zh-HK zh-TW zh-CN en-GB en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby23 ruby24" USERLAND="GNU" VIDEO_CARDS="exynos fbdev omap dummy v4l" 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, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

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

dev-util/gn-0.1479::gentoo was built with the following:
USE="vim-syntax"
Comment 1 Jeroen Roovers gentoo-dev 2018-12-10 08:44:32 UTC
Please attach the entire build log to this bug report.
Comment 2 Handsome0hell 2018-12-10 09:25:50 UTC
 * Package:    dev-util/gn-0.1479
 * Repository: gentoo
 * Maintainer: chromium@gentoo.org
 * USE:        arm elibc_glibc kernel_linux userland_GNU vim-syntax
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
 * Applying gn-gen-r2.patch ...
 [ ok ]
python2.7 build/gen.py --no-sysroot --no-last-commit-position
ninja -v -j4 -l0 -C out gn
ninja: Entering directory `out'
[1/171] armv7a-unknown-linux-gnueabihf-g++ -MMD -MF base/callback_internal.o.d  -I/tmp/portage/dev-util/gn-0.1479/work/gn-0.1479 -I/tmp/portage/dev-util/gn-0.1479/work/gn-0.1479/out -fdata-sections -ffunction-sections -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -fno-exceptions -fno-rtti -fdiagnostics-color -O2 -pipe -fomit-frame-pointer -march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard -fno-stack-protector -std=c++14 -Wno-c++11-narrowing -c /tmp/portage/dev-util/gn-0.1479/work/gn-0.1479/base/callback_internal.cc -o base/callback_internal.o
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Bad file descriptor
[2/171] armv7a-unknown-linux-gnueabihf-g++ -MMD -MF base/files/file.o.d  -I/tmp/portage/dev-util/gn-0.1479/work/gn-0.1479 -I/tmp/portage/dev-util/gn-0.1479/work/gn-0.1479/out -fdata-sections -ffunction-sections -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -fno-exceptions -fno-rtti -fdiagnostics-color -O2 -pipe -fomit-frame-pointer -march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard -fno-stack-protector -std=c++14 -Wno-c++11-narrowing -c /tmp/portage/dev-util/gn-0.1479/work/gn-0.1479/base/files/file.cc -o base/files/file.o
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Bad file descriptor
[3/171] armv7a-unknown-linux-gnueabihf-g++ -MMD -MF base/environment.o.d  -I/tmp/portage/dev-util/gn-0.1479/work/gn-0.1479 -I/tmp/portage/dev-util/gn-0.1479/work/gn-0.1479/out -fdata-sections -ffunction-sections -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -fno-exceptions -fno-rtti -fdiagnostics-color -O2 -pipe -fomit-frame-pointer -march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard -fno-stack-protector -std=c++14 -Wno-c++11-narrowing -c /tmp/portage/dev-util/gn-0.1479/work/gn-0.1479/base/environment.cc -o base/environment.o
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Bad file descriptor
[4/171] armv7a-unknown-linux-gnueabihf-g++ -MMD -MF base/files/file_path_constants.o.d  -I/tmp/portage/dev-util/gn-0.1479/work/gn-0.1479 -I/tmp/portage/dev-util/gn-0.1479/work/gn-0.1479/out -fdata-sections -ffunction-sections -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -fno-exceptions -fno-rtti -fdiagnostics-color -O2 -pipe -fomit-frame-pointer -march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard -fno-stack-protector -std=c++14 -Wno-c++11-narrowing -c /tmp/portage/dev-util/gn-0.1479/work/gn-0.1479/base/files/file_path_constants.cc -o base/files/file_path_constants.o
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Bad file descriptor
[5/171] armv7a-unknown-linux-gnueabihf-g++ -MMD -MF base/files/file_enumerator.o.d  -I/tmp/portage/dev-util/gn-0.1479/work/gn-0.1479 -I/tmp/portage/dev-util/gn-0.1479/work/gn-0.1479/out -fdata-sections -ffunction-sections -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -fno-exceptions -fno-rtti -fdiagnostics-color -O2 -pipe -fomit-frame-pointer -march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard -fno-stack-protector -std=c++14 -Wno-c++11-narrowing -c /tmp/portage/dev-util/gn-0.1479/work/gn-0.1479/base/files/file_enumerator.cc -o base/files/file_enumerator.o
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Bad file descriptor
[6/171] armv7a-unknown-linux-gnueabihf-g++ -MMD -MF base/command_line.o.d  -I/tmp/portage/dev-util/gn-0.1479/work/gn-0.1479 -I/tmp/portage/dev-util/gn-0.1479/work/gn-0.1479/out -fdata-sections -ffunction-sections -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -fno-exceptions -fno-rtti -fdiagnostics-color -O2 -pipe -fomit-frame-pointer -march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard -fno-stack-protector -std=c++14 -Wno-c++11-narrowing -c /tmp/portage/dev-util/gn-0.1479/work/gn-0.1479/base/command_line.cc -o base/command_line.o
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Bad file descriptor
[7/171] armv7a-unknown-linux-gnueabihf-g++ -MMD -MF base/files/file_path.o.d  -I/tmp/portage/dev-util/gn-0.1479/work/gn-0.1479 -I/tmp/portage/dev-util/gn-0.1479/work/gn-0.1479/out -fdata-sections -ffunction-sections -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -fno-exceptions -fno-rtti -fdiagnostics-color -O2 -pipe -fomit-frame-pointer -march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard -fno-stack-protector -std=c++14 -Wno-c++11-narrowing -c /tmp/portage/dev-util/gn-0.1479/work/gn-0.1479/base/files/file_path.cc -o base/files/file_path.o
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Bad file descriptor
[8/171] armv7a-unknown-linux-gnueabihf-g++ -MMD -MF base/json/json_parser.o.d  -I/tmp/portage/dev-util/gn-0.1479/work/gn-0.1479 -I/tmp/portage/dev-util/gn-0.1479/work/gn-0.1479/out -fdata-sections -ffunction-sections -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -fno-exceptions -fno-rtti -fdiagnostics-color -O2 -pipe -fomit-frame-pointer -march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard -fno-stack-protector -std=c++14 -Wno-c++11-narrowing -c /tmp/portage/dev-util/gn-0.1479/work/gn-0.1479/base/json/json_parser.cc -o base/json/json_parser.o
FAILED: base/json/json_parser.o 
armv7a-unknown-linux-gnueabihf-g++ -MMD -MF base/json/json_parser.o.d  -I/tmp/portage/dev-util/gn-0.1479/work/gn-0.1479 -I/tmp/portage/dev-util/gn-0.1479/work/gn-0.1479/out -fdata-sections -ffunction-sections -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -fno-exceptions -fno-rtti -fdiagnostics-color -O2 -pipe -fomit-frame-pointer -march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard -fno-stack-protector -std=c++14 -Wno-c++11-narrowing -c /tmp/portage/dev-util/gn-0.1479/work/gn-0.1479/base/json/json_parser.cc -o base/json/json_parser.o
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Bad file descriptor
In file included from /tmp/portage/dev-util/gn-0.1479/work/gn-0.1479/base/json/json_parser.cc:13:0:
/tmp/portage/dev-util/gn-0.1479/work/gn-0.1479/base/numerics/safe_conversions.h:17:10: fatal error: base/numerics/safe_conversions_arm_impl.h: No such file or directory
 #include "base/numerics/safe_conversions_arm_impl.h"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
[9/171] armv7a-unknown-linux-gnueabihf-g++ -MMD -MF base/files/scoped_file.o.d  -I/tmp/portage/dev-util/gn-0.1479/work/gn-0.1479 -I/tmp/portage/dev-util/gn-0.1479/work/gn-0.1479/out -fdata-sections -ffunction-sections -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -fno-exceptions -fno-rtti -fdiagnostics-color -O2 -pipe -fomit-frame-pointer -march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard -fno-stack-protector -std=c++14 -Wno-c++11-narrowing -c /tmp/portage/dev-util/gn-0.1479/work/gn-0.1479/base/files/scoped_file.cc -o base/files/scoped_file.o
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Bad file descriptor
[10/171] armv7a-unknown-linux-gnueabihf-g++ -MMD -MF base/files/file_util.o.d  -I/tmp/portage/dev-util/gn-0.1479/work/gn-0.1479 -I/tmp/portage/dev-util/gn-0.1479/work/gn-0.1479/out -fdata-sections -ffunction-sections -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -fno-exceptions -fno-rtti -fdiagnostics-color -O2 -pipe -fomit-frame-pointer -march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard -fno-stack-protector -std=c++14 -Wno-c++11-narrowing -c /tmp/portage/dev-util/gn-0.1479/work/gn-0.1479/base/files/file_util.cc -o base/files/file_util.o
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Bad file descriptor
[11/171] armv7a-unknown-linux-gnueabihf-g++ -MMD -MF base/files/scoped_temp_dir.o.d  -I/tmp/portage/dev-util/gn-0.1479/work/gn-0.1479 -I/tmp/portage/dev-util/gn-0.1479/work/gn-0.1479/out -fdata-sections -ffunction-sections -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -fno-exceptions -fno-rtti -fdiagnostics-color -O2 -pipe -fomit-frame-pointer -march=armv7-a -mfpu=neon-vfpv4 -mfloat-abi=hard -fno-stack-protector -std=c++14 -Wno-c++11-narrowing -c /tmp/portage/dev-util/gn-0.1479/work/gn-0.1479/base/files/scoped_temp_dir.cc -o base/files/scoped_temp_dir.o
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Bad file descriptor
ninja: build stopped: subcommand failed.
 * ERROR: dev-util/gn-0.1479::gentoo failed (compile phase):
 *   ninja -v -j4 -l0 -C out gn failed
 * 
 * Call stack:
 *     ebuild.sh, line  124:  Called src_compile
 *   environment, line 2052:  Called eninja '-C' 'out' 'gn'
 *   environment, line  722:  Called die
 * The specific snippet of code:
 *       "$@" || die "${nonfatal_args[@]}" "${*} failed"
 * 
 * If you need support, post the output of `emerge --info '=dev-util/gn-0.1479::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-util/gn-0.1479::gentoo'`.
 * The complete build log is located at '/tmp/portage/dev-util/gn-0.1479/temp/build.log'.
 * The ebuild environment file is located at '/tmp/portage/dev-util/gn-0.1479/temp/environment'.
 * Working directory: '/tmp/portage/dev-util/gn-0.1479/work/gn-0.1479'
 * S: '/tmp/portage/dev-util/gn-0.1479/work/gn-0.1479'
Comment 3 Mike Gilbert gentoo-dev 2018-12-10 15:05:31 UTC
> shell-init: error retrieving current directory: getcwd: cannot access parent directories: Bad file descriptor

Any idea why it would be trying to execute build commands from a directory that no longer exists?
Comment 4 Handsome0hell 2018-12-10 15:12:57 UTC
(In reply to Mike Gilbert from comment #3)
> > shell-init: error retrieving current directory: getcwd: cannot access parent directories: Bad file descriptor
> 
> Any idea why it would be trying to execute build commands from a directory
> that no longer exists?

Well... actually no. I don't know what's wrong with my chroot system about this. But it looks like that it affects nothing because other software give me the same error but they successfully completed compiling, and I do can't find the missing headers in work/ directory. I will try to fix it later.
Comment 5 Larry the Git Cow gentoo-dev 2018-12-10 15:31:14 UTC
The bug has been referenced in the following commit(s):

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

commit c007723d59cc377de003e291c4614d36c4e51a41
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2018-12-10 15:31:05 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2018-12-10 15:31:05 +0000

    dev-util/gn: restore missing headers to fix ARM build
    
    Bug: https://bugs.gentoo.org/672862
    Package-Manager: Portage-2.3.52_p8, Repoman-2.3.12_p20
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 dev-util/gn/files/gn-numerics-arm.patch | 201 ++++++++++++++++++++++++++++++++
 dev-util/gn/gn-0.1479.ebuild            |   1 +
 2 files changed, 202 insertions(+)
Comment 6 Mike Gilbert gentoo-dev 2018-12-10 15:31:45 UTC
Please let me know if this resolves the problem; if so, I will submit this fix upstream.
Comment 7 Handsome0hell 2018-12-10 23:00:50 UTC
(In reply to Mike Gilbert from comment #6)
> Please let me know if this resolves the problem; if so, I will submit this
> fix upstream.

Thank you for your work! It have solved the problem.