dslm4515 / Musl-LFS

Linux From Scratch using Musl as Libc
GNU General Public License v3.0
167 stars 21 forks source link

GCC Pass 2 of /tools build fails to Compile #9

Closed dslm4515 closed 5 years ago

dslm4515 commented 5 years ago
make[2]: Entering directory '/mnt/mlfs/sources/gcc-9.1.0/build/build-x86_64-cross-linux-musl/libcpp'
g++  -I../../../libcpp -I. -I../../../libcpp/../include -I../../../libcpp/include   -W -Wall -Wno-narrowing -Wwrite-strings -Wmissing-format-attribute -pedantic -Wno-long-long  -fno-exceptions -fno-rtti -I../../../libcpp -I. -I../../../libcpp/../include -I../../../libcpp/include   -c -o charset.o -MT charset.o -MMD -MP -MF .deps/charset.Tpo ../../../libcpp/charset.c
In file included from ../../../libcpp/charset.c:21:
../../../libcpp/system.h:41:10: fatal error: new: No such file or directory
   41 | #include <new>
      |          ^~~~~
compilation terminated.
make[2]: *** [Makefile:224: charset.o] Error 1
make[2]: Leaving directory '/mnt/mlfs/sources/gcc-9.1.0/build/build-x86_64-cross-linux-musl/libcpp'
make[1]: *** [Makefile:2803: all-build-libcpp] Error 2
make[1]: Leaving directory '/mnt/mlfs/sources/gcc-9.1.0/build'
make: *** [Makefile:958: all] Error 2

Environment:

LC_ALL=POSIX
OLDPWD=/mnt/mlfs/sources/gcc-9.1.0
CC=x86_64-mlfs-linux-musl-gcc
STRIP=x86_64-mlfs-linux-musl-strip
PWD=/mnt/mlfs/sources/gcc-9.1.0/build
HOME=/home/mlfs
RANLIB=x86_64-mlfs-linux-musl-ranlib
AS=x86_64-mlfs-linux-musl-as
AR=x86_64-mlfs-linux-musl-ar
MLFS_HOST=x86_64-cross-linux-musl
MLFS_CPU=x86-64
CXX=x86_64-mlfs-linux-musl-g++
TERM=xterm
SHLVL=1
MLFS_ARCH=x86
PATH=/cross-tools/bin:/tools/bin:/bin:/usr/bin
PS1=\u:\w\n\$ 
MLFS_TARGET=x86_64-mlfs-linux-musl
LD=x86_64-mlfs-linux-musl-ld
MLFS=/mnt/mlfs
_=/usr/bin/env

Last command: make

Host: x86_64-linux-musl target: x86_64-linux-musl

dslm4515 commented 5 years ago

Issue fixed if $PATH is reversed:

PATH=/bin:/usr/bin:/cross-tools/bin:/tools/bin make