Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
armv7a-cros-linux-gnueabi-gcc is unable to create executable
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
KaZeR
Apprentice
Apprentice


Joined: 04 Feb 2004
Posts: 291
Location: Au fond, à droite.

PostPosted: Fri Apr 08, 2016 1:28 am    Post subject: armv7a-cros-linux-gnueabi-gcc is unable to create executable Reply with quote

I'm building packages for my raspberry pi 2 using qemu chroot.

Overall the process works well (I've compiled over a 100 packages), excepted for this specific package:

Code:

System information:
Host OS       : linux
Target OS     : linux
Host arch     : arm
Target arch   : arm
Parallel jobs : 32

Chromium skipped
Chrome configure/build:
Running ['/var/tmp/portage/www-client/chromium-50.0.2661.37/work/chromium-50.0.2661.37/third_party/ffmpeg/configure', '--disable-everything', '--disable-all', '--disable-doc', '--disable-htmlpages', '--disable-manpages', '--disable-podpag
es', '--disable-txtpages', '--disable-static', '--enable-avcodec', '--enable-avformat', '--enable-avutil', '--enable-fft', '--enable-rdft', '--enable-static', '--disable-bzlib', '--disable-error-resilience', '--disable-iconv', '--disable-
lzo', '--disable-network', '--disable-schannel', '--disable-sdl', '--disable-symver', '--disable-xlib', '--disable-zlib', '--disable-securetransport', '--disable-d3d11va', '--disable-dxva2', '--disable-vaapi', '--disable-vda', '--disable-
vdpau', '--disable-videotoolbox', '--enable-decoder=vorbis', '--enable-decoder=pcm_u8,pcm_s16le,pcm_s24le,pcm_s32le,pcm_f32le', '--enable-decoder=pcm_s16be,pcm_s24be,pcm_mulaw,pcm_alaw', '--enable-demuxer=ogg,matroska,wav', '--enable-pars
er=opus,vorbis', '--optflags="-O2"', '--enable-decoder=theora,vp8', '--enable-parser=vp3,vp8', '--arch=arm', '--enable-armv6', '--enable-armv6t2', '--enable-vfp', '--enable-thumb', '--extra-cflags=-march=armv7-a', '--enable-cross-compile'
, '--target-os=linux', '--cross-prefix=armv7a-cros-linux-gnueabi-', '--extra-cflags=-mtune=cortex-a8', '--extra-cflags=-mfloat-abi=hard', '--disable-neon', '--extra-cflags=-mfpu=vfpv3-d16', '--enable-pic', '--enable-decoder=aac,h264,mp3',
 '--enable-demuxer=aac,mp3,mov', '--enable-parser=aac,h264,mpegaudio']
armv7a-cros-linux-gnueabi-gcc is unable to create an executable file.
C compiler test failed.


I am a bit surprised that for this package it's trying to use a cross compiler instead of using the system defined compiler. It looks like it relies on some autodetection of the current build environment instead of using the system defined settings.

Thanks for any help!


More info:
Code:

# emerge --info '=www-client/chromium-50.0.2661.37::gentoo'
Portage 2.2.26 (python 2.7.10-final-0, default/linux/arm/13.0/armv7a, gcc-4.9.3, glibc-2.21-r2, 4.1.15-gentoo-r1 armv7l)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.1.15-gentoo-r1-armv7l-with-gentoo-2.2
KiB Mem:   131927672 total, 117226220 free
KiB Swap:    3906556 total,   3906556 free
Timestamp of repository gentoo: Wed, 06 Apr 2016 17:30:01 +0000
sh bash 4.3_p42-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42-r1::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3-r1::gentoo
dev-util/cmake:           3.3.1-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.19.1::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.21-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="armv7a-hardfloat-linux-gnueabi"
CFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
CHOST="armv7a-hardfloat-linux-gnueabi"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=armv7-a"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe -march=armv7-a"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles getbinpkg merge-sync news 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_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j33"
PKGDIR="/usr/portage/armv7a-hardfloat-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"
PORTAGE_TMPDIR="/var/tmp"
USE="acl arm armv5te armv6 armv6t2 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 modules ncurses nls nptl openmp pam pcre readline seccomp session ssl tcpd unicode xattr 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="dummy fbdev" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


Code:

emerge -pqv '=www-client/chromium-50.0.2661.37::gentoo'

Local copy of remote index is up-to-date and will be used.
[ebuild  N    ] www-client/chromium-50.0.2661.37  USE="hangouts (pic) proprietary-codecs tcmalloc -cups -custom-cflags (-gn) -gnome -gnome-keyring (-gtk3) -hidpi -hotwording -kerberos -neon -pulseaudio (-selinux) (-system-ffmpeg) {-test} (-widevine)" LINGUAS="am ar bg bn ca cs da de el en_GB es es_LA et fa fi fil fr gu he hi hr hu id it ja kn ko lt lv ml mr ms nb nl pl pt_BR pt_PT ro ru sk sl sr sv sw ta te th tr uk vi zh_CN zh_TW"

 * IMPORTANT: 7 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


Code:

cat /var/tmp/portage/www-client/chromium-50.0.2661.37/temp/build.log
 * Package:    www-client/chromium-50.0.2661.37
 * Repository: gentoo
 * Maintainer: chromium@gentoo.org
 * USE:        arm elibc_glibc hangouts kernel_linux linguas_am linguas_ar linguas_bg linguas_bn linguas_ca linguas_cs linguas_da linguas_de linguas_el linguas_en_GB linguas_es linguas_es_LA linguas_et linguas_fa linguas_fi linguas_fil linguas_fr linguas_gu linguas_he linguas_hi linguas_hr linguas_hu linguas_id linguas_it linguas_ja linguas_kn linguas_ko linguas_lt linguas_lv linguas_ml linguas_mr linguas_ms linguas_nb linguas_nl linguas_pl linguas_pt_BR linguas_pt_PT linguas_ro linguas_ru linguas_sk linguas_sl linguas_sr linguas_sv linguas_sw linguas_ta linguas_te linguas_th linguas_tr linguas_uk linguas_vi linguas_zh_CN linguas_zh_TW pic proprietary-codecs tcmalloc userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     4.1.21-raspberrypi
 * Unable to check for the following kernel config options due
 * to absence of any configured kernel sources or compiled
 * config:
 *  - PID_NS - PID_NS is required for sandbox to work
 *  - NET_NS - NET_NS is required for sandbox to work
 *  - SECCOMP_FILTER - SECCOMP_FILTER is required for sandbox to work
 *  - USER_NS - USER_NS is required for sandbox to work
 *  - ADVISE_SYSCALLS - CONFIG_ADVISE_SYSCALLS is required for the renderer (bug #552576)
 *  - COMPAT_VDSO - CONFIG_COMPAT_VDSO causes segfaults (bug #556286)
 * You're on your own to make sure they are set if needed.
 * Applying chromium-system-ffmpeg-r2.patch ...
 [ ok ]
 * Applying chromium-system-jinja-r8.patch ...
 [ ok ]
 * Applying chromium-widevine-r1.patch ...
 [ ok ]
 * Applying chromium-last-commit-position-r0.patch ...
 [ ok ]
 * Applying chromium-snapshot-toolchain-r1.patch ...
 [ ok ]
 * Applying chromium-whitelist-arm64-syscalls.patch ...
 [ ok ]
 * Configuring bundled ffmpeg...
System information:
Host OS       : linux
Target OS     : linux
Host arch     : arm
Target arch   : arm
Parallel jobs : 32

Chromium skipped
Chrome configure/build:
Running ['/var/tmp/portage/www-client/chromium-50.0.2661.37/work/chromium-50.0.2661.37/third_party/ffmpeg/configure', '--disable-everything', '--disable-all', '--disable-doc', '--disable-htmlpages', '--disable-manpages', '--disable-podpages', '--disable-txtpages', '--disable-static', '--enable-avcodec', '--enable-avformat', '--enable-avutil', '--enable-fft', '--enable-rdft', '--enable-static', '--disable-bzlib', '--disable-error-resilience', '--disable-iconv', '--disable-lzo', '--disable-network', '--disable-schannel', '--disable-sdl', '--disable-symver', '--disable-xlib', '--disable-zlib', '--disable-securetransport', '--disable-d3d11va', '--disable-dxva2', '--disable-vaapi', '--disable-vda', '--disable-vdpau', '--disable-videotoolbox', '--enable-decoder=vorbis', '--enable-decoder=pcm_u8,pcm_s16le,pcm_s24le,pcm_s32le,pcm_f32le', '--enable-decoder=pcm_s16be,pcm_s24be,pcm_mulaw,pcm_alaw', '--enable-demuxer=ogg,matroska,wav', '--enable-parser=opus,vorbis', '--optflags="-O2"', '--enable-decoder=theora,vp8', '--enable-parser=vp3,vp8', '--arch=arm', '--enable-armv6', '--enable-armv6t2', '--enable-vfp', '--enable-thumb', '--extra-cflags=-march=armv7-a', '--enable-cross-compile', '--target-os=linux', '--cross-prefix=armv7a-cros-linux-gnueabi-', '--extra-cflags=-mtune=cortex-a8', '--extra-cflags=-mfloat-abi=hard', '--disable-neon', '--extra-cflags=-mfpu=vfpv3-d16', '--enable-pic', '--enable-decoder=aac,h264,mp3', '--enable-demuxer=aac,mp3,mov', '--enable-parser=aac,h264,mpegaudio']
armv7a-cros-linux-gnueabi-gcc is unable to create an executable file.
C compiler test failed.

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solve the problem.
Traceback (most recent call last):
  File "chromium/scripts/build_ffmpeg.py", line 627, in <module>
    sys.exit(main(sys.argv[1:]))
  File "chromium/scripts/build_ffmpeg.py", line 597, in main
    configure_args)
  File "chromium/scripts/build_ffmpeg.py", line 584, in do_build_ffmpeg
    options.config_only, branding, configure_flags)
  File "chromium/scripts/build_ffmpeg.py", line 208, in BuildFFmpeg
    [os.path.join(FFMPEG_DIR, 'configure')] + configure_flags, cwd=config_dir)
  File "chromium/scripts/build_ffmpeg.py", line 92, in PrintAndCheckCall
    subprocess.check_call(argv, *args, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/var/tmp/portage/www-client/chromium-50.0.2661.37/work/chromium-50.0.2661.37/third_party/ffmpeg/configure', '--disable-everything', '--disable-all', '--disable-doc', '--disable-htmlpages', '--disable-manpages', '--disable-podpages', '--disable-txtpages', '--disable-static', '--enable-avcodec', '--enable-avformat', '--enable-avutil', '--enable-fft', '--enable-rdft', '--enable-static', '--disable-bzlib', '--disable-error-resilience', '--disable-iconv', '--disable-lzo', '--disable-network', '--disable-schannel', '--disable-sdl', '--disable-symver', '--disable-xlib', '--disable-zlib', '--disable-securetransport', '--disable-d3d11va', '--disable-dxva2', '--disable-vaapi', '--disable-vda', '--disable-vdpau', '--disable-videotoolbox', '--enable-decoder=vorbis', '--enable-decoder=pcm_u8,pcm_s16le,pcm_s24le,pcm_s32le,pcm_f32le', '--enable-decoder=pcm_s16be,pcm_s24be,pcm_mulaw,pcm_alaw', '--enable-demuxer=ogg,matroska,wav', '--enable-parser=opus,vorbis', '--optflags="-O2"', '--enable-decoder=theora,vp8', '--enable-parser=vp3,vp8', '--arch=arm', '--enable-armv6', '--enable-armv6t2', '--enable-vfp', '--enable-thumb', '--extra-cflags=-march=armv7-a', '--enable-cross-compile', '--target-os=linux', '--cross-prefix=armv7a-cros-linux-gnueabi-', '--extra-cflags=-mtune=cortex-a8', '--extra-cflags=-mfloat-abi=hard', '--disable-neon', '--extra-cflags=-mfpu=vfpv3-d16', '--enable-pic', '--enable-decoder=aac,h264,mp3', '--enable-demuxer=aac,mp3,mov', '--enable-parser=aac,h264,mpegaudio']' returned non-zero exit status 1
 * ERROR: www-client/chromium-50.0.2661.37::gentoo failed (configure phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line 133:  Called src_configure
 *   environment, line 5240:  Called die
 * The specific snippet of code:
 *           chromium/scripts/build_ffmpeg.py linux ${ffmpeg_target_arch} --branding ${ffmpeg_branding} -- ${build_ffmpeg_args} || die;
 *
 * If you need support, post the output of `emerge --info '=www-client/chromium-50.0.2661.37::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=www-client/chromium-50.0.2661.37::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/www-client/chromium-50.0.2661.37/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-client/chromium-50.0.2661.37/temp/environment'.
 * Working directory: '/var/tmp/portage/www-client/chromium-50.0.2661.37/work/chromium-50.0.2661.37/third_party/ffmpeg'
 * S: '/var/tmp/portage/www-client/chromium-50.0.2661.37/work/chromium-50.0.2661.37'


[Moderator edit: changed [quote] tags to [code] tags to preserve output layout. Removed spurious /quote that had no opening quote. -Hu]
_________________
Foo.
Back to top
View user's profile Send private message
NightDragon
Veteran
Veteran


Joined: 21 Aug 2004
Posts: 1156
Location: Vienna (Austria)

PostPosted: Fri Aug 12, 2016 10:15 pm    Post subject: Reply with quote

Same issue here.
have you found an solution?
_________________
You are the problem too all my solutions ;)
Back to top
View user's profile Send private message
KaZeR
Apprentice
Apprentice


Joined: 04 Feb 2004
Posts: 291
Location: Au fond, à droite.

PostPosted: Mon Aug 15, 2016 6:10 pm    Post subject: Reply with quote

Not really.. I switched to another browser, which fits my needs for now.
Chromium has the advantage of a better kiosk mode, so I still hope to find a solution at some point, but haven't really looked into it much since April.
_________________
Foo.
Back to top
View user's profile Send private message
de-fiese-moeps
n00b
n00b


Joined: 17 Nov 2005
Posts: 15

PostPosted: Sat Dec 10, 2016 12:25 pm    Post subject: Reply with quote

Hello,
I used the following patch to correct the gcc prefix:

Code:

--- a/third_party/ffmpeg/chromium/scripts/build_ffmpeg.py       2016-12-10 12:48:00.729986380 +0100
+++ b/third_party/ffmpeg/chromium/scripts/build_ffmpeg.py       2016-12-10 12:47:18.459986390 +0100
@@ -419,7 +419,7 @@
             # and copy ffmpeg to a location that is reachable.
             '--enable-cross-compile',
             '--target-os=linux',
+            '--cross-prefix=armv7a-hardfloat-linux-gnueabi-',
-            '--cross-prefix=armv7a-cros-linux-gnueabi-',
             '--extra-cflags=-mtune=cortex-a8',
             # NOTE: we don't need softfp for this hardware.
             '--extra-cflags=-mfloat-abi=hard',


Please see https://wiki.gentoo.org/wiki//etc/portage/patches.
You may need to change the prefix according to your toolchain.
_________________
--Sint ut sunt aut non sint.--
[Accept them as they are or deny their existence.]
unknown
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum