LINUX.ORG.RU

Сборка gcc 4.4.2


0

0

Доброго времени суток. Валится сборка gcc. собирал со следующими параметрами:

./сonfigure --enable-multilib --prefix=/usr/gcc4.4 --with-mpfr=/mylib/mpfr --with-gmp=/mylib/gmp --with-gnu-ld --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --target=x86_64-unknown-linux-gnu

и просто: ./сonfigure --prefix=/usr/gcc4.4 --with-mpfr=/mylib/mpfr --with-gmp=/mylib/gmp

Версии gmp - 4.3.1, mpfr - 2.4.1. т.е. последние.

Гугл не помог ( по крайней мере мне ).

TARGET_CPU_DEFAULT=«» \ HEADERS=«auto-host.h ansidecl.h» DEFINES=«USED_FOR_TARGET » \ /bin/sh ../.././gcc/mkconfig.sh tconfig.h make[3]: Leaving directory `/osbuster/gcc-4.4.2/host-x86_64-unknown-linux-gnu/gcc' Checking multilib configuration for libgcc... Configuring stage 1 in x86_64-unknown-linux-gnu/libgcc configure: loading cache ./config.cache checking for --enable-version-specific-runtime-libs... no checking for a BSD-compatible install... /usr/bin/install -c checking for gawk... gawk checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking for x86_64-unknown-linux-gnu-ar... ar checking for x86_64-unknown-linux-gnu-lipo... lipo checking for x86_64-unknown-linux-gnu-nm... /osbuster/gcc-4.4.2/host-x86_64-unknown-linux-gnu/gcc/nm checking for x86_64-unknown-linux-gnu-ranlib... ranlib checking for x86_64-unknown-linux-gnu-strip... strip checking whether ln -s works... yes checking for x86_64-unknown-linux-gnu-gcc... /osbuster/gcc-4.4.2/host-x86_64-unknown-linux-gnu/gcc/xgcc -B/osbuster/gcc-4.4.2/host-x86_64-unknown-linux-gnu/gcc/ -B/usr/gcc4.4/x86_64-unknown-linux-gnu/bin/ -B/usr/gcc4.4/x86_64-unknown-linux-gnu/lib/ -isystem /usr/gcc4.4/x86_64-unknown-linux-gnu/include -isystem /usr/gcc4.4/x86_64-unknown-linux-gnu/sys-include checking for suffix of object files... configure: error: in `/osbuster/gcc-4.4.2/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 `/osbuster/gcc-4.4.2' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/osbuster/gcc-4.4.2' make: *** [all] Error 2

Ответ на: Сборка gcc 4.4.2 от balodja

Re: Сборка gcc 4.4.2

в логе это;

configure:2611: /osbuster/gcc-4.4.2/host-x86_64-unknown-linux-gnu/gcc/xgcc -B/osbuster/gcc-4.4.2/host-x86_64-unknown-linux-gnu/gcc/ -B/usr/gcc4.4/x86_64-unknown-linux-gnu/bin/ -B/usr/gcc4.4/x86_64-unknown-linux-gnu/lib/ -isystem /usr/gcc4.4/x86_64-unknown-linux-gnu/include -isystem /usr/gcc4.4/x86_64-unknown-linux-gnu/sys-include -c -g -O2 conftest.c >&5
/osbuster/gcc-4.4.2/host-x86_64-unknown-linux-gnu/gcc/cc1: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory
configure:2614: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2627: error: in `/osbuster/gcc-4.4.2/x86_64-unknown-linux-gnu/libgcc':
configure:2630: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.

В каталоге mpfr, который я указывал в ./configure эта библиотека есть. Вернее линки libmpfr.so.1 и libmpfr.so на libmpfr.so.1.2.0

OSBuster ()
Ответ на: Re: Сборка gcc 4.4.2 от OSBuster

Re: Сборка gcc 4.4.2

Тем не менее в написанной выполняемой команде путь к либам mpfr не указан. Так что следует либо вручную добавить в конфиг, либо в прелоад, либо еще как-нибудь. На всякий случай еще разок проверь библиотеки, мало ли куда симлинки ведут.

И это... багрепорты.

balodja ★★★ ()
Ответ на: Re: Сборка gcc 4.4.2 от Sylvia

Re: Сборка gcc 4.4.2

ps: в следующий раз не стоит заниматься такими извращениями , а нужно просто ставить библиотеки в /usr/local/lib

./configure --prefix=/usr/local

там все отлично находится

Sylvia ★★★★★ ()

Сборка gcc 4.4.2

./сonfigure --prefix=/usr/gcc4.4 --with-mpfr=/mylib/mpfr --with-gmp=/mylib/gmp

Нельзя собирать gcc в директории с исходниками - результат непредсказуем (RTFM). Надо так:

mkdir gcc-bin
cd gcc-bin
../сonfigure --prefix=/usr/gcc4.4 --with-mpfr=/mylib/mpfr --with-gmp=/mylib/gmp

Reset ★★★★★ ()

Сборка gcc 4.4.2

Да, про make clean не забывай.

power ()

Сборка gcc 4.4.2

После того, как словил пару проблем с различием ревизий,
всегда копировал источники mpfr и gmp в виде директорий
в общее дерево src. Шло на ура.

io ★★ ()

Сборка gcc 4.4.2

Как два пальца об асфальт:

cd /usr/ports/lang/gcc44/ && make install clean

iZEN ★★★★★ ()

Сборка gcc 4.4.2

% cd /usr/ports/lang/gcc44/ && make package-recursive
Making GCC 4.4.2.20091006 for FreeBSD 8.0  target=x86_64-portbld-freebsd8.0
===>  Extracting for gcc-4.4.2.20091006
=> MD5 Checksum OK for gcc-core-4.4-20091006.tar.bz2.
=> SHA256 Checksum OK for gcc-core-4.4-20091006.tar.bz2.
=> MD5 Checksum OK for gcc-fortran-4.4-20091006.tar.bz2.
=> SHA256 Checksum OK for gcc-fortran-4.4-20091006.tar.bz2.
=> MD5 Checksum OK for gcc-g++-4.4-20091006.tar.bz2.
=> SHA256 Checksum OK for gcc-g++-4.4-20091006.tar.bz2.
=> MD5 Checksum OK for gcc-objc-4.4-20091006.tar.bz2.
=> SHA256 Checksum OK for gcc-objc-4.4-20091006.tar.bz2.
...
...
===>   Registering installation for gcc-4.4.2.20091006
===> SECURITY REPORT: 
      This port has installed the following files which may act as network
      servers and may therefore pose a remote security risk to the system.
/usr/local/lib/gcc44/libmudflapth.so.0
/usr/local/lib/gcc44/libmudflap.so.0

      If there are vulnerabilities in these programs there may be a security
      risk to the system. FreeBSD makes no guarantee about the security of
      ports included in the Ports Collection. Please type 'make deinstall'
      to deinstall the port if this is a concern.

      For more information, and contact details about the security
      status of this software, see the following webpage: 
http://gcc.gnu.org/
===>  Building package for gcc-4.4.2.20091006
Creating package /mediastore/pckgs64/All/gcc-4.4.2.20091006.tbz
Registering depends: libiconv-1.13.1 mpfr-2.4.1_1 libgmp-4.3.1.
Creating bzip'd tar ball in '/mediastore/pckgs64/All/gcc-4.4.2.20091006.tbz'
===>   Generating temporary packing list
Creating package /mediastore/pckgs64/All/perl-threaded-5.10.1.tbz
Registering depends:.
Registering conflicts: perl-5.6.* perl-5.8.* perl-threaded-5.8.*.
Creating bzip'd tar ball in '/mediastore/pckgs64/All/perl-threaded-5.10.1.tbz'
===>   Generating temporary packing list
Creating package /mediastore/pckgs64/All/gmake-3.81_3.tbz
Registering depends: gettext-0.17_1 libiconv-1.13.1.
Creating bzip'd tar ball in '/mediastore/pckgs64/All/gmake-3.81_3.tbz'
===>   Generating temporary packing list
Creating package /mediastore/pckgs64/All/bison-2.4.1,1.tbz
Registering depends: gettext-0.17_1 libiconv-1.13.1 m4-1.4.13,1 libsigsegv-2.5.
Creating bzip'd tar ball in '/mediastore/pckgs64/All/bison-2.4.1,1.tbz'
===>   Generating temporary packing list
Creating package /mediastore/pckgs64/All/libgmp-4.3.1.tbz
Registering depends:.
Creating bzip'd tar ball in '/mediastore/pckgs64/All/libgmp-4.3.1.tbz'
===>   Generating temporary packing list
Creating package /mediastore/pckgs64/All/mpfr-2.4.1_1.tbz
Registering depends: libgmp-4.3.1.
Creating bzip'd tar ball in '/mediastore/pckgs64/All/mpfr-2.4.1_1.tbz'
===>   Generating temporary packing list
Creating package /mediastore/pckgs64/All/libiconv-1.13.1.tbz
Registering depends:.
Creating bzip'd tar ball in '/mediastore/pckgs64/All/libiconv-1.13.1.tbz'
===>   Generating temporary packing list
Creating package /mediastore/pckgs64/All/gettext-0.17_1.tbz
Registering depends: libiconv-1.13.1.
Creating bzip'd tar ball in '/mediastore/pckgs64/All/gettext-0.17_1.tbz'
===>   Generating temporary packing list
Creating package /mediastore/pckgs64/All/m4-1.4.13,1.tbz
Registering depends: libsigsegv-2.5.
Creating bzip'd tar ball in '/mediastore/pckgs64/All/m4-1.4.13,1.tbz'
===>   Generating temporary packing list
Creating package /mediastore/pckgs64/All/libtool-2.2.6a_1.tbz
Registering depends:.
Creating bzip'd tar ball in '/mediastore/pckgs64/All/libtool-2.2.6a_1.tbz'
===>   Generating temporary packing list
Creating package /mediastore/pckgs64/All/libsigsegv-2.5.tbz
Registering depends:.
Creating bzip'd tar ball in '/mediastore/pckgs64/All/libsigsegv-2.5.tbz'
%

Вот и всё.

iZEN ★★★★★ ()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.