rtems4.10 / rtems4.11 fails to build on CentOS6: configure: error: no acceptable cc found in $PATH

Ole Benny Hansen ole at fam-hansen-brh.dk
Tue Sep 20 13:35:19 UTC 2011


Hello rtems-users

I am trying to setup rtems4.10 and rtems4.11(4.10.99) on my newly built 
host-machine, which has CentOS6 64-bit installed.

I installed tools for m68k, arm, powerpc and i386 by using YUM and the 
instructions for this, and it seemed to complete without any problems.

I am using a script to setup PATH-environment before configuring and 
trying to run 'make':

=== rtems_env.sh :
[ole at CentOS6 rtems-4.10-psim]$ cat rtems_env.sh
export 
PATH=/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/ole/bin
export PATH=/opt/rtems-4.10/powerpc-rtems4.10/bin:/opt/rtems-4.10/bin:$PATH
export w=$HOME/Development/Rtems/Rtems-4.10-work/rtems-4.10-psim

=== calling script and checking PATH-variable:
[ole at CentOS6 rtems-4.10-psim]$ source rtems_env.sh
[ole at CentOS6 rtems-4.10-psim]$ echo $PATH
/opt/rtems-4.10/powerpc-rtems4.10/bin:/opt/rtems-4.10/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/ole/bin

=== checking powerpc - tools:
[ole at CentOS6 rtems-4.10-psim]$ powerpc-rtems4.10-
powerpc-rtems4.10-addr2line  powerpc-rtems4.10-gcc-4.4.6  
powerpc-rtems4.10-objcopy
powerpc-rtems4.10-ar         powerpc-rtems4.10-gccbug     
powerpc-rtems4.10-objdump
powerpc-rtems4.10-as         powerpc-rtems4.10-gcov       
powerpc-rtems4.10-ranlib
powerpc-rtems4.10-c++        powerpc-rtems4.10-gdb        
powerpc-rtems4.10-readelf
powerpc-rtems4.10-c++filt    powerpc-rtems4.10-gdbtui     
powerpc-rtems4.10-run
powerpc-rtems4.10-cpp        powerpc-rtems4.10-gprof      
powerpc-rtems4.10-size
powerpc-rtems4.10-g++        powerpc-rtems4.10-ld         
powerpc-rtems4.10-strings
powerpc-rtems4.10-gcc        powerpc-rtems4.10-nm         
powerpc-rtems4.10-strip

=== Calling powerpc-rtems4.10-gcc -v :
[ole at CentOS6 rtems-4.10-psim]$ powerpc-rtems4.10-gcc -v
Using built-in specs.
Target: powerpc-rtems4.10
Configured with: ../gcc-4.4.6/configure --prefix=/opt/rtems-4.10 
--bindir=/opt/rtems-4.10/bin --exec_prefix=/opt/rtems-4.10 
--includedir=/opt/rtems-4.10/include --libdir=/opt/rtems-4.10/lib 
--libexecdir=/opt/rtems-4.10/libexec --mandir=/opt/rtems-4.10/share/man 
--infodir=/opt/rtems-4.10/share/info --datadir=/opt/rtems-4.10/share 
--build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu 
--target=powerpc-rtems4.10 --disable-libstdcxx-pch --with-gnu-as 
--with-gnu-ld --verbose --with-newlib --with-system-zlib --disable-nls 
--without-included-gettext --disable-win32-registry 
--enable-version-specific-runtime-libs --enable-threads --disable-lto 
--disable-plugin --enable-newlib-io-c99-formats --enable-languages=c,c++
Thread model: rtems
gcc version 4.4.6 20110416 (RTEMS gcc-4.4.6-3.el6/newlib-1.18.0-26.el6) 
(GCC)
[ole at CentOS6 rtems-4.10-psim]$

So the tools seems to have been installed correct.......

=== script used for calling configure:

[ole at CentOS6 rtems-4.10-psim]$ cat conf.sh
sh ../rtems/configure --target=powerpc-rtems4.10 --enable-rtemsbsp=psim 
--enable-cxx --enable-tests=samples
[ole at CentOS6 rtems-4.10-psim]$

Now trying to call 'configure' yields and error as ordinary user:

[ole at CentOS6 rtems-4.10-psim]$ sh conf.sh
checking for gmake... gmake
checking for RTEMS Version... 4.10.1
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... powerpc-unknown-rtems4.10
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether gmake sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
configure: creating ./config.status
configure: configuring in ./tools/build
configure: running /bin/sh '../../../rtems/tools/build/configure' 
'--prefix=/opt/rtems-4.10' '--host=x86_64-unknown-linux-gnu' 
'--build=x86_64-unknown-linux-gnu'  '--enable-rtemsbsp=psim' 
'--enable-cxx' '--enable-tests=samples' '--target=powerpc-rtems4.10'  
'--cache-file=/dev/null' '--srcdir=../../../rtems/tools/build'
checking for gmake... gmake
checking for RTEMS Version... 4.10.1
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether gmake sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for x86_64-unknown-linux-gnu-gcc... no
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in 
`/home/ole/Development/Rtems/Rtems-4.10-work/rtems-4.10-psim/tools/build':
configure: error: C compiler cannot create executables
See `config.log' for more details
configure: error: /bin/sh '../../../rtems/tools/build/configure' failed 
for tools/build
[ole at CentOS6 rtems-4.10-psim]$ ^C

Calling as root seems to work for configure:

