OK I found the magic incantation I've been missing:
Pacman -S base-devel

That brought in about 68 more names for /usr/bin, "which" is a lot
happier.  CMake is
starting to do well, but I've got a g++ issue:

 /C/Programs/winbuilds64/bin/g++.exe -O2 -IC:/programs/winbuilds64/include
  -pthread -LC:/programs/winbuilds64/lib64 -Wl,--whole-archive
  CMakeFiles/cmTryCompileExec1983985269.dir/objects.a -Wl,--no-whole-archive
  -o cmTryCompileExec1983985269.exe
  -Wl,--out-implib,cmTryCompileExec1983985269.lib
  -Wl,--major-image-version,0,--minor-image-version,0 -lkernel32 -luser32
  -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32
  -ladvapi32



c:/programs/winbuilds64/bin/../lib64/gcc/x86_64-w64-mingw32/4.8.2/../../../../x86_64-w64-mingw32/bin/ld.exe:
  cannot find -lstdc++



c:/programs/winbuilds64/bin/../lib64/gcc/x86_64-w64-mingw32/4.8.2/../../../../x86_64-w64-mingw32/bin/ld.exe:
  cannot find -lgcc_s



c:/programs/winbuilds64/bin/../lib64/gcc/x86_64-w64-mingw32/4.8.2/../../../../x86_64-w64-mingw32/bin/ld.exe:
  cannot find -lgcc_s

 ======================================
ok, I needed both /mingw64/lib64 and /mingw64/lib for LDFLAGS:

from my custom cmake :


 msys-X.0.dll found on C:/Programs/msys64/usr/bin C:/Programs/msys64/usr

<cmakeMSYSFindMake> MSYS Makefiles generator:

/usr path: C:/Programs/msys64/usr

CMAKE_SYSTEM_PREFIX_PATH=

C:/Programs/msys64/usr/local;C:/Programs/msys64/usr

( ...INCLUDE_PATH and LIBRARY_PATH are also set up)

CMakeDetermineSystem> uname -s

MINGW64_NT-6.1 2.0.0(0.279/5/3)

The C compiler identification is GNU 4.8.2

Platform/Windows>Platform/MinGW.cmake> WIN32? MINGW?1 MSYS?1

MINGWPATH= MSYS_USR_PATH= C:/Programs/msys64/usr


<Platform/Mingw> inspecting LDFLAGS: -LC:/programs/winbuilds64/lib
-L/mingw64/lib64

<Platform/Mingw> adding system library path: C:/programs/winbuilds64/lib

<Platform/Mingw> adding system library path: /mingw64/lib64


and its on .. building plplot.


On Tue, Nov 4, 2014 at 6:56 PM, Greg Jung <[email protected]> wrote:

