delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/04/15/19:53:59

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
q=dns; s=default; b=Kl7X+40EJsSZOwT7dAzHqV4LEsElG/NgA6b3+K1ekkr
dBRC/wq+UIFilRK1So/HIEFZHp44kvDLrL7hBSbzEQ0etdhPihv4bGHAbS8Ph80u
d7jpShl3gyPvY9zI+cz9bqiwVpIsZ5F2N2e9F5oZm+uE6p4lq32YZvbOLlRLo0Xo
=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
s=default; bh=yz+Dcs9RfsTZJYp8kd35wor49f0=; b=fnTdBtOB1B5ulnFvb
JFYsLUdeh0/nvKvVB/AnKzFvK3X/LMTmyO/B+k96cmw1JcHtsF4qOCruKSK4ISbL
pGWeFi72OFluC+nIHMDV1QAvNWTK8Dt6OJ9PL8OSu0XCBONVHeTpOeeJBfVZheh0
EJWYRJ2vcIQkqcpONSEi6WyqmQ=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail.lysator.liu.se
Message-ID: <534DC67C.3080909@lysator.liu.se>
Date: Wed, 16 Apr 2014 01:53:32 +0200
From: Peter Rosin <peda AT lysator DOT liu DOT se>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: libtool: link: object name conflicts in archive
References: <7c71eb34219779df3fb3d492f29bcead AT mail DOT eclipso DOT de> <20140415093113 DOT GF3271 AT calimero DOT vinschen DOT de> <22601c400b5e0fffb54b32a9d6b2bdf8 AT mail DOT eclipso DOT de> <20140415112757 DOT GI3271 AT calimero DOT vinschen DOT de>
In-Reply-To: <20140415112757.GI3271@calimero.vinschen.de>

On 2014-04-15 13:27, Corinna Vinschen wrote:
> On Apr 15 11:16, Gisela Haschmich wrote:
>>>> Hello,
>>>>
>>>> i tried to compile MBDyn 1.5.5 with cygwin and got an error "libtool:
>>> link: object name conflicts in archive". I used the same for 1.5.0 and
>>> it worked.
>>>>
>>
>>>> libtool: link: object name conflicts in archive: .libs/libmbwrap.lax/liby12.lib//home/ntmoe/mbdyn-1.5.5/libraries/liby12/.libs/liby12.lib
>>
>>>>
>>>> i found with google, that it could be an error with path variable, because
>>> it needs lib.exe from Visual Studio. I changed it to minimal, but i have
>>> still the same error
>>>
>>> No, it doesn't.  Libtool calls gcc, it never tries to use VS tools.
>>> This looks like a problem earlier in the build.
>>>
>> and whats about lib.exe, do i need the path to VS tools lib.exe or what should use instead ?
> 
> gcc uses ld from binutils.  There's really no reason to have any VC tool
> in the path.

Side note, the GNU "equivalent" of MS lib.exe is ar. (ld corresponds to
MS link.exe).

Regarding the issue, it is a bad sign that the archives are named libmbmath.lib,
libmbutil.lib etc. For a Cygwin build, you want them named libmbmath.a. The
.lib suffix is a clear indicator of a problem earlier in the build, just
like Corinna said. Is the Cygwin binutils package installed properly? I
imagine something like this could happen if the binutils install is broken
and the Microsoft tools are on $PATH (but I haven't tested that).

Cheers,
Peter


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

- Raw text -


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