On Sun, Apr 01, 2018 at 08:27:39PM +0200, Graham Crowe wrote:
> After backtracking (using BLFS-8.1 on LFS-8.1) I still get the same
> compilation error. I managed to find a "nasty" workaround, which pass
> compilation (and the the tests), but this suggests something has gone
> amiss with my g++ installation. The workaround  was to use full paths
> for the failing #include_next lines:
> 
>     /usr/include/c++/7.2.0/bits/std_abs.h:
>     [from]
>     '#include_next <stdlib.h>'
>     [to]
>     '#include_next </usr/include/c++/7.2.0/stdlib.h>'
>     
>     /usr/include/c++/7.2.0/cmath:
>     [from]
>     '#include_next <math.h>'
>     [to]
>     '#include_next </usr/include/c++/7.2.0/math.h>'
>     
>     /usr/include/c++/7.2.0/bits/cstdlib:
>     [from]
>     '#include_next <stdlib.h>'
>     [to]
>     '#include_next </usr/include/c++/7.2.0/stdlib.h>'
> 
> This is very ugly, but it worked. I can't figure out what has gone
> wrong, some path or link is broken, is the vague idea I have.
> Incidentally I had tried setting CXX=clang, there the compilation
> worked but the linking failed.
> 
> I can proceed from here but it feels like the '/usr/include/c++'
> installation is slightly broken.
> 
A comment in-passing, before I reply - please don't top-post, and
trim what you are replying to.  And now what I hope will help:

Somebody else had a similar error in February in mesa-17.3.3, and
Pierre thought it was probably caused by reinstalling gcc in BLFS.

http://lists.linuxfromscratch.org/pipermail/blfs-dev/2018-February/033975.html

He suggested running (as root, I've changed the version to match your
gcc) :
/usr/libexec/gcc/x86_64-pc-linux-gnu/7.2.0/install-tools/mkheaders

OTOH, if you haven't reinstalled gcc this probably won't be relevant
and I'm not sure exactly what it would do to your modified headers.

ĸen
-- 
Before the universe began, there was a sound. It went: "One, two, ONE,
two, three, four" [...] The cataclysmic power chord that followed was
the creation of time and space and matter and it does Not Fade Away.
 - wiki.lspace.org/mediawiki/Music_With_Rocks_In


-- 
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to