[ole at CentOS6 rtems-4.10-psim]$ sudo sh conf.sh
checking for gmake... gmake
checking for RTEMS Version... 4.10.1
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... powerpc-unknown-rtems4.10
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether gmake sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
configure: creating ./config.status
configure: configuring in ./tools/build
configure: running /bin/sh '../../../rtems/tools/build/configure' 
'--prefix=/opt/rtems-4.10' '--host=x86_64-unknown-linux-gnu' 
'--build=x86_64-unknown-linux-gnu'  '--enable-rtemsbsp=psim' 
'--enable-cxx' '--enable-tests=samples' '--target=powerpc-rtems4.10'  
'--cache-file=/dev/null' '--srcdir=../../../rtems/tools/build'
checking for gmake... gmake
checking for RTEMS Version... 4.10.1
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether gmake sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for x86_64-unknown-linux-gnu-gcc... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by gmake... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking for strerror... yes
checking for strtol... yes
checking for bash... /bin/bash
configure: creating ./config.status
config.status: creating Makefile
config.status: creating install-if-change
config.status: creating config.h
config.status: executing depfiles commands
configure: configuring in ./tools/cpu
configure: running /bin/sh '../../../rtems/tools/cpu/configure' 
'--prefix=/opt/rtems-4.10' '--host=x86_64-unknown-linux-gnu' 
'--build=x86_64-unknown-linux-gnu'  '--enable-rtemsbsp=psim' 
'--enable-cxx' '--enable-tests=samples' '--target=powerpc-rtems4.10'  
'--cache-file=/dev/null' '--srcdir=../../../rtems/tools/cpu'
checking for gmake... gmake
checking for RTEMS Version... 4.10.1
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... powerpc-unknown-rtems4.10
checking rtems target cpu... powerpc
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether gmake sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for bash... /bin/bash
configure: creating ./config.status
config.status: creating Makefile
=== configuring in generic 
(/home/ole/Development/Rtems/Rtems-4.10-work/rtems-4.10-psim/tools/cpu/generic)
configure: running /bin/sh ../../../../rtems/tools/cpu/generic/configure 
--disable-option-checking '--prefix=/opt/rtems-4.10'  
'--host=x86_64-unknown-linux-gnu' '--build=x86_64-unknown-linux-gnu' 
'--enable-rtemsbsp=psim' '--enable-cxx' '--enable-tests=samples' 
'--target=powerpc-rtems4.10' 'build_alias=x86_64-unknown-linux-gnu' 
'host_alias=x86_64-unknown-linux-gnu' 'target_alias=powerpc-rtems4.10' 
--cache-file=/dev/null --srcdir=../../../../rtems/tools/cpu/generic
checking for gmake... gmake
checking for RTEMS Version... 4.10.1
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... powerpc-unknown-rtems4.10
checking rtems target cpu... powerpc
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether gmake sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for bash... /bin/bash
configure: creating ./config.status
config.status: creating Makefile
config.status: creating size_rtems
configure: configuring in ./testsuites/tools
configure: running /bin/sh '../../../rtems/testsuites/tools/configure' 
'--prefix=/opt/rtems-4.10' '--host=x86_64-unknown-linux-gnu' 
'--build=x86_64-unknown-linux-gnu'  '--enable-rtemsbsp=psim' 
'--enable-cxx' '--enable-tests=samples' '--target=powerpc-rtems4.10'  
'--cache-file=/dev/null' '--srcdir=../../../rtems/testsuites/tools'
checking for gmake... gmake
checking for RTEMS Version... 4.10.1
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... powerpc-unknown-rtems4.10
checking rtems target cpu... powerpc
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether gmake sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
configure: creating ./config.status
config.status: creating Makefile
=== configuring in generic 
(/home/ole/Development/Rtems/Rtems-4.10-work/rtems-4.10-psim/testsuites/tools/generic)
configure: running /bin/sh 
../../../../rtems/testsuites/tools/generic/configure 
--disable-option-checking '--prefix=/opt/rtems-4.10'  
'--host=x86_64-unknown-linux-gnu' '--build=x86_64-unknown-linux-gnu' 
'--enable-rtemsbsp=psim' '--enable-cxx' '--enable-tests=samples' 
'--target=powerpc-rtems4.10' 'build_alias=x86_64-unknown-linux-gnu' 
'host_alias=x86_64-unknown-linux-gnu' 'target_alias=powerpc-rtems4.10' 
--cache-file=/dev/null --srcdir=../../../../rtems/testsuites/tools/generic
checking for gmake... gmake
checking for RTEMS Version... 4.10.1
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... powerpc-unknown-rtems4.10
checking rtems target cpu... powerpc
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether gmake sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for bash... /bin/bash
configure: creating ./config.status
config.status: creating Makefile
config.status: creating difftest
config.status: creating sorttimes
configure: configuring in powerpc-rtems4.10/c
configure: running /bin/sh '../../../rtems/c/configure' 
'--prefix=/opt/rtems-4.10' '--host=powerpc-rtems4.10' 
'--build=x86_64-unknown-linux-gnu' '--target=powerpc-rtems4.10'  
'--enable-rtemsbsp=psim' '--enable-cxx' '--enable-tests=samples' 
'--with-target-subdir=powerpc-rtems4.10' 
'--exec-prefix=/opt/rtems-4.10/powerpc-rtems4.10' 
'--includedir=/opt/rtems-4.10/powerpc-rtems4.10/include'  
'--cache-file=/dev/null' '--srcdir=../../../rtems/c'
checking for gmake... gmake
checking for RTEMS Version... 4.10.1
checking build system type... x86_64-unknown-linux-gnu
checking host system type... powerpc-unknown-rtems4.10
checking target system type... powerpc-unknown-rtems4.10
checking rtems target cpu... powerpc
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for powerpc-rtems4.10-strip... no
checking for strip... strip
configure: WARNING: using cross tools not prefixed with host triplet
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether gmake sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
configure: creating ./config.status
config.status: creating Makefile

target architecture: powerpc.
available BSPs: psim.
'gmake all' will build the following BSPs: psim.
other BSPs can be built with 'gmake RTEMS_BSP="bsp1 bsp2 ..."'

config.status: creating Makefile
config.status: creating make/Makefile
[ole at CentOS6 rtems-4.10-psim]$

