Hi,

I try to cross-compile LibGOMP (OpenMP) for Rumpkernel from GCC 4.9 sources.
Doing this I run into following issue described below related to the GCC
Wrapper Script.

The configure script supplied with the GCC sources (Branch: gcc-4_9-branch)
is calling x86_64-rumprun-netbsd-gcc -print-search-dirs to get the dir of
the libs


*Which outputs:*

> install: /usr/lib/gcc/x86_64-linux-gnu/4.9/
> programs:
> =/usr/lib/gcc/x86_64-linux-gnu/4.9/:/usr/lib/gcc/x86_64-linux-gnu/4.9/
> [*snip* many lib paths *snip* ]
>
> *cc: error: a.out: No such file or directory*
> *cc: fatal error: no input files**compilation terminated.*


*Issue:*

   - For some reason the libs (/rumprun/rumprun/lib) are missing that are
   included through the GCC spec file in the wrapper. It only shows my local
   libraries.
   - I get an error at the end resulting in an error code aborting the
   execution configure script

*My attempt to fix:*

   - As an "quick fix" I tried to add a third state (beside
   ferment/compile) into the script (printdir) which called

/tmp/rumprun/platform/hw/rumptools/bin/x86_64--netbsd-gcc
> -no-integrated-cpp  -specs=/tmp/rumprun/app-tools/specs-compile_or_ferment
> --print-search-dirs


   - It fixed the error at the end BUT the libs from rumprun were still
   missing in the listing
   - I failed to integrate it into the script without breaking anything
   else :/

*Question*

   - How could this issue be fixed ?
   - How can this fix be integrated into the script without breaking
   anything else?

Thanks! :)

- Vincent

Reply via email to