Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fail run make in centos machine #47

Open
esolera opened this issue Sep 14, 2018 · 3 comments
Open

Fail run make in centos machine #47

esolera opened this issue Sep 14, 2018 · 3 comments

Comments

@esolera
Copy link

esolera commented Sep 14, 2018

Im tried run the make in centos machine but a have the next error. Somebody can help me.

 AR build/linux_x86_64/lib/libasmjit_x86.a
 CC build/linux_x86_64/obj/mem/mmap-linux.o
 CC build/linux_x86_64/obj/mem/mmap-core.o
src/mem/mmap-core.c:31:47: error: ‘MAP_ANONYMOUS’ undeclared here (not in a function)
 static const int METADATA_FLAGS = MAP_FIXED | MAP_ANONYMOUS | MAP_PRIVATE;
                                               ^~~~~~~~~~~~~
make: *** [Makefile:719: build/linux_x86_64/obj/mem/mmap-core.o] Error 1

@michaeljclark
Copy link
Owner

michaeljclark commented Sep 14, 2018 via email

@esolera
Copy link
Author

esolera commented Sep 14, 2018

I have centos6, because my school use this version.

My gcc version is :

gcc (GCC) 7.3.1 20180303 (Red Hat 7.3.1-5)
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

@jmonesti
Copy link

Ungraving this one...

I faced the exact, same problem on our (corporate) rhel6.

I'd suggest
make CC=/path/to/gcc-8.3.0/bin/g++ CXX=/path/to/gcc-8.3.0/bin/g++
as it proved helpful in my case.

On my machine, browsing system header files shows that MAP_ANONYMOUS depends on __USE_MISC

Hope this helps

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants