Discussion:
[Msys2-users] Does msys2 support mmap/mman?
Greg Skyles
2016-10-06 05:29:08 UTC
Permalink
Hello,

I am using msys2 to build a software package that uses the mmap
interface, and it dies because the header isn't found:

compiling src/platform/posix/mmap.o
src/platform/posix/mmap.c:2:22: fatal error: sys/mman.h: No such file or
directory
#include <sys/mman.h>
^
compilation terminated.

I couldn't find anything that looked relevant in pacman -Ss.

It does seem to be in my Cygwin installation, but of course I'm not
using that in msys.

C:\>dir C:\cygwin64\usr\include\sys\mman.h
Volume in drive C is OS
Volume Serial Number is 6056-56E0

Directory of C:\cygwin64\usr\include\sys

08/31/2016 20:32 2,456 mman.h
1 File(s) 2,456 bytes
0 Dir(s) 393,821,675,520 bytes free

-Greg
Andrea Zagli
2016-10-06 06:50:02 UTC
Permalink
Post by Greg Skyles
Hello,
I am using msys2 to build a software package that uses the mmap
compiling src/platform/posix/mmap.o
src/platform/posix/mmap.c:2:22: fatal error: sys/mman.h: No such file or
directory
#include <sys/mman.h>
^
compilation terminated.
I couldn't find anything that looked relevant in pacman -Ss.
It does seem to be in my Cygwin installation, but of course I'm not
using that in msys.
C:\>dir C:\cygwin64\usr\include\sys\mman.h
Volume in drive C is OS
Volume Serial Number is 6056-56E0
Directory of C:\cygwin64\usr\include\sys
08/31/2016 20:32 2,456 mman.h
1 File(s) 2,456 bytes
0 Dir(s) 393,821,675,520 bytes free
-Greg
sometimes ago i proposed the package from
https://github.com/mcgarrah/mman-win32; but it was refused

if you need it

http://saetta.ns0.it/gitweb?p=msys2;a=tree;f=packages/mingw-w64-mman;h=c2ae1a2d98220dfb3f57d139cf768144b5cb006d;hb=HEAD
Greg Skyles
2016-10-07 04:26:53 UTC
Permalink
Grazie, Andrea!

That built and installed without issue, and resolved my compilation error.

-Greg
Post by Andrea Zagli
Post by Greg Skyles
Hello,
I am using msys2 to build a software package that uses the mmap
compiling src/platform/posix/mmap.o
src/platform/posix/mmap.c:2:22: fatal error: sys/mman.h: No such file or
directory
#include <sys/mman.h>
^
compilation terminated.
I couldn't find anything that looked relevant in pacman -Ss.
It does seem to be in my Cygwin installation, but of course I'm not
using that in msys.
C:\>dir C:\cygwin64\usr\include\sys\mman.h
Volume in drive C is OS
Volume Serial Number is 6056-56E0
Directory of C:\cygwin64\usr\include\sys
08/31/2016 20:32 2,456 mman.h
1 File(s) 2,456 bytes
0 Dir(s) 393,821,675,520 bytes free
sometimes ago i proposed the package from
https://github.com/mcgarrah/mman-win32; but it was refused
if you need it
http://saetta.ns0.it/gitweb?p=msys2;a=tree;f=packages/mingw-w64-mman;h=c2ae1a2d98220dfb3f57d139cf768144b5cb006d;hb=HEAD
ralph engels
2016-10-08 17:20:49 UTC
Permalink
After upgrading to gcc-6.2.0 i can no longer build boost it seems, im
still looking at the log because its rather large, but it does not seem
to contain any usefull messages. Anyone else ran into this problem ? i
guess its related to gcc now defaulting to -std=c++14.
Alexey Pavlov
2016-10-09 09:12:05 UTC
Permalink
Post by ralph engels
After upgrading to gcc-6.2.0 i can no longer build boost it seems, im
still looking at the log because its rather large, but it does not seem
to contain any usefull messages. Anyone else ran into this problem ? i
guess its related to gcc now defaulting to -std=c++14.
I'm update boost to 1.62.0
Regards,
Alexey.
Post by ralph engels
------------------------------------------------------------
------------------
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
https://lists.sourceforge.net/lists/listinfo/msys2-users
ralph engels
2016-10-09 21:32:18 UTC
Permalink
Yup that fixed it, thanks :).

Btw i started ironing out the bugs keeping clang-3.9.0 from building, so
far i succeded in getting lldb building

(the cause was mostly due to the compat guards being for msvc only, and
one missing header in file.cpp),

libstdcxx and libstdcxxabi are still a nogo though.


Den 09-10-2016 kl. 11:12 skrev Alexey Pavlov:

2016-10-08 20:20 GMT+03:00 ralph engels <***@gmail.com
<mailto:***@gmail.com>>:

After upgrading to gcc-6.2.0 i can no longer build boost it seems, im
still looking at the log because its rather large, but it does not seem
to contain any usefull messages. Anyone else ran into this problem ? i
guess its related to gcc now defaulting to -std=c++14.


I'm update boost to 1.62.0
Regards,
Alexey.

------------------------------------------------------------------------------
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
Msys2-***@lists.sourceforge.net
<mailto:Msys2-***@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/msys2-users
<https://lists.sourceforge.net/lists/listinfo/msys2-users>
Ray Donnelly
2016-10-10 11:06:35 UTC
Permalink
Will you make a Pull Request for this work Ralph?
Post by ralph engels
Yup that fixed it, thanks :).
Btw i started ironing out the bugs keeping clang-3.9.0 from building, so far
i succeded in getting lldb building
(the cause was mostly due to the compat guards being for msvc only, and one
missing header in file.cpp),
libstdcxx and libstdcxxabi are still a nogo though.
Post by ralph engels
After upgrading to gcc-6.2.0 i can no longer build boost it seems, im
still looking at the log because its rather large, but it does not seem
to contain any usefull messages. Anyone else ran into this problem ? i
guess its related to gcc now defaulting to -std=c++14.
I'm update boost to 1.62.0
Regards,
Alexey.
Post by ralph engels
------------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/msys2-users
------------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/msys2-users
ralph engels
2016-10-10 16:12:43 UTC
Permalink
E:/MINGW-packages/mingw-w64-clang/src/llvm-3.9.0.src/tools/lldb/source/Host/windows/ProcessRunLock.cpp:18:8:
error: reference to 'PSRWLOCK' is ambiguous
static PSRWLOCK GetLock(lldb::rwlock_t lock)
^~~~~~~~
In file included from
C:/Msys64/mingw32/i686-w64-mingw32/include/winbase.h:35:0,
from
C:/Msys64/mingw32/i686-w64-mingw32/include/windows.h:70,
from
E:/MINGW-packages/mingw-w64-clang/src/llvm-3.9.0.src/tools/lldb/include/lldb/Host/windows/windows.h:18,
from
E:/MINGW-packages/mingw-w64-clang/src/llvm-3.9.0.src/tools/lldb/source/Host/windows/ProcessRunLock.cpp:2:
C:/Msys64/mingw32/i686-w64-mingw32/include/synchapi.h:34:33: note:
candidates are: typedef RTL_SRWLOCK* PSRWLOCK
typedef RTL_SRWLOCK SRWLOCK, *PSRWLOCK;
^~~~~~~~
E:/MINGW-packages/mingw-w64-clang/src/llvm-3.9.0.src/tools/lldb/source/Host/windows/ProcessRunLock.cpp:13:31:
note: typedef {anonymous}::RTL_SRWLOCK*
{anonymous}::PSRWLOCK
typedef RTL_SRWLOCK SRWLOCK, *PSRWLOCK;
^~~~~~~~
E:/MINGW-packages/mingw-w64-clang/src/llvm-3.9.0.src/tools/lldb/source/Host/windows/ProcessRunLock.cpp:
In function 'bool ReadLock(lldb::rwlock_t)':
E:/MINGW-packages/mingw-w64-clang/src/llvm-3.9.0.src/tools/lldb/source/Host/windows/ProcessRunLock.cpp:25:42:
error: 'GetLock' was not declared in this scope
::AcquireSRWLockShared(GetLock(rwlock));
^
E:/MINGW-packages/mingw-w64-clang/src/llvm-3.9.0.src/tools/lldb/source/Host/windows/ProcessRunLock.cpp:
In function 'bool ReadUnlock(lldb::rwlock_t)':
E:/MINGW-packages/mingw-w64-clang/src/llvm-3.9.0.src/tools/lldb/source/Host/windows/ProcessRunLock.cpp:31:42:
error: 'GetLock' was not declared in this scope
::ReleaseSRWLockShared(GetLock(rwlock));
^
E:/MINGW-packages/mingw-w64-clang/src/llvm-3.9.0.src/tools/lldb/source/Host/windows/ProcessRunLock.cpp:
In function 'bool WriteLock(lldb::rwlock_t)':
E:/MINGW-packages/mingw-w64-clang/src/llvm-3.9.0.src/tools/lldb/source/Host/windows/ProcessRunLock.cpp:37:45:
error: 'GetLock' was not declared in this scope
::AcquireSRWLockExclusive(GetLock(rwlock));
^
E:/MINGW-packages/mingw-w64-clang/src/llvm-3.9.0.src/tools/lldb/source/Host/windows/ProcessRunLock.cpp:
In function 'bool WriteTryLock(lldb::rwlock_t)':
E:/MINGW-packages/mingw-w64-clang/src/llvm-3.9.0.src/tools/lldb/source/Host/windows/ProcessRunLock.cpp:43:57:
error: 'GetLock' was not declared in this scope
return !!::TryAcquireSRWLockExclusive(GetLock(rwlock));
^
E:/MINGW-packages/mingw-w64-clang/src/llvm-3.9.0.src/tools/lldb/source/Host/windows/ProcessRunLock.cpp:
In function 'bool WriteUnlock(lldb::rwlock_t)':
E:/MINGW-packages/mingw-w64-clang/src/llvm-3.9.0.src/tools/lldb/source/Host/windows/ProcessRunLock.cpp:48:45:
error: 'GetLock' was not declared in this scope
::ReleaseSRWLockExclusive(GetLock(rwlock));
^
E:/MINGW-packages/mingw-w64-clang/src/llvm-3.9.0.src/tools/lldb/source/Host/windows/ProcessRunLock.cpp:
In constructor 'lldb_private::ProcessRunLock::ProcessRunLock()':
E:/MINGW-packages/mingw-w64-clang/src/llvm-3.9.0.src/tools/lldb/source/Host/windows/ProcessRunLock.cpp:57:20:
error: reference to 'SRWLOCK' is ambiguous
m_rwlock = new SRWLOCK;
^~~~~~~
In file included from
C:/Msys64/mingw32/i686-w64-mingw32/include/winbase.h:35:0,
from
C:/Msys64/mingw32/i686-w64-mingw32/include/windows.h:70,
from
E:/MINGW-packages/mingw-w64-clang/src/llvm-3.9.0.src/tools/lldb/include/lldb/Host/windows/windows.h:18,
from
E:/MINGW-packages/mingw-w64-clang/src/llvm-3.9.0.src/tools/lldb/source/Host/windows/ProcessRunLock.cpp:2:
C:/Msys64/mingw32/i686-w64-mingw32/include/synchapi.h:34:23: note:
candidates are: typedef RTL_SRWLOCK SRWLOCK
typedef RTL_SRWLOCK SRWLOCK, *PSRWLOCK;
^~~~~~~
E:/MINGW-packages/mingw-w64-clang/src/llvm-3.9.0.src/tools/lldb/source/Host/windows/ProcessRunLock.cpp:13:21:
note: typedef {anonymous}::RTL_SRWLOCK {anonymous}::SRWLOCK
typedef RTL_SRWLOCK SRWLOCK, *PSRWLOCK;
^~~~~~~
E:/MINGW-packages/mingw-w64-clang/src/llvm-3.9.0.src/tools/lldb/source/Host/windows/ProcessRunLock.cpp:58:39:
error: 'GetLock' was not declared in this scope
InitializeSRWLock(GetLock(m_rwlock));
^
this is the remaining error building lldb,

GetLock is indeed there but it seems the compiler thinks its not
initialized and bails out.

Also libcxx needs some work to build.
Post by Ray Donnelly
Will you make a Pull Request for this work Ralph?
Post by ralph engels
Yup that fixed it, thanks :).
Btw i started ironing out the bugs keeping clang-3.9.0 from building, so far
i succeded in getting lldb building
(the cause was mostly due to the compat guards being for msvc only, and one
missing header in file.cpp),
libstdcxx and libstdcxxabi are still a nogo though.
Post by ralph engels
After upgrading to gcc-6.2.0 i can no longer build boost it seems, im
still looking at the log because its rather large, but it does not seem
to contain any usefull messages. Anyone else ran into this problem ? i
guess its related to gcc now defaulting to -std=c++14.
I'm update boost to 1.62.0
Regards,
Alexey.
Post by ralph engels
------------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/msys2-users
------------------------------------------------------------------------------
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
https://lists.sourceforge.net/lists/listinfo/msys2-users
Loading...