simulavr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Simulavr-devel] [bug #41419] configure fails if CXX= environment va


From: ThomasK
Subject: Re: [Simulavr-devel] [bug #41419] configure fails if CXX= environment var was set
Date: Sun, 02 Feb 2014 08:42:50 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130330 Thunderbird/17.0.5

Hi Klaus,

the problem with setting CXX is known (ok, at least for me :-) ) and comes from the M4 macros, which are used by autotools. Goal is, to give CXX environment variable priority over all other settings. But this macros are not bullet proved, as you can see. There are more such things ... Autotools works ok in 80% of cases but the other ...

So I think, the hint from Stefan is the best solution to get it. (unproved by me but logical) The most important is to PREPEND it.

@Stefan: do you try just the newest gcc compiler suite or do you use a distribution, which comes with gcc 4.8.2? (or such)

cu, Thomas


Am 01.02.2014 10:44, schrieb Klaus Rudolph:
URL:
   <http://savannah.nongnu.org/bugs/?41419>

                  Summary: configure fails if CXX= environment var was set
                  Project: Simulavr: an AVR simulator
             Submitted by: zfrdh
             Submitted on: Sa 01 Feb 2014 10:44:55 CET
                 Category: Configure
                 Severity: 3 - Normal
               Item Group: None
                   Status: None
                  Privacy: Public
              Assigned to: None
         Originator Email: address@hidden
              Open/Closed: Open
          Discussion Lock: Any
        Component Version: simulavrxx

     _______________________________________________________

Details:

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:

address@hidden:~/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





     _______________________________________________________

Reply to this item at:

   <http://savannah.nongnu.org/bugs/?41419>

_______________________________________________
   Nachricht gesendet von/durch Savannah
   http://savannah.nongnu.org/


_______________________________________________
Simulavr-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/simulavr-devel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]