List Info

Thread: Regarding the cross compiling hello-world test program




Regarding the cross compiling hello-world test program
user name
2007-08-29 08:26:45

Dear all,

Today i installed successfully scratchbox-0.9.8.8 on my FC-5 system, with no warning no errors.I created my target successfuly, which is a ARM based board.
I tried to test by running the test application which was there with this package.
but to my surprised its looking for the gcc compiler instead of arm-linux-

[sbox-HOST: ~] > sbox-config --create-target

Enter target name: alim-ARM

Available compilers:
        0) arm-linux-gcc-3.3_3.3.4-glibc-2.3.2.ds1
        1) host-gcc

Enter compiler number: 0

Available CPU-transparency methods:
    ;    sbrsh
        qemu-arm
    ;    qemu-ppc

Enter method name (qemu-arm): qemu-arm

Completed writing configuration to: /targets/alim-ARM.config

Below is what is got when i run ./autogen.sh

-------------start---------------------
[sbox-alim-ARM: /scratchbox/users/alim/home/alim/hello-world] > ./autogen.sh
+ aclocal
/scratchbox/tools/share/aclocal/pkg.m4:5: warning: underquoted definition of PKG_CHECK_MODULES
  run info '(automake)Extending aclocal9;
  or see http://sources.redhat.com/automake/automake.html#Extending%20aclocal
+ autoconf
+ autoheader
+ automake --add-missing --foreign
+ ./configure
checking for a BSD-compatible install... /scratchbox/tools/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
[sbox-Alim-ARM: /scratchbox/users/alim/home/alim/hello-world]
-------------------end---------------------------------------------

Can any one please tell me whats the problem. i followed all the steps from http://www.scratchbox.org/download/files/sbox-releases/0.9.8/doc/installdoc.html

Will hearty appreciate your suggestions and help.

Regards
Alim

Re: Regarding the cross compiling hello-world test program
country flaguser name
France
2007-08-29 08:41:45
Have you tried to compile your own simplest hello world with
a simple
"gcc kikoo.c", just to check if gcc succeeds to
build it?
Ensure your gcc is a good version with "gcc
--version"

If it cannot run, but display the good version, problem may
come from
your qemu. Find an independent executable file compiled for
your
architecture, and verify if qemu can launch it.

Any other issue may be a problem with libraries.


Try to compile a "main() {
printf("kikoolol!"; }" and you may get a
more
detailed error.
(if it is a problem of libraries, use sb-menu instead of
sbox-config, it
wil advise you to install some files on your target)

Mickael
_______________________________________________
Scratchbox-users mailing list
Scratchbox-userslists.scratchbox.org
http://lists.scratchbox.org/cgi-bin/mailman
/listinfo/scratchbox-users

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )