[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [openrisc] Configure error building uClinux



Thank you Zhy,

I feel much better knowing at least someone else is seeing what I am.  I
would like to try your suggestion, however, I am unsure of how to do
this.  I tried removing the c++ from the --enable-languages switch which
did not work either.  It seemed to get farther, but aborted with errors
as follows:

/home/jeff/or/or1k/b-gcc/gcc/xgcc -B/home/jeff/or/or1k/b-gcc/gcc/
-nostdinc++ -L/home/jeff/or/or1k/b-gcc/or32-uclinux/libstdc++-v3/src
-L/home/jeff/or/or1k/b-gcc/or32-uclinux/libstdc++-v3/src/.libs
-B/home/jeff/or/tools/or32-uclinux/or32-uclinux/bin/
-B/home/jeff/or/tools/or32-uclinux/or32-uclinux/lib/ -isystem
/home/jeff/or/tools/or32-uclinux/or32-uclinux/include
-I../../../../gcc-3.1/libstdc++-v3/../gcc
-I../../../../gcc-3.1/libstdc++-v3/../include
-I/home/jeff/or/or1k/b-gcc/or32-uclinux/libstdc++-v3/include/or32-uclinux -I/home/jeff/or/or1k/b-gcc/or32-uclinux/libstdc++-v3/include -I../../../../gcc-3.1/libstdc++-v3/libsupc++ -g -O2 -fno-implicit-templates -Wall -Wno-format -W -Wwrite-strings -Winline -fdiagnostics-show-location=once -g -c ../../../../gcc-3.1/libstdc++-v3/libsupc++/del_op.cc -o del_op.o
xgcc: ../../../../gcc-3.1/libstdc++-v3/libsupc++/del_op.cc: C++ compiler
not installed on this system
make[3]: *** [del_op.lo] Error 1
make[3]: Leaving directory
`/home/jeff/or/or1k/b-gcc/or32-uclinux/libstdc++-v3/libsupc++'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/jeff/or/or1k/b-gcc/or32-uclinux/libstdc++-v3'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory
`/home/jeff/or/or1k/b-gcc/or32-uclinux/libstdc++-v3'
make: *** [all-target-libstdc++-v3] Error 2

Could you explain the steps you followed to get this to work?  I
apologize for my lack of knowledge of compilers.  I am most definitely a
hardware designer.

Jeff

On Mon, 2002-08-19 at 18:58, Zhangyong wrote:
> Hi, Jeff Hanoch
>     
>     My host OS is RH7.3 too. I had recieved the same error, when I did
> that step followed th README.or32.
>     It may be a bug with builting the or32-uClinux-g++.
>     If you built the gcc without enabling the g++, you will succeed. I
> did it.
>  
> Regards
> Zhy
> 
> ----- Original Message ----- 
> From: Jeff Hanoch <mailto:jeff@lowrance.com>  
> To: Openrisc <mailto:openrisc@opencores.org>  
> Sent: Tuesday, August 20, 2002 3:51 AM
> Subject: [openrisc] Configure error building uClinux
> 
> Is anyone else having trouble getting uClinux to compile?  I have tried
> to get the tools to build on 2 different systems and keep getting hung
> up at the same point.  I started with a fresh download of the entire
> or1k directory from CVS this morning.  I am going through the directions
> in the README.or32 in the or1k/uclinux/uClinux-2.0.x directory.
> Everything goes fine until I get to the point of rebuilding Gcc right
> after the uclibc gets compiled.  Here are the commands I am having
> trouble with: 
> 
> # 
> # Rebuild Gcc 
> # 
> cd or1k/gcc-ucl 
> ../gcc-3.1/configure --target=or32-uclinux
> --prefix=/proj/oc/or32-uclinux/
> --local-prefix=/proj/oc/or32-uclinux/or32-uclinux/ --with-gnu-as
> --with-gnu-ld --verbose --enable-languages=c,c++ 
> make all install 
> cd ../../ 
> 
> Here's the transcript showing the problem. 
> 
> ... 
> rm -f g++-cross 
> cp g++ g++-cross 
> rm -f cxxmain.c 
> ln -s ../../gcc-3.1/gcc/../libiberty/cplus-dem.c cxxmain.c 
> gcc -c -DMAIN -DIN_GCC -DCROSS_COMPILE   -g -O2 -W -Wall -Wwrite-strings
> -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic
> -Wno-long-long  -DHAVE_CONFIG_H    -I. -I. -I../../gcc-3.1/gcc
> -I../../gcc-3.1/gcc/. -I../../gcc-3.1/gcc/config
> -I../../gcc-3.1/gcc/../include \ 
>   -DVERSION=\"3.1\" cxxmain.c 
> gcc -o c++filt -DIN_GCC -DCROSS_COMPILE   -g -O2 -W -Wall
> -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional
> -pedantic -Wno-long-long  -DHAVE_CONFIG_H  \ 
>   cxxmain.o underscore.o   ../libiberty/libiberty.a 
> make[1]: Leaving directory `/proj/oc/or1k/gcc-ucl/gcc' 
> Configuring in or32-uclinux/libstdc++-v3 
> configure: error: --local-prefix=/proj/oc/or32-uclinux/or32-uclinux/:
> invalid option; use --help to show usage 
> make: *** [configure-target-libstdc++-v3] Error 1 
> 
> Any advice would be appreciated.  I am building this on a RedHat 7.3
> machine running the 2.4.18-5smp kernel. 
> 
> Thanks, 
> Jeff 
> 
> 



--
To unsubscribe from openrisc mailing list please visit http://www.opencores.org/mailinglists.shtml