Is --build-x86-64-pc-linux-gnu correct for building a Win32 DLL ?

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Is --build-x86-64-pc-linux-gnu correct for building a Win32 DLL ?

Cervinka, Mitch
I am trying to build a Windows x86 DLL in MinGW using Eclipse(Mars) and GFortran.

However, I saw the following text in the console window after doing a "make all", and am wondering why it says --build=x86_64-pc-linux-gnu since I am not using Linux at all.  I am building on a Windows 10 (64-bit) PC, targeting 32-bit Windows.  Is the --build option correct for this scenario?  If not, how do I change it in the Eclipse settings?

Target: mingw32
Configured with: ../src/gcc-5.3.0/configure --build=x86_64-pc-linux-gnu --host=mingw32 --prefix=/mingw --disable-win32-registry --target=mingw32 --with-arch=i586 --enable-languages=c,c++,objc,obj-c++,fortran,ada --enable-static --enable-shared --enable-threads --with-dwarf2 --disable-sjlj-exceptions --enable-version-specific-runtime-libs --with-libintl-prefix=/mingw --enable-libstdcxx-debug --with-tune=generic --enable-libgomp --disable-libvtv --enable-nls : (reconfigured) ../src/gcc-5.3.0/configure --build=x86_64-pc-linux-gnu --host=mingw32 --prefix=/mingw --disable-win32-registry --target=mingw32 --with-arch=i586 --enable-languages=c,c++,objc,obj-c++,fortran,ada --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
Thread model: win32


------------------------------------------------------------------------------
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
[hidden email]

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:[hidden email]?subject=unsubscribe
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Is --build-x86-64-pc-linux-gnu correct for building a Win32 DLL ?

Eli Zaretskii
> From: "Cervinka, Mitch" <[hidden email]>
> Date: Wed, 15 Feb 2017 20:26:44 +0000
>
> I am trying to build a Windows x86 DLL in MinGW using Eclipse(Mars) and GFortran.
>
> However, I saw the following text in the console window after doing a "make all", and am wondering why it says --build=x86_64-pc-linux-gnu since I am not using Linux at all.  I am building on a Windows 10 (64-bit) PC, targeting 32-bit Windows.  Is the --build option correct for this scenario?  If not, how do I change it in the Eclipse settings?

The --build option says on what system was the compiler _built_.  By
contrast, the --host option says what is the target of the code
emitted by the compiler, and that is mingw32 in your case, which is
what you want.

IOW, the compiler was cross-compiled on GNU/Linux, but it produces
code for MinGW.  And that is OK.

------------------------------------------------------------------------------
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
[hidden email]

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:[hidden email]?subject=unsubscribe
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Is --build-x86-64-pc-linux-gnu correct for building a Win32 DLL ?

Eli Zaretskii
> Date: Wed, 15 Feb 2017 22:39:03 +0200
> From: Eli Zaretskii <[hidden email]>
>
> The --build option says on what system was the compiler _built_.  By
> contrast, the --host option says what is the target of the code
> emitted by the compiler, and that is mingw32 in your case, which is
> what you want.

More accurately, --host is where the compiler is supposed to be run,
and --target is the system for which it produces the code.  Both of
these are mingw32 in your case, which is correct.  (The fact that your
host is a 64-bit Windows 10 is okay, since 64-bit Windows can run
32-bit programs.)

------------------------------------------------------------------------------
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
[hidden email]

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:[hidden email]?subject=unsubscribe
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Is --build-x86-64-pc-linux-gnu correct for building a Win32 DLL ?

Earnie Boyd
In reply to this post by Cervinka, Mitch
On 2/15/2017 3:26 PM, Cervinka, Mitch wrote:
> I am trying to build a Windows x86 DLL in MinGW using Eclipse(Mars) and GFortran.
>
> However, I saw the following text in the console window after doing a "make all", and am wondering why it says --build=x86_64-pc-linux-gnu since I am not using Linux at all.  I am building on a Windows 10 (64-bit) PC, targeting 32-bit Windows.  Is the --build option correct for this scenario?  If not, how do I change it in the Eclipse settings?
>

This is stating the configuration of the compiler you are using.  It has
nothing to do with your system other than you are using someone's
compiler that had a client (--build) that was Linux.

> Target: mingw32
> Configured with: ../src/gcc-5.3.0/configure --build=x86_64-pc-linux-gnu --host=mingw32 --prefix=/mingw --disable-win32-registry --target=mingw32 --with-arch=i586 --enable-languages=c,c++,objc,obj-c++,fortran,ada --enable-static --enable-shared --enable-threads --with-dwarf2 --disable-sjlj-exceptions --enable-version-specific-runtime-libs --with-libintl-prefix=/mingw --enable-libstdcxx-debug --with-tune=generic --enable-libgomp --disable-libvtv --enable-nls : (reconfigured) ../src/gcc-5.3.0/configure --build=x86_64-pc-linux-gnu --host=mingw32 --prefix=/mingw --disable-win32-registry --target=mingw32 --with-arch=i586 --enable-languages=c,c++,objc,obj-c++,fortran,ada --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
> Thread model: win32
>

This looks correct, does the application execute?

--
Earnie

------------------------------------------------------------------------------
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
[hidden email]

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:[hidden email]?subject=unsubscribe
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Is --build-x86-64-pc-linux-gnu correct for building a Win32 DLL ?

Cervinka, Mitch
Yes, it is executing correctly now.  I had some run-time errors earlier and wondered if this might have anything to do with it.
Thanks, Earnie.

-----Original Message-----
From: Earnie [mailto:[hidden email]]
Sent: Friday, February 17, 2017 11:40 AM
To: [hidden email]
Subject: Re: [Mingw-users] Is --build-x86-64-pc-linux-gnu correct for building a Win32 DLL ?

On 2/15/2017 3:26 PM, Cervinka, Mitch wrote:
> I am trying to build a Windows x86 DLL in MinGW using Eclipse(Mars) and GFortran.
>
> However, I saw the following text in the console window after doing a "make all", and am wondering why it says --build=x86_64-pc-linux-gnu since I am not using Linux at all.  I am building on a Windows 10 (64-bit) PC, targeting 32-bit Windows.  Is the --build option correct for this scenario?  If not, how do I change it in the Eclipse settings?
>

This is stating the configuration of the compiler you are using.  It has nothing to do with your system other than you are using someone's compiler that had a client (--build) that was Linux.

> Target: mingw32
> Configured with: ../src/gcc-5.3.0/configure
> --build=x86_64-pc-linux-gnu --host=mingw32 --prefix=/mingw
> --disable-win32-registry --target=mingw32 --with-arch=i586
> --enable-languages=c,c++,objc,obj-c++,fortran,ada --enable-static
> --enable-shared --enable-threads --with-dwarf2
> --disable-sjlj-exceptions --enable-version-specific-runtime-libs
> --with-libintl-prefix=/mingw --enable-libstdcxx-debug
> --with-tune=generic --enable-libgomp --disable-libvtv --enable-nls :
> (reconfigured) ../src/gcc-5.3.0/configure --build=x86_64-pc-linux-gnu
> --host=mingw32 --prefix=/mingw --disable-win32-registry
> --target=mingw32 --with-arch=i586
> --enable-languages=c,c++,objc,obj-c++,fortran,ada --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 Thread model: win32
>

This looks correct, does the application execute?

--
Earnie

------------------------------------------------------------------------------
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
[hidden email]

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:[hidden email]?subject=unsubscribe

------------------------------------------------------------------------------
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
[hidden email]

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:[hidden email]?subject=unsubscribe
Loading...