On Sat, Feb 24, 2018 at 12:37:35PM -0500, Alain Toussaint wrote:
> Hello,
> 
> For a reminder, this is the issue that I was posting at:
> 
> http://lists.linuxfromscratch.org/pipermail/blfs-dev/2018-February/033969.html
> 

Hi Alain,

I don't think I understand where your problem is.  In that link you
were trying to compile mesa.  I've compiled that several times with
the current instructions (and with llvm, including clang, present).

I've also used what was all-but LFS-8.2/BLFS-8.2, with my full
desktop and various additions, as the host system without seeing
anything like this.

> After basic investigation, I saw the issue being reported there on gcc 
> bugzilla marked as WONTFIX:
> 
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70129
> 

That one talks about the problem existing when a package ends up
using '-isystem /usr/include' (because the package *might* have been
installed in a non-standard place such as /opt ).

It offers workarounds for old cmake - the link says that affected
cross-compiles or a non-default system include directory.

> The issue is with the -isystem /usr/include directive with g++ when it is 
> used to import a C header
> into the C++ program (in my case, it happen during compilation of g++ itself).
> 
> The most comprehensive fix would be to replace every occurance of:
> 
> #include_next <math.h> (or any other C header ending with *.h)
> 
> with
> 
> #include <math>
> using namespace std  (anonymous namespace? I'm not familiar with the concept 
> of namespace).
> 
> But I have to admit this fix would amount to a massive undertaking if only 
> 25% of the softwares in
> LFS/BLFS would be fixed. I'm also thinking about my last few attempts at 
> building LFS with a
> supplementary gcc installation by BLFS method (i.e. C,C++, Fortran, go, objc 
> and objc++) by hand
> under which I let LFS gcc chapter 5 second installation, chapter 6 
> installation and BLFS
> installation enabling bootstraping (I use --enable-bootstrap) because the 
> installation might use
> precompiled headers, for which the fix is reported here:
> 
> http://answers.opencv.org/question/183401/gcc7-stdlibh-no-such-file-or-directory-include_next-stdlib
> h/
> 
> I'll try another build tonight switching all precompiled headers off but 
> still bootstraping the
> build to see if that fix it. Second step would be to drop off the 
> --enable-bootstrap (i.e. --
> disable-bootstrap in all case or at least, during all the LFS build steps).
> 
> Alain

Is this affecting you because you have recompiled gcc in BLFS (to
get extra languages) before you got to mesa ?

ĸen
-- 
Truth, in front of her huge walk-in wardrobe, selected black leather
boots with stiletto heels for such a barefaced truth.
                                     - Unseen Academicals
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to