-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Compiling on Arch Linux fails: "Allocator.h:639:32: error: no matching member function to 'alloc' #358
Comments
What is your version of clang? |
I've updated the issue above. |
I was able to compile by making the making the following changes (quickfix): ./CMakeLists.txt
./libs/utils/CMakeLists.txt
Used this build script: I'm not entirely sure if the added #!/bin/sh
bd=${PWD}
id=${bd}/install
export CC=/usr/bin/clang
export CXX=/usr/bin/clang++
if [ ! -d my-build ] ; then
mkdir my-build
fi
cd my-build
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=${id} \
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
-DCMAKE_CXX_FLAGS="-stdlib=libc++" \
..
if [ $? -ne 0 ] ; then
echo "Failed to configure.";
exit;
fi
cmake --build . |
This fix won't work, we want to make sure we always compile with |
@romainguy I understand; until then this gives people the ability to compile the library and have a look at the samples. In the end you want this library to compile on any platform that it supports. I'm happy to help / test a bit more. |
I just pulled and built for debug and release and this issue no longer occurs for me on Arch. |
Describe the bug
When compiling on Linux arch680 4.18.12-arch1-1-ARCH an error is caused in Allocator.h.
See Additional context below.
To Reproduce
Expected behavior
Successfull compilation.
Desktop (please complete the following information):
Additional context
Installed this lib-c++ package
Error happens in Allocator:L639
This issue seems to be related. That was "solved" w/o further explanation
Output:
Clang info:
The text was updated successfully, but these errors were encountered: