public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: PR 10656 and PR 10657
@ 2003-05-08  7:15 Carl Eugen Hoyos
  2003-05-08 13:20 ` Jeff Sturm
  0 siblings, 1 reply; 13+ messages in thread
From: Carl Eugen Hoyos @ 2003-05-08  7:15 UTC (permalink / raw)
  To: gcc; +Cc: mark, java

On Wed, 2003-05-07 at 15:30, Jeff Sturm wrote:
> On 6 May 2003, Mark Mitchell wrote:
> > These PRs represent serious problems with the Java front end --
problems
> > that prevent building GCC if Java is enabled.  Both problems occur on
> > Solaris machines.
>
> I have a patch for PR 10656, but cannot test it myself on Solaris 7.  I
> may have some help.  Is tomorrow too late for 3.3?

I tested the part of the patch concerning v8.S by deleting the line
containing .register: The bootstrap succeeds, but ffitest fails:
When linked against the dynamic library, ffitest fails immediately with
bus error, linked against the static libffi.a, the following output can be
seen:

$ ffitest
709 return value tests run
long double return value tests ok!
2 vs 2
float arg tests ok!
strlen tests passed
double return value tests ok!
many arg tests ok!
1383096 promotion tests run
structure test 1 ok!

3.26278e-309
0
4.55
5.66
structure test 2 ok!
246
246
structure test 3 ok!
structure test 4 ok!
structure test 5 ok!
5.55
6.66
6.55
7.66
structure test 6 ok!
5.55
55.5
6.66
6.55
56.5
7.66
structure test 7 ok!
5.55
55.5
-5.55
-55.5
6.55
56.5
-4.55
-54.5
structure test 8 ok!
5.55
5
6.55
6
structure test 9 ok!

Enter FFI_CLOSURES

1 2 3 4 127 429 7 8 9 10 11 12 13 19 21 1 3: 680
sh: bus error  ffitest

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: PR 10656 and PR 10657
  2003-05-08  7:15 PR 10656 and PR 10657 Carl Eugen Hoyos
@ 2003-05-08 13:20 ` Jeff Sturm
  0 siblings, 0 replies; 13+ messages in thread
From: Jeff Sturm @ 2003-05-08 13:20 UTC (permalink / raw)
  To: Carl Eugen Hoyos; +Cc: gcc, mark, java

On Thu, 8 May 2003, Carl Eugen Hoyos wrote:
> On Wed, 2003-05-07 at 15:30, Jeff Sturm wrote:
> > On 6 May 2003, Mark Mitchell wrote:
> > > These PRs represent serious problems with the Java front end --
> problems
> > > that prevent building GCC if Java is enabled.  Both problems occur on
> > > Solaris machines.
> >
> > I have a patch for PR 10656, but cannot test it myself on Solaris 7.  I
> > may have some help.  Is tomorrow too late for 3.3?
>
> I tested the part of the patch concerning v8.S by deleting the line
> containing .register: The bootstrap succeeds, but ffitest fails:
> When linked against the dynamic library, ffitest fails immediately with
> bus error, linked against the static libffi.a, the following output can be
> seen:
...
> sh: bus error  ffitest

I get the same.  The failing test here was written since SPARC closures
were added to libffi.

Regardless, bootstrapping without failure is an improvement.  Thanks
for testing.

Jeff

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: PR 10656 and PR 10657
  2003-05-07 22:30 ` Jeff Sturm
  2003-05-07 22:38   ` Mark Mitchell
@ 2003-05-08  7:16   ` Eric Botcazou
  1 sibling, 0 replies; 13+ messages in thread
From: Eric Botcazou @ 2003-05-08  7:16 UTC (permalink / raw)
  To: Jeff Sturm; +Cc: Mark Mitchell, java, gcc

> I couldn't reproduce PR 10657.  Solaris 8 has iconv() in libc, anyway, so
> I don't believe this is a Solaris problem, nor that it should affect the
> 3.3 release.

I couldn't either (Solaris 8, Sun cc/as/ld).

> (Java wants to use iconv() whenever it's available regardless of
> --disable-nls.  See also prs 10013, 9045.)

Warren already reported the same problem for GCC 3.2.1 on Solaris 2.5.1 (see 
PR bootstrap/9047).

-- 
Eric Botcazou

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: PR 10656 and PR 10657
  2003-05-07 22:38   ` Mark Mitchell
  2003-05-07 22:59     ` Jeff Sturm
@ 2003-05-07 23:03     ` Anthony Green
  1 sibling, 0 replies; 13+ messages in thread
