delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/08/09/16:13:31

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Sat, 9 Aug 2003 16:13:10 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Jan Nieuwenhuizen <janneke AT gnu DOT org>
cc: Robert McNulty Junior <bmj2001 AT bellsouth DOT net>, <cygwin AT cygwin DOT com>
Subject: Re: 1.5.2-1 file truncated
In-Reply-To: <87smoa9932.fsf@peder.flower>
Message-ID: <Pine.GSO.4.44.0308091610440.7386-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0

On 9 Aug 2003, Jan Nieuwenhuizen wrote:

> "Robert McNulty Junior" <bmj2001 AT bellsouth DOT net> writes:
>
> > Timidity is a midi player.
> > Up until now, I've not had any problems compiling it or other source code.
> >
> > I compiled the cygwin version of bash with no problems.
> > The linking part with the original cygwin version of ld
> > gives the following error.
> > I'm not sure what's causing it.
> > Heres a snapshot of the screen where it fails.
> > Mind you, this is on code that worked fine up 1.5.1-1.
>
> Same with tetex-bin;
>
> > ls/libutils.a  -lX11 -lm       -lwinmm
>
> > /usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/bin/ld: final
> > lin
> > k failed: File truncated
> > collect2: ld returned 1 exit status
>
>  it seems that -lm is the culprit.  Leave it off, and it seems to
>  work.

ISTR a suggestion on the list a while ago to create an empty file and call
it libm.a.  It has since been superceded by the empty archive one, and now
a non-empty libm.a is actually part of the Cygwin package.  Could you
please verify that you're linking against /usr/lib/libm.a, and that it's
not an empty file?  On my system (cygwin-1.3.22-1):

$ ls -l /usr/lib/libm.a
-rwxrwxrwx+   1 Administ Users      218298 Mar 18 09:21 /usr/lib/libm.a

Hope this helps,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019