mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Szabolcs Nagy <nsz@port70.net>
To: musl@lists.openwall.com
Cc: Jeffrey Walton <noloader@gmail.com>
Subject: Re: Running mips64-linux-musl-native from $HOME
Date: Fri, 19 Oct 2018 11:37:48 +0200	[thread overview]
Message-ID: <20181019093748.GX10209@port70.net> (raw)
In-Reply-To: <CAH8yC8=7SKFvVfPOgzW6YttMt7o7b_dgDn799whmHp14m8ww+A@mail.gmail.com>

* Jeffrey Walton <noloader@gmail.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@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"

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@erpro8-fsf1:~$


      reply	other threads:[~2018-10-19  9:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-19  7:11 Jeffrey Walton
2018-10-19  9:37 ` Szabolcs Nagy [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181019093748.GX10209@port70.net \
    --to=nsz@port70.net \
    --cc=musl@lists.openwall.com \
    --cc=noloader@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).