Hi,

I'd like to see if I can compile couple of programs for om

I followed instructions on the wiki,
(yes, installed listed dependencies and run setup-env)

when $> om-conf openmoko-sample2

after some passes, i got:

checking for C compiler default output file name... 
configure: error: C compiler cannot create executables
See `config.log' for more details.
FATAL: oe_runconf failed

$> cat openmoko-sample2/config.log  | grep -ni 'gcc' 

gives:

89:| #gcc-zlib
183:| #gcc
214:configure:2573: checking for arm-angstrom-linux-gnueabi-gcc
215:configure:2600: result: ccache arm-angstrom-linux-gnueabi-gcc
-march=armv4t -mtune=arm920t
217:configure:2885: ccache arm-angstrom-linux-gnueabi-gcc -march=armv4t
-mtune=arm920t --version >&5
218:/usr/local/openmoko/arm/bin/arm-angstrom-linux-gnueabi-gcc: Exec
format error
220:configure:2895: ccache arm-angstrom-linux-gnueabi-gcc -march=armv4t
-mtune=arm920t -v >&5
221:/usr/local/openmoko/arm/bin/arm-angstrom-linux-gnueabi-gcc: Exec
format error
223:configure:2905: ccache arm-angstrom-linux-gnueabi-gcc -march=armv4t
-mtune=arm920t -V >&5
224:/usr/local/openmoko/arm/bin/arm-angstrom-linux-gnueabi-gcc: Exec
format error
227:configure:2958: ccache arm-angstrom-linux-gnueabi-gcc -march=armv4t
-mtune=arm920t
-isystem/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/include
-fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os
-isystem/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/include
-L/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/lib
-Wl,-rpath-link,/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/lib
-Wl,-O1 conftest.c  >&5
228:/usr/local/openmoko/arm/bin/arm-angstrom-linux-gnueabi-gcc: Exec
format error
263:ac_cv_env_CC_value='ccache arm-angstrom-linux-gnueabi-gcc
-march=armv4t -mtune=arm920t'
269:ac_cv_env_CPP_value='arm-angstrom-linux-gnueabi-gcc -E'
331:ac_cv_prog_CC='ccache arm-angstrom-linux-gnueabi-gcc -march=armv4t
-mtune=arm920t'
423:CC='ccache arm-angstrom-linux-gnueabi-gcc -march=armv4t
-mtune=arm920t'
426:CPP='arm-angstrom-linux-gnueabi-gcc -E'

other relevant portion is:



> configure:2958: ccache arm-angstrom-linux-gnueabi-gcc -march=armv4t 
> -mtune=arm92
> 0t -isystem/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/include 
> -fexpensiv
> e-optimizations -fomit-frame-pointer -frename-registers -Os 
> -isystem/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/include 
> -L/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/lib 
> -Wl,-rpath-link,/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/lib 
> -Wl,-O1 conftest.c  >&5
> /usr/local/openmoko/arm/bin/arm-angstrom-linux-gnueabi-gcc: Exec format error
> configure:2961: $? = 1
> configure:2999: result: 
> configure: failed program was:
> | /* confdefs.h.  */
> | #define PACKAGE_NAME "openmoko-sample"
> | #define PACKAGE_TARNAME "openmoko-sample"
> | #define PACKAGE_VERSION "0.0.1"
> | #define PACKAGE_STRING "openmoko-sample 0.0.1"
> | #define PACKAGE_BUGREPORT "http://www.openmoko.org/";
> | #define PACKAGE "openmoko-sample"
> | #define VERSION "0.0.1"
> | /* end confdefs.h.  */
> | 
> | int
> | main ()
> | {
> | 
> |   ;
> |   return 0;
> | }
> configure:3006: error: C compiler cannot create executables
> See `config.log' for more details.



something missing in the setup-env?
any clue in the right direction is appreciated,

Thank you,

Andres


Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community

Reply via email to