This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: mips/a.out.h No such file or directory


> > But unfortunately,the system I used is not open source>_<
>
> I dont' think that matters; if there is a compiler for your
> system, it needs headers and those should be in
> /usr/include.
>
> > My configure of gcc: --target=mips-cygwin-ecoff.
> > Is this correct?
>
> Isn't Cygwin an Intel+Windows thingy? Therefore not running
> on Mips? I don't think that's the target you want, no.
>
> /Y.

Thanks a lot.
My target is incorrect.
My system is written by third party,an I can not get the source code.
Maybe this isn't  very important,now I change the target to mips-ecoff.,and
try again.

binutils-2.11.2
newlib-1.9.0
gcc-2.95.3
under cygwin platform

binutils/configure --target=mips-ecoff --prefix=/opt/mips/mips-ecoff
gcc/configure --target=mips-ecoff --prefix=/opt/mips/mips-ecoff --withour-he
aders --with-newlib
        --with-gnu-ld --with-gnu-as
when I make it ,generate an error like this:

/usr/build/gcc-build-b/gcc/xgcc -B/usr/build/gcc-build-b/gcc/ -B/opt/mips/mi
ps-ecoff/mips-ecoff/bin/ -c -DHAVE_CONFIG_H -g -O2 -I. -I../../../gcc-2.95.3
/libiberty/../include   ../../../gcc-2.95.3/libiberty/choose-temp.c -o
pic/choose-temp.o
/usr/build/gcc-build-b/gcc/xgcc -B/usr/build/gcc-build-b/gcc/ -B/opt/mips/mi
ps-ecoff/mips-ecoff/bin/ -c -DHAVE_CONFIG_H -g -O2 -I. -I../../../gcc-2.95.3
/libiberty/../include  ../../../gcc-2.95.3/libiberty/choose-temp.c
../../../gcc-2.95.3/libiberty/choose-temp.c:29: stdio.h: No such file or
directory
../../../gcc-2.95.3/libiberty/choose-temp.c:30: sys/types.h: No such file or
directory
make[1]: *** [choose-temp.o] Error 1
make[1]: Leaving directory `/usr/build/gcc-build-b/mips-ecoff/libiberty'
make: *** [all-target-libiberty] Error 2

I can use make -k to generate the gcc.
Then I use this gcc to build my newlib
configure --target=mips-ecoff --prefix=/opt/mips/mips-ecoff ,
no error.

Last build the complete gcc , generate same error.

Using this crossgcc and newlib,I test the program like this

/*test.c:file to test the new cross gcc*/
#include <math.h>

int main()
{
 double a,b;
 a=1.24;
 b=log(a);

 return 1;
}
gcc -otest.exe -mips -mno-mips-tfile test.c

but can not find the 'log' function.



------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]