powerpc crosscompiler with java support
Stefan Wanner
stefan.wanner@ymail.ch
Wed Sep 12 04:36:00 GMT 2001
hello
when i try to build a gcc crosscompiler (host=i586-pc-linux,
target=powerpc-linux) from the top of the cvs tree i get this error:
/LinuxPPC/mit_libs/gcc-build/gcc/xgcc
-B/LinuxPPC/mit_libs/gcc-build/gcc/ -nostdinc++
-L/LinuxPPC/mit_libs/gcc-build/powerpc-linux/libstdc++-v3/src
-L/LinuxPPC/mit_libs/gcc-build/powerpc-linux/libstdc++-v3/src/.libs
-B/opt/cross/powerpc-linux/bin/ -B/opt/cross/powerpc-linux/lib/ -isystem
/opt/cross/powerpc-linux/include -I../../../../gcc/libstdc++-v3/../gcc
-I../../../../gcc/libstdc++-v3/../include
-I/LinuxPPC/mit_libs/gcc-build/powerpc-linux/libstdc++-v3/include/powerpc-linux
-I/LinuxPPC/mit_libs/gcc-build/powerpc-linux/libstdc++-v3/include
-I../../../../gcc/libstdc++-v3/libsupc++ -g -O2 -D_GNU_SOURCE
-fno-implicit-templates -Wall
-Wno-format -W -Wwrite-strings -Winline -fdiagnostics-show-location=once
-ffunction-sections -fdata-sections -g -c
../../../../gcc/libstdc++-v3/libsupc++/eh_aux_runtime.cc -fPIC -DPIC -o
eh_aux_runtime.o
/tmp/ccmOSGtG.s: Assembler messages:
/tmp/ccmOSGtG.s:283: Error: invalid section for operation
/tmp/ccmOSGtG.s:308: Error: invalid section for operation
make[3]: *** [eh_aux_runtime.lo] Error 1
make[3]: Leaving directory
`/LinuxPPC/mit_libs/gcc-build/powerpc-linux/libstdc++-v3/libsupc++'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/LinuxPPC/mit_libs/gcc-build/powerpc-linux/libstdc++-v3'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory
`/LinuxPPC/mit_libs/gcc-build/powerpc-linux/libstdc++-v3'
make: *** [all-target-libstdc++-v3] Error 2
p2:/LinuxPPC/mit_libs/gcc-build #
any idea? i don't know how to start with such en error.
well now i tried to use the 3.0.1 release an updated the
java/lang/natRuntime.cc file. after make install of gcc i tried to
compile the helloworld program and got this error:
swanner@p2:~/MyFiles/Programming/java/HelloWorld >
/opt/cross/bin/powerpc-linux-gcj --main=HelloWorld HelloWorld.java
/opt/cross/lib/gcc-lib/powerpc-linux/3.0.1/../../../../powerpc-linux/lib/libgcjgc.so:
undefined reference to `dlopen'
collect2: ld returned 1 exit status
do i have to update some other files? or is it easier to fix the first
errro described?
thanks for helping!!
stefan
Anthony Green wrote:
> Stefan wrote:
>
>>p2:~#gcj --main=helloworld helloworld.java
>>/opt/cross/lib/gcc-lib/powerpc-linux/3.0.1/../../../../powerpc-linux/lib/lib
>>gcj.so: undefined reference to `_Jv_FindSymbolInExecutable(char const*)'
>>/opt/cross/lib/gcc-lib/powerpc-linux/3.0.1/../../../../powerpc-linux/lib/lib
>>gcjgc.so: undefined reference to `dlopen'
>>collect2: ld returned 1 exit status
>>
>>any idea?
>>
>
> Hmm.. if you're really using 3.0.1 you probably don't have this patch...
>
> 2001-06-02 Anthony Green <green@redhat.com>
>
> * java/lang/natRuntime.cc (_Jv_FindSymbolInExecutable): Provide an
> alternate when USE_LTDL not defined.
>
> I recommend using the top of the GCC development tree for building embedded
> cross compilers for now.
>
> AG
>
>
>
>
>
>
More information about the Java
mailing list