Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Nov 2004 15:29:41 +0100
From:      Aron Stansvik <elvstone@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   RELENG_5_3 buildworld fails (cannot find -lc)
Message-ID:  <751a4f87041109062939061dac@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hello freebsd-questions.

I just cvsupped src-all from RELENG_5_3 on my 5.2.1 laptop and ran a
"make buildworld". This is what I get:

-------------| BEGIN buildworld output |--------------
===> lib/libmagic
cat /usr/src/lib/libmagic/../../contrib/file/Header
/usr/src/lib/libmagic/../../contrib/file/Localstuff
/usr/src/lib/libmagic/../../contrib/file/Magdir/zyxel
/usr/src/lib/libmagic/../../contrib/file/Magdir/xdelta
/usr/src/lib/libmagic/../../contrib/file/Magdir/sysex
/usr/src/lib/libmagic/../../contrib/file/Magdir/sccs
/usr/src/lib/libmagic/../../contrib/file/Magdir/allegro
/usr/src/lib/libmagic/../../contrib/file/Magdir/cvs
/usr/src/lib/libmagic/../../contrib/file/Magdir/vicar
/usr/src/lib/libmagic/../../contrib/file/Magdir/varied.out
/usr/src/lib/libmagic/../../contrib/file/Magdir/c64
/usr/src/lib/libmagic/../../contrib/file/Magdir/games
/usr/src/lib/libmagic/../../contrib/file/Magdir/mcrypt
/usr/src/lib/libmagic/../../contrib/file/Magdir/archive
/usr/src/lib/libmagic/../../contrib/file/Magdir/citrus
/usr/src/lib/libmagic/../../contrib/file/Magdir/compress
/usr/src/lib/libmagic/../../contrib/file/Magdir/fsav
/usr/src/lib/libmagic/../../contrib/file/Magdir/geos
/usr/src/lib/libmagic/../../contrib/file/Magdir/java
/usr/src/lib/libmagic/../../contrib/file/Magdir/mlssa
/usr/src/lib/libmagic/../../contrib/file/Magdir/mmdf
/usr/src/lib/libmagic/../../contrib/file/Magdir/msdos
/usr/src/lib/libmagic/../../contrib/file/Magdir/wordperfect
/usr/src/lib/libmagic/../../contrib/file/Magdir/rtf
/usr/src/lib/libmagic/../../contrib/file/Magdir/animation
/usr/src/lib/libmagic/../../contrib/file/Magdir/chi
/usr/src/lib/libmagic/../../contrib/file/Magdir/claris
/usr/src/lib/libmagic/../../contrib/file/Magdir/fonts
/usr/src/lib/libmagic/../../contrib/file/Magdir/macintosh
/usr/src/lib/libmagic/../../contrib/file/Magdir/mathematica
/usr/src/lib/libmagic/../../contrib/file/Magdir/psion
/usr/src/lib/libmagic/../../contrib/file/Magdir/teapot
/usr/src/lib/libmagic/../../contrib/file/Magdir/diff
/usr/src/lib/libmagic/../../contrib/file/Magdir/gimp
/usr/src/lib/libmagic/../../contrib/file/Magdir/adi
/usr/src/lib/libmagic/../../contrib/file/Magdir/cad
/usr/src/lib/libmagic/../../contrib/file/Magdir/editors
/usr/src/lib/libmagic/../../contrib/file/Magdir/tex
/usr/src/lib/libmagic/../../contrib/file/Magdir/psdbms
/usr/src/lib/libmagic/../../contrib/file/Magdir/convex
/usr/src/lib/libmagic/../../contrib/file/Magdir/freebsd
/usr/src/lib/libmagic/../../contrib/file/Magdir/gcc
/usr/src/lib/libmagic/../../contrib/file/Magdir/natinst
/usr/src/lib/libmagic/../../contrib/file/Magdir/nitpicker
/usr/src/lib/libmagic/../../contrib/file/Magdir/typeset
/usr/src/lib/libmagic/../../contrib/file/Magdir/commands
/usr/src/lib/libmagic/../../contrib/file/Magdir/encore
/usr/src/lib/libmagic/../../contrib/file/Magdir/filesystems
/usr/src/lib/libmagic/../../contrib/file/Magdir/hp
/usr/src/lib/libmagic/../../contrib/file/Magdir/jpeg
/usr/src/lib/libmagic/../../contrib/file/Magdir/sinclair
/usr/src/lib/libmagic/../../contrib/file/Magdir/acorn
/usr/src/lib/libmagic/../../contrib/file/Magdir/iff
/usr/src/lib/libmagic/../../contrib/file/Magdir/lif
/usr/src/lib/libmagic/../../contrib/file/Magdir/mirage
/usr/src/lib/libmagic/../../contrib/file/Magdir/netscape
/usr/src/lib/libmagic/../../contrib/file/Magdir/olf
/usr/src/lib/libmagic/../../contrib/file/Magdir/vxl
/usr/src/lib/libmagic/../../contrib/file/Magdir/unknown
/usr/src/lib/libmagic/../../contrib/file/Magdir/hdf
/usr/src/lib/libmagic/../../contrib/file/Magdir/mail.news
/usr/src/lib/libmagic/../../contrib/file/Magdir/modem
/usr/src/lib/libmagic/../../contrib/file/Magdir/xwindows
/usr/src/lib/libmagic/../../contrib/file/Magdir/wordprocessors
/usr/src/lib/libmagic/../../contrib/file/Magdir/sun
/usr/src/lib/libmagic/../../contrib/file/Magdir/sketch
/usr/src/lib/libmagic/../../contrib/file/Magdir/bFLT
/usr/src/lib/libmagic/../../contrib/file/Magdir/bout
/usr/src/lib/libmagic/../../contrib/file/Magdir/hitachi-sh
/usr/src/lib/libmagic/../../contrib/file/Magdir/matroska
/usr/src/lib/libmagic/../../contrib/file/Magdir/ocaml
/usr/src/lib/libmagic/../../contrib/file/Magdir/vax
/usr/src/lib/libmagic/../../contrib/file/Magdir/clipper
/usr/src/lib/libmagic/../../contrib/file/Magdir/frame
/usr/src/lib/libmagic/../../contrib/file/Magdir/magic
/usr/src/lib/libmagic/../../contrib/file/Magdir/sql
/usr/src/lib/libmagic/../../contrib/file/Magdir/dact
/usr/src/lib/libmagic/../../contrib/file/Magdir/gnu
/usr/src/lib/libmagic/../../contrib/file/Magdir/ibm6000
/usr/src/lib/libmagic/../../contrib/file/Magdir/os2
/usr/src/lib/libmagic/../../contrib/file/Magdir/rpm
/usr/src/lib/libmagic/../../contrib/file/Magdir/misctools
/usr/src/lib/libmagic/../../contrib/file/Magdir/motorola
/usr/src/lib/libmagic/../../contrib/file/Magdir/osf1
/usr/src/lib/libmagic/../../contrib/file/Magdir/perl
/usr/src/lib/libmagic/../../contrib/file/Magdir/xenix
/usr/src/lib/libmagic/../../contrib/file/Magdir/tgif
/usr/src/lib/libmagic/../../contrib/file/Magdir/sc
/usr/src/lib/libmagic/../../contrib/file/Magdir/pyramid
/usr/src/lib/libmagic/../../contrib/file/Magdir/adventure
/usr/src/lib/libmagic/../../contrib/file/Magdir/att3b
/usr/src/lib/libmagic/../../contrib/file/Magdir/flash
/usr/src/lib/libmagic/../../contrib/file/Magdir/karma
/usr/src/lib/libmagic/../../contrib/file/Magdir/octave
/usr/src/lib/libmagic/../../contrib/file/Magdir/parix
/usr/src/lib/libmagic/../../contrib/file/Magdir/plan9
/usr/src/lib/libmagic/../../contrib/file/Magdir/troff
/usr/src/lib/libmagic/../../contrib/file/Magdir/spectrum
/usr/src/lib/libmagic/../../contrib/file/Magdir/softquad
/usr/src/lib/libmagic/../../contrib/file/Magdir/dyadic
/usr/src/lib/libmagic/../../contrib/file/Magdir/palm
/usr/src/lib/libmagic/../../contrib/file/Magdir/pdf
/usr/src/lib/libmagic/../../contrib/file/Magdir/vorbis
/usr/src/lib/libmagic/../../contrib/file/Magdir/smalltalk
/usr/src/lib/libmagic/../../contrib/file/Magdir/sgml
/usr/src/lib/libmagic/../../contrib/file/Magdir/msvc
/usr/src/lib/libmagic/../../contrib/file/Magdir/news
/usr/src/lib/libmagic/../../contrib/file/Magdir/vmware
/usr/src/lib/libmagic/../../contrib/file/Magdir/diamond
/usr/src/lib/libmagic/../../contrib/file/Magdir/dump
/usr/src/lib/libmagic/../../contrib/file/Magdir/linux
/usr/src/lib/libmagic/../../contrib/file/Magdir/mime
/usr/src/lib/libmagic/../../contrib/file/Magdir/zilog
/usr/src/lib/libmagic/../../contrib/file/Magdir/sgi
/usr/src/lib/libmagic/../../contrib/file/Magdir/sequent
/usr/src/lib/libmagic/../../contrib/file/Magdir/blit
/usr/src/lib/libmagic/../../contrib/file/Magdir/impulse
/usr/src/lib/libmagic/../../contrib/file/Magdir/island
/usr/src/lib/libmagic/../../contrib/file/Magdir/maple
/usr/src/lib/libmagic/../../contrib/file/Magdir/os9
/usr/src/lib/libmagic/../../contrib/file/Magdir/pkgadd
/usr/src/lib/libmagic/../../contrib/file/Magdir/uuencode
/usr/src/lib/libmagic/../../contrib/file/Magdir/amanda
/usr/src/lib/libmagic/../../contrib/file/Magdir/audio
/usr/src/lib/libmagic/../../contrib/file/Magdir/bsdi
/usr/src/lib/libmagic/../../contrib/file/Magdir/fcs
/usr/src/lib/libmagic/../../contrib/file/Magdir/intel
/usr/src/lib/libmagic/../../contrib/file/Magdir/netbsd
/usr/src/lib/libmagic/../../contrib/file/Magdir/riff
/usr/src/lib/libmagic/../../contrib/file/Magdir/console
/usr/src/lib/libmagic/../../contrib/file/Magdir/lecter
/usr/src/lib/libmagic/../../contrib/file/Magdir/visx
/usr/src/lib/libmagic/../../contrib/file/Magdir/varied.script
/usr/src/lib/libmagic/../../contrib/file/Magdir/ti-8x
/usr/src/lib/libmagic/../../contrib/file/Magdir/c-lang
/usr/src/lib/libmagic/../../contrib/file/Magdir/digital
/usr/src/lib/libmagic/../../contrib/file/Magdir/dolby
/usr/src/lib/libmagic/../../contrib/file/Magdir/grace
/usr/src/lib/libmagic/../../contrib/file/Magdir/ibm370
/usr/src/lib/libmagic/../../contrib/file/Magdir/images
/usr/src/lib/libmagic/../../contrib/file/Magdir/tuxedo
/usr/src/lib/libmagic/../../contrib/file/Magdir/timezone
/usr/src/lib/libmagic/../../contrib/file/Magdir/project
/usr/src/lib/libmagic/../../contrib/file/Magdir/cisco
/usr/src/lib/libmagic/../../contrib/file/Magdir/mach
/usr/src/lib/libmagic/../../contrib/file/Magdir/mkid
/usr/src/lib/libmagic/../../contrib/file/Magdir/pgp
/usr/src/lib/libmagic/../../contrib/file/Magdir/printer
/usr/src/lib/libmagic/../../contrib/file/Magdir/apple
/usr/src/lib/libmagic/../../contrib/file/Magdir/applix
/usr/src/lib/libmagic/../../contrib/file/Magdir/terminfo
/usr/src/lib/libmagic/../../contrib/file/Magdir/interleaf
/usr/src/lib/libmagic/../../contrib/file/Magdir/lisp
/usr/src/lib/libmagic/../../contrib/file/Magdir/spec
/usr/src/lib/libmagic/../../contrib/file/Magdir/sniffer
/usr/src/lib/libmagic/../../contrib/file/Magdir/revision
/usr/src/lib/libmagic/../../contrib/file/Magdir/amigaos
/usr/src/lib/libmagic/../../contrib/file/Magdir/database
/usr/src/lib/libmagic/../../contrib/file/Magdir/gringotts
/usr/src/lib/libmagic/../../contrib/file/Magdir/pbm
/usr/src/lib/libmagic/../../contrib/file/Magdir/plus5
/usr/src/lib/libmagic/../../contrib/file/Magdir/vms
/usr/src/lib/libmagic/../../contrib/file/Magdir/python
/usr/src/lib/libmagic/../../contrib/file/Magdir/chord
/usr/src/lib/libmagic/../../contrib/file/Magdir/ctags
/usr/src/lib/libmagic/../../contrib/file/Magdir/human68k
/usr/src/lib/libmagic/../../contrib/file/Magdir/pdp
/usr/src/lib/libmagic/../../contrib/file/Magdir/sharc
/usr/src/lib/libmagic/../../contrib/file/Magdir/pulsar
/usr/src/lib/libmagic/../../contrib/file/Magdir/apl
/usr/src/lib/libmagic/../../contrib/file/Magdir/communications
/usr/src/lib/libmagic/../../contrib/file/Magdir/ncr
/usr/src/lib/libmagic/../../contrib/file/Magdir/alpha
/usr/src/lib/libmagic/../../contrib/file/Magdir/asterix
/usr/src/lib/libmagic/../../contrib/file/Magdir/blender
/usr/src/lib/libmagic/../../contrib/file/Magdir/sendmail
/usr/src/lib/libmagic/../../contrib/file/Magdir/alliant
/usr/src/lib/libmagic/../../contrib/file/Magdir/cddb
/usr/src/lib/libmagic/../../contrib/file/Magdir/elf
/usr/src/lib/libmagic/../../contrib/file/Magdir/epoc
/usr/src/lib/libmagic/../../contrib/file/Magdir/ispell
/usr/src/lib/libmagic/../../contrib/file/Magdir/lex
/usr/src/lib/libmagic/../../contrib/file/Magdir/mips > magic
cc -DHAVE_CONFIG_H -DCOMPILE_ONLY  -I/usr/src/lib/libmagic
-I/usr/src/lib/libmagic/../../contrib/file -o mkmagic
/usr/src/lib/libmagic/../../contrib/file/apprentice.c
/usr/src/lib/libmagic/../../contrib/file/funcs.c
/usr/src/lib/libmagic/../../contrib/file/magic.c
/usr/src/lib/libmagic/../../contrib/file/print.c
/usr/obj/usr/src/i386/usr/bin/ld: cannot find -lc
*** Error code 1

Stop in /usr/src/lib/libmagic.
*** Error code 1

Stop in /usr/src/lib.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
-------------| END buildworld output |--------------

world has built fine on this machine several times before; when
upgrading from 5.2-RELEASE to 5.2.1-RELEASE and from 5.2.1-RELEASE to
RELENG_5_2. I find nothing  in /usr/src/UPDATING to explain this, but
I'm suspecting it's got something to do with the GCC upgrade.

One weird thing is that I cvsupped and successfully built (though not
installed) RELENG_5 world yesterday. After I realized I had checked
out RELENG_5 and not RELENG_5_3, I deleted /usr/src and /usr/obj and
cvsupped RELENG_5_3 instead. And now I'm getting this "cannot find
-lc" error.

Anyone have a clue? FreeBSD has been working great on my laptop for
the last couple of years and I'm eager to try the new release out.
I've tried running the make command in env -i to avoid environment
poisoning with same result. I can send the entire buildworld output on
request. GCC 3.3.3 is my system compiler.

Best regards,
Aron Stansvik



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?751a4f87041109062939061dac>