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]

Creating libgcj for AIX


I'm using the GCC 3.3 source code under AIX 4.3.3.

I think I'm on the final step to creating the libgcj library. I've configured libjava and when I run make, the libtool script is eventually executed. Attached is the output from make and the libtool script itself. NOTE: There is a line in make.out that is over 68,000 bytes long. My version of vi will NOT display this line.

The line that is so long is attempting to execute the 'nm' command with a list of all the object files needed for libgcj. There are so many object files, that the 'nm' line is too long and 'nm' fails with the error:
./libtool[3463]: /bin/nm: arg list too long
The 'expr' command also fails with the message:
./libtool[3536]: /bin/expr: arg list too long


Line #3462 of the libtool script does the execution of 'nm' and should exit the libtool script if 'nm' fails. However, 'nm' still returns zero even though the "arg list is too long". I've modified the attached libtool to exit if the export file 'nm' is supposed to create is zero in size. (If my modification is useful as a permanent change to the libtool script, feel free to use it.)

Since libtool did not exit when 'nm' failed, the script continues and tries to create reloadable object files. I think it plans on creating 340 object files because of the message:
creating a temporary reloadable object file: .libs/libgcj.la-340.o


While generating libgcj.la-64.o, my file system fills up. The files libgcj.la-1.o through libgcj.la-64.o take up about 460Mb of space.

Some of my questions are:
o When people have built libgcj on other systems, how do they avoid the "arg list is too long" errors?


o How do I get 'nm' to generate the export file successfully?

o If I can get 'nm' to create the export file successfully, will I still need huge amounts of disk space for generating the reloadable object files?

Thanks for your help.
Dean

_________________________________________________________________
Take advantage of our limited-time introductory offer for dial-up Internet access. http://join.msn.com/?page=dept/dialup

Attachment: make-libgcj.tar.gz
Description: application/gzip-compressed


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