No acceptable cc found in $PATH

Gedare Bloom gedare at rtems.org
Wed Oct 5 14:18:56 UTC 2016


suggest you do not use sudo. sudo changes your PATH. you should be
able to make and install rtems without sudo into the $HOME as you
specify

On Wed, Oct 5, 2016 at 9:54 AM, Boughedada Kamal
<kamal.boughedada at obspm.fr> wrote:
>
> Hi,
>
> I would like to compiling and installing RTEMS for the leon but unfortunately I get the message "No acceptable C Compiler found in $PATH".
>
> How I proceed :
>
> Step 1 :
>
> $ sudo ../rtems-git/configure --target=sparc-rtems4.11 --enable-rtemsbsp=leon3 --enable-tests=samples --prefix=$HOME/dev_rtems/rtems/bsps/4.11
>
> Result :
>
> target architecture: sparc.
> available BSPs: leon3.
> 'make all' will build the following BSPs: leon3.
> other BSPs can be built with 'make RTEMS_BSP="bsp1 bsp2 ..."'
>
> config.status: creating Makefile
>
> Step 2 :
>
> $ sudo make install
>
> Result :
> Configuring RTEMS_BSP=leon3
> checking for gmake... no
> checking for make... make
> checking build system type... x86_64-pc-linux-gnu
> checking host system type... sparc-unknown-rtems4.11
> checking rtems target cpu... sparc
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for sparc-rtems4.11-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 make sets $(MAKE)... yes
> checking whether make supports nested variables... yes
> checking whether to enable maintainer-specific portions of Makefiles... no
> checking for RTEMS_BSP... leon3
> checking whether BSP supports networking... yes
> checking whether CPU supports libposix... yes
> configure: setting up make/custom
> configure: creating make/leon3.cache
> make[3]: Entering directory '/home/kboughedada/dev_rtems/rtems/build-rtems-leon3/sparc-rtems4.11/c/leon3'
> make[3]: Leaving directory '/home/kboughedada/dev_rtems/rtems/build-rtems-leon3/sparc-rtems4.11/c/leon3'
> checking for RTEMS_CPU_MODEL... leon3
> checking for RTEMS_BSP_FAMILY... leon3
> checking for CPU_CFLAGS... (cached) -mcpu=leon3 -msoft-float
> checking for CFLAGS_OPTIMIZE_V... (cached) -O2 -g -ffunction-sections -fdata-sections
> checking for style of include used by make... GNU
> checking for sparc-rtems4.11-gcc... no
> configure: error: no acceptable cc found in $PATH
>
>
> My setup :
>
> Packages are installed
>
> $ sudo apt-get install build-essential
> $ sudo apt-get install git
> $ sudo apt-get install python-dev
> $ sudo apt-get build-dep binutils gcc g++ gdb unzip git
>
> $sudo  echo $PATH
> /opt/rtems-4.10/bin:/home/kboughedada/dev_rtems/rtems/compiler/4.11/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
>
> $ sparc-rtems4.11-gcc -v
> Using built-in specs.
> COLLECT_GCC=sparc-rtems4.11-gcc
> COLLECT_LTO_WRAPPER=/home/kboughedada/dev_rtems/rtems/compiler/4.11/libexec/gcc/sparc-rtems4.11/4.9.3/lto-wrapper
> Target: sparc-rtems4.11
> Configured with: ../gcc-4.9.3/configure --prefix=/home/kboughedada/dev_rtems/rtems/compiler/4.11 --bindir=/home/kboughedada/dev_rtems/rtems/compiler/4.11/bin --exec_prefix=/home/kboughedada/dev_rtems/rtems/compiler/4.11 --includedir=/home/kboughedada/dev_rtems/rtems/compiler/4.11/include --libdir=/home/kboughedada/dev_rtems/rtems/compiler/4.11/lib --libexecdir=/home/kboughedada/dev_rtems/rtems/compiler/4.11/libexec --mandir=/home/kboughedada/dev_rtems/rtems/compiler/4.11/share/man --infodir=/home/kboughedada/dev_rtems/rtems/compiler/4.11/share/info --datadir=/home/kboughedada/dev_rtems/rtems/compiler/4.11/share --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=sparc-rtems4.11 --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 --disable-lto --enable-newlib-io-c99-formats --enable-newlib-iconv --enable-newlib-iconv-encodings=big5,c
>  p775,cp850,cp852,cp855,cp866,euc_jp,euc_kr,euc_tw,iso_8859_1,iso_8859_10,iso_8859_11,iso_8859_13,iso_8859_14,iso_8859_15,iso_8859_2,iso_8859_3,iso_8859_4,iso_8859_5,iso_8859_6,iso_8859_7,iso_8859_8,iso_8859_9,iso_ir_111,koi8_r,koi8_ru,koi8_u,koi8_uni,ucs_2,ucs_2_internal,ucs_2be,ucs_2le,ucs_4,ucs_4_internal,ucs_4be,ucs_4le,us_ascii,utf_16,utf_16be,utf_16le,utf_8,win_1250,win_1251,win_1252,win_1253,win_1254,win_1255,win_1256,win_1257,win_1258 --enable-threads --disable-plugin --enable-libgomp --enable-languages=c,c++
> Thread model: rtems
> gcc version 4.9.3 20150626 (RTEMS 4.11, RSB 1675a733536d1aec2020011e5e522497a442561a-modified, Newlib 2.2.0.20150423) (GCC)
>
>
> kboughedada at kboughedada-VirtualBox:~/dev_rtems/rtems/build-rtems-leon3$ cc -v
> Using built-in specs.
> COLLECT_GCC=cc
> COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper
> Target: x86_64-linux-gnu
> Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.0-6ubuntu1~16.04.2' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --wi
>  th-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
> Thread model: posix
> gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.2)
>
>
> kboughedada at kboughedada-VirtualBox:~/dev_rtems/rtems/build-rtems-leon3$ gcc -v
> Using built-in specs.
> COLLECT_GCC=gcc
> COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper
> Target: x86_64-linux-gnu
> Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.0-6ubuntu1~16.04.2' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --wi
>  th-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
> Thread model: posix
> gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.2)
>
>
> Can you help me please ?
>
> Best regards.
>
> K. Boughedada
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
>
>
>
>
>
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel



More information about the devel mailing list