* gcj onLinux, 32 and 64 bit executables.
@ 2011-09-14 3:41 Me Myself and I
2011-09-14 7:50 ` Jonathan Wakely
2011-11-13 16:35 ` Andrew Haley
0 siblings, 2 replies; 4+ messages in thread
From: Me Myself and I @ 2011-09-14 3:41 UTC (permalink / raw)
To: gcc-help, java
If I successfully compile a Test.java program with gcj Test.java --main=Test -o Test.bin
on 64 bit linux, I then have a 64 bit Linux exectuable.
If I do similar on 32 bit Linux, I have a 32 bit Linux exectable.
If I am running 64 bit Linux, is there a way to use gcj on this to get a 32 bit Linux bin,
what should I do for this, where should I look, and can anyone give me any simple,
practical instructions on how to set it up?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: gcj onLinux, 32 and 64 bit executables.
2011-09-14 3:41 gcj onLinux, 32 and 64 bit executables Me Myself and I
@ 2011-09-14 7:50 ` Jonathan Wakely
2011-11-13 16:35 ` Andrew Haley
1 sibling, 0 replies; 4+ messages in thread
From: Jonathan Wakely @ 2011-09-14 7:50 UTC (permalink / raw)
To: Me Myself and I; +Cc: gcc-help, java
On 14 September 2011 04:41, Me Myself and I wrote:
>
> If I successfully compile a Test.java program with gcj Test.java --main=Test -o Test.bin
> on 64 bit linux, I then have a 64 bit Linux exectuable.
>
> If I do similar on 32 bit Linux, I have a 32 bit Linux exectable.
>
> If I am running 64 bit Linux, is there a way to use gcj on this to get a 32 bit Linux bin,
> what should I do for this, where should I look, and can anyone give me any simple,
> practical instructions on how to set it up?
Add -m32 to the gcj command.
Depending on your Linux distro you might need to install some
additional 32-bit packages.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: gcj onLinux, 32 and 64 bit executables.
2011-09-14 3:41 gcj onLinux, 32 and 64 bit executables Me Myself and I
2011-09-14 7:50 ` Jonathan Wakely
@ 2011-11-13 16:35 ` Andrew Haley
2011-11-13 23:25 ` Garbage collection segfault in OpenIndiana Johann 'Myrkraverk' Oskarsson
1 sibling, 1 reply; 4+ messages in thread
From: Andrew Haley @ 2011-11-13 16:35 UTC (permalink / raw)
To: Me Myself and I; +Cc: gcc-help, java, gc
On 11/12/2011 08:38 PM, Johann 'Myrkraverk' Oskarsson wrote:
> With GCC 4.6.2 on OpenIndiana 151a (Solaris) the boehm gc segfaults in
> os_dep.c:810 when JNI_CreateJavaVM() is called. The attached
> invocation example (as small as I think I can make it) is a complete
> example.
>
> Is this the right place to discuss this issue?
Yes.
> I thought of merging boehm gc 7.1 into the gcc source tree, but this
> seems non-trivial. In particular it's not possible just to make it
> a drop-in replacement.
>
> Is there a way to have GCJ use a system supplied boehm gc?
Not really, no. GCC is in Stage 3, so the only reasonable way to get
this fixed is a self-contained patch.
Do you have any reason to suspect that merging gc 7.1 might help?
Andrew.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Garbage collection segfault in OpenIndiana
2011-11-13 16:35 ` Andrew Haley
@ 2011-11-13 23:25 ` Johann 'Myrkraverk' Oskarsson
0 siblings, 0 replies; 4+ messages in thread
From: Johann 'Myrkraverk' Oskarsson @ 2011-11-13 23:25 UTC (permalink / raw)
To: GCC Java; +Cc: gc
Andrew Haley <aph@redhat.com> writes:
> On 11/12/2011 08:38 PM, Johann 'Myrkraverk' Oskarsson wrote:
>> With GCC 4.6.2 on OpenIndiana 151a (Solaris) the boehm gc segfaults
>> in os_dep.c:810 when JNI_CreateJavaVM() is called.
>
>> I thought of merging boehm gc 7.1 into the gcc source tree, but
>> this seems non-trivial. In particular it's not possible just to
>> make it a drop-in replacement.
>
> Do you have any reason to suspect that merging gc 7.1 might help?
No concrete evidence. In the past I was unable to use 6.x on it while
7.x worked in my own projects. In 7.1 and 7.2alpha6 this function is
now called GC_find_limit_with_bound() instead of just GC_find_limit().
The relevant line number in 7.2alpha6 is os_dep.c:994.
I suppose the best way to be sure is to compare the output of gcc -E
for os_dep.c.
If you have any further ideas I can explore, please let me know.
--
Johann Oskarsson http://www.2ndquadrant.com/ |[]
PostgreSQL Development, 24x7 Support, Training and Services --+--
|
Blog: http://my.opera.com/myrkraverk/blog/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-11-13 23:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-14 3:41 gcj onLinux, 32 and 64 bit executables Me Myself and I
2011-09-14 7:50 ` Jonathan Wakely
2011-11-13 16:35 ` Andrew Haley
2011-11-13 23:25 ` Garbage collection segfault in OpenIndiana Johann 'Myrkraverk' Oskarsson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).