Jeffrey Walton
2018-10-19 07:11:06 UTC
Hi Everyone,
I need a little help is pinpoint my mistake below. I think it may have
to do with one of the relative paths below.
I am working on GCC22 from the compile farm. I started at
https://musl.cc/. I downloaded mips64-linux-musl-native.tgz and
unpacked in $HOME with tar xzf mips64-linux-musl-native.tgz:
$ ls mips*
mips64-linux-musl-native.tgz
mips64-linux-musl-native
I attempt to compile a program:
$ cat test.cxx
#include <wchar.h>
int main(int argc, char* argv[])
{
return 0;
}
It results in:
$ ~/mips64-linux-musl-native/bin/g++ test.cxx -o
test.exetest.cxx:1:10: fatal error: wchar.h: No such file or directory
#include <wchar.h>
^~~~~~~~~
compilation terminated.
It looks like the header is present:
$ find ~/mips64-linux-musl-native/ -name 'wchar.h'
/home/noloader/mips64-linux-musl-native/include/wchar.h
/home/noloader/mips64-linux-musl-native/include/c++/8.2.0/tr1/wchar.h
If I am parsing the GCC paths used below, it looks like there is an
extra "../" in "../../../../".
I am guessing I missed a step somewhere along the line. Would anyone
be able to point out my mistake?
Jeff
==========
***@erpro8-fsf1:~$ ~/mips64-linux-musl-native/bin/g++ -v test.cxx
-o test.exe
Using built-in specs.
COLLECT_GCC=/home/noloader/mips64-linux-musl-native/bin/g++
COLLECT_LTO_WRAPPER=/home/noloader/mips64-linux-musl-native/bin/../libexec/gcc/mips64-linux-musl/8.2.0/lto-wrapper
Target: mips64-linux-musl
Configured with: ../src_gcc/configure --enable-languages=c,c++,fortran
--with-abi=64 CC='mips64-linux-musl-gcc -static --static'
CXX='mips64-linux-musl-g++ -static --static'
FC='mips64-linux-musl-gfortran -static --static' CFLAGS='-g0
-Os'CXXFLAGS='-g0 -Os' FFLAGS='-g0 -Os' LDFLAGS='-s -static --static'
--disable-nls--disable-werror --target=mips64-linux-musl --prefix=
--libdir=/lib --disable-multilib --with-sysroot=/ --enable-tls
--disable-libmudflap --disable-libsanitizer
--disable-gnu-indirect-function --disable-libmpx
--enable-deterministic-archives --enable-libstdcxx-time
--disable-libquadmath --disable-libquadmath-support
--disable-decimal-float --host=mips64-linux-musl
Thread model: posix
gcc version 8.2.0 (GCC)
COLLECT_GCC_OPTIONS='-v' '-o' 'test.exe' '-shared-libgcc' '-mabi=64'
'-mllsc' '-mno-shared' '-EB'
/home/noloader/mips64-linux-musl-native/bin/../libexec/gcc/mips64-linux-musl/8.2.0/cc1plus
-quiet -v -iprefix
/home/noloader/mips64-linux-musl-native/bin/../lib/gcc/mips64-linux-musl/8.2.0/
-isysroot /home/noloader/mips64-linux-musl-native/bin/../
-D_GNU_SOURCE test.cxx -meb -quiet -dumpbase test.cxx -mabi=64 -mllsc
-mno-shared -auxbase test -version -o /tmp/ccADIJOe.s
GNU C++14 (GCC) version 8.2.0 (mips64-linux-musl)
compiled by GNU C version 8.2.0, GMP version 6.1.2, MPFR
version 4.0.1,MPC version 1.1.0, isl version none
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory
"/home/noloader/mips64-linux-musl-native/bin/../lib/gcc/mips64-linux-musl/8.2.0/../../../../mips64-linux-musl/include"
ignoring duplicate directory
"/home/noloader/mips64-linux-musl-native/bin/../lib/gcc/../../lib/gcc/mips64-linux-musl/8.2.0/../../../../include/c++/8.2.0"
ignoring duplicate directory
"/home/noloader/mips64-linux-musl-native/bin/../lib/gcc/../../lib/gcc/mips64-linux-musl/8.2.0/../../../../include/c++/8.2.0/mips64-linux-musl"
ignoring duplicate directory
"/home/noloader/mips64-linux-musl-native/bin/../lib/gcc/../../lib/gcc/mips64-linux-musl/8.2.0/../../../../include/c++/8.2.0/backward"
ignoring nonexistent directory
"/home/noloader/mips64-linux-musl-native/bin/../usr/local/include"
ignoring nonexistent directory
"/home/noloader/mips64-linux-musl-native/bin/../lib/gcc/../../lib/gcc/mips64-linux-musl/8.2.0/../../../../mips64-linux-musl/include"
ignoring nonexistent directory
"/home/noloader/mips64-linux-musl-native/bin/../usr/include"
ignoring duplicate directory
"/home/noloader/mips64-linux-musl-native/bin/../lib/gcc/../../lib/gcc/mips64-linux-musl/8.2.0/include"
#include "..." search starts here:
#include <...> search starts here:
/home/noloader/mips64-linux-musl-native/bin/../lib/gcc/mips64-linux-musl/8.2.0/../../../../include/c++/8.2.0
/home/noloader/mips64-linux-musl-native/bin/../lib/gcc/mips64-linux-musl/8.2.0/../../../../include/c++/8.2.0/mips64-linux-musl
/home/noloader/mips64-linux-musl-native/bin/../lib/gcc/mips64-linux-musl/8.2.0/../../../../include/c++/8.2.0/backward
/home/noloader/mips64-linux-musl-native/bin/../lib/gcc/mips64-linux-musl/8.2.0/include
End of search list.
GNU C++14 (GCC) version 8.2.0 (mips64-linux-musl)
compiled by GNU C version 8.2.0, GMP version 6.1.2, MPFR
version 4.0.1,MPC version 1.1.0, isl version none
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 3e27b6aaa4f777651d279faaea114791
test.cxx:1:10: fatal error: wchar.h: No such file or directory
#include <wchar.h>
^~~~~~~~~
compilation terminated.
***@erpro8-fsf1:~$
I need a little help is pinpoint my mistake below. I think it may have
to do with one of the relative paths below.
I am working on GCC22 from the compile farm. I started at
https://musl.cc/. I downloaded mips64-linux-musl-native.tgz and
unpacked in $HOME with tar xzf mips64-linux-musl-native.tgz:
$ ls mips*
mips64-linux-musl-native.tgz
mips64-linux-musl-native
I attempt to compile a program:
$ cat test.cxx
#include <wchar.h>
int main(int argc, char* argv[])
{
return 0;
}
It results in:
$ ~/mips64-linux-musl-native/bin/g++ test.cxx -o
test.exetest.cxx:1:10: fatal error: wchar.h: No such file or directory
#include <wchar.h>
^~~~~~~~~
compilation terminated.
It looks like the header is present:
$ find ~/mips64-linux-musl-native/ -name 'wchar.h'
/home/noloader/mips64-linux-musl-native/include/wchar.h
/home/noloader/mips64-linux-musl-native/include/c++/8.2.0/tr1/wchar.h
If I am parsing the GCC paths used below, it looks like there is an
extra "../" in "../../../../".
I am guessing I missed a step somewhere along the line. Would anyone
be able to point out my mistake?
Jeff
==========
***@erpro8-fsf1:~$ ~/mips64-linux-musl-native/bin/g++ -v test.cxx
-o test.exe
Using built-in specs.
COLLECT_GCC=/home/noloader/mips64-linux-musl-native/bin/g++
COLLECT_LTO_WRAPPER=/home/noloader/mips64-linux-musl-native/bin/../libexec/gcc/mips64-linux-musl/8.2.0/lto-wrapper
Target: mips64-linux-musl
Configured with: ../src_gcc/configure --enable-languages=c,c++,fortran
--with-abi=64 CC='mips64-linux-musl-gcc -static --static'
CXX='mips64-linux-musl-g++ -static --static'
FC='mips64-linux-musl-gfortran -static --static' CFLAGS='-g0
-Os'CXXFLAGS='-g0 -Os' FFLAGS='-g0 -Os' LDFLAGS='-s -static --static'
--disable-nls--disable-werror --target=mips64-linux-musl --prefix=
--libdir=/lib --disable-multilib --with-sysroot=/ --enable-tls
--disable-libmudflap --disable-libsanitizer
--disable-gnu-indirect-function --disable-libmpx
--enable-deterministic-archives --enable-libstdcxx-time
--disable-libquadmath --disable-libquadmath-support
--disable-decimal-float --host=mips64-linux-musl
Thread model: posix
gcc version 8.2.0 (GCC)
COLLECT_GCC_OPTIONS='-v' '-o' 'test.exe' '-shared-libgcc' '-mabi=64'
'-mllsc' '-mno-shared' '-EB'
/home/noloader/mips64-linux-musl-native/bin/../libexec/gcc/mips64-linux-musl/8.2.0/cc1plus
-quiet -v -iprefix
/home/noloader/mips64-linux-musl-native/bin/../lib/gcc/mips64-linux-musl/8.2.0/
-isysroot /home/noloader/mips64-linux-musl-native/bin/../
-D_GNU_SOURCE test.cxx -meb -quiet -dumpbase test.cxx -mabi=64 -mllsc
-mno-shared -auxbase test -version -o /tmp/ccADIJOe.s
GNU C++14 (GCC) version 8.2.0 (mips64-linux-musl)
compiled by GNU C version 8.2.0, GMP version 6.1.2, MPFR
version 4.0.1,MPC version 1.1.0, isl version none
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory
"/home/noloader/mips64-linux-musl-native/bin/../lib/gcc/mips64-linux-musl/8.2.0/../../../../mips64-linux-musl/include"
ignoring duplicate directory
"/home/noloader/mips64-linux-musl-native/bin/../lib/gcc/../../lib/gcc/mips64-linux-musl/8.2.0/../../../../include/c++/8.2.0"
ignoring duplicate directory
"/home/noloader/mips64-linux-musl-native/bin/../lib/gcc/../../lib/gcc/mips64-linux-musl/8.2.0/../../../../include/c++/8.2.0/mips64-linux-musl"
ignoring duplicate directory
"/home/noloader/mips64-linux-musl-native/bin/../lib/gcc/../../lib/gcc/mips64-linux-musl/8.2.0/../../../../include/c++/8.2.0/backward"
ignoring nonexistent directory
"/home/noloader/mips64-linux-musl-native/bin/../usr/local/include"
ignoring nonexistent directory
"/home/noloader/mips64-linux-musl-native/bin/../lib/gcc/../../lib/gcc/mips64-linux-musl/8.2.0/../../../../mips64-linux-musl/include"
ignoring nonexistent directory
"/home/noloader/mips64-linux-musl-native/bin/../usr/include"
ignoring duplicate directory
"/home/noloader/mips64-linux-musl-native/bin/../lib/gcc/../../lib/gcc/mips64-linux-musl/8.2.0/include"
#include "..." search starts here:
#include <...> search starts here:
/home/noloader/mips64-linux-musl-native/bin/../lib/gcc/mips64-linux-musl/8.2.0/../../../../include/c++/8.2.0
/home/noloader/mips64-linux-musl-native/bin/../lib/gcc/mips64-linux-musl/8.2.0/../../../../include/c++/8.2.0/mips64-linux-musl
/home/noloader/mips64-linux-musl-native/bin/../lib/gcc/mips64-linux-musl/8.2.0/../../../../include/c++/8.2.0/backward
/home/noloader/mips64-linux-musl-native/bin/../lib/gcc/mips64-linux-musl/8.2.0/include
End of search list.
GNU C++14 (GCC) version 8.2.0 (mips64-linux-musl)
compiled by GNU C version 8.2.0, GMP version 6.1.2, MPFR
version 4.0.1,MPC version 1.1.0, isl version none
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 3e27b6aaa4f777651d279faaea114791
test.cxx:1:10: fatal error: wchar.h: No such file or directory
#include <wchar.h>
^~~~~~~~~
compilation terminated.
***@erpro8-fsf1:~$