public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/19481] New: libgfortran doesn't build -- configure doesn't handle cabs() well
@ 2005-01-17 13:24 coudert at clipper dot ens dot fr
  2005-01-17 15:15 ` [Bug libfortran/19481] " pinskia at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: coudert at clipper dot ens dot fr @ 2005-01-17 13:24 UTC (permalink / raw)
  To: gcc-bugs

This one is strange. On i686-mingw, compiling gfortran fails with:
../../../gcc/libgfortran/generated/exp_c8.c:38: error: conflicting types for 'cabs'
/mingw/include/math.h:223: error: previous declaration of 'cabs' was here
make[2]: *** [exp_c8.lo] Error 1
make[2]: Leaving directory `/home/coudert/ibin/i686-pc-mingw32/libgfortran'
make[1]: *** [all] Error 2

I guess, somewhere in the configure process, the presence of cabs() in math.h
was not detected. This is not specific to i686-mingw, since the same thing
happens on mips-sgi-irix6.5 (which I reported as comment #7 in PR15266).

So, I submit a new PR (hope "component=bootstrap" was the right choice, not
sure) so that GNU build utils gurus can get this fixed. I am ready to give any
extra information needed, but I don't know what may be useful at that point.

PS: configure was a simple ../gcc/configure --prefix=/mingw --enable-languages=c,f95

-- 
           Summary: libgfortran doesn't build -- configure doesn't handle
                    cabs() well
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: coudert at clipper dot ens dot fr
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug libfortran/19481] libgfortran doesn't build -- configure doesn't handle cabs() well
  2005-01-17 13:24 [Bug bootstrap/19481] New: libgfortran doesn't build -- configure doesn't handle cabs() well coudert at clipper dot ens dot fr
@ 2005-01-17 15:15 ` pinskia at gcc dot gnu dot org
  2005-01-17 15:55 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-17 15:15 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-17 15:15 -------
I will note this definitation of cbas is not compatible with C99.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|bootstrap                   |libfortran
 GCC target triplet|                            |i686-pc-mingw32
           Keywords|                            |build
            Version|unknown                     |4.0.0


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


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

* [Bug libfortran/19481] libgfortran doesn't build -- configure doesn't handle cabs() well
  2005-01-17 13:24 [Bug bootstrap/19481] New: libgfortran doesn't build -- configure doesn't handle cabs() well coudert at clipper dot ens dot fr
  2005-01-17 15:15 ` [Bug libfortran/19481] " pinskia at gcc dot gnu dot org
@ 2005-01-17 15:55 ` pinskia at gcc dot gnu dot org
  2005-01-17 17:10 ` coudert at clipper dot ens dot fr
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-17 15:55 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
OtherBugsDependingO|                            |16991
              nThis|                            |


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


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

* [Bug libfortran/19481] libgfortran doesn't build -- configure doesn't handle cabs() well
  2005-01-17 13:24 [Bug bootstrap/19481] New: libgfortran doesn't build -- configure doesn't handle cabs() well coudert at clipper dot ens dot fr
  2005-01-17 15:15 ` [Bug libfortran/19481] " pinskia at gcc dot gnu dot org
  2005-01-17 15:55 ` pinskia at gcc dot gnu dot org
