Compiling GCC 7.2.0 on sparc-sun-solaris2.10
Kai Ruottu
kai.ruottu@wippies.com
Sat Jan 13 09:08:00 GMT 2018
Luigi30 kirjoitti 13.1.2018 klo 7:48:
> Hi,
>
> I'm trying to compile GCC 7.2.0 on a machine running Solaris 10. I
> currently have the tgcware GCC 5.5 package installed, binutils 2.29, and
> I'm using the GNU linker and assembler.
>
> My compile gets as far as:
>
> Checking multilib configuration for libgcc...
If you didn't use '--disable-multilib' in GCC configure, both 32-bit and
64-bit libraries
will be built if possible. This means you should have the 32-bit and
64-bit standard C
libraries for sparc-sun-solaris2.10 installed on your build system. Not
having both is
a very common mistake nowadays when one needs only the 32-bit ones or
only the
64-bit ones (like in a x86_64-linux-gnu target case).
> Configuring stage 1 in sparc-sun-solaris2.10/libgcc
> [...]
> checking for suffix of object files... configure: error: in
> `/home/luigi/gcc/gcc-obj/sparc-sun-solaris2.10/libgcc':
> configure: error: cannot compute suffix of object files: cannot compile
>
> (I've pasted the rest here: https://pastebin.com/fL8W0gwC)
This didn't look being from the
`/home/luigi/gcc/gcc-obj/sparc-sun-solaris2.10/libgcc'
although there the error happened. Putting the 'config.log' from there
was expected,
not the one in the main build directory...
> config.log says xgcc failed to compile a file containing "int main() {
> return 0; }". If I try to compile a file with xgcc that just contains a
> return 0, I get the following error:
>
> xgcc: error trying to exec 'cc1': execvp: No such file or directory
>
> What am I doing wrong?
If you try the 'xgcc' in the 'gcc' build directory, you must also tell
where the 'cc1' is,
searching it from the current work directory isn't any default, before
and after installation it
will be searched for instance from
'/usr/local/gcc7/libexec/gcc/sparc-sun-solaris2.10/7.2.0'
in your chosen $prefix case. As you can see during the test the search
directories were told
with the '-B<directory>' GCC option :
/home/luigi/gcc/gcc-obj/./gcc/xgcc -B/home/luigi/gcc/gcc-obj/./gcc/ \
-B/usr/local/gcc7/sparc-sun-solaris2.10/bin/
-B/usr/local/gcc7/sparc-sun-solaris2.10/lib/
More information about the Gcc-help
mailing list