OT: GCC Installation Help...

Ralf Corsepius corsepiu at faw.uni-ulm.de
Tue Sep 16 16:17:47 UTC 2003


On Tue, 2003-09-16 at 15:20, Christopher Plummer wrote:
> Ok, I think I have GCC setup to crosscompile, and compiled.  However 
> during "make -w install" the install is failing, any ideas?  Reading the 
> output below isn't doing anything for me.  The install-sh script IS 
> there...
> 
> Here is the output from make:
> 
> /bin/sh `case "../../gcc-3.2.3/gcc/../mkinstalldirs" in /*) echo 
> "../../gcc-3.2.3/gcc/../mkinstalldirs" ;; *) echo 
> "../../../gcc-3.2.3/gcc/../mkinstalldirs" ;; esac` 
> /home/kplummer/opt/rtems/share/locale; \
>   test -f /home/kplummer/opt/rtems/share/locale/locale.alias \
>     && orig=/home/kplummer/opt/rtems/share/locale/locale.alias \
>     || orig=../../../gcc-3.2.3/gcc/intl/locale.alias; \
>   temp=/home/kplummer/opt/rtems/share/locale/t-locale.alias; \
>   dest=/home/kplummer/opt/rtems/share/locale/locale.alias; \
>   sed -f ref-add.sed $orig > $temp; \
>   ../../gcc-3.2.3/gcc/../install-sh -c -m 644 $temp $dest; \
>   rm -f $temp; \
> else \
>   : ; \
> fi
> sh: ../../gcc-3.2.3/gcc/../install-sh: not found
> *** Error code 1
> make: Fatal error: Command failed for target `install-exec'
> Current working directory /home/kplummer/Files/SPARC_RTEMS/build/gcc/intl
> *** Error code 1
> make: Fatal error: Command failed for target `intl.install'
> Current working directory /home/kplummer/Files/SPARC_RTEMS/build/gcc
> *** Error code 1
> make: Fatal error: Command failed for target `install-gcc'
Without having looked into the details, 2 issues are coming to my mind:
1. some versions of gcc miss to build their locale dir
$prefix/share/locale and require to make it manually in advance to 
"make install"
2. i18n support on Solaris is troublesome. Switching it off (configure
--disable-nls) when configuring gcc works around these issues.

In case you already haven't done, you also might want to have a look at
the way we invoke "configure" in scripts/gcc3newlib/gccnewlib.add and
scripts/binutils/binutils.add in RTEMS source tree. We apply several
non-standard configuration options for gcc configuration.

Other common issues in building on Solaris:
* Solaris /bin/sh is broken. You might want to use bash or
/usr/xpg4/bin/sh instead (using SHELL=.... and/or CONFIG_SHELL=....)
* You might want to use gmake instead of Solaris make.

Ralf

I see you referring to /opt/rtems and to $HOME/opt/rtems in your
postings. The RTEMS/gcc toolchain binary rpms and the Solaris binary
tar-balls are not relocatible. You must install them under / and may not
install them anywhere else (eg. $(HOME)). If configuring manually you
can use any arbitrary directory to install to (e.g. --prefix=$(HOME) or
--prefix=$(HOME)/rtems).





More information about the users mailing list