Project

General

Profile

Actions

Bug #5592

open

environment test missing in ./configure

Added by Dosme Nicolas almost 11 years ago. Updated almost 11 years ago.

Status:
New
Priority:
Low
Assigned To:
-
Start date:
11/29/2013
Due date:
% Done:

0%

Estimated time:
Actions #1

Updated by Dosme Nicolas almost 11 years ago

On a debian Wheezy

dosme@DAQ-Wheezy-Gnat-pro:~/dcod-enx-dev$ ADA_PROJECT_PATH=/home/dosme/local/include/:$ADA_PROJECT_PATH ./configure --enable-enx --enable-console
checking for patch... /usr/bin/patch
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... configure: error: in `/home/dosme/dcod-enx-dev':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details

Here is the config.log

dosme@DAQ-Wheezy-Gnat-pro:~/dcod-enx-dev$ cat config.log 
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by DCOD configure 0.1, which was
generated by GNU Autoconf 2.67.  Invocation command line was

  $ ./configure --enable-enx --enable-console

## --------- ##
## Platform. ##
## --------- ##

hostname = DAQ-Wheezy-Gnat-pro
uname -m = x86_64
uname -r = 2.6.32-26-pve
uname -s = Linux
uname -v = #1 SMP Mon Oct 14 08:22:20 CEST 2013

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /opt/gnat_pro-7.2.0w/gps/bin
PATH: /opt/gnat_pro-7.2.0w/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/local/games
PATH: /usr/games

## ----------- ##
## Core tests. ##
## ----------- ##

configure:1810: checking for patch
configure:1828: found /usr/bin/patch
configure:1841: result: /usr/bin/patch
configure:1901: checking for gcc
configure:1917: found /opt/gnat_pro-7.2.0w/bin/gcc
configure:1928: result: gcc
configure:2157: checking for C compiler version
configure:2166: gcc --version >&5
gcc (GCC) 4.7.4 20130516 for GNAT Pro 7.2.0w (20130515)
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
See your AdaCore support agreement for details of warranty and support.
If you do not have a current support agreement, then there is absolutely
no warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.

configure:2177: $? = 0
configure:2166: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/opt/gnat_pro-7.2.0w/bin/../libexec/gcc/x86_64-pc-linux-gnu/4.7.4/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../src/configure --prefix=/usr/gnat --with-libelf=/draa.a/gnatmail/gcc-47/build-draa/x86_64-linux/libmpfr/install --with-mpc=/draa.a/gnatmail/gcc-47/build-draa/x86_64-linux/libmpfr/install --with-gmp=/draa.a/gnatmail/gcc-47/build-draa/x86_64-linux/libmpfr/install --with-mpfr=/draa.a/gnatmail/gcc-47/build-draa/x86_64-linux/libmpfr/install --build=x86_64-pc-linux-gnu --enable-languages=c,ada,c++ --disable-nls --without-libiconv-prefix --disable-libmudflap --disable-libstdcxx-pch --disable-libada --enable-checking=release --enable-__cxa_atexit --enable-threads=posix --disable-multilib --with-bugurl=URL:mailto:report@adacore.com --with-build-time-tools=/draa.a/gnatmail/gcc-47/build-draa/x86_64-linux/gnat/obj
Thread model: posix
gcc version 4.7.4 20130516 for GNAT Pro 7.2.0w (20130515) (GCC) 
configure:2177: $? = 0
configure:2166: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:2177: $? = 1
configure:2166: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:2177: $? = 1
configure:2197: checking whether the C compiler works
configure:2219: gcc    conftest.c  >&5
configure:2223: $? = 0
configure:2271: result: yes
configure:2274: checking for C compiler default output file name
configure:2276: result: a.out
configure:2282: checking for suffix of executables
configure:2289: gcc -o conftest    conftest.c  >&5
configure:2293: $? = 0
configure:2315: result: 
configure:2337: checking whether we are cross compiling
configure:2345: gcc -o conftest    conftest.c  >&5
In file included from /usr/include/stdio.h:28:0,
                 from conftest.c:9:
/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
compilation terminated.
configure:2349: $? = 1
configure:2356: ./conftest
./configure: line 2358: ./conftest: No such file or directory
configure:2360: $? = 127
configure:2367: error: in `/home/dosme/dcod-enx-dev':
configure:2369: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_path__MANDATORY_=/usr/bin/patch
ac_cv_prog_ac_ct_CC=gcc

## ----------------- ##
## Output variables. ##
## ----------------- ##

CC='gcc'
CFLAGS=''
CPPFLAGS=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EMBEDDED_PATH_LIB=''
EXEEXT=''
HOST=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME='DCOD'
PACKAGE_STRING='DCOD 0.1'
PACKAGE_TARNAME='dcod'
PACKAGE_URL=''
PACKAGE_VERSION='0.1'
PATH_SEPARATOR=':'
SHELL='/bin/bash'
_ADA_2_TEX_=''
_ADA_PROJECT_PATH_=''
_APPLI2COMPILE_=''
_AUTO_OPTION_=''
_DATE_='Fri Nov 29 04:36:00 EST 2013'
_DIRS_=''
_ENX_PORT_=''
_ENX_VERSION_='2.7.01'
_FILTERDIFF_=''
_GNATDIST_=''
_GNATMAKE_=''
_GPRBUILD_=''
_LIBRARY_KIND_=''
_LOCAL_DIR_=''
_MANDATORY_='/usr/bin/patch'
_PWD_='/home/dosme/dcod-enx-dev'
_STRIP_=''
_XELATEX_=''
_XMLADA_FLAGS_=''
_XMLADA_GPR_=''
ac_ct_CC='gcc'
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host_alias=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/home/dosme/dcod-install/'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "DCOD" 
#define PACKAGE_TARNAME "dcod" 
#define PACKAGE_VERSION "0.1" 
#define PACKAGE_STRING "DCOD 0.1" 
#define PACKAGE_BUGREPORT "" 
#define PACKAGE_URL "" 