From: Anthony Green @ 2003-05-07 23:03 UTC (permalink / raw)
  To: Mark Mitchell; +Cc: Jeff Sturm, java, gcc

On Wed, 2003-05-07 at 15:37, Mark Mitchell wrote:
> No, if it gets done tomorrow, we can get it in.

I will test this today.

AG


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: PR 10656 and PR 10657
  2003-05-07 22:38   ` Mark Mitchell
@ 2003-05-07 22:59     ` Jeff Sturm
  2003-05-07 23:03     ` Anthony Green
  1 sibling, 0 replies; 13+ messages in thread
From: Jeff Sturm @ 2003-05-07 22:59 UTC (permalink / raw)
  To: Mark Mitchell; +Cc: java, gcc

On 7 May 2003, Mark Mitchell wrote:
> > > --disable-nls does not seem to be working correctly when building jc1.
> >
> > I couldn't reproduce PR 10657.  Solaris 8 has iconv() in libc, anyway, so
> > I don't believe this is a Solaris problem, nor that it should affect the
> > 3.3 release.
>
> Huh.  Does Solaris even have libiconv, then?

Solaris 8 does not.  Earlier releases may have.

> Note that the PR involves
> using GNU ld; does that somehow turn on an attempt to link in -liconv?

libiconv is detected by the bootstrap compiler, which could certainly
search directories that the built compiler will not.

Jeff

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: PR 10656 and PR 10657
  2003-05-07 22:30 ` Jeff Sturm
@ 2003-05-07 22:38   ` Mark Mitchell
  2003-05-07 22:59     ` Jeff Sturm
  2003-05-07 23:03     ` Anthony Green
  2003-05-08  7:16   ` Eric Botcazou
  1 sibling, 2 replies; 13+ messages in thread
From: Mark Mitchell @ 2003-05-07 22:38 UTC (permalink / raw)
  To: Jeff Sturm; +Cc: java, gcc

On Wed, 2003-05-07 at 15:30, Jeff Sturm wrote:
> On 6 May 2003, Mark Mitchell wrote:
> > These PRs represent serious problems with the Java front end -- problems
> > that prevent building GCC if Java is enabled.  Both problems occur on
> > Solaris machines.
> 
> I have a patch for PR 10656, but cannot test it myself on Solaris 7.  I
> may have some help.  Is tomorrow too late for 3.3?

No, if it gets done tomorrow, we can get it in.

> > PR 10657 looks like it might be a problem on other systems as well;
> > --disable-nls does not seem to be working correctly when building jc1.
> 
> I couldn't reproduce PR 10657.  Solaris 8 has iconv() in libc, anyway, so
> I don't believe this is a Solaris problem, nor that it should affect the
> 3.3 release.

Huh.  Does Solaris even have libiconv, then?  Note that the PR involves
using GNU ld; does that somehow turn on an attempt to link in -liconv?

Thanks,

-- 
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: PR 10656 and PR 10657
  2003-05-07  6:10 Mark Mitchell
                   ` (2 preceding siblings ...)
  2003-05-07 15:45 ` Joe Buck
