login
Header Space

 
 

cross compilation issue.

March 26, 2007 - 6:46am
Submitted by _Neo_ on March 26, 2007 - 6:46am.
Applications and Utilities

hi

i was trying to cross-compile an app-"gstreamer" for my ARM box.
i configured the package like this:

./configure --host=arm-linux --disable-tests --disable-failing-tests --disable-examples LDFLAGS=-L/home/bayyavs/backup/popt-1.7/.libs/ CPPFLAGS=/home/bayyavs/backup/popt-1.7/

But while compiling,iam getting this error :

arm-linux-gcc : cannot specify -o with -c or -S and multiple compilations

A noticable point is that iam able to compile the same package with gcc. Only incase of cross compilation there is a problem. Plz help.

Regards,
Neo

Will you be able to post the

April 10, 2007 - 10:31am

Will you be able to post the dump you get on giving the configure command. This would help me.
1. Also just look out whether you are missing an -c option when you configure it for ARM. As your configure script generates Makefiles, it may be possible that your CFLAGS or equivalent macro in your newly generated Makefile for ARM doesnot include -c option but rather has -o option only.

Rgds,
hlrprasad

the other way round

April 10, 2007 - 5:36pm

It is the other way round:

arm-linux-gcc : cannot specify -o with -c or -S and multiple compilations

You cannot specify a name for 'the' output file (-o : name of output file) when compiling multiple source files and not link them together (-c : just compile or -S : compile input files to assembler).

Just -o without -c is ok, it is standard, if you don't want your programs called a.out .

configure created a bogus Makefile or just the CFLAGS are bad.

drupal bug

April 10, 2007 - 5:38pm

we found a drupal bug, it does not close unclosed bold text in postings :)

Your CPPFLAGS look wrong to me

April 11, 2007 - 3:53am

Your CPPFLAGS look wrong; what you've written tells the C preprocessor to use "/home/bayyavs/backup/popt-1.7/" as an extra source file (almost certainly not what you want).

Try changing it to CPPFLAGS=-I/home/bayyavs/backup/popt-1.7/; this tells the C preprocessor to look in the directory "/home/bayyavs/backup/popt-1.7/" for extra include files.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
speck-geostationary