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

error: function-like macro '__GLIBC_USE' is not defined #9

Open
pearu opened this issue Aug 27, 2019 · 1 comment
Open

error: function-like macro '__GLIBC_USE' is not defined #9

pearu opened this issue Aug 27, 2019 · 1 comment
Labels
with a solution Issue has a solution

Comments

@pearu
Copy link
Contributor

pearu commented Aug 27, 2019

29: In file included from $PREFIX/lib/clang/8.0.1/include/__clang_cuda_runtime_wrapper.h:50:
29: In file included from /usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/cmath:45:
29: /usr/include/math.h:66:23: error: function-like macro '__GLIBC_USE' is not defined
29: #if __HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)

Solution A:

export CFLAGS="$CFLAGS -D__GLIBC_USE\(...\)=0"

Although, it is better to get the include paths right:

    GCCVERSION=$(basename $(dirname $($GXX -print-libgcc-file-name)))
    export CPLUS_INCLUDE_PATH=$PREFIX/$HOST/include/c++/$GCCVERSION:$PREFIX/lib/gcc/$HOST/$GCCVERSION/include
@pearu pearu added the with a solution Issue has a solution label Aug 27, 2019
@niexin-dev
Copy link

Thank you very much

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

No branches or pull requests

2 participants