Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Make fails #1

Open
tamal001 opened this issue May 12, 2021 · 4 comments
Open

Make fails #1

tamal001 opened this issue May 12, 2021 · 4 comments

Comments

@tamal001
Copy link

tamal001 commented May 12, 2021

With autoreconf -iv, I'm getting the following output:
autoreconf: Entering directory .' autoreconf: configure.ac: not using Gettext autoreconf: configure.ac: not using aclocal autoreconf: configure.ac: tracing autoreconf: configure.ac: not using Libtool autoreconf: running: /usr/bin/autoconf autoreconf: configure.ac: not using Autoheader autoreconf: configure.ac: not using Automake autoreconf: Leaving directory .'

When I try to compile the whole package, "../configure --enable-optimize --disable-debug" passes with following output:
config.status: creating Makefile

rma (sequential) version 0.3
Compiler C..........: clang -DHAVE_LIBNUMA -DHAVE_LIBPAPI -DNDEBUG -Wall -Wno-sign-compare -O3 -march=native -mtune=native -fno-stack-protector
Compiler C++........: clang++ -std=gnu++17 -DHAVE_LIBNUMA -DHAVE_LIBPAPI -DNDEBUG -Wall -Wno-sign-compare -Wno-overloaded-virtual -O3 -march=native -mtune=native -fno-stack-protector
Linker..............: -ldl -lpapi -lnuma -lpthread -latomic
Enable assertions...: no
Enable debug........: no
Enable optimize.....: yes

However, "make -j" shows 12 errors.
Is this because of some changed configuration I'm using or some library is missing?

@whatsthecraic
Copy link

Hi there,
I'm not sure, can you post the output of make?

@tamal001
Copy link
Author

After running the make in su mode, number of error decreases. Now the error is:
clang++ -std=gnu++17 -stdlib=libc++ -c -DHAVE_LIBNUMA -DHAVE_LIBPAPI -DNDEBUG -I../ -Wall -Wno-sign-compare -Wno-overloaded-virtual -O3 -march=native -mtune=native -fno-stack-protector ../pma/driver.cpp -o objects/pma/driver.o
../rewired_memory.cpp:73:91: error: use of undeclared identifier 'MFD_HUGETLB'
m_handle_physical_memory = memfd_create(id.c_str(), configuration::use_huge_pages() ? MFD_HUGETLB : 0); // miscellaneous.hpp
^
../abtree/dense_array.cpp:178:57: error: use of undeclared identifier 'MFD_HUGETLB'
int memfd_flags = configuration::use_huge_pages() ? MFD_HUGETLB : 0;

@whatsthecraic
Copy link

whatsthecraic commented May 12, 2021

Hi Tamal,

thanks for the response.
MFD_HUGETLB is Linux 4.14+ and it should be defined in the file <linux/memfd.h>, typically /usr/include/linux/memfd.h. Can you confirm whether you are using an earlier kernel?

You can define the macro on your own just to get rid of the error:
#define MFD_HUGETLB 0x0004U

What other errors do you get outside the root environment ? :-)

@tamal001
Copy link
Author

Thanks a lot. Replacing MFD_HUGETLB with 0x4 works fine.

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

No branches or pull requests

2 participants