This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcj, libgcj, and GNU JVM for AIX


(I'm emailing this issue to you because andrew29@littlepinkcloud.invalid responded to my gnu.gcc.help post on 12/26/03. I've also posted a copy of this email to gnu.gcc.help under the same title as the subject of this email. Any help you can give is appreciated.)

Okay, I've almost built libgcj from source by using gcc binaries I downloaded from Bull Freeware.

With the help of a co-worker (and a lot of tweaking), we've built the following components successfully:
zlib
fastjar
libibery
boehm-gc
libffi

However, making libjava fails due to an assembler error.  When prims.cc is compiled, with the following command:
c++ -mpowerpc -DHAVE_CONFIG_H -I. -I../../libjava -I./include -I./gcj -I../../libjava -Iinclude -I../../libjava/include -I../../libjava/../boehm-gc/include -I../../libjava/libltdl -I../../libjava/libltdl -I../../libjava/.././libjava/../gcc -I../../libjava/../zlib -I../../libjava/../libffi/include -I../libffi/include -fno-rtti -fnon-call-exceptions -fdollars-in-identifiers -Wswitch-enum -W -Wall -D_GNU_SOURCE -DPREFIX=\"/usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.3.0/3.3\" -g -O2 -Wp,-MD,.deps/prims.pp -c ../../libjava/prims.cc   -DPIC -o .libs/prims.o

We get the output:
Assembler:
/tmp//ccWqD8w2.s: line 1713: 1252-142 Syntax error.
/tmp//ccWqD8w2.s: line 1772: 1252-142 Syntax error.
/tmp//ccWqD8w2.s: line 2121: 1252-142 Syntax error.
/tmp//ccWqD8w2.s: line 2384: 1252-142 Syntax error.
/tmp//ccWqD8w2.s: line 2766: 1252-142 Syntax error.
/tmp//ccWqD8w2.s: line 3402: 1252-142 Syntax error.
/tmp//ccWqD8w2.s: line 3726: 1252-142 Syntax error.
/tmp//ccWqD8w2.s: line 3729: 1252-142 Syntax error.
/tmp//ccWqD8w2.s: line 4552: 1252-142 Syntax error.
/tmp//ccWqD8w2.s: line 4558: 1252-142 Syntax error.
/tmp//ccWqD8w2.s: line 4563: 1252-142 Syntax error.
/tmp//ccWqD8w2.s: line 4569: 1252-142 Syntax error.
/tmp//ccWqD8w2.s: line 4909: 1252-142 Syntax error.
/tmp//ccWqD8w2.s: line 4924: 1252-142 Syntax error.
/tmp//ccWqD8w2.s: line 5272: 1252-142 Syntax error.


To diagnose the problem, I had the compiler generate the assembler source (prims.s).  Then I used the gcc assembler to assemble prims.s.  I got the same syntax errors.  Inspecting the offending lines, we noticed some dollar signs "$", e.g.:
        .tc _ZN4java4lang30ArrayIndexOutOfBoundsException6class$ETC],_ZN4java4lang30Array
IndexOutOfBoundsException6class$E[RW]

I manually removed the dollar signs from each line and the file assembled fine.  So, why does prims.cc generate prims.s with dollar signs in symbol names?

I tried changing the c++ option -fdollars-in-identifiers to -fno-dollars-in-identifiers with no change in the generated assembler code.

How do I have the c++ compiler NOT generate dollar signs in the assembler code?







DISCLAIMER:
**This E-mail and any of its attachments may contain Lincoln National Corporation proprietary information, which is privileged, confidential, or subject to copyright belonging to the Lincoln National Corporation family of companies. This E-mail is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient of this E-mail, you are hereby notified that any dissemination, distribution, copying, or action taken in relation to the contents of and attachments to this E-mail is strictly prohibited and may be unlawful. If you have received this E-mail in error, please notify the sender immediately and permanently delete the original and any copy of this E-mail and any printout. Thank You.**


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]