[gtkada] Successful installation on an Ubuntu system

Chris Sparks mr_ada at cox.net
Mon Jul 9 01:52:37 CEST 2012


Hello Brian,

I tried as you suggested and still got this (as part of the ./configure 
of gtkada):

checking for C compiler default output... configure: error: C compiler 
cannot create executables
See `config.log' for more details

Here is a snippet from the config.log file:

---------------------------------------------------------------------------------------------

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.57. Invocation command line was

$ ./configure --prefix=/usr/gtkada

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

hostname = zamu
uname -m = x86_64
uname -r = 3.2.0-26-generic
uname -s = Linux
uname -v = #41-Ubuntu SMP Thu Jun 14 17:49:24 UTC 2012

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

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

PATH: /usr/gtkada/bin
PATH: /usr/gnat/bin
PATH: /usr/lib/lightdm/lightdm
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games


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

configure:1271: checking build system type
configure:1289: result: x86_64-unknown-linux-gnu
configure:1297: checking host system type
configure:1311: result: x86_64-unknown-linux-gnu
configure:1319: checking target system type
configure:1333: result: x86_64-unknown-linux-gnu
configure:1457: checking for merge
configure:1488: result: true
configure:1553: checking for diff
configure:1571: found /usr/bin/diff
configure:1584: result: /usr/bin/diff
configure:1620: checking for the correct diff option
configure:1624: result: -u
configure:1658: checking for patch
configure:1676: found /usr/bin/patch
configure:1689: result: /usr/bin/patch
configure:1712: checking for the correct patch option
configure:1725: result: -f
configure:1806: checking for gcc
configure:1822: found /usr/gnat/bin/gcc
configure:1832: result: gcc
configure:2076: checking for C compiler version
configure:2079: gcc --version </dev/null >&5
gcc (GCC) 4.5.4 20120510 for GNAT GPL 2012 (20120509)
Copyright (C) 2010 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:2082: $? = 0
configure:2084: gcc -v </dev/null >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/gnat/libexec/gcc/x86_64-pc-linux-gnu/4.5.4/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../src/configure --prefix=/usr/gnat 
--with-libelf=/gnat.release/gpl-2012/build-draa/x86_64-linux/libmpfr/install 
--with-mpc=/gnat.release/gpl-2012/build-draa/x86_64-linux/libmpfr/install --with-gmp=/gnat.release/gpl-2012/build-draa/x86_64-linux/libmpfr/install 
--with-mpfr=/gnat.release/gpl-2012/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 at adacore.com 
--with-build-time-tools=/gnat.release/gpl-2012/build-draa/x86_64-linux/gnat/obj
Thread model: posix
gcc version 4.5.4 20120510 for GNAT GPL 2012 (20120509) (GCC)
configure:2087: $? = 0
configure:2089: gcc -V </dev/null >&5
gcc: '-V' option must have argument
configure:2092: $? = 1
configure:2116: checking for C compiler default output
configure:2119: gcc conftest.c >&5
/usr/gnat/libexec/gcc/x86_64-pc-linux-gnu/4.5.4/ld: crt1.o: No such 
file: No such file or directory
collect2: ld returned 1 exit status
configure:2122: $? = 1
configure: failed program was:
| #line 2095 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2161: error: C compiler cannot create executables
See `config.log' for more details.

-------------------------------------------------------------------------------------------------------

I think there is something else going on with the configure file. I am 
not an expert in
BASH script but that would be my guess.

Chris
> On Sat, 07 Jul 2012 06:54:43 -0700, Chris Sparks wrote:
>
>> Has anyone been successful in getting gtkada installed on an Ubuntu
>> system?  I have version 11.10 (I think) and have been having issues
>> related to crt0 and not being able to create an executable.
> I had the same issue compiling Ada for Atmel AVR processors.
>
> It appears to be the Multilib problem, discussed recently on comp.lang.ada in a
> different context. Basically, newer versions of Debian (Ubuntu etc) have moved
> libraries from e.g. /usr/lib to /usr/lib/<some architecture> where <some
> architecture> might be linux-x86-64 (or linux-armhf or whatever) to simplify
> building for multiple targets , i.e. cross-compiling or even 32 and 64 bit on
> the same system.
>
> One solution is
> export LD_LIBRARY_PATH=/usr/lib/<some architecture>
> before running gnatmake, so that the linker can find crt0 and the other
> libraries it needs. (For an accurate fix, search for multilib, LD_LIBRARY_PATH
> and see where the libraries are on your system)
>
> There may be better solutions.
> The official packaged compiler for your system ought to understand multilib
> already and not need this workaround, but I'm not clear how, and I don't know
> how (or even if it's possible) to apply that solution to other (e.g. Adacore or
> home-built) compilers.
>
> - Brian
>
> _______________________________________________
> gtkada mailing list
> gtkada at lists.adacore.com
> http://lists.adacore.com/mailman/listinfo/gtkada
>




More information about the gtkada mailing list