configure: exit 1
dosme@DAQ-Wheezy-Gnat-pro:~/dcod-enx-dev$ 

dosme@DAQ-Wheezy-Gnat-pro:~/dcod-enx-dev$ export
declare -x ADA_PROJECT_PATH="/opt/gnat_pro-7.2.0w/lib/gnat:/opt/gnat_pro-7.2.0w/include:" 
declare -x CLASSPATH="/opt/gnat_pro-7.2.0w/lib/ajis.jar:" 
declare -x DISPLAY="localhost:10.0" 
declare -x HOME="/home/dosme" 
declare -x LANG="en_US.UTF-8" 
declare -x LD_LIBRARY_PATH="/opt/gnat_pro-7.2.0w/lib/:" 
declare -x LIBRARY_PATH="/usr/lib/x86_64-linux-gnu:" 
declare -x LOGNAME="dosme" 
declare -x LS_COLORS="rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:" 
declare -x MAIL="/var/mail/dosme" 
declare -x OLDPWD="/home/dosme/dcod-enx-dev/enx" 
declare -x PATH="/opt/gnat_pro-7.2.0w/gps/bin:/opt/gnat_pro-7.2.0w/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games" 
declare -x PWD="/home/dosme/dcod-enx-dev" 
declare -x SHELL="/bin/bash" 
declare -x SHLVL="1" 
declare -x SSH_CLIENT="192.168.0.55 51892 22" 
declare -x SSH_CONNECTION="192.168.0.55 51892 192.168.0.70 22" 
declare -x SSH_TTY="/dev/pts/0" 
declare -x TERM="xterm-256color" 
declare -x USER="dosme" 

when we add by hand "C_INCLUDE_PATH=/usr/include/x86_64-linux-gnu/"

dosme@DAQ-Wheezy-Gnat-pro:~/dcod-enx-dev$ C_INCLUDE_PATH=/usr/include/x86_64-linux-gnu/ ADA_PROJECT_PATH=/home/dosme/local/include/:$ADA_PROJECT_PATH ./configure --enable-enx --enable-console
checking for patch... /usr/bin/patch
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 deflateBound in -lz... yes
checking for gnatmake... /opt/gnat_pro-7.2.0w/bin/gnatmake
checking Ada Compiler... not from distribution
checking for gprbuild... /opt/gnat_pro-7.2.0w/bin/gprbuild
checking for filterdiff... /usr/bin/filterdiff
checking Compilation of Console application... yes
checking Compilation of Remote Console application... yes
checking Compilation of Remote Shell application... no
checking Compilation of Server Web application... yes
checking for strip... /usr/bin/strip
checking Compilation of NARVAL... no
checking Compilation of ENX... yes
checking for /opt/gnat_pro-7.2.0w/lib/gnat/aws.gpr... yes
checking for /opt/gnat_pro-7.2.0w/lib/gnat/xmlada.gpr... yes
checking for /opt/gnat_pro-7.2.0w/lib/gnat/florist.gpr... yes
checking for /opt/gnat_pro-7.2.0w/lib/gnat/xmlezout.gpr... no
checking for /home/dosme/local/include//xmlezout.gpr... no
checking for /opt/gnat_pro-7.2.0w/lib/gnat/xmlezout.gpr... (cached) no
checking for /opt/gnat_pro-7.2.0w/include/xmlezout.gpr... yes
checking for /opt/gnat_pro-7.2.0w/lib/gnat/log4Ada.gpr... no
checking for /home/dosme/local/include//log4Ada.gpr... no
checking for /opt/gnat_pro-7.2.0w/lib/gnat/log4Ada.gpr... (cached) no
checking for /opt/gnat_pro-7.2.0w/include/log4Ada.gpr... yes
checking for /opt/gnat_pro-7.2.0w/lib/gnat/networktools.gpr... no
checking for /home/dosme/local/include//networktools.gpr... no
checking for /opt/gnat_pro-7.2.0w/lib/gnat/networktools.gpr... (cached) no
checking for /opt/gnat_pro-7.2.0w/include/networktools.gpr... yes
checking for /opt/gnat_pro-7.2.0w/lib/gnat/p42lib.gpr... no
checking for /home/dosme/local/include//p42lib.gpr... yes
configure: creating ./config.status
config.status: creating enx/server/shell.gpr
config.status: creating enx/common/plugins/src/constants.ads
config.status: creating config.mk
dosme@DAQ-Wheezy-Gnat-pro:~/dcod-enx-dev$

maybe the same for LIBRARY_PATH="/usr/lib/x86_64-linux-gnu:" which is already in my environment.

Actions

Also available in: Atom PDF