Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 680902 - >=www-client/chromium-73.0.3683.75 fail to detect cross-compiler and runs into error: unrecognized command line option ‘-mfpu=neon`
Summary: >=www-client/chromium-73.0.3683.75 fail to detect cross-compiler and runs int...
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Chromium Project
URL: https://chromium.googlesource.com/chr...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-18 21:41 UTC by tt_1
Modified: 2024-05-16 05:26 UTC (History)
1 user (show)

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


Attachments
build log of chromium (chromium-build.log,43.97 KB, text/x-log)
2019-03-18 21:43 UTC, tt_1
Details
output of emerge --info for armv7a-unknown-linux-gnueabihf (emerge-info,4.90 KB, text/plain)
2019-03-18 21:43 UTC, tt_1
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tt_1 2019-03-18 21:41:58 UTC
from the build.log:

gn gen --args= is_clang=false custom_toolchain="//build/toolchain/linux/unbundle:default" host_toolchain="//build/toolchain/linux/unbundle:host" v8_snapshot_toolchain="//build/toolchain/linux/unbundle:host" is_debug=false is_component_build=false use_jumbo_build=false use_allocator="none" enable_nacl=false use_system_harfbuzz=true closure_compile=false enable_hangout_services_extension=false enable_widevine=false use_cups=false use_gnome_keyring=false use_kerberos=false use_pulseaudio=false fieldtrial_testing_like_official_build=true use_gold=false use_sysroot=false linux_use_bundled_binutils=false use_custom_libcxx=false use_lld=false proprietary_codecs=false ffmpeg_branding="Chromium" google_api_key="AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc" google_default_client_id="329227923882.apps.googleusercontent.com" google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu" target_cpu="arm" treat_warnings_as_errors=false fatal_linker_warnings=false  out/Release


x86_64-pc-linux-gnu-g++ -MMD -MF host/obj/v8/torque_base/csa-generator.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -DNO_TCMALLOC -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DCHROMIUM_BUILD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DV8_TYPED_ARRAY_MAX_SIZE_IN_HEAP=64 -DENABLE_MINOR_MC -DV8_DEPRECATION_WARNINGS -DV8_INTL_SUPPORT -DV8_USE_SNAPSHOT -DV8_USE_EXTERNAL_STARTUP_DATA -DV8_CONCURRENT_MARKING -DV8_EMBEDDED_BUILTINS -DV8_TARGET_ARCH_ARM -DCAN_USE_ARMV7_INSTRUCTIONS -DCAN_USE_VFP3_INSTRUCTIONS -DCAN_USE_VFP32DREGS -DCAN_USE_NEON -DDISABLE_UNTRUSTED_CODE_MITIGATIONS -I../.. -Ihost/gen -I../../v8 -Ihost/gen/v8 -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -funwind-tables -fPIC -pipe -pthread -mfpu=neon -mthumb -Wno-psabi -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -Wno-comments -Wno-missing-field-initializers -Wno-unused-parameter -fno-omit-frame-pointer -fvisibility=hidden -Wno-strict-overflow -Wno-return-type -std=gnu++14 -Wno-narrowing -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -O2 -march=znver1 -pipe -c ../../v8/src/torque/csa-generator.cc -o host/obj/v8/torque_base/csa-generator.o
x86_64-pc-linux-gnu-g++: error: unrecognized command line option ‘-mfpu=neon’
Comment 1 tt_1 2019-03-18 21:43:06 UTC
Created attachment 569734 [details]
build log of chromium
Comment 2 tt_1 2019-03-18 21:43:40 UTC
Created attachment 569736 [details]
output of emerge --info for armv7a-unknown-linux-gnueabihf
Comment 3 tt_1 2019-03-18 21:48:28 UTC
the document I linked says: 

use a custom toolchain if you're a distro by adding 

custom_toolchain="//build/toolchain/linux/unbundle:default"

and also to add this in case of cross-compile: 

host_toolchain="//build/toolchain/linux/unbundle:host"
v8_snapshot_toolchain="//build/toolchain/linux/unbundle:host"

which to my reading of the ebuild and the build.log is the case here. 

I don't know where to even start to look at, can you give a bit of direction what could be the cause for this?
Comment 4 tt_1 2019-03-18 22:34:08 UTC
file of interest might be BUILD.gn and build/toolchain/gcc_toolchain.gni
Comment 5 tt_1 2019-03-19 08:30:14 UTC
the non-working part of the ebuild is here: 

tc-export BUILD_{AR,CC,CXX,NM}


if setting the BUILD_* variables manually, it works in the sense of using the cross-compiler instead of the hosts. 

< 		tc-export BUILD_{AR,CC,CXX,NM}
---
> 
> 		export BUILD_AR=armv7a-unknown-linux-gnueabihf-ar
> 		export BUILD_CC=armv7a-unknown-linux-gnueabihf-gcc
> 		export BUILD_CXX=armv7a-unknown-linux-gnueabihf-g++
> 		export BUILD_NM=armv7a-unknown-linux-gnueabihf-nm


It still fails for another reason, but that's expected and not part of this bug.
Comment 6 tt_1 2024-05-16 05:26:58 UTC
I'm going to close this, the build demands for chromium have only increased since I first tried to compile it, pure 32bit builds are very unlikely to ever succeed as of now or in the future.