[Bug bootstrap/20692] New: configuring libgfortan infinite loop

2005-03-30 Thread pfelecan at acm dot org
- bootstraping gcc-4.0-20050326
- system type: SUN LX50: Sol8 x86 server 2 x 1404MHz
- head and tail of the objdir/i386-pc-solaris2.8/libgfortran/config.log:
[...]
It was created by GNU Fortran Runtime Library configure 0.2, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $
/export/nfs/workarea/pfelecan/CSW/ports/gcc4core-4.0.0REV2005.03.26-SunOS5.8-i386-CSW.pkg/sources/gcc-4.0-20050326/libgfortran/configure
--cache-file=./config.cache --host=i386-pc-solaris2.8 --build=i386-pc-solaris2.8
--prefix=/opt/csw/gcc4 --with-local-prefix=/opt/csw --without-gnu-as
--with-as=/usr/ccs/bin/as --without-gnu-ld --with-ld=/usr/ccs/bin/ld
--enable-threads=posix --enable-shared --enable-multilib --enable-nls
--with-included-gettext --with-libiconv-prefix=/opt/csw --with-x
--enable-java-awt=xlib --with-system-zlib
--with-gcc-version-trigger=/export/nfs/workarea/pfelecan/CSW/ports/gcc4core-4.0.0REV2005.03.26-SunOS5.8-i386-CSW.pkg/sources/gcc-4.0-20050326/gcc/version.c
--enable-languages=c,ada,c++,f95,java,objc --program-transform-name=s,y,y,
--srcdir=../../../sources/gcc-4.0-20050326/libgfortran
--with-target-subdir=i386-pc-solaris2.8

## - ##
## Platform. ##
## - ##

hostname = daedal
uname -m = i86pc
uname -r = 5.8
uname -s = SunOS
uname -v = Generic_117351-16

/usr/bin/uname -p = i386
/bin/uname -X = System = SunOS
Node = daedal
Release = 5.8
KernelID = Generic_117351-16
Machine = i86pc
BusType = 
Serial = 
Users = 
OEM# = 0
Origin# = 1
NumCPU = 2

/bin/arch  = i86pc
/usr/bin/arch -k   = i86pc
/usr/convex/getsysinfo = unknown
hostinfo   = unknown
/bin/machine   = unknown
/usr/bin/oslevel   = unknown
/bin/universe  = unknown

[...]

configure:4487: checking whether we are using the GNU Fortran compiler
configure:4501:
/export/nfs/workarea/pfelecan/CSW/ports/gcc4core-4.0.0REV2005.03.26-SunOS5.8-i386-CSW.pkg/objdir/gcc/gfortran
-B/export/nfs/workarea/pfelecan/CSW/ports/gcc4core-4.0.0REV2005.03.26-SunOS5.8-i386-CSW.pkg/objdir/gcc/
-B/opt/csw/gcc4/i386-pc-solaris2.8/bin/ -B/opt/csw/gcc4/i386-pc-solaris2.8/lib/
-isystem /opt/csw/gcc4/i386-pc-solaris2.8/include -isystem
/opt/csw/gcc4/i386-pc-solaris2.8/sys-include -c   conftest.F >&5

This never ends.

-- 
   Summary: configuring libgfortan infinite loop
   Product: gcc
   Version: 4.0.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pfelecan at acm dot org
CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i386-pc-solaris2.8
  GCC host triplet: i386-pc-solaris2.8
GCC target triplet: i386-pc-solaris2.8


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20692


[Bug bootstrap/20692] configuring libgfortan infinite loop

2005-03-30 Thread pfelecan at acm dot org

--- Additional Comments From pfelecan at acm dot org  2005-03-30 16:54 
---
Forgot the content of the conftest.F:

  program main
#ifndef __GNUC__
   choke me
#endif

  end


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20692


[Bug bootstrap/20692] configuring libgfortan infinite loop

2005-03-30 Thread pfelecan at acm dot org

--- Additional Comments From pfelecan at acm dot org  2005-03-30 17:37 
---
Created an attachment (id=8494)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8494&action=view)
back trace tentative

I tried to isolate the bug and run in gdb. The issue appears as reported. After
terminating the process I executed a back-trace. Hope that it is helpful.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20692


[Bug bootstrap/20692] configuring libgfortan infinite loop

2005-03-30 Thread pfelecan at acm dot org

--- Additional Comments From pfelecan at acm dot org  2005-03-30 18:48 
---
Created an attachment (id=8495)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8495&action=view)
verbose output of gfortran

This is the output of gfortran -v as requested. The binary on which we wait is
f951. I will run this in gdb and attach the output in another attachement.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20692


[Bug bootstrap/20692] configuring libgfortan infinite loop

2005-03-30 Thread pfelecan at acm dot org

--- Additional Comments From pfelecan at acm dot org  2005-03-30 18:49 
---
Created an attachment (id=8496)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8496&action=view)
gdb session, with backtrace, for f951

gdb session running the command f951 for which the wait is done in gfortran.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20692


[Bug bootstrap/20692] configuring libgfortan infinite loop

2005-03-31 Thread pfelecan at acm dot org

--- Additional Comments From pfelecan at acm dot org  2005-03-31 09:10 
---
The version of libgmp is 4.1.4. I'll contact the maintainer of the package to
know the build options, if he run the tests... and report back

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20692


[Bug bootstrap/20692] configuring libgfortan infinite loop

