This is the mail archive of the cygwin-apps mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [ITP] mingw-w64 Second try

On 9/1/2010 03:32, Charles Wilson wrote:
On 8/25/2010 12:19 AM, JonY wrote:
since cygport and gcc has been updated, I can do the packaging without
any local hacks.

Here are the packages.

Overall comments: I see you reverted to bundling the DLLs with the compiler packages (e.g. no separate mingw64-x86_64-libfoo-* tarballs). While it isn't the way I would do it, that's your choice as maintainer (and Yaakov would agree with you, not me).

Many of the setup.hint's specify
requires: mingw64-x86_64-gcc

I *think* that should be
requires: mingw64-x86_64-gcc-core.

You don't actually HAVE a 'mingw64-x86_64-gcc' package, except for the
source-only one. And I'm sure you don't mean to require everybody to
install the source code...

Sorry, I was recycling setup.hint from earlier tries. I will fix this.


OK, and rebuilds fine from source.


Rebuilds fine from source (*), but the binary tarball above is not ok. It has the headers in the following directory: usr/x86_64-w64-mingw32/sys-root/mingw/x86_64-w64-mingw32/include/ instead of usr/x86_64-w64-mingw32/sys-root/mingw/include/

Now, if I *rebuild*, the binary tarball generated has the headers in the
correct spot; I think you just uploaded an old version.

Strange, I'll try a rebuild. The former should be the correct location.


OK, and rebuilds fine from source (*).


OK, and rebuilds fine from source.


OK, and (mostly) rebuilds fine from source. I had to comment out the Ada parts. Even though I had gcc4-ada-4.3.4 installed, rebuilding your package with Ada enabled failed. However, I've *never* tried to build Ada before, so it may be that I'm missing some pre-requisite.

Or does building gcc-4.5.x Ada require a newer native Ada compiler than

I installed gcc 4.5.x from experimental for this purpose. The GCC docs say to have a native ada compiler of the same version installed first. GCC 4.5.0 and 4.5.1 should be close enough.

(*) I notice that both the -headers and -runtime cygport included this line as the final command in src_install:


I see the same thing when I tried to use my old mingw*-zlib cygport; I
think the problem is in cygport(1), and your cygport(5) is just working
around the issue.

To sum up, assuming the Ada thing has a reasonable explanation, and the setup.hints are fixed, I think this is GTG.

If you want to hold off and see what Yaakov does about the issue below, and maybe revise your cygport(5)'s based on a new release of cygport(1), that's up to you.

OK, my cygport was mostly from Yaakov's examples.

========== POSSIBLE CYGPORT(1) BUG ============= Yaakov?

the config.status for includedir has this:
but other dirs are explicit:

Looking at the configure command (from config.status):


'-C' '--build=i686-pc-cygwin' '--host=x86_64-w64-mingw32'
'--target=x86_64-w64-mingw32' '--enable-sdk=all'
'build_alias=i686-pc-cygwin' 'host_alias=x86_64-w64-mingw32'
'target_alias=x86_64-w64-mingw32' $ac_configure_extra_args --no-create

I see that --includedir is missing. I think that is an oversight in
autotools.cygclass, and --includedir should be one of the elements
specified in confargs:

confargs="--prefix=${prefix} --exec-prefix=${prefix}
--bindir=${prefix}/bin \
--sbindir=${prefix}/sbin --libexecdir=${prefix}/lib \
--datadir=${prefix}/share --localstatedir=${prefix%/usr}/var \

I'm not real sure about the ${prefix%/...} manipulation, either,
especially for cross. (The effect of this manipulation for a cross for
$host=mingw is not apparent, since $prefix doesn't actually end in /usr
in that case). But...the current code seems to be incorrect, IMO.

As an aside, I happened to notice there is a bug in cyginstall() when USE_DESTDIR=0, inherit cross, and $host is mingw: localstatedir (/var) and sysconfdir (/etc) aren't handled correctly. But that has little to do with JonY's mingw-w64 ITP.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]