@ 2005-01-17 17:10 ` coudert at clipper dot ens dot fr
  2005-05-01 14:33 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: coudert at clipper dot ens dot fr @ 2005-01-17 17:10 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From coudert at clipper dot ens dot fr  2005-01-17 17:09 -------
I worked around this bug, commenting a line in /mingw/include/math.h (I quote it
here for reference):
//_CRTIMP double __cdecl cabs (struct _complex);

The end of the compilation runs smoothly, but when I try to use gfortran, it
complains at link-time about missing symbol _ftruncate. Indeed, mingw doesn't
have a ftruncate (it has a chsize which has the same prototype and all), but the
libgfortran.a needs one (originally in unix.o). This can be worked around
(create an object file for ftruncate which call chsize directly and "ar -rv" it
into libgortran.a), but it should get fixed nonetheless.

-- 


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


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

* [Bug libfortran/19481] libgfortran doesn't build -- configure doesn't handle cabs() well
  2005-01-17 13:24 [Bug bootstrap/19481] New: libgfortran doesn't build -- configure doesn't handle cabs() well coudert at clipper dot ens dot fr
                   ` (2 preceding siblings ...)
  2005-01-17 17:10 ` coudert at clipper dot ens dot fr
@ 2005-05-01 14:33 ` pinskia at gcc dot gnu dot org
  2005-05-02  7:42 ` fxcoudert at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-01 14:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-01 14:33 -------
(In reply to comment #2)
> I worked around this bug, commenting a line in /mingw/include/math.h (I quote it
> here for reference):
> //_CRTIMP double __cdecl cabs (struct _complex);
> 
> The end of the compilation runs smoothly, but when I try to use gfortran, it
> complains at link-time about missing symbol _ftruncate. Indeed, mingw doesn't
> have a ftruncate (it has a chsize which has the same prototype and all), but the

The ftruncate problem should be fixed now.

Does this work fully or is cabs issue still there?

-- 


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


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

* [Bug libfortran/19481] libgfortran doesn't build -- configure doesn't handle cabs() well
  2005-01-17 13:24 [Bug bootstrap/19481] New: libgfortran doesn't build -- configure doesn't handle cabs() well coudert at clipper dot ens dot fr
                   ` (3 preceding siblings ...)
  2005-05-01 14:33 ` pinskia at gcc dot gnu dot org
@ 2005-05-02  7:42 ` fxcoudert at gcc dot gnu dot org
  2005-05-31 17:06 ` giovannibajo at libero dot it
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2005-05-02  7:42 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From fxcoudert at gcc dot gnu dot org  2005-05-02 07:42 -------
cabs issue is still here. Will look into it when I have time.

-- 


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


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

* [Bug libfortran/19481] libgfortran doesn't build -- configure doesn't handle cabs() well
  2005-01-17 13:24 [Bug bootstrap/19481] New: libgfortran doesn't build -- configure doesn't handle cabs() well coudert at clipper dot ens dot fr
                   ` (4 preceding siblings ...)
  2005-05-02  7:42 ` fxcoudert at gcc dot gnu dot org
@ 2005-05-31 17:06 ` giovannibajo at libero dot it
  2005-09-05 10:37 ` fxcoudert at gcc dot gnu dot org
  2005-09-07 14:10 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: giovannibajo at libero dot it @ 2005-05-31 17:06 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From giovannibajo at libero dot it  2005-05-31 16:58 -------
Then, confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-05-31 16:58:48
               date|                            |


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


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

* [Bug libfortran/19481] libgfortran doesn't build -- configure doesn't handle cabs() well
  2005-01-17 13:24 [Bug bootstrap/19481] New: libgfortran doesn't build -- configure doesn't handle cabs() well coudert at clipper dot ens dot fr
                   ` (5 preceding siblings ...)
  2005-05-31 17:06 ` giovannibajo at libero dot it
@ 2005-09-05 10:37 ` fxcoudert at gcc dot gnu dot org
  2005-09-07 14:10 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2005-09-05 10:37 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From fxcoudert at gcc dot gnu dot org  2005-09-05 10:37 -------
It looks like this issue with cabs declaration is fixed now, with an up-to-date
mingw. Closing the PR.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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


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

* [Bug libfortran/19481] libgfortran doesn't build -- configure doesn't handle cabs() well
  2005-01-17 13:24 [Bug bootstrap/19481] New: libgfortran doesn't build -- configure doesn't handle cabs() well coudert at clipper dot ens dot fr
                   ` (6 preceding siblings ...)
  2005-09-05 10:37 ` fxcoudert at gcc dot gnu dot org
@ 2005-09-07 14:10 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-07 14:10 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.0.2


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


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

end of thread, other threads:[~2005-09-07 14:10 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-17 13:24 [Bug bootstrap/19481] New: libgfortran doesn't build -- configure doesn't handle cabs() well coudert at clipper dot ens dot fr
2005-01-17 15:15 ` [Bug libfortran/19481] " pinskia at gcc dot gnu dot org
2005-01-17 15:55 ` pinskia at gcc dot gnu dot org
2005-01-17 17:10 ` coudert at clipper dot ens dot fr
2005-05-01 14:33 ` pinskia at gcc dot gnu dot org
2005-05-02  7:42 ` fxcoudert at gcc dot gnu dot org
2005-05-31 17:06 ` giovannibajo at libero dot it
2005-09-05 10:37 ` fxcoudert at gcc dot gnu dot org
2005-09-07 14:10 ` pinskia at gcc dot gnu dot org

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