I'm trying to build chromium for arm on and amd64 box. I'm able to build "directly" for amd64, but when I try to follow the cross-building instructions at https://code.google.com/p/chromium/wiki/LinuxChromiumArm (recipe 2) I get an error:$ build/gyp_chromium -Dchromeos=1$ ninja -C out/Debug.arm/ chromeninja: Entering directory `out/Debug.arm/'ninja: error: '../../native_client/toolchain/.tars/linux_x86/nacl_arm_newlib.json', needed by 'gen/sdk/linux_x86/nacl_arm_newlib/nacl_arm_newlib.json', missing and no known rule to make it
I have a nativelicnet/toolchain/.tars/linux_x68 directory but there is no nacl_arm_newlib.json file here (there is such a file in another subtree). What am I doing wrong and how can I get this built?
Also, is it possible to keep around several build trees for different platforms in the same tree? Can I just move the out/Debug directory (ie. to out/Debug.amd64 and out/Debug.arm) after running gyp_chromium and then run ninja builds against each of those separately, or will they interfere in some way?
--Tim
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
Indeed, i had forgot to gsync. Thank you. I get a bit further now, but I'm getting an error (full error log is attached).arm-linux-gnueabihf-g++: error: find-bad-constructs: No such file or directoryarm-linux-gnueabihf-g++: error: arm-linux-gnueabihf: No such file or directoryIt looks like this issue has been reported before: https://code.google.com/p/chromium/issues/detail?id=395832 which mentions that another gcc version might be required? The cross building guide doesn't make any mention of this. Is there an easy workaround that doesnt involve installing a different version gcc?
I believe the simple chrome workflow is the best candidate here (2). Note that we have a amd64-generic board,
On Wed, Aug 20, 2014 at 2:58 PM, Tim Newsham <tim.n...@gmail.com> wrote:
Indeed, i had forgot to gsync. Thank you. I get a bit further now, but I'm getting an error (full error log is attached).arm-linux-gnueabihf-g++: error: find-bad-constructs: No such file or directoryarm-linux-gnueabihf-g++: error: arm-linux-gnueabihf: No such file or directoryIt looks like this issue has been reported before: https://code.google.com/p/chromium/issues/detail?id=395832 which mentions that another gcc version might be required? The cross building guide doesn't make any mention of this. Is there an easy workaround that doesnt involve installing a different version gcc?There are 2.5 ways to go about this that I know of that should mostly work.1. Do what this bot does: http://build.chromium.org/p/chromium.fyi/builders/Linux%20ARM%20Cross-Compile/builds/34504/steps/gclient%20runhooks/logs/stdio It sets target_arch=arm and (implicitly) uses clang for building (clang is bundled with the chromium checkout). Make sure not to set CC, CXX, or similar envvars when using this.2. Use the chromeos "simplechrome" workflow. Run `cros chrome-sdk --board=daisy` (from the chromium src/ folder), and then build with ninja -C out_daisy/Release. That script will download a cros toolchain and configure things to use that as target toolchain. (You can look at third_party/chromite/cros/commands/cros_chrome_sdk.py to learn what that does.)
There are 2.5 ways to go about this that I know of that should mostly work.1. Do what this bot does: http://build.chromium.org/p/chromium.fyi/builders/Linux%20ARM%20Cross-Compile/builds/34504/steps/gclient%20runhooks/logs/stdio It sets target_arch=arm and (implicitly) uses clang for building (clang is bundled with the chromium checkout). Make sure not to set CC, CXX, or similar envvars when using this.
Nico