On 4/6/2017 3:12 PM, Óscar Fuentes wrote:
> Edward Diener <[email protected]>
> writes:
>
>> This is my first time using MSYS2 and, as I understand it, I am running
>> a Linux-like shell. Within MSYS2 I use a shell command file which
>> invokes the traditional "configure/make/make install" sequence using the
>> mingw-64/gcc implementation installed from within MSYS2. This sequence
>> is the recommended build for the particular library I am building. But
>> if the mingw-64/gcc implementation in MSYS2 does not understand the
>> MSYS2 environment it seems that I am using the wrong compiler. Am I
>> supposed to be installing a Linux gcc implementation instead in MSYS2 ?
>> Or is my case just an anomaly of using mingw-64/gcc with MSYS2 ?
>
> Please show the exact steps for replicating the problem, including the
> method you use to start the MSYS2 shell.

I start the shell by double-clicking the program item "MSYS2 MinGW 64-bit".

The library I am trying to build is mfcgthread from 
https://github.com/lhmouse/mcfgthread. I am using a slightly modified 
build script. The pertinent lines are:

autoreconf -i
CPPFLAGS='-DNDEBUG'
CFLAGS='-O3 -ffunction-sections -fdata-sections -m64'
LDFLAGS='-Wl,-s,--gc-sections'
configure --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32
make -j4
make install

>
> On the shell you use for the build, if you type the command
>
> which gcc.exe
>
> what's the output?

/mingw64/bin/gcc.exe

>
> Configure scripts are usually made of standardized, off-the-shelf
> components and should detect that you are using the MinGW-w64 toolset
> and behave in accordance, but the part that puts absolute file paths on
> the generated __pch.h header possibly is project-specific and might be
> problematic unless it was written with portability in mind.

I will notify the mfcgthread of this. The relevant part of Makefile.am is:

__pch.h: ${srcdir}/src/env/_crtdef.h
        echo "#include \"$<\"" > $@

>
> Does the build work on the classic MSYS environment?

I never tried it.

> Are there reports
> of it working on Windows at all?

See https://github.com/lhmouse/mcfgthread/blob/master/README.md.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Msys2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/msys2-users

Reply via email to