Web lists-archives.com

Re: [Mingw-users] I'm a newbie to MinGW. How Can I build MinGW from source?




-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 17/02/17 17:25, Earnie wrote:
> On 2/16/2017 10:44 PM, firebird wrote:
>> I compiled as follow and has a compile error:cannot compute suffix
>> of object files: cannot compile.

This suggests some problem with the compiler you are using to perform
the build.  More than that, I cannot say, because you don't describe
the build environment adequately.

>> mingw-pkg SRCDIR=../src/gcc-5.3.0 configure     Here has problem with GNAT,
>> so I configure manually:
>> ../src/gcc-5.3.0/configure --prefix=/mingw --disable-win32-registry
>> --target=mingw32 --with-arch=i586 --enable-languages=c,c++ --enable-static
>> --enable-shared --enable-threads --with-dwarf2 --disable-sjlj-exceptions
>> --enable-version-specific-runtime-libs --with-libiconv-prefix=/mingw
>> --with-libintl-prefix=/mingw --enable-libstdcxx-debug --with-tune=generic
>> --enable-libgomp --disable-libvtv --enable-nls
>>
>> make
>>
>> Here has error: 
>> checking for suffix of object files... configure: error: in 
>> `/home/www/www/mingw32-src/build/mingw32/libgcc':
>> configure: error: cannot compute suffix of object files: cannot
>> compile

So, the same build system compiler failure as before.

>> I export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib and make
>> clean & make, the problem still exists.

Am I missing something?  What exactly are you trying to build?  The
above points to Linux platform libraries, which are not what you want
for a Windows cross-native compiler, (nor indeed, for deployment with
a Windows targetting cross-compiler).

> Why is it configuring GNAT, you didn't specify it with
> --enable-languages.

OP's original attempt was using mingw-pkg, presumably with the package
specification file I provided in the gcc-5.3.0-mingw32-src tarball;
that specifies --enable-languages=ada (among others), and I'm guessing
that the OP's build compiler isn't ada-aware; it's not even clear if
it is Windows target-aware, (since the build environment hasn't been
adequately described).

> The last time I tried I gave up on GNAT.

Yes.  GNAT is a swine to build.  I've no idea how the ada folks ever
bootstrap it, because the GCC sources demand a working ada compiler
up-front, at configuration time.  I had to begin by bootstrapping a
native Linux build, starting out with an older ada-aware GCC version,
(which was not the default host compiler); that old version was okay
for bootstrapping an updated build, but wasn't good enough to build
the ada libraries, to accompany the Windows-target cross-compiler I
I needed to build next, before I could even begin to configure the
cross-native compiler we now distribute.

> Maybe remove the GNAT directory from the source would help.  Or maybe
> a specific parameter to specify to not configure GNAT.  Maybe
> ./configure --help=recursive may help.  Be sure to redirect to a file
> or pipe to a pager.

Omitting ada from the list specified with --enable-languages should be
all that is required.  The OP did that, but it looks like there are
more fundamental problems -- like, the build compiler isn't working!

- -- 
Regards,
Keith.

Public key available from keys.gnupg.net
Key fingerprint: C19E C018 1547 DE50 E1D4 8F53 C0AD 36C6 347E 5A3F
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)

iQIcBAEBAgAGBQJYp0HTAAoJEMCtNsY0flo/E9QP+wa/yQ0VH2CQ3k8cit2RG1h8
D+qJSwaiZJ9dsTrg9B+y/MAD+yy+tXQF8J73BnxXiz1WWG9KOYxm8af1hZnICyEg
TUHYFwJZ3W1Ai5iH+Buem/iOS2UyMTWwNi57DH0pT6jsgcE4pRDitkt1iolOPDoE
jZvKtySKfB8AY8Y0pX6JC7c7HkJKIANLGA2eircrlfixGBoFAu11RloxJ2j7D8Nx
2b7dbrzByYvDsZVWOnOYQYr/WZons7r8ap9QTf1ghoUIHmncq/l7B1cL6MLw/V0m
Rw3oknnHW7dnObRg7SFhvEFMUOoe3HXlStAzaCef6TRg88NZ5UNFXgDTQ8gsg5gB
vskGfre6jhLuGjjrm5Kx91cBARWymdRW5vRTpfZFPYAd1YSQ4bUj/hnmDkiIdHB6
7F029Ur/jnpyNbM+zYAZ7XHTUbh6cMIPTAXASkq/5Sn1eexxbR+ZHpoKRJFSndIw
KzlpOgNYn9CmG54kbG/a5f/s1KFz1OLY1JlVX44zYYsERdC1lqqGenID3UAUbSAF
yhkslnd84rwXU9KFW/7It8NBtRfqC537MSvg+EBdhRwlNmZlVzRmN2rTrNMGPGuT
nqWgvQtlE2m2IjltuFeW7eW6NxJgMDQIK8I6Jy6CE/z+VPhgDx7664AQ5RmrGOzw
ZG0fX62ig7QiN1imfMCo
=PMjv
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@xxxxxxxxxxxxxxxxxxxxx?subject=unsubscribe