Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20181019093748.GX10209@port70.net>
Date: Fri, 19 Oct 2018 11:37:48 +0200
From: Szabolcs Nagy <nsz@...t70.net>
To: musl@...ts.openwall.com
Cc: Jeffrey Walton <noloader@...il.com>
Subject: Re: Running mips64-linux-musl-native from $HOME

* Jeffrey Walton <noloader@...il.com> [2018-10-19 03:11:06 -0400]:
> 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
> 

i think if you

ln -s . /home/noloader/mips64-linux-musl-native/usr

then it would work.

> 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
> 
> ==========
> 
> noloader@...ro8-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"

seems to search for $PREFIX/usr/include but not $PREFIX/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.
> noloader@...ro8-fsf1:~$

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.