[FUG-BR] Erro no buildworld [Problemas com compilador gcc]

Giancarlo Rubio gianrubio em gmail.com
Segunda Março 23 09:27:56 BRT 2009


Srs:

Estou tentando fazer um buildworld num FreeBSD 7.0 e estou com
problemas no meu compilador gcc.

O erro que dá é

[root em servidor /]# cd /usr/src
[root em servidor /]# make buildworld

...
--------------------------------------------------------------
>>> stage 2.3: build tools
--------------------------------------------------------------
cd /usr/src; MAKEOBJDIRPREFIX=/usr/obj  INSTALL="sh
/usr/src/tools/install.sh"
PATH=/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr/bin:/usr/obj/usr/src/tmp/legacy/usr/games:/sbin:/bin:/usr/sbin:/usr/bin
 WORLDTMP=/usr/obj/usr/src/tmp  MAKEFLAGS="-m /usr/src/tools/build/mk
-m /usr/src/share/mk" make -f Makefile.inc1  TARGET=i386
TARGET_ARCH=i386  DESTDIR=  BOOTSTRAPPING=700055 -DNO_LINT
-DNO_CPU_CFLAGS -DNO_WARNS build-tools
===> bin/csh (obj,build-tools)
grep 'ERR_' /usr/src/bin/csh/../../contrib/tcsh/sh.err.c | grep
'^#define' >> sh.err.h
cc -E -O2 -fno-strict-aliasing -pipe -I. -I/usr/src/bin/csh
-I/usr/src/bin/csh/../../contrib/tcsh -D_PATH_TCSHELL='"/bin/csh"'
-DHAVE_ICONV  -I/usr/obj/usr/src/tmp/legacy/usr/include
/usr/src/bin/csh/../../contrib/tcsh/tc.const.c
/usr/src/bin/csh/../../contrib/tcsh/sh.char.h
/usr/src/bin/csh/config.h
/usr/src/bin/csh/../../contrib/tcsh/config_f.h
/usr/src/bin/csh/../../contrib/tcsh/sh.types.h sh.err.h -D_h_tc_const
| grep 'Char STR' |  sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern
Char \1[];/' |  sort >> tc.const.h
cc -o gethost  -L/usr/obj/usr/src/tmp/legacy/usr/lib -O2
-fno-strict-aliasing -pipe -I. -I/usr/src/bin/csh
-I/usr/src/bin/csh/../../contrib/tcsh -D_PATH_TCSHELL='"/bin/csh"'
-DHAVE_ICONV  -I/usr/obj/usr/src/tmp/legacy/usr/include
/usr/src/bin/csh/../../contrib/tcsh/gethost.c
/usr/bin/ld: cannot find -lgcc_s
*** Error code 1

Não encontrei a solução para este erro, apenas o mesmo problema em
alguns fórums. Tentei atualizar meu libtool

[root em servidor /]# portupgrade -r libtool-1.5.24
....

configure: error: C compiler cannot create executables
See `config.log' for more details.
===>  Script "configure" failed unexpectedly.
Please report the problem to ade em FreeBSD.org [maintainer] and attach the
"/usr/ports/devel/libtool15/work/libtool-1.5.26/config.log" including the
output of the failure of your make command. Also, it might be a good idea to
provide an overview of all packages installed on your system (e.g. an `ls
/var/db/pkg`).
*** Error code 1

Erro tbm.. No log as linhas que importam

configure:2846: cc -v >&5
Using built-in specs.
Target: i386-undermydesk-freebsd
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 4.2.1 20070719  [FreeBSD]
configure:2849: $? = 0
configure:2856: cc -V >&5
cc: '-V' option must have argument
configure:2859: $? = 1
configure:2882: checking for C compiler default output file name
configure:2909: cc -O2 -fno-strict-aliasing -pipe   conftest.c  >&5
/usr/bin/ld: cannot find -lgcc_s
configure:2912: $? = 1
configure:2950: result:
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "libtool"
| #define PACKAGE_TARNAME "libtool"
| #define PACKAGE_VERSION "1.5.26"
| #define PACKAGE_STRING "libtool 1.5.26"
| #define PACKAGE_BUGREPORT "bug-libtool em gnu.org"
| #define PACKAGE "libtool"
| #define VERSION "1.5.26"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:2956: error: C compiler cannot create executables
See `config.log' for more details.


O mesmo erro do buildworld (/usr/bin/ld: cannot find -lgcc_s)..

Alguma idéia, sugestão?? Atualizar a versão do FreeBSD não é possível
pois nao consigo compilar a nova..

Att



-- 
Giancarlo Rubio


Mais detalhes sobre a lista de discussão freebsd