https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95700

--- Comment #20 from vvinayag at arm dot com ---
(In reply to vvinayag from comment #18)
> (In reply to Ilya Leoshkevich from comment #17)
> > Created attachment 48917 [details]
> > aarch64 native build fix
> > 
> > Could you please try the attached patch? It fixed the issue for me, and
> > survived bootstrap/regtest on x86_64.
> 
> Hi Ilya,
> 
> I am testing this patch now. Will update when done.
> 
> Also, I was a bit incorrect when I mentioned that this is for building the
> compiler on an aarch64-none-linux-gnu machine. The build machine is actually
> x86_64.
> BUILD: x86_64/linux
> HOST: aarch64-none-linux-gnu
> TARGET: aarch64-none-linux-gnu
> Sorry for the confusion.

The patch did not fix the issue for me, unfortunately, because CXX_FOR_BUILD is
still set to 'g++'.
But to make it work, I added the line: CXX="$CXX -std=c++11", as shown in the
file I have attached.
With this additional line in both configure and configure.ac, CXX_FOR_BUILD is
set to 'g++ -std=c++11', and the build succeeded for me. However, I do not know
whether that is the right solution.

Reply via email to