Web lists-archives.com

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

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!

- -- 

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


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

This list observes the Etiquette found at 
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:
Also: mailto:mingw-users-request@xxxxxxxxxxxxxxxxxxxxx?subject=unsubscribe