Goal
I need to install Chromium on FriendlyARM mini210s running Linux 3.0.8 armv7l
Environment
- Vagrant box with Ubuntu Precise64
- Installed
depot_toolsfollowing these guidelines Get-the-code and Linux Chromium ARM
Toolchain
wget -q http://ift.tt/1tN4KLP;
vagrant@vagrant:~/depot_tools/src$ /home/vagrant/x-tools7h/arm-unknown-linux-gnueabihf/bin/gcc --version
gcc (crosstool-NG 1.20.0) 4.9.3 20141224 (prerelease)
After getting the depot_tools:
vagrant@vagrant:~/depot_tools$ fetch chromium
Environment variables
export CC=/home/vagrant/x-tools7h/arm-unknown-linux-gnueabihf/bin/gcc
export CXX=/home/vagrant/x-tools7h/arm-unknown-linux-gnueabihf/bin/g++
export AR=/home/vagrant/x-tools7h/arm-unknown-linux-gnueabihf/bin/ar
export RANLIB=/home/vagrant/x-tools7h/arm-unknown-linux-gnueabihf/bin/ranlib
export GYP_CROSSCOMPILE=1
export GYP_DEFINES="target_arch=arm arm_float_abi=hard"
Dependencies
vagrant@vagrant:~/depot_tools/src$ ./chrome/installer/linux/sysroot_scripts/install-debian.wheezy.sysroot.py --arch=arm
Installing Debian Wheezy arm root image: /home/vagrant/depot_tools/src/chrome/installer/linux/debian_wheezy_arm-sysroot
Downloading http://ift.tt/1Dv4v8l
build/install-build-deps.sh --arm
build/install-build-deps-android.sh
gclient sync
Compile
./build/gyp_chromium -Dcomponent=shared_library
ninja -C out/Debug chrome
Errors
vagrant@vagrant:~/depot_tools/src$ ninja -C out/Debug chrome
ninja: Entering directory `out/Debug'
[2/18325] CXX obj/third_party/pdfium/fpdfsdk/src/fxedit/fxedit.fxet_ap.o
FAILED: /home/vagrant/x-tools7h/arm-unknown-linux-gnueabihf/bin/g++ -MMD -MF obj/third_party/pdfium/fpdfsdk/src/fxedit/fxedit.fxet_ap.o.d -D_FXFT_VERSION_=2501 -D_FPDFSDK_LIB -D_NO_GDIPLUS_ -DOPJ_STATIC -DV8_DEPRECATION_WARNINGS -D_FILE_OFFSET_BITS=64 -DCHROMIUM_BUILD -DCR_CLANG_REVISION=223108 -DTOOLKIT_VIEWS=1 -DUI_COMPOSITOR_IMAGE_TRANSPORT -DUSE_AURA=1 -DUSE_ASH=1 -DUSE_PANGO=1 -DUSE_CAIRO=1 -DUSE_DEFAULT_RENDER_THEME=1 -DUSE_LIBJPEG_TURBO=1 -DUSE_X11=1 -DUSE_CLIPBOARD_AURAX11=1 -DENABLE_ONE_CLICK_SIGNIN -DENABLE_PRE_SYNC_BACKUP -DENABLE_REMOTING=1 -DENABLE_WEBRTC=1 -DENABLE_PEPPER_CDMS -DENABLE_CONFIGURATION_POLICY -DENABLE_NOTIFICATIONS -DUSE_UDEV -DDONT_EMBED_BUILD_METADATA -DENABLE_TASK_MANAGER=1 -DENABLE_EXTENSIONS=1 -DENABLE_PLUGINS=1 -DENABLE_SESSION_SERVICE=1 -DENABLE_THEMES=1 -DENABLE_AUTOFILL_DIALOG=1 -DENABLE_BACKGROUND=1 -DENABLE_GOOGLE_NOW=1 -DCLD_VERSION=2 -DENABLE_PRINTING=1 -DENABLE_BASIC_PRINTING=1 -DENABLE_PRINT_PREVIEW=1 -DENABLE_SPELLCHECK=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_APP_LIST=1 -DENABLE_SETTINGS_APP=1 -DENABLE_SUPERVISED_USERS=1 -DENABLE_MDNS=1 -DENABLE_SERVICE_DISCOVERY=1 -DV8_USE_EXTERNAL_STARTUP_DATA -DUSE_LIBPCI=1 -DUSE_GLIB=1 -DUSE_NSS=1 -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -D_DEBUG -D_GLIBCXX_DEBUG=1 -Igen -fstack-protector --param=ssp-buffer-size=4 -Werror -pthread -fno-strict-aliasing -Wno-unused-parameter -Wno-missing-field-initializers -fvisibility=hidden -pipe -fPIC -Wno-reserved-user-defined-literal -Xclang -load -Xclang /home/vagrant/depot_tools/src/third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.so -Xclang -add-plugin -Xclang find-bad-constructs -fcolor-diagnostics -Wheader-hygiene -Wno-char-subscripts -Wno-unneeded-internal-declaration -Wno-covered-switch-default -Wstring-conversion -Wno-c++11-narrowing -Wno-deprecated-register -Wno-inconsistent-missing-override -Wno-format -Wno-unused-result -target arm-linux-gnueabihf -march=armv7-a -no-integrated-as -mtune=generic-armv7-a -mfpu=neon -mfloat-abi=hard -mthumb --sysroot=/home/vagrant/depot_tools/src/chrome/installer/linux/debian_wheezy_arm-sysroot -O0 -g -gdwarf-4 -funwind-tables -Wno-undefined-bool-conversion -Wno-tautological-undefined-compare -march=armv7-a -mtune=cortex-a8 -mfpu=vfp -mfloat-abi=hard -DUSE_EABI_HARDFLOAT -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -std=gnu++11 -Wno-deprecated -c ../../third_party/pdfium/fpdfsdk/src/fxedit/fxet_ap.cpp -o obj/third_party/pdfium/fpdfsdk/src/fxedit/fxedit.fxet_ap.o
g++: error: find-bad-constructs: No such file or directory
g++: error: arm-linux-gnueabihf: No such file or directory
g++: error: unrecognized command line option '-Xclang'
g++: error: unrecognized command line option '-Xclang'
g++: error: unrecognized command line option '-Xclang'
g++: error: unrecognized command line option '-add-plugin'
g++: error: unrecognized command line option '-Xclang'
g++: error: unrecognized command line option '-fcolor-diagnostics'
g++: error: unrecognized command line option '-Wheader-hygiene'
g++: error: unrecognized command line option '-Wstring-conversion'
g++: error: unrecognized command line option '-target'
g++: error: unrecognized command line option '-no-integrated-as'
[2/18325] CXX obj/third_party/pdfium/fpdfsdk/src/fxedit/fxedit.fxet_pageobjs.o
FAILED: /home/vagrant/x-tools7h/arm-unknown-linux-gnueabihf/bin/g++ -MMD -MF obj/third_party/pdfium/fpdfsdk/src/fxedit/fxedit.fxet_pageobjs.o.d -D_FXFT_VERSION_=2501 -D_FPDFSDK_LIB -D_NO_GDIPLUS_ -DOPJ_STATIC -DV8_DEPRECATION_WARNINGS -D_FILE_OFFSET_BITS=64 -DCHROMIUM_BUILD -DCR_CLANG_REVISION=223108 -DTOOLKIT_VIEWS=1 -DUI_COMPOSITOR_IMAGE_TRANSPORT -DUSE_AURA=1 -DUSE_ASH=1 -DUSE_PANGO=1 -DUSE_CAIRO=1 -DUSE_DEFAULT_RENDER_THEME=1 -DUSE_LIBJPEG_TURBO=1 -DUSE_X11=1 -DUSE_CLIPBOARD_AURAX11=1 -DENABLE_ONE_CLICK_SIGNIN -DENABLE_PRE_SYNC_BACKUP -DENABLE_REMOTING=1 -DENABLE_WEBRTC=1 -DENABLE_PEPPER_CDMS -DENABLE_CONFIGURATION_POLICY -DENABLE_NOTIFICATIONS -DUSE_UDEV -DDONT_EMBED_BUILD_METADATA -DENABLE_TASK_MANAGER=1 -DENABLE_EXTENSIONS=1 -DENABLE_PLUGINS=1 -DENABLE_SESSION_SERVICE=1 -DENABLE_THEMES=1 -DENABLE_AUTOFILL_DIALOG=1 -DENABLE_BACKGROUND=1 -DENABLE_GOOGLE_NOW=1 -DCLD_VERSION=2 -DENABLE_PRINTING=1 -DENABLE_BASIC_PRINTING=1 -DENABLE_PRINT_PREVIEW=1 -DENABLE_SPELLCHECK=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_APP_LIST=1 -DENABLE_SETTINGS_APP=1 -DENABLE_SUPERVISED_USERS=1 -DENABLE_MDNS=1 -DENABLE_SERVICE_DISCOVERY=1 -DV8_USE_EXTERNAL_STARTUP_DATA -DUSE_LIBPCI=1 -DUSE_GLIB=1 -DUSE_NSS=1 -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWTF_USE_DYNAMIC_ANNOTATIONS=1 -D_DEBUG -D_GLIBCXX_DEBUG=1 -Igen -fstack-protector --param=ssp-buffer-size=4 -Werror -pthread -fno-strict-aliasing -Wno-unused-parameter -Wno-missing-field-initializers -fvisibility=hidden -pipe -fPIC -Wno-reserved-user-defined-literal -Xclang -load -Xclang /home/vagrant/depot_tools/src/third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.so -Xclang -add-plugin -Xclang find-bad-constructs -fcolor-diagnostics -Wheader-hygiene -Wno-char-subscripts -Wno-unneeded-internal-declaration -Wno-covered-switch-default -Wstring-conversion -Wno-c++11-narrowing -Wno-deprecated-register -Wno-inconsistent-missing-override -Wno-format -Wno-unused-result -target arm-linux-gnueabihf -march=armv7-a -no-integrated-as -mtune=generic-armv7-a -mfpu=neon -mfloat-abi=hard -mthumb --sysroot=/home/vagrant/depot_tools/src/chrome/installer/linux/debian_wheezy_arm-sysroot -O0 -g -gdwarf-4 -funwind-tables -Wno-undefined-bool-conversion -Wno-tautological-undefined-compare -march=armv7-a -mtune=cortex-a8 -mfpu=vfp -mfloat-abi=hard -DUSE_EABI_HARDFLOAT -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -std=gnu++11 -Wno-deprecated -c ../../third_party/pdfium/fpdfsdk/src/fxedit/fxet_pageobjs.cpp -o obj/third_party/pdfium/fpdfsdk/src/fxedit/fxedit.fxet_pageobjs.o
g++: error: find-bad-constructs: No such file or directory
g++: error: arm-linux-gnueabihf: No such file or directory
g++: error: unrecognized command line option '-Xclang'
g++: error: unrecognized command line option '-Xclang'
g++: error: unrecognized command line option '-Xclang'
g++: error: unrecognized command line option '-add-plugin'
g++: error: unrecognized command line option '-Xclang'
g++: error: unrecognized command line option '-fcolor-diagnostics'
g++: error: unrecognized command line option '-Wheader-hygiene'
g++: error: unrecognized command line option '-Wstring-conversion'
g++: error: unrecognized command line option '-target'
g++: error: unrecognized command line option '-no-integrated-as'
ninja: build stopped: subcommand failed.
Looking forward to some recommendations and leads
Do I have the workflow right?
Aucun commentaire:
Enregistrer un commentaire