Re: Problem with configure when trying to build gcc 5.3
David Gressett <[email protected]> Sun, 1 Jan 2017 22:15:23 +0000
| Newsgroups | gmane.comp.gnu.mingw.devel |
|---|---|
| Message-ID | <MWHPR13MB1647FE8FF4855DFEF553F7FCD46C0@MWHPR13MB1647.namprd13.prod.outlook.com> |
>On 30/12/16 02:23, David Gressett wrote:
>> I immediately found a problem when mingw-pkg did a configure.
>> It did not configure to build the Ada compiler. I found nothing obvious
>> that would explain this in config.log, so I went to the MinGW installer
>> to see if I had anything missing and found that the mingw-gnat dll is
>> still at version 4.8.1-4 and the repository version number is
>> also 4.8.1-4.
>I *think* the libgnat-dll version thing is a red herring; ada builds
>fine for me, but libgnat.a is built as a static library only -- I can
>find no way to create a corresponding DLL, (short of brute force, by
>extracting and linking all of the objects from libgnat.a, which I
>didn't bother to try).
>For me, ada is a completely alien world, and I simply don't have the
>inclination to devote either time or energy to debugging its quirky
>build system. If you are willing to pursue it, I'll assist as best
>I can, but I have no ada expertise to offer.
I have now learned a bit more.
my first problem became visible when I used mingw-pkg to
do the configure stage of the gcc build. configure displayed this:
"The following languages will be built: c,c++,fortran,java,lto,objc"
I did not get Ada, which i did expect, and got java, which I did
not expect and was not configured in the pkgspec file. The objective-c
languages also dropped out.
I examined the config.log and found the command line that was
used to run the gcc configure.
I found a problem; it contained --build=x86_64-pc-linux-gnu
instead of the expected -build=mingw32
I have a copy of .mingw-pkgrc in both my $HOME
directory and the gcc build directory. I had constructed it
by modifying the one that you included as an attachment
by changing the build line to this:
build=${build-"mingw32"}
It seems that mingw-pkg ignored .mingw-pkgrc.
I then removed the results of the configure step and
reconfigured it using by directly issuing the configure
command line to see if it the problem would go away:
../../src/gcc-5.3.0/configure --build=mingw32 --host=mingw32 , etc
It did go away - I saw this:
"The following languages will be built: c,ada,c++,fortran,lto,objc,obj-c++"
I am now using mingw-pkg to run the compile step. It failed
when it got to Ada, with a problem in adaint.c
"error: 'fstat64' was not declared in this scope."
That looks to me like a patch failure, as one of the patch files
deals with fstat64.
It appears that mingw-pkg is behaving badly in msys on my Windows 10
computer. My next step is to avoid mingw-pkg and do all the patching
and configuration manually.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot