delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/07/31/06:47:29

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:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=GjywfDcAoBEeXeOqAwQYCyDOZF7TjOE6vDs5XEWjwdJSL3oJCvxfp
iv7q+eT1jCSRIUZrvirgMwIywtSveukVjoZw3FRPTJtD0DI8jv6UZTNY1shfz470
DjgxnFRFn9QQOswV40D37JH13MXcuqWpDNZ4PnHeFIg12+gxDtKVH4=
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:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=/UU14RYa4iSrNfW6qbpquthlwws=; b=jEk0plEXX+H/s+vGIzfSNq1+/suV
0X2Y+YTJr2jwd8KGZXHm/qPE4LYemu61m6k8PRYtMegRwQXEFRjKJc/5arA4ZGKd
ORAYL0toVzevDlLWDcfYcUjPqe6/VDd1RwS4pR0xs7kx5EFpY4OkYXtoFFkbmdDa
Dm/KwDYSSS6uv4Y=
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
X-Spam-SWARE-Status: No, score=-0.1 required=5.0 tests=AWL,BAYES_20,RDNS_NONE autolearn=no version=3.3.1
Date: Wed, 31 Jul 2013 12:47:01 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: [BUG ?] Failed to rebuild Cygwin
Message-ID: <20130731104701.GY4166@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <003401ce8dcb$a630b310$f2921930$%fedin AT samsung DOT com> <20130731095949 DOT GV4166 AT calimero DOT vinschen DOT de> <51F8E342 DOT 5020509 AT gmail DOT com> <20130731102826 DOT GX4166 AT calimero DOT vinschen DOT de>
MIME-Version: 1.0
In-Reply-To: <20130731102826.GX4166@calimero.vinschen.de>
User-Agent: Mutt/1.5.21 (2010-09-15)

On Jul 31 12:28, Corinna Vinschen wrote:
> On Jul 31 18:13, JonY wrote:
> > On 7/31/2013 17:59, Corinna Vinschen wrote:
> > > On Jul 31 12:55, Pavel Fedin wrote:
> > >> /usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/crt2.o: In function
> > >> `__tmainCRTStartup':
> > >> /usr/src/debug/mingw64-x86_64-runtime-3.0b_svn5935-1/crt/crtexe.c:285:
> > >> undefined reference to `_set_invalid_parameter_handler'
> > >> /usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/libmingwex.a(lib64_libming
> > >> wex_a-mingw_pformat.o): In function `__pformat_exponent_digits':
> > >> /usr/src/debug/mingw64-x86_64-runtime-3.0b_svn5935-1/stdio/mingw_pformat.c:1
> > >> 76: undefined reference to `_get_output_format'
> > >> collect2: error: ld returned 1 exit status
> > >> Makefile:143: recipe for target `cygwin-console-helper.exe' failed
> > >> make[3]: *** [cygwin-console-helper.exe] Error 1
> > >> --- cut ---
> > >>  Likely some MinGW CRT bug ?
> > > 
> > > This also occurs on Fedora right now.
> > > 
> > > AFAICS, the culprit is that the latest Cygwin w32api package doesn't
> > > match the files from mingw-crt for some reason.
> > > 
> > > The build uses -L/usr/lib/w32api (-L/usr/i686-pc-cygwin/lib/w32api when
> > > cross building on Fedora), so the libs are taken from the w32api-runtime
> > > package.  However, the compiler uses the default crt file
> > > /usr/i686-w64-mingw32/sys-root/mingw/lib/../lib/crt2.o which is provided
> > > by the mingw-crt package.
> > > 
> > > This is a bug in Cygwin's Makefile since you should never use the w32api
> > > stuff for mingw executables, only for Cygwin executables, but still...
> > > 
> > > JonY, do you have an idea why the mingw-crt differs that much from the
> > > w32api stuff that the above error occurs?
> > > 
> > 
> > Likely, because _set_invalid_parameter_handler was a stub in mingwex
> > that loads msvcrt.dll, it was disabled as a quickfix, as it was using
> > mingw-w64 stdlib.h directly. I did not think Cygwin win32api might need it.
> > 
> > The build should be fixed on trunk, I will roll out a new release soon.
> 
> Cool, thanks!

Erm... hang on.  On second thought, I'm not sure that this is a bug.
The actual bug here was clearly in the Cygwin utils Makefile.

In fact, since w32api should only be used by Cygwin executables, why
should w32api provide libmingwex.a at all?  Linking a Cygwin executable
against libmingwex doesn't sound like the right thing to do.  Shouldn't
rather libmingwex.a just go from w32api?


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

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