@ 2003-05-07 22:30 ` Jeff Sturm
  2003-05-07 22:38   ` Mark Mitchell
  2003-05-08  7:16   ` Eric Botcazou
  3 siblings, 2 replies; 13+ messages in thread
From: Jeff Sturm @ 2003-05-07 22:30 UTC (permalink / raw)
  To: Mark Mitchell; +Cc: java, gcc

On 6 May 2003, Mark Mitchell wrote:
> These PRs represent serious problems with the Java front end -- problems
> that prevent building GCC if Java is enabled.  Both problems occur on
> Solaris machines.

I have a patch for PR 10656, but cannot test it myself on Solaris 7.  I
may have some help.  Is tomorrow too late for 3.3?

> PR 10657 looks like it might be a problem on other systems as well;
> --disable-nls does not seem to be working correctly when building jc1.

I couldn't reproduce PR 10657.  Solaris 8 has iconv() in libc, anyway, so
I don't believe this is a Solaris problem, nor that it should affect the
3.3 release.

(Java wants to use iconv() whenever it's available regardless of
--disable-nls.  See also prs 10013, 9045.)

Jeff

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: PR 10656 and PR 10657
  2003-05-07 15:45 ` Joe Buck
@ 2003-05-07 15:56   ` Mark Mitchell
  0 siblings, 0 replies; 13+ messages in thread
From: Mark Mitchell @ 2003-05-07 15:56 UTC (permalink / raw)
  To: Joe Buck; +Cc: java, gcc

>  
> > We need a fix for these problems ASAP; otherwise, I'll be forced to
> > disable Java by default on Solaris boxes in GCC 3.3, which would be a
> > step backwards.  
> 
> I would recommend against doing this, unless we can more specifically
> narrow down which Solaris configurations have problems.

At the very least, if we cannot get successful builds out of the box, we
need to document some procedure which is known to work.

For example, I don't mind if we say "--disable-nls does not work on
Solaris and you must use GNU binutils."

That would be better than disabling Java, I agree.

Thanks,

-- 
Mark Mitchell <mark@codesourcery.com>
CodeSourcery, LLC

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: PR 10656 and PR 10657
  2003-05-07  6:10 Mark Mitchell
  2003-05-07  6:25 ` Hamdy Mobarak
  2003-05-07  6:46 ` Ranjit Mathew
@ 2003-05-07 15:45 ` Joe Buck
  2003-05-07 15:56   ` Mark Mitchell
  2003-05-07 22:30 ` Jeff Sturm
  3 siblings, 1 reply; 13+ messages in thread
From: Joe Buck @ 2003-05-07 15:45 UTC (permalink / raw)
  To: Mark Mitchell; +Cc: java, gcc

On Tue, May 06, 2003 at 11:10:21PM -0700, Mark Mitchell wrote:
> These PRs represent serious problems with the Java front end -- problems
> that prevent building GCC if Java is enabled.  Both problems occur on
> Solaris machines.

I have a successful Java build of the prerelease tarball on a Solaris 2.8
machine; test results are at 

http://gcc.gnu.org/ml/gcc-testresults/2003-05/msg00426.html

Some details: binutils 2.13.1 are used, and CONFIG_SHELL and SHELL are
set to /bin/ksh (the latter setting might not be needed, but the former
definitely is).
 
> We need a fix for these problems ASAP; otherwise, I'll be forced to
> disable Java by default on Solaris boxes in GCC 3.3, which would be a
> step backwards.  

I would recommend against doing this, unless we can more specifically
narrow down which Solaris configurations have problems.

 

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: PR 10656 and PR 10657
  2003-05-07  6:46 ` Ranjit Mathew
@ 2003-05-07 11:43   ` Eric Botcazou
  0 siblings, 0 replies; 13+ messages in thread
From: Eric Botcazou @ 2003-05-07 11:43 UTC (permalink / raw)
  To: Ranjit Mathew; +Cc: Mark Mitchell, java, gcc

> (re: 10656)
> Is libffi even supported on Solaris/SPARC 7? I mean, judging by the files
> in libffi/src/sparc, it should support only Solaris 8 or 9. I could
> be wrong on this though...

You are confusing the version of the SPARC architecture with the version of 
the Solaris operating system: v8 and v9 are in the former class while 
Solaris 7, Solaris 8 and Solaris 9 (aka 2.7, 2.8 and 2.9) are in the latter.

-- 
Eric Botcazou

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: PR 10656 and PR 10657
  2003-05-07  6:10 Mark Mitchell
  2003-05-07  6:25 ` Hamdy Mobarak
@ 2003-05-07  6:46 ` Ranjit Mathew
  2003-05-07 11:43   ` Eric Botcazou
  2003-05-07 15:45 ` Joe Buck
  2003-05-07 22:30 ` Jeff Sturm
  3 siblings, 1 reply; 13+ messages in thread
From: Ranjit Mathew @ 2003-05-07  6:46 UTC (permalink / raw)
  To: Mark Mitchell, java; +Cc: gcc

Hi,

(re: 10656) 
Is libffi even supported on Solaris/SPARC 7? I mean, judging by the files
in libffi/src/sparc, it should support only Solaris 8 or 9. I could
be wrong on this though...


> PR 10657 looks like it might be a problem on other systems as well;
> --disable-nls does not seem to be working correctly when building jc1.

AFAICT, PR java/2812 *could* explain this and I suspect AM_ICONV
(in gcc/aclocal.m4) is not as robust as we would have liked it to 
be.

BTW, I and at least one other person (Mohan Embar) have been happily 
building GCJ 3.3 with --disable-nls without facing any problems 
(MinGW/Windows).

Ranjit.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* RE: PR 10656 and PR 10657
  2003-05-07  6:10 Mark Mitchell
@ 2003-05-07  6:25 ` Hamdy Mobarak
  2003-05-07  6:46 ` Ranjit Mathew
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 13+ messages in thread
From: Hamdy Mobarak @ 2003-05-07  6:25 UTC (permalink / raw)
  To: Mark Mitchell, java; +Cc: gcc

Please unsubscribe me!
Please unsubscribe me!
Please unsubscribe me!


-----Original Message-----
From: java-owner@gcc.gnu.org [mailto:java-owner@gcc.gnu.org]On Behalf Of
Mark Mitchell
Sent: Wednesday, May 07, 2003 08:10
To: java@gcc.gnu.org
Cc: gcc@gcc.gnu.org
Subject: PR 10656 and PR 10657


These PRs represent serious problems with the Java front end -- problems
that prevent building GCC if Java is enabled.  Both problems occur on
Solaris machines.

We need a fix for these problems ASAP; otherwise, I'll be forced to
disable Java by default on Solaris boxes in GCC 3.3, which would be a
step backwards.  

PR 10657 looks like it might be a problem on other systems as well;
--disable-nls does not seem to be working correctly when building jc1.

Thanks,

-- 
Mark Mitchell <mark@codesourcery.com>
CodeSourcery, LLC

^ permalink raw reply	[flat|nested] 13+ messages in thread

* PR 10656 and PR 10657
@ 2003-05-07  6:10 Mark Mitchell
  2003-05-07  6:25 ` Hamdy Mobarak
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Mark Mitchell @ 2003-05-07  6:10 UTC (permalink / raw)
  To: java; +Cc: gcc

These PRs represent serious problems with the Java front end -- problems
that prevent building GCC if Java is enabled.  Both problems occur on
Solaris machines.

We need a fix for these problems ASAP; otherwise, I'll be forced to
disable Java by default on Solaris boxes in GCC 3.3, which would be a
step backwards.  

PR 10657 looks like it might be a problem on other systems as well;
--disable-nls does not seem to be working correctly when building jc1.

Thanks,

-- 
Mark Mitchell <mark@codesourcery.com>
CodeSourcery, LLC

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2003-05-08 13:20 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-08  7:15 PR 10656 and PR 10657 Carl Eugen Hoyos
2003-05-08 13:20 ` Jeff Sturm
  -- strict thread matches above, loose matches on Subject: below --
2003-05-07  6:10 Mark Mitchell
2003-05-07  6:25 ` Hamdy Mobarak
2003-05-07  6:46 ` Ranjit Mathew
2003-05-07 11:43   ` Eric Botcazou
2003-05-07 15:45 ` Joe Buck
2003-05-07 15:56   ` Mark Mitchell
2003-05-07 22:30 ` Jeff Sturm
2003-05-07 22:38   ` Mark Mitchell
2003-05-07 22:59     ` Jeff Sturm
2003-05-07 23:03     ` Anthony Green
2003-05-08  7:16   ` Eric Botcazou

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).