bugSimulavr: an AVR simulator - Bugs: bug #41419, configure fails if CXX=...

 
 

bug #41419: configure fails if CXX= environment var was set

Submitted by:  Klaus Rudolph <zfrdh>
Submitted on:  Sat 01 Feb 2014 09:44:55 AM UTC  
 
Category: ConfigureSeverity: 3 - Normal
Item Group: NoneStatus: Wont Fix
Privacy: PublicAssigned to: Thomas K. <tomk>
Open/Closed: ClosedComponent Version: simulavrxx

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 24 Feb 2014 05:30:40 AM UTC, comment #2:

Hi,

because the bug is deep inside automake/autoconf files, it doesn't bring anything to fix it. We had to copy the most parts to our "private" area and I'm not sure, if this will work in every case.

So, if necessary, the best solution in the moment is Stefans proposal to extend the PATH environment.

If somebody will have enough time :-) the we could use cmake instead of automake/autoconf. Maybe this will give us a little bit more stability for the configure/build process.

cu, Thomas

Thomas K. <tomk>
Project AdministratorIn charge of this item.
Sat 01 Feb 2014 07:52:22 PM UTC, comment #1:

Verbose output of configure can be found in config.log:

configure:15524: checking for /usr/bin/g++-4.7
configure:15552: result: no
configure:15562: error: C++ compiler /usr/bin/g++-4.7 not found

configure:15524 contains:
---
...
for as_dir in $PATH
...
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ac_cv_prog_CXX_PROG="yes"
---

$ac_word is $CXX, $ac_exec_ext is ''

So to change the compiler, you have to prepend /opt/linux-gnu_4.8.2/bin/ to $PATH

Stefan BrĂ¼ns <stefanbruens>
Sat 01 Feb 2014 09:44:55 AM UTC, original submission:

I want to test actual sources with different compilers to apply the anti warning patches actually send to us.

I tried to set
CXX=..../g++
./configure ...

I wonder because the compiler was found and checked, but the result is, that g++ was not found?!

Can anyone help with autotools here :-)

The result was:

zfrdh@tux02:~/avrsim/git_20140201/simulavr> ./configure --with-bfd=/home/schon_im_backup/work/binutils-2.19/build_avr/bfd/ --with-libiberty=/home/schon_im_backup/work/binutils-2.19/build_avr/libiberty/
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 make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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 dependency style of gcc... gcc3
checking for dlopen in -ldl... yes
checking for deflate in -lz... yes
checking whether build system is MSYS/MingW... no
checking build system type... i686-suse-linux-gnu
checking host system type... i686-suse-linux-gnu
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ld used by gcc... /opt/linux/i686-pc-linux-gnu/bin/ld
checking if the linker (/opt/linux/i686-pc-linux-gnu/bin/ld) is GNU ld... yes
checking for /opt/linux/i686-pc-linux-gnu/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /opt/linux/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking how to run the C preprocessor... gcc -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 dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking whether we are using the GNU C++ compiler... yes
checking whether /opt/linux-gnu_4.8.2/bin/g++ accepts -g... yes
checking dependency style of /opt/linux-gnu_4.8.2/bin/g++... gcc3
checking how to run the C++ preprocessor... /opt/linux-gnu_4.8.2/bin/g++ -E
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... gfortran
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether gfortran accepts -g... yes
checking the maximum length of command line arguments... 98304
checking command to parse /opt/linux/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/opt/linux/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by /opt/linux-gnu_4.8.2/bin/g++... /opt/linux/i686-pc-linux-gnu/bin/ld
checking if the linker (/opt/linux/i686-pc-linux-gnu/bin/ld) is GNU ld... yes
checking whether the /opt/linux-gnu_4.8.2/bin/g++ linker (/opt/linux/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes
checking for /opt/linux-gnu_4.8.2/bin/g++ option to produce PIC... -fPIC
checking if /opt/linux-gnu_4.8.2/bin/g++ PIC flag -fPIC works... yes
checking if /opt/linux-gnu_4.8.2/bin/g++ static flag -static works... yes
checking if /opt/linux-gnu_4.8.2/bin/g++ supports -c -o file.o... yes
checking whether the /opt/linux-gnu_4.8.2/bin/g++ linker (/opt/linux/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gfortran option to produce PIC... -fPIC
checking if gfortran PIC flag -fPIC works... yes
checking if gfortran static flag -static works... yes
checking if gfortran supports -c -o file.o... yes
checking whether the gfortran linker (/opt/linux/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether /opt/linux-gnu_4.8.2/bin/g++ accepts -g... (cached) yes
checking dependency style of /opt/linux-gnu_4.8.2/bin/g++... (cached) gcc3
checking for /opt/linux-gnu_4.8.2/bin/g++... no
configure: error: C++ compiler /opt/linux-gnu_4.8.2/bin/g++ not found

Klaus Rudolph <zfrdh>
Project Administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by tomk (Posted a comment)
  • -unavailable- added by stefanbruens (Posted a comment)
  • -unavailable- added by zfrdh (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 24 Feb 2014 05:30:40 AM UTCtomkStatusNone=>Wont Fix
      Assigned toNone=>tomk
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1