Skip to content

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

@pearu

Description

@pearu
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions