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

Cannot find stdlib.h #280

Open
olebole opened this issue Jan 16, 2020 · 3 comments
Open

Cannot find stdlib.h #280

olebole opened this issue Jan 16, 2020 · 3 comments

Comments

@olebole
Copy link
Member

olebole commented Jan 16, 2020

After I stepped over #278 now, I face another compilation issue (with version 3.01):

make -f cpp/tests/CMakeFiles/common_catch_main_object.dir/build.make cpp/tests/CMakeFiles/common_catch_main_object.dir/build
make[3]: Entering directory '/build/purify-3.0.1/obj-x86_64-linux-gnu'
[ 37%] Building CXX object cpp/tests/CMakeFiles/common_catch_main_object.dir/common_catch_main.cc.o
cd /build/purify-3.0.1/obj-x86_64-linux-gnu/cpp/tests && /usr/lib/ccache/c++   -I/build/purify-3.0.1/obj-x86_64-linux-gnu/include -I/build/purify-3.0.1/cpp/tests/.. -I/build/purify-3.0.1/cpp -I/build/purify-3.0.1/obj-x86_64-linux-gnu/cpp/tests/include -isystem /usr/share/cmake/sopt/../../../include  -g -O2 -fdebug-prefix-map=/build/purify-3.0.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -std=gnu++11   -pthread -o CMakeFiles/common_catch_main_object.dir/common_catch_main.cc.o -c /build/purify-3.0.1/cpp/tests/common_catch_main.cc
In file included from /usr/include/c++/9/ext/string_conversions.h:41,
                 from /usr/include/c++/9/bits/basic_string.h:6493,
                 from /usr/include/c++/9/string:55,
                 from /build/purify-3.0.1/obj-x86_64-linux-gnu/include/purify/config.h:31,
                 from /build/purify-3.0.1/cpp/tests/common_catch_main.cc:3:
/usr/include/c++/9/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
   75 | #include_next <stdlib.h>
      |               ^~~~~~~~~~
compilation terminated.
make[3]: *** [cpp/tests/CMakeFiles/common_catch_main_object.dir/build.make:66: cpp/tests/CMakeFiles/common_catch_main_object.dir/common_catch_main.cc.o] Error 1
make[3]: Leaving directory '/build/purify-3.0.1/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:786: cpp/tests/CMakeFiles/common_catch_main_object.dir/all] Error 2
make[2]: Leaving directory '/build/purify-3.0.1/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:144: all] Error 2
make[1]: Leaving directory '/build/purify-3.0.1/obj-x86_64-linux-gnu'

On some other places I found (OxfordSKA/OSKAR#10) that the -isystem flag is somehow wrong; however I have no idea how to remove it.
libstdc++-9-dev is ofcourse completely installed.
Any hint how to proceed?

@olebole
Copy link
Member Author

olebole commented Feb 6, 2020

Do you have any ideas here? This problem currently prevents me from updating purify. It would however be great if we could have the new version in Debian before the end of the month so that it could still go into Ubuntu 20.04 LTS.

@mohamedabdallah1996
Copy link

I have the same problem. Did you come with a solution?

@olebole
Copy link
Member Author

olebole commented Aug 24, 2021

Unfortunately not. Because of this, we are on Debian still at version 2.0.0.

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