GCJ Build Error

The Morsbergers morsberger@usa.net
Fri Aug 10 15:03:00 GMT 2001


I looked at the link you reference and that is why I posted the difference
in the jvspec file.

The problem is I am trying to do a fresh build. How would I do a -v or
--vebose?

I have tried both gcc and cc to build it and they both fail.

One note of difference is the jvspec file has a lot more lines in the
jvgenmain char array. Could this relate to the problem?

line 54:
const char jvgenmain_spec[] =
  "jvgenmain %{D*} %i %{!pipe:%umain.i} |\n\
   cc1 %{!pipe:%Umain.i} %1 \
                   %{!Q:-quiet} -dumpbase %b.c %{d*} %{m*} %{a*}\
                   %{g*} %{O*} \
                   %{v:-version} %{pg:-p} %{p}\
                   %{<fbounds-check} %{<fno-bounds-check}\
                   %{<fassume-compiled} %{<fno-assume-compiled}\
                   %{<femit-class-file} %{<femit-class-files}
%{<fencoding*}\
                   %{<fuse-boehm-gc} %{<fhash-synchronization} %{<fjni}\
                   %{<fclasspath*} %{<fCLASSPATH*} %{<foutput-class-dir}\
                   %{<fuse-divide-subroutine} %{<fno-use-divide-subroutine}\
                   %{f*} -fdollars-in-identifiers\
                   %{aux-info*}\
                   %{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer
are incompatible}}\
                   %{S:%W{o*}%{!o*:-o %b.s}}%{!S:-o %{|!pipe:%g.s}} |\n\
              %{!S:as %a %Y -o %d%w%umain%O %{!pipe:%g.s} %A\n }";

-- 
David Morsberger 

> From: Antonio Ake <ake@ecn.purdue.edu>
> Date: Fri, 10 Aug 2001 12:49:09 -0500 (EST)
> To: The Morsbergers <morsberger@usa.net>
> Cc: <java@gcc.gnu.org>
> Subject: Re: GCJ Build Error
> 
> I was having  the same problem, with Tru64 Unix :
> http://gcc.gnu.org/ml/java/2001-07/msg00195.html
> 1. Try to use -v command and see if everything is ok.
> 2. Try a fresh build
> 3. You can use gcc to build gcj.
> 
> 
> On Fri, 10 Aug 2001, The Morsbergers wrote:
> 
>> I am getting the error below when I try to build gcj. I used the OSF c
>> compiler and before anyone asks, gas and gld is not compatible with True64
>> Unix. I updated jvspec based on emails and patches discussed in the archive:
>> Not sure where to go from here. Any ideas?
>> 
>> es40-unix(java)~ diff /alpha/var/dwmorsb/gcc-3.0/gcc/java/jvspec.c .
>> 69,70c69,70
>> <                  %{S:%W{o*}%{!o*:-o %b.s}}%{!S:-o %{|!pipe:%Umain.s}} |\n\
>> <               %{!S:as %a %Y -o %d%w%umain%O %{!pipe:%Umain.s} %A\n }";
>> ---
>>> %{S:%W{o*}%{!o*:-o %b.s}}%{!S:-o %{|!pipe:%g.s}} |\n\
>>> %{!S:as %a %Y -o %d%w%umain%O %{!pipe:%g.s} %A\n }";
>> 
>> 
>> uname:
>> OSF1 V4.0 1530 alpha
>> 
>> 
>> Build Commands:
>> ../configure --prefix=/opt/gcj30nt --enable-libgcj
>> --enable-languages=c,c++,java
>> make bootstrap
>> 
>> /home/dwmorsb/gcc-3.0/bldgcj/gcc/gcj
>> -B/home/dwmorsb/gcc-3.0/bldgcj/alphaev6-dec-osf4.0g/libjava/
>> -B/home/dwmorsb/gcc-3.0/bldgcj/gcc/ -mieee -g -O2 -o .libs/jv-convert
>> --main=gnu.gcj.convert.Convert -shared-libgcc
>> gnu/gcj/convert/.libs/BytesToUnicode.o gnu/gcj/convert/.libs/Convert.o
>> gnu/gcj/convert/.libs/Input_8859_1.o gnu/gcj/convert/.libs/Input_ASCII.o
>> gnu/gcj/convert/.libs/Input_EUCJIS.o gnu/gcj/convert/.libs/Input_JavaSrc.o
>> gnu/gcj/convert/.libs/Input_SJIS.o gnu/gcj/convert/.libs/Input_UTF8.o
>> gnu/gcj/convert/.libs/Input_iconv.o gnu/gcj/convert/.libs/IOConverter.o
>> gnu/gcj/convert/.libs/Output_8859_1.o gnu/gcj/convert/.libs/Output_ASCII.o
>> gnu/gcj/convert/.libs/Output_EUCJIS.o gnu/gcj/convert/.libs/Output_JavaSrc.o
>> gnu/gcj/convert/.libs/Output_SJIS.o gnu/gcj/convert/.libs/Output_UTF8.o
>> gnu/gcj/convert/.libs/Output_iconv.o gnu/gcj/convert/.libs/UnicodeToBytes.o
>> -L/home/dwmorsb/gcc-3.0/bldgcj/alphaev6-dec-osf4.0g/libjava
>> ./.libs/libgcj.so ./../boehm-gc/.libs/libgcjgc.so
>> -L/home/dwmorsb/gcc-3.0/bldgcj/alphaev6-dec-osf4.0g/libjava/../boehm-gc/.lib
>> s ./../zlib/.libs/libzgcj.so
>> -L/home/dwmorsb/gcc-3.0/bldgcj/alphaev6-dec-osf4.0g/libjava/../zlib/.libs
>> -L/home/dwmorsb/gcc-3.0/bldgcj/alphaev6-dec-osf4.0g/libjava/.libs -Wl,-rpath
>> -Wl,/opt/gcj30nt/lib
>> mips-tfile, /tmp/ccYBt2oZ.s:8 Invalid .stabs/.stabn directive, value not
>> found
>> line:    #.stabs
>> "/home/dwmorsb/gcc-3.0/bldgcj/alphaev6-dec-osf4.0g/libjava/",100,0,0,$Ltext0
>> 
>> mips-tfile, /tmp/ccYBt2oZ.s:9 Invalid .stabs/.stabn directive, value not
>> found
>> line:    #.stabs        "/tmp/cc4MiMFxmain.i",100,0,0,$Ltext0
>> 
>> mips-tfile, /tmp/ccYBt2oZ.s:36 Invalid .stabs/.stabn directive, value not
>> found
>> line:    #.stabs
>> "props:S25=ar26=@s64;r26;000000000000000000000000;001777777777777777777777;;
>> 0;0;27=*2",38,0,2,props
>> 
>> mips-tfile, /tmp/ccYBt2oZ.s:44 Did not find a PDR block for main
>> line:           .ent main
>> 
>> mips-tfile, /tmp/ccYBt2oZ.s:50 Invalid .stabs/.stabn directive, value not
>> found
>> line:    #.stabn        68,0,9,$LM1
>> 
>> mips-tfile, /tmp/ccYBt2oZ.s:59 Invalid .stabs/.stabn directive, value not
>> found
>> line:    #.stabn        68,0,10,$LM2
>> 
>> mips-tfile, /tmp/ccYBt2oZ.s:62 Invalid .stabs/.stabn directive, value not
>> found
>> line:    #.stabn        68,0,9,$LM3
>> 
>> mips-tfile, /tmp/ccYBt2oZ.s:65 Invalid .stabs/.stabn directive, value not
>> found
>> line:    #.stabn        68,0,10,$LM4
>> 
>> mips-tfile, /tmp/ccYBt2oZ.s:68 Invalid .stabs/.stabn directive, value not
>> found
>> line:    #.stabn        68,0,11,$LM5
>> 
>> mips-tfile, /tmp/ccYBt2oZ.s:72 Invalid .stabs/.stabn directive, value not
>> found
>> line:    #.stabn        68,0,10,$LM6
>> 
>> mips-tfile, /tmp/ccYBt2oZ.s:75 Invalid .stabs/.stabn directive, value not
>> found
>> line:    #.stabn        68,0,11,$LM7
>> 
>> mips-tfile, /tmp/ccYBt2oZ.s:81 Cannot find .end block for main
>> line:           .end main
>> 
>> mips-tfile, /tmp/ccYBt2oZ.s:82 Invalid .stabs/.stabn directive, value not
>> found
>> line:    #.stabs        "main:F1",36,0,9,main
>> 
>> mips-tfile, /tmp/ccYBt2oZ.s:85 Segmentation fault
>> line:    #.stabs        "argv:P28=*27",64,0,8,18
>> 
>> --
>> David Morsberger
>> 
>> 
> 
> 



More information about the Java mailing list