linaro_android_build_cmds.sh fails. needs to add 'file' package dependency

Bug #1321459 reported by Sean Payne
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro Android
New
Undecided
Unassigned

Bug Description

I tried to build linaro android from source in a 64-bit 12.04 chroot and got the following error message:

rebuilts/tools/gcc-sdk/ar: line 29: file: command not found
ERROR: prebuilts/tools/gcc-sdk/../../gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/bin/x86_64-linux-ar only run on 64-bit linux
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/libhost.a] Error 1
make: *** Waiting for unfinished jobs....

I expected this to build fine as I am running on a 64-bit linux.

I did some more research and found in the third response here: http://stackoverflow.com/questions/17014090/gcc-thinks-im-running-x86 that android build detects cpu architecture by using file on $SHELL (!).

I did not have the 'file' package installed.

So I then did and apt-get install file, and this got me past this issue.

A better solution is to add the 'file' package to the PKGS variable in linaro_android_build_cmds.sh

description: updated
Revision history for this message
Sean Payne (sean-d-payne) wrote :

Further down in the build, I found that bc is a dependency, so should be added as well

2 warnings generated.
  BC kernel/timeconst.h
/bin/sh: 1: bc: not found
make[3]: *** [kernel/timeconst.h] Error 127
make[2]: *** [kernel] Error 2
make[2]: *** Waiting for unfinished jobs....

Revision history for this message
Chase Qi (chase-qi) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.