2005-04-02 Thread pfelecan at acm dot org

--- Additional Comments From pfelecan at acm dot org  2005-04-02 14:06 
---
The libgmp package maintainer supplied a new release for which all the gmp tests
are successful for the architecture in discussion. This fixes the bug.

-- 
   What|Removed |Added

 Status|WAITING |RESOLVED
 Resolution||FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20692


[Bug bootstrap/20730] New: Assembler illegal subtraction in libffi on Solaris 8 Intel

2005-04-02 Thread pfelecan at acm dot org
- The incriminated source file is libffi/src/x86/sysv.S
- Bootstrapping gcc 4.0 snapshot 20050326, fails. The relevant log's tail is in 
the attachment bootstrap.log
- The configuration log is in the config.log attachment
- Output of running the compiler with verbose options is in the attachment
verbose.log
- Output of running the prepocessor on the assembler source is in the attachment
preprocess.log and the preprocessed source is in the attachment sysv.s
- Output of running the assembler on the preprocessed source is in the
attachment assembler.log

-- 
   Summary: Assembler illegal subtraction in libffi on Solaris 8
Intel
   Product: gcc
   Version: 4.0.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pfelecan at acm dot org
CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i386-pc-solaris2.8
  GCC host triplet: i386-pc-solaris2.8
GCC target triplet: i386-pc-solaris2.8


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20730


[Bug bootstrap/20730] Assembler illegal subtraction in libffi on Solaris 8 Intel

2005-04-02 Thread pfelecan at acm dot org

--- Additional Comments From pfelecan at acm dot org  2005-04-02 16:10 
---
Created an attachment (id=8514)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8514&action=view)
bootstrap log's tail


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20730


[Bug libffi/20730] Assembler illegal subtraction in libffi on Solaris 8 Intel

2005-04-02 Thread pfelecan at acm dot org

--- Additional Comments From pfelecan at acm dot org  2005-04-02 16:10 
---
Created an attachment (id=8515)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8515&action=view)
compiler run with verbose flag


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20730


[Bug libffi/20730] Assembler illegal subtraction in libffi on Solaris 8 Intel

2005-04-02 Thread pfelecan at acm dot org

--- Additional Comments From pfelecan at acm dot org  2005-04-02 16:12 
---
Created an attachment (id=8516)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8516&action=view)
preprocessor run

this phases obtains the source fed to the assembler

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20730


[Bug libffi/20730] Assembler illegal subtraction in libffi on Solaris 8 Intel

2005-04-02 Thread pfelecan at acm dot org

--- Additional Comments From pfelecan at acm dot org  2005-04-02 16:13 
---
Created an attachment (id=8517)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8517&action=view)
the assembler output


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20730


[Bug libffi/20730] Assembler illegal subtraction in libffi on Solaris 8 Intel

2005-04-02 Thread pfelecan at acm dot org

--- Additional Comments From pfelecan at acm dot org  2005-04-02 16:13 
---
Created an attachment (id=8518)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8518&action=view)
the preprocessed source


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20730


[Bug libffi/20730] Assembler illegal subtraction in libffi on Solaris 8 Intel

2005-04-02 Thread pfelecan at acm dot org

--- Additional Comments From pfelecan at acm dot org  2005-04-02 16:14 
---
Created an attachment (id=8519)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8519&action=view)
the configuration log for the library


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20730


[Bug libffi/20730] Assembler illegal subtraction in libffi on Solaris 8 Intel

2005-04-02 Thread pfelecan at acm dot org

--- Additional Comments From pfelecan at acm dot org  2005-04-02 16:16 
---
(In reply to comment #3)
> This does not make sense as line 91 is the following:
> jne   retdouble
> 
> 
> Also what happens if you use GNU binutils instead of the tool chain from Sun?

The line 91 is in the preprocessed assembler... see the attachement containing
the source.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20730


[Bug libffi/20730] Assembler illegal subtraction in libffi on Solaris 8 Intel

2005-04-02 Thread pfelecan at acm dot org

--- Additional Comments From pfelecan at acm dot org  2005-04-02 16:23 
---
(In reply to comment #9)
> Ok for the preprocessed source line 91 for the preproceser source:
>  .long .LFB1-.
> 
> This is valid as far as I know.
> Again can you try with the GNU binutils.

Unfortunately, for the moment I cannot use gas. However, not being a specialist
in x86 assembler, can you confirm this such that I can look for a bug in Solaris
assembler.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20730


[Bug libffi/20730] Assembler illegal subtraction in libffi on Solaris 8 Intel

2005-04-03 Thread pfelecan at acm dot org

--- Additional Comments From pfelecan at acm dot org  2005-04-03 13:38 
---
(In reply to comment #9)
> Ok for the preprocessed source line 91 for the preproceser source:
>  .long .LFB1-.

assembled on Solaris 10 Intel:

/usr/ccs/bin/as -V -Qy -s -o sysv.o sysv.s
as: Sun Compiler Common 10 s10_73 11/23/2004
Assembler:
 "sysv.s", line 91 : Warning: Illegal subtraction - symbols
from different sections: ".LFB1", ".DOT-0"

> This is valid as far as I know.
> Again can you try with the GNU binutils.

it's successful with gas:

gnu-as -v -o sysv.o sysv.s
GNU assembler version 2.14 (i386-pc-solaris2.8) using BFD version 2.14 20030612




-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20730