gcj version 3.4.4 compiles just fine. Segfault upon run.
xistence@x-istence.com
xistence@x-istence.com
Thu Feb 10 22:18:00 GMT 2005
On 12/31/1969, "Terry Sikes" <tsikes@sc.rr.com> wrote:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>>Hi Jan. I think:
>>class random {
>>~ static void main(String [] args) {
>>~ System.out.println("Test");
>~ }
>}
>>should be:
>>public class random {
>>~ public static void main(String [] args) {
>>~ System.out.println("Test");
>~ }
>}
>
Then it should be caught by the preprocessor. Not compile properly. But
even without the public it works on my Java compiler on my Windows
Machine, using the Sun java thingie.
>Also how sure are you that gcc/gcj is set up right? I notice you're
>invoking gcj as "gcj34"... Actually I notice you're using gcc 3.4.4, but
>the latest stable package I found yesterday was 3.4.3...?
>
FreeBSD ports tree http://freshports.org/lang/gcc34/
I am invoking it as gcj34 as that is where version 3.4.4 is compiled and
installed, and it sets everything up right, if i install 3.3.4 or
whatever that latest version is, i get gcj33, so i can have two seperate
version working concurrently next to each other. Done for FreeBSD so if
a port needs GCC 2 it can get GCC 2 with the right version.
>What I did was download the source trees (Fedora Core 2 system) and
>build them after configuring with --pre pointing to dirs in my home
>directory. Then I path appropriately to use the various compilers. I
>have gcc 3.4.3 and gcc-head (from cvs) set up that way. I'm not 100%
>sure I'm doing things right (I just did this yesterday, and I'm not sure
>if I need to set LD_LIBRARY_PATH) but I am getting working executables.
>>Hope that helped,
>>Terry
Ill try a recompile. Thing is, it never failed to work when compiled from
the ports tree with the GCC 3.2, so it is kind of weird this is failing.
Ill make sure to followup with the ports maintainer as well as here.
>>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.2.4 (GNU/Linux)
>Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
>>iD8DBQFCC2yY1rLrmAJzzpURAgGPAJ4wlZwLzRRFOGbxmNLpgDzrAyybZgCgoSvz
>CrlxjFJg75lZzfPHAM0bzz0=
>=W6uX
>-----END PGP SIGNATURE-----
More information about the Java
mailing list