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] |
hi I'm successfully build mips-ecoff crossgcc under cygwin These is my steps: export TARGET=mips-ecoff export PREFIX=/opt/$TARGET export PATH=$PATH:$PREFIX/bin Binutils: configure --target=$TARGET --prefix=$PREFIX make all install Bootstrap GCC To gcc top level source directory and make link to the newlib subdirectories cd <path to gcc source>/gcc-2.95.3 ln -s <path to newlib source>/newlib-1.9.0/newlib newlib ln -s <path to newlib source>/newlib-1.9.0/libgloss libgloss configure --target=$TARGET --prefix=$PREFIX --with-gnu-as --with-gnu-ld \ --without-headers --with-newlib --enable-languages=c make all install Newlib configure --target=$TARGET --prefix=$PREFIX make all install Full GCC configure --target=$TARGET --prefix=$PREFIX --with-gnu-as --with-gnu-ld \ --enable-languages=c,c++ make all install OK,next I build my test program like this test.c #include <stdio.h> #include <math.h> #include <string.h> int main() { char szTmp[1024],szDes[1024]; double k=1.333; k=log(k); strcpy(szTmp,"Input the year that your birth:"); memcpy(szDes,szTmp,sizeof(char)); sprintf(szDes,"%s,%f",szTmp,k); return 1; } mips-ecoff-gcc -mcpu=r3000 -Wall -O2 -msoft-float -EB -Ttext 00400000 -otest.exe test.c Generate error like this : test_ecoff.c(.text+0x60): undefined reference to `log' /opt/mips-ecoff/mips-ecoff/lib/libc.a(makebuf.o): In function `__smakebuf': /usr/build/gcc-full/mips-ecoff/newlib/libc/stdio/../../../../../gcc-2.95.3/n ewlib/libc/stdio/makebuf.c:93: undefined reference to `isatty' /opt/mips-ecoff/mips-ecoff/lib/libc.a(readr.o): In function `_read_r': /usr/build/gcc-full/mips-ecoff/newlib/libc/reent/../../../../../gcc-2.95.3/n ewlib/libc/reent/readr.c:58: undefined reference to `read' /opt/mips-ecoff/mips-ecoff/lib/libc.a(lseekr.o): In function `_lseek_r': /usr/build/gcc-full/mips-ecoff/newlib/libc/reent/../../../../../gcc-2.95.3/n ewlib/libc/reent/lseekr.c:58: undefined reference to `lseek' /opt/mips-ecoff/mips-ecoff/lib/libc.a(writer.o): In function `_write_r': /usr/build/gcc-full/mips-ecoff/newlib/libc/reent/../../../../../gcc-2.95.3/n ewlib/libc/reent/writer.c:58: undefined reference to `write' /opt/mips-ecoff/mips-ecoff/lib/libc.a(closer.o): In function `_close_r': /usr/build/gcc-full/mips-ecoff/newlib/libc/reent/../../../../../gcc-2.95.3/n ewlib/libc/reent/closer.c:53: undefined reference to `close' /opt/mips-ecoff/mips-ecoff/lib/libc.a(sbrkr.o): In function `_sbrk_r': /usr/build/gcc-full/mips-ecoff/newlib/libc/reent/../../../../../gcc-2.95.3/n ewlib/libc/reent/sbrkr.c:61: undefined reference to `sbrk' /opt/mips-ecoff/mips-ecoff/lib/libc.a(fstatr.o): In function `_fstat_r': /usr/build/gcc-full/mips-ecoff/newlib/libc/reent/../../../../../gcc-2.95.3/n ewlib/libc/reent/fstatr.c:62: undefined reference to `fstat' What's the matter? ------ 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] |