This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem building GCC


Hello,

I tried to build GCC 4.6.1 on Linux, but the result was this error message:

checking for /u/markus/tmp/gcc4.6.1/build-gcc/./gcc/xgcc
-B/u/markus/tmp/gcc4.6.1/build-gcc/./gcc/
-B/usr/local/x86_64-unknown-linux-gnu/bin/
-B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem
/usr/local/x86_64-unknown-linux-gnu/include -isystem
/usr/local/x86_64-unknown-linux-gnu/sys-include    option to accept
ISO C89... none needed
configure: updating cache ./config.cache
configure: creating ./config.status
config.status: creating Makefile
make[2]: Entering directory `/u/markus/tmp/gcc4.6.1/build-gcc/gnattools'
rm -rf ../gcc/ada/tools
mkdir -p ../gcc/ada/tools
(cd ../gcc/ada/tools; ln -s ../sdefault.adb ../snames.ads ../snames.adb .)
rm -f ../gcc/ada/tools/mlib-tgt-specific.adb; ln -s
/u/markus/tmp/gcc4.6.1/gcc-4.6.1-RC-20110620/gcc/ada/mlib-tgt-specific-linux.adb
../gcc/ada/tools/mlib-tgt-specific.adb;  rm -f
../gcc/ada/tools/indepsw.adb; ln -s
/u/markus/tmp/gcc4.6.1/gcc-4.6.1-RC-20110620/gcc/ada/indepsw-gnu.adb
../gcc/ada/tools/indepsw.adb;
touch ../gcc/stamp-tools
Cannot build gnattools while gnatlib is out of date or unbuilt
make[2]: *** [../gcc/stamp-gnatlib-rts] Error 1
make[2]: Leaving directory `/u/markus/tmp/gcc4.6.1/build-gcc/gnattools'
make[1]: *** [all-gnattools] Error 2
make[1]: Leaving directory `/u/markus/tmp/gcc4.6.1/build-gcc'
make: *** [all] Error 2

gcc -v gives this output:
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-libgcj-multifile
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada
--enable-java-awt=gtk --disable-dssi --enable-plugin
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre
--with-cpu=generic --host=x86_64-redhat-linux
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-44)

I must be doing something wrong here.

Regards,

Arjen

2011/7/1 Arjen Markus <arjen.markus895@gmail.com>:
> Hi Axel,
>
> no, I have built mpfr and the like already. I am now retrying with the
> source code
> of these packages copied into the GCC directory - that is a suggestion
> in the installation
> instructions (which I found after a hint by somebody else). Hope that
> brings the
> solution ;)
>
> Regards,
>
> Arjen
>
>
>
>
> 2011/7/1 Axel Freyn <axel-freyn@gmx.de>:
>>
>> Hi Arjen,
>> On Fri, Jul 01, 2011 at 02:39:37PM +0200, Arjen Markus wrote:
>>> checking for suffix of object files... configure: error: in
>>> `/u/markus/tmp/gcc4.6.1/build-gcc/x86_64-unknown-linux-gnu/libgcc':
>>> configure: error: cannot compute suffix of object files: cannot compile
>>> See `config.log' for more details.
>>> make[2]: *** [configure-stage1-target-libgcc] Error 1
>>> make[2]: Leaving directory `/u/markus/tmp/gcc4.6.1/build-gcc'
>>> make[1]: *** [stage1-bubble] Error 2
>>> make[1]: Leaving directory `/u/markus/tmp/gcc4.6.1/build-gcc'
>>> make: *** [all] Error 2
>>>
>>> I am rather surprised that all of a sudden configure runs into a problem.
>> Look at
>> http://gcc.gnu.org/wiki/FAQ#Configuration_fails_with_.27.27configure:_error:_cannot_compute_suffix_of_object_files:_cannot_compile.27.27._What_is_the_problem.3F
>>
>> your problem is well-known and spread ;-) Probably you're missing some
>> libraries like mpfr, gmp or mpc.
>> You should have an explanation of the error in
>> /u/markus/tmp/gcc4.6.1/build-gcc/x86_64-unknown-linux-gnu/libgcc/config.log
>>
>> Axel
>>
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]