Hi Maksim, On Mon, Sep 20, 2004 at 02:00:55PM -0700, Maksim Yevmenkin wrote: > Hackers, > > i'm trying to upgrade couple of sun netra's here and having troubles > with 'make buildworld'. > > netra1# uname -a > FreeBSD netra1 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #0: Tue Feb 24 > 07:47:33 GMT 2004 > root_at_bobbi.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC sparc64 > > it always stops at '===> lib/libmagic (all)'. the last few lines are > below. complete buildworld output can be found at > > http://mumu.org/~myevmenk/buildworld.txt > Next time, please take a moment to compress it, OK? ;) > 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/sparc64/usr/bin/ld: cannot find -lc > *** Error code 1 > > Stop in /usr/src/lib/libmagic. > *** Error code 1 > What you see is that your libmagic's build-tools is rebuilt twice. First here (as expected): : -------------------------------------------------------------- : >>> stage 2.3: build tools : -------------------------------------------------------------- : ===> lib/libmagic (obj,build-tools) : 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 And then here (where it's not supposed to be built): : -------------------------------------------------------------- : >>> stage 4.2: building libraries : -------------------------------------------------------------- : ===> lib/libmagic (all) : 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/sparc64/usr/bin/ld: cannot find -lc : *** Error code 1 : : Stop in /usr/src/lib/libmagic. : *** Error code 1 Since mkmagic is a build tool, it's normally built in stage 2.3 only, using the host libraries and headers (/lib, /usr/lib and /usr/include). The fact that it attempts to do it again in stage 4.2 tells us something: most likely, your computer's date/time is set incorrectly. If it's set correctly, there're still a couple of possibilities: you touched some files that mkmagic depends on, causing make(1) to think it should rebuild it. Or some /usr/src files have modification date/time set to the future time. Please double-check and let me know. Most likely in this case that your computer's date/time is set incorrectly, as mkmagic does not appear in libmagic/.depend file. And no, this has nothing to do with 64bTT. Cheers, -- Ruslan Ermilov ru_at_FreeBSD.org FreeBSD committer
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:12 UTC