OpenCores
no use no use 1/1 no use no use
problem on prebuilt tool chain
by Unknown on Jan 9, 2004
Not available!
Hi all,
I download the prebuilt tool chain from the webpage. When I use
the or32-uclinux-gcc to compile a c program, I got the following problem.

$ or32-uclinux-gcc -v -I/usr/include -o cbasic cbasic.c
Reading specs from /opt/or32-uclinux/lib/gcc-lib/or32-uclinux/3.1/specs
Configured with: ../gcc/configure --target=or32-uclinux --with-gnu-as --
with-gnu
-ld --verbose --enable-threads --prefix=/opt/or32-uclinux --local-
prefix=/opt/or
32-uclinux/or32-uclinux --enable-languages=c :
(reconfigured) ../gcc/configure -
-target=or32-uclinux --with-gnu-as --with-gnu-ld --verbose --enable-
threads --pr
efix=/opt/or32-uclinux --local-prefix=/opt/or32-uclinux/or32-uclinux --
enable-la
nguages=c
Thread model: single
gcc version 3.1 20020121 (experimental)
/opt/or32-uclinux/lib/gcc-lib/or32-uclinux/3.1/cc1.exe -lang-c -v -
I/usr/includ
e -D__GNUC__=3 -D__GNUC_MINOR__=1 -D__GNUC_PATCHLEVEL__=0 -
Dunix -Dlinux -D__ELF
__ -DOR1K -Dor1k -D__or1k__ -D__OR1K__ -D__unix__ -D__linux__ -
D__ELF__ -D__OR1K
__ -D__or1k__ -D__or1k__ -D__OR1K__ -D__unix -D__linux -D__OR1K -
D__or1k -Asyste
m=unix -Asystem=posix -D__NO_INLINE__ -D__STDC_HOSTED__=1
cbasic.c -quiet -dumpb
ase cbasic.c -version -
o /cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccdwRo6W.s
GNU CPP version 3.1 20020121 (experimental) (cpplib) (OR32 GNU/Linux
with ELF)
GNU C version 3.1 20020121 (experimental) (or32-uclinux)
compiled by GNU C version 3.2 20020927 (prerelease).
ignoring nonexistent directory "/opt/or32-uclinux/or32-uclinux/sys-
include"
ignoring nonexistent directory "/opt/or32-uclinux/or32-uclinux/include"
#include "..." search starts here:
#include search starts here:
/usr/include
/opt/or32-uclinux/include
/opt/or32-uclinux/lib/gcc-lib/or32-uclinux/3.1/include
End of search list.
In file included from cbasic.c:6:
support.h:20: warning: conflicting types for built-in function `printf'
/opt/or32-uclinux/lib/gcc-lib/or32-uclinux/3.1/../../../../or32-
uclinux/bin/as.
exe -
o /cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccgCezB1.o /cygd
rive/c/DOCUME
~1/ADMINI~1/LOCALS~1/Temp/ccdwRo6W.s
/opt/or32-uclinux/lib/gcc-lib/or32-uclinux/3.1/collect2.exe -o
cbasic /opt/or32
-uclinux/lib/gcc-lib/or32-uclinux/3.1/crt0.o -L/opt/or32-uclinux/lib/gcc-
lib/or3
2-uclinux/3.1 -L/opt/or32-uclinux/lib/gcc-lib/or32-
uclinux/3.1/../../../../or32-
uclinux/lib /cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccgCezB1
.o -lgcc -lc -lg
cc
/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccgCezB1.o: In
function `_test_arith
':
/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccgCezB1.o
(.text+0x314): undefined r
eference to `_report'
/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccgCezB1.o: In
function `_test_array
':
/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccgCezB1.o
(.text+0x544): undefined r
eference to `_report'
/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccgCezB1.o
(.text+0x564): undefined r
eference to `_report'
/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccgCezB1.o
(.text+0x570): undefined r
eference to `_report'
/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccgCezB1.o
(.text+0x57c): undefined r
eference to `_report'
/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccgCezB1.o
(.text+0x6d0): more undefi
ned references to `_report' follow
collect2: ld returned 1 exit status

Anyone encountered it before? Anyone can help me to fix it.
Thank you very much.

Regards,

Stephen
no use no use 1/1 no use no use
© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.