David Bernado
2018-03-15 04:34:57 UTC
Hello,
I am currently in the process of a Linux From Scratch build as a school project, mainly following the development book. Everything went well thus far until I had to compile and install libstdc++. Upon running the "make" command after creating the build directory and config file, it throws this error:
In file included from /mnt/lfs/sources/gcc-7.3.0/build-std/include/x86_64-lfs-linux-gnu/bits/c++config.h:533:0,
from /mnt/lfs/sources/gcc-7.3.0/libstdc++-v3/libsupc++/cxxabi.h:49,
from ../../libstdc++-v3/libsupc++/atexit_thread.cc:24:
/mnt/lfs/sources/gcc-7.3.0/build-std/include/x86_64-lfs-linux-gnu/bits/os_defines.h:44:19: error: missing binary operator before token "("
#if __GLIBC_PREREQ(2,15) && defined(_GNU_SOURCE)
This is one of 4 similar errors thrown up at compile time, I assume at other places in the package where os_defines.h is referenced. Has anyone ran into this error and/or knows how to fix it? A quick response would be greatly appreciated, made some pretty stupid mistakes in previous attempts at this and deadline is approaching very soon. ð
Thanks,
David
I am currently in the process of a Linux From Scratch build as a school project, mainly following the development book. Everything went well thus far until I had to compile and install libstdc++. Upon running the "make" command after creating the build directory and config file, it throws this error:
In file included from /mnt/lfs/sources/gcc-7.3.0/build-std/include/x86_64-lfs-linux-gnu/bits/c++config.h:533:0,
from /mnt/lfs/sources/gcc-7.3.0/libstdc++-v3/libsupc++/cxxabi.h:49,
from ../../libstdc++-v3/libsupc++/atexit_thread.cc:24:
/mnt/lfs/sources/gcc-7.3.0/build-std/include/x86_64-lfs-linux-gnu/bits/os_defines.h:44:19: error: missing binary operator before token "("
#if __GLIBC_PREREQ(2,15) && defined(_GNU_SOURCE)
This is one of 4 similar errors thrown up at compile time, I assume at other places in the package where os_defines.h is referenced. Has anyone ran into this error and/or knows how to fix it? A quick response would be greatly appreciated, made some pretty stupid mistakes in previous attempts at this and deadline is approaching very soon. ð
Thanks,
David