Now trying to build rtems fails complaining about : configure: error: no 
acceptable cc found in $PATH
[ole at CentOS6 rtems-4.10-psim]$ sudo make
Making all in make
gmake[1]: Entering directory 
`/home/ole/Development/Rtems/Rtems-4.10-work/rtems-4.10-psim/make'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory 
`/home/ole/Development/Rtems/Rtems-4.10-work/rtems-4.10-psim/make'
Making all in tools/build
gmake[1]: Entering directory 
`/home/ole/Development/Rtems/Rtems-4.10-work/rtems-4.10-psim/tools/build'
gmake  all-am
gmake[2]: Entering directory 
`/home/ole/Development/Rtems/Rtems-4.10-work/rtems-4.10-psim/tools/build'
gcc -DHAVE_CONFIG_H -I. -I../../../rtems/tools/build     -g -O2 -MT 
cklength.o -MD -MP -MF .deps/cklength.Tpo -c -o cklength.o 
../../../rtems/tools/build/cklength.c
mv -f .deps/cklength.Tpo .deps/cklength.Po
gcc  -g -O2   -o cklength cklength.o
gcc -DHAVE_CONFIG_H -I. -I../../../rtems/tools/build     -g -O2 -MT 
eolstrip.o -MD -MP -MF .deps/eolstrip.Tpo -c -o eolstrip.o 
../../../rtems/tools/build/eolstrip.c
mv -f .deps/eolstrip.Tpo .deps/eolstrip.Po
gcc  -g -O2   -o eolstrip eolstrip.o
gcc -DHAVE_CONFIG_H -I. -I../../../rtems/tools/build     -g -O2 -MT 
packhex.o -MD -MP -MF .deps/packhex.Tpo -c -o packhex.o 
../../../rtems/tools/build/packhex.c
mv -f .deps/packhex.Tpo .deps/packhex.Po
gcc  -g -O2   -o packhex packhex.o
gcc -DHAVE_CONFIG_H -I. -I../../../rtems/tools/build     -g -O2 -MT 
unhex.o -MD -MP -MF .deps/unhex.Tpo -c -o unhex.o 
../../../rtems/tools/build/unhex.c
mv -f .deps/unhex.Tpo .deps/unhex.Po
gcc  -g -O2   -o unhex unhex.o
gcc -DHAVE_CONFIG_H -I. -I../../../rtems/tools/build     -g -O2 -MT 
rtems-bin2c.o -MD -MP -MF .deps/rtems-bin2c.Tpo -c -o rtems-bin2c.o 
../../../rtems/tools/build/rtems-bin2c.c
mv -f .deps/rtems-bin2c.Tpo .deps/rtems-bin2c.Po
gcc  -g -O2   -o rtems-bin2c rtems-bin2c.o
gcc -DHAVE_CONFIG_H -I. -I../../../rtems/tools/build     -g -O2 -MT 
binpatch.o -MD -MP -MF .deps/binpatch.Tpo -c -o binpatch.o 
../../../rtems/tools/build/binpatch.c
mv -f .deps/binpatch.Tpo .deps/binpatch.Po
gcc  -g -O2   -o binpatch binpatch.o
gmake[2]: Leaving directory 
`/home/ole/Development/Rtems/Rtems-4.10-work/rtems-4.10-psim/tools/build'
gmake[1]: Leaving directory 
`/home/ole/Development/Rtems/Rtems-4.10-work/rtems-4.10-psim/tools/build'
Making all in tools/cpu
gmake[1]: Entering directory 
`/home/ole/Development/Rtems/Rtems-4.10-work/rtems-4.10-psim/tools/cpu'
Making all in generic
gmake[2]: Entering directory 
`/home/ole/Development/Rtems/Rtems-4.10-work/rtems-4.10-psim/tools/cpu/generic'
gmake[2]: Nothing to be done for `all'.
gmake[2]: Leaving directory 
`/home/ole/Development/Rtems/Rtems-4.10-work/rtems-4.10-psim/tools/cpu/generic'
gmake[2]: Entering directory 
`/home/ole/Development/Rtems/Rtems-4.10-work/rtems-4.10-psim/tools/cpu'
gmake[2]: Nothing to be done for `all-am'.
gmake[2]: Leaving directory 
`/home/ole/Development/Rtems/Rtems-4.10-work/rtems-4.10-psim/tools/cpu'
gmake[1]: Leaving directory 
`/home/ole/Development/Rtems/Rtems-4.10-work/rtems-4.10-psim/tools/cpu'
Making all in testsuites/tools
gmake[1]: Entering directory 
`/home/ole/Development/Rtems/Rtems-4.10-work/rtems-4.10-psim/testsuites/tools'
Making all in generic
gmake[2]: Entering directory 
`/home/ole/Development/Rtems/Rtems-4.10-work/rtems-4.10-psim/testsuites/tools/generic'
gmake[2]: Nothing to be done for `all'.
gmake[2]: Leaving directory 
`/home/ole/Development/Rtems/Rtems-4.10-work/rtems-4.10-psim/testsuites/tools/generic'
gmake[2]: Entering directory 
`/home/ole/Development/Rtems/Rtems-4.10-work/rtems-4.10-psim/testsuites/tools'
gmake[2]: Nothing to be done for `all-am'.
gmake[2]: Leaving directory 
`/home/ole/Development/Rtems/Rtems-4.10-work/rtems-4.10-psim/testsuites/tools'
gmake[1]: Leaving directory 
`/home/ole/Development/Rtems/Rtems-4.10-work/rtems-4.10-psim/testsuites/tools'
Making all in powerpc-rtems4.10/c
gmake[1]: Entering directory 
`/home/ole/Development/Rtems/Rtems-4.10-work/rtems-4.10-psim/powerpc-rtems4.10/c'
Making all in .
gmake[2]: Entering directory 
`/home/ole/Development/Rtems/Rtems-4.10-work/rtems-4.10-psim/powerpc-rtems4.10/c'
Configuring RTEMS_BSP=psim
checking for gmake... gmake
checking build system type... x86_64-unknown-linux-gnu
checking host system type... powerpc-unknown-rtems4.10
checking rtems target cpu... powerpc
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for powerpc-rtems4.10-strip... no
checking for strip... strip
configure: WARNING: using cross tools not prefixed with host triplet
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether gmake sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for RTEMS_BSP... psim
checking whether BSP supports networking... yes
checking whether CPU supports libposix... yes
configure: setting up make/custom
configure: creating make/psim.cache
gmake[3]: Entering directory 
`/home/ole/Development/Rtems/Rtems-4.10-work/rtems-4.10-psim/powerpc-rtems4.10/c/psim'
gmake[3]: Leaving directory 
`/home/ole/Development/Rtems/Rtems-4.10-work/rtems-4.10-psim/powerpc-rtems4.10/c/psim'
checking for RTEMS_CPU_MODEL... mpc6xx
checking for RTEMS_BSP_FAMILY... psim
checking for CPU_CFLAGS... (cached) -mcpu=603e -Dppc603e
checking for CFLAGS_OPTIMIZE_V... (cached) -O2 -g -fno-keep-inline-functions
checking for style of include used by gmake... GNU
checking for powerpc-rtems4.10-gcc... no
configure: error: no acceptable cc found in $PATH
gmake[2]: *** [psim] Error 1
gmake[2]: Leaving directory 
`/home/ole/Development/Rtems/Rtems-4.10-work/rtems-4.10-psim/powerpc-rtems4.10/c'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory 
`/home/ole/Development/Rtems/Rtems-4.10-work/rtems-4.10-psim/powerpc-rtems4.10/c'
make: *** [all-recursive] Error 1
[ole at CentOS6 rtems-4.10-psim]$

Why do I have to run 'configure' as 'root ??

And why do 'make' fail ??

Best regards

Ole Benny Hansen

-- 
ole at fam-hansen-brh.dk

* Phone: +45 52394809
  * Skype: olebenny
   *
    * Email: ole at fam-hansen-brh.dk
     * http://www.fam-hansen-brh.dk
      * ftp://ftp.fam-hansen-brh.dk
       * Radio call sign: oz1jru
       ****************************************************
       * If you seek luck, luck will strike you ..... 
8o)                                  *
       ****************************************************




More information about the users mailing list