Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Sat, 9 Aug 2003 19:35:15 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: 1.5.2-1 file truncated Message-ID: <20030809233515.GA11275@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <87smoa9932 DOT fsf AT peder DOT flower> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i On Sat, Aug 09, 2003 at 04:13:10PM -0400, Igor Pechtchanski wrote: >On 9 Aug 2003, Jan Nieuwenhuizen wrote: >>>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): Just to recap some history: libm.a was once an empty file. It was also a link to libcygwin.a at one point. The current arrangement is the best compromise. >$ ls -l /usr/lib/libm.a >-rwxrwxrwx+ 1 Administ Users 218298 Mar 18 09:21 /usr/lib/libm.a The map file shows that it is not an empty file. It seems to be the right libm.a AFAICT. cgf -- 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/