Annapoorna R wrote:
steps i followed:

1. downloaded GCJ4.1.2 core and java tar from GNU site. and extracted it to GCC4.1

after extracting folder GCC-4.1.2 is created(automatically while extracting).

the frontend part (java tar) was extraced to /gcc-4.1.2/libjava.

Did ./configure from libjava folder.--successful

did make from libjava. giving compilation errors.

Please let me know am i wrong in the steps followed?

These process is, indeed, incorrect.  There are four errors.

1.) The appropriate mailing list for asking for help using GCC is [EMAIL PROTECTED] The gcc@gcc.gnu.org list, which you sent this to, is for people who are developing GCC.

2.) You need to build the entire GCC compiler, not just the Java runtime library (which is what "libjava" is). Thus, the relevant directory for running "configure" from is the top-level folder -- in your case, gcc-4.1.2.

3.) For a number of reasons, it is not recommended to build GCC within the source directory. Instead, you should create an empty build directory, and then run gcc-4.1.2/configure from within that empty build directory, and then run "make" in the build directory.

4.) In order to build GCJ, you need to specify the "--enable-languages=java" option to the configure command. There may be other options you may wish to specify as well.

All of this is explained in more detail in the GCC installation manual, which is online at http://gcc.gnu.org/install/, and is also included in the INSTALL subdirectory -- as is explained in the README file which you will find at gcc-4.1.2/README on your computer.

- Brooks

Reply via email to