cross compiling content_shell for ARM with clang fails because of gcc args get passed to the compiler

523 views
Skip to first unread message

strawbe...@googlemail.com

unread,
Jul 30, 2014, 4:01:17 AM7/30/14
to chromium...@chromium.org
Hi,

I'm trying to cross compile content_shell from chromium-38.0.2106.0 with clang.
It fails with the following errors:

clang: warning: argument unused during compilation: '-mfpu=neon'
clang: warning: argument unused during compilation: '-mfloat-abi=hard'
clang: warning: argument unused during compilation: '-mthumb'
error: unknown target CPU 'armv7-a'


So it objects about args known by gcc, but not by clang.

The export command line:

export "GYP_DEFINES=target_arch=arm arm_float_abi=hard disable_nacl=1 use_aura=1 use_ash=0 toolkit_views=0 use_ozone=1 ozone_platform_caca=0 ozone_platform_gbm=0 ozone_platform_dri=0 ozone_platform_egltest=1 ozone_platform_test=1 embedded=1 use_pango=0 use_cairo=0 werror='' clang=1 use_x11=0 arm=1 gcc=0
"
"export GYP_CROSSCOMPILE=1

CC, C++ and so on are not set:

unset CC;unset CXX;unset AR;unset CC_host;unset CXX_host

Any idea, what's going wrong here?

strawbe...@googlemail.com

unread,
Aug 7, 2014, 5:57:48 AM8/7/14
to chromium...@chromium.org
Ok, the args passed to clang are actually not gcc ones, so that question was rather silly ;)
But there is still a clang binary (obtained with tools/clang/scripts/update.sh), that does not know the armv7-a target (didn't change with chromium-38.0.2115.0)

Could you give me a hint, where I could find instructions to use an own clang installation or to obtain a suitable binary using update.sh?
Instructions I found are more ore less like "put arm=1 and clang=1 to your GYP_DEFINES and recreate".


Reply all
Reply to author
Forward
0 new messages