> Thanks for the clarifications:
>
> On Tue, Nov 4, 2014 at 1:46 PM, David Macek <[email protected]>
> wrote:
>
>> Hi.
>>
>> On 4. 11. 2014 16:00, Greg Jung wrote:
>> > Hi all, I've been setting msys2 up and pondering its usage for mingw
>> builds.  The two handles I'm
>> > having trouble with now are the mount procedure and possible links.
>>
>
> > Next I tried renaming, with the msys2 shell, the winbuilds64/ directory
> into "/mingw64";  it appears there in Explorer but Msys2 will have nothing
> to do with it:
>
>>
>> > [...]
>>
>> > $ mv mingw64 /d/programs/winbuilds64
>> > mv: cannot stat ‘mingw64’: No such file or directory
>>
>> The arguments to "mv" should be <source> <target>, not the other way
>> around (as opposed to
>
> Yes I did the move into the msys64 tree as mingw64 but then msys2 wouldn't
> get a hold of it,
> so I showed that attempt to undo the original move.  I brought it out
> later successfully with explorer.
>
>
>> >  I use symlinks in cygwin64 to designate the windows drives /c/, /d/,
>> /e/ (I don't know yet how to get them mounted without a /cygdrive)
>> > so it wasn't too much of a stretch to believe it might be possible in
>> msys2.
>>
>> Windows drives are virtual-mounted on /c/, /d/, ... by default on MSYS2,
>> no need to change anything.
>>
> That line in fstab claims to take the /cygdrive/ out::
>  none / cygdrive binary,posix=0,noacl,user 0 0
>
>>
>> c:/your/real/path /your/mount/point ntfs binary 0 0
>>
> OK thats working, but it doesn't show up in "df" as it does with msys, but
> the mount point appears in the msys64 directory listing.
>
> greg@Homerw7 ~
> $ echo $PATH
>
> /mingw64/bin:/usr/local/bin:/usr/bin:/bin:/c/Windows:/c/Windows/system32:/c/Windows/system32/Wbem:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
>
> greg@Homerw7 ~
> $ which gcc
> which: no gcc in
> (/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/c/Windows:/c/Window
>
> greg@Homerw7 ~
> $ which which
> /usr/bin/which
>
> greg@Homerw7 ~
> $ ls -la /mingw64
> total 232
> d---rwx---+ 1 greg None  0 May 24 11:15 .
> drwxr-xr-x  1 greg None  0 Nov  4 11:56 ..
> d---rwx---+ 1 greg None  0 Nov  4 01:09 bin
> d---rwx---+ 1 greg None  0 Nov  4 01:09 doc
> d---rwx---+ 1 greg None  0 Nov  4 01:09 etc
> d---rwx---+ 1 greg None  0 Nov  4 01:09 include
> d---rwx---+ 1 greg None  0 Nov  4 01:09 info
> d---rwx---+ 1 greg None  0 Nov  4 01:09 lib
> d---rwx---+ 1 greg None  0 Nov  4 01:09 lib64
> d---rwx---+ 1 greg None  0 May 24 11:04 libexec
> d---rwx---+ 1 greg None  0 May 24 10:11 man
> lrwxrwxrwx  1 greg None 27 Nov  4 01:09 mingw ->
> /mingw64/x86_64-w64-mingw32
> d---rwx---+ 1 greg None  0 May 24 10:49 share
> d---rwx---+ 1 greg None  0 Nov  4 01:09 var
> d---rwx---+ 1 greg None  0 May 24 10:09 x86_64-w64-mingw32
>
> greg@Homerw7 ~
> $ g++ -v
> Reading specs from
> c:/programs/winbuilds64/bin/../lib64/gcc/x86_64-w64-mingw32/4.8.2/specs
> COLLECT_GCC=C:\programs\winbuilds64\bin\g++.exe
> ====================================
> Now I'm having trouble with pacman, I'm missing tar,diff, and most
> importantly make.exe
> greg@Homerw7 ~
> $ pacman -S make
> resolving dependencies...
> looking for conflicting packages...
>
> Packages (7) guile-2.0.11-3  info-5.2-5  libgc-7.2.d-1  libguile-2.0.11-3
>              libltdl-2.4.3-1  libunistring-0.9.4-2  make-4.1-2
>
> Total Installed Size:  14.82 MiB
>
> :: Proceed with installation? [Y/n] y
> (7/7) checking keys in keyring
> [######################] 100%
> (7/7) checking package integrity
> [######################] 100%
> (7/7) loading package files
>  [######################] 100%
> (7/7) checking for file conflicts
>  [######################] 100%
> error: failed to commit transaction (conflicting files)
> info: /usr/bin/info.exe exists in filesystem
> info: /usr/bin/infokey.exe exists in filesystem
> info: /usr/bin/install-info.exe exists in filesystem
> info: /usr/share/info/info-stnd.info.gz exists in filesystem
> info: /usr/share/info/info.info.gz exists in filesystem
> info: /usr/share/man/man1/info.1.gz exists in filesystem
> info: /usr/share/man/man1/infokey.1.gz exists in filesystem
> info: /usr/share/man/man1/install-info.1.gz exists in filesystem
> info: /usr/share/man/man5/info.5.gz exists in filesystem
> Errors occurred, no packages were upgraded.
>
>
------------------------------------------------------------------------------
_______________________________________________
Msys2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/msys2-users

Reply via email to