Hi, currently i have a strange problem with 'make buildworld'. I use the amd64 6-STABLE branch with daily csup on src-all. When i do a 'make buildworld' in /usr/src, the make stops with the following error: ---------- /usr/src/lib/libkvm/kvm_getswapinfo.c: In function `kvm_getswapinfo_kvm': /usr/src/lib/libkvm/kvm_getswapinfo.c:124: error: storage size of 'swinfo' isn't known /usr/src/lib/libkvm/kvm_getswapinfo.c: In function `nlist_init': /usr/src/lib/libkvm/kvm_getswapinfo.c:233: error: storage size of 'swinfo' isn't known *** Error code 1 Stop in /usr/src/lib/libkvm. ---------- When i do the same on a i386 machine wich is in config &c absolutely indetical to the amd64, buildworld runs perfectly through. make.conf: CPUTYPE=nocona CFLAGS= -O2 -pipe CC=/usr/bin/cc CXX=/usr/bin/g++ NO_BLUETOOTH= # do not build Bluetooth related stuff NO_GAMES= # do not build games (games/ subdir) NO_INET6= # do not build IPv6 related programs and libraries NO_I4B= # do not build isdn4bsd package NO_LPR= # do not build lpr and related programs NO_BIND= # Do not build any part of BIND NO_DICT= # do not build the Webster dictionary files NO_INFO= # do not make or install info files NO_KERBEROS= # do not build and install Kerberos 5 (KTH Heimdal) NO_PF= # do not build PF firewall package NO_PROFILE= # Avoid compiling profiled libraries NO_SENDMAIL= # do not build sendmail and related programs NO_SHAREDOCS= # do not build the 4.4BSD legacy docs (only difference to the i386-machine where it works is the CPUTYPE, wich is, of course, athlon-xp there). Has anyone an idea? It is currenty not THAT important, because there is a working 6.2-RELEASE world on the machine, but i don't wan't to have a broken world build if a important security advisory comes... Thank you all very much & greetings, -- Neo [GC] / Thomas Weber Webmaster @ GothNet.eu / Gothic-Chat.de EMail: neo@gothic-chat.de WWW: http://neo.gothic-chat.de/ Location: Earth::Germany::Munich
Hi, Neo [GC] wrote:> Hi, > > currently i have a strange problem with 'make buildworld'. I use the > amd64 6-STABLE branch with daily csup on src-all. > > When i do a 'make buildworld' in /usr/src, the make stops with the > following error: > ---------- > /usr/src/lib/libkvm/kvm_getswapinfo.c: In function `kvm_getswapinfo_kvm': > /usr/src/lib/libkvm/kvm_getswapinfo.c:124: error: storage size of > 'swinfo' isn't known > /usr/src/lib/libkvm/kvm_getswapinfo.c: In function `nlist_init': > /usr/src/lib/libkvm/kvm_getswapinfo.c:233: error: storage size of > 'swinfo' isn't known > *** Error code 1 > > Stop in /usr/src/lib/libkvm. > ---------- > > When i do the same on a i386 machine wich is in config &c absolutely > indetical to the amd64, buildworld runs perfectly through. > > make.conf: > CPUTYPE=nocona > CFLAGS= -O2 -pipe > CC=/usr/bin/cc > CXX=/usr/bin/g++ > NO_BLUETOOTH= # do not build Bluetooth related stuff > NO_GAMES= # do not build games (games/ subdir) > NO_INET6= # do not build IPv6 related programs and libraries > NO_I4B= # do not build isdn4bsd package > NO_LPR= # do not build lpr and related programs > NO_BIND= # Do not build any part of BIND > NO_DICT= # do not build the Webster dictionary files > NO_INFO= # do not make or install info files > NO_KERBEROS= # do not build and install Kerberos 5 (KTH > Heimdal) > NO_PF= # do not build PF firewall package > NO_PROFILE= # Avoid compiling profiled libraries > NO_SENDMAIL= # do not build sendmail and related programs > NO_SHAREDOCS= # do not build the 4.4BSD legacy docsMay be I'm wrong, but can you try again, after removing CPUTYPE, CFLAGS, CC and CCX from your make.conf file ? It was said many times that setting CFLAGS is bad :) and CPUTYPE should be CPUTYPE?= (so make can change it if needed) Also I'm not sure that there is any optimization available in GCC for amd64 architecture.> > (only difference to the i386-machine where it works is the CPUTYPE, > wich is, of course, athlon-xp there). > > Has anyone an idea? It is currenty not THAT important, because there > is a working 6.2-RELEASE world on the machine, but i don't wan't to > have a broken world build if a important security advisory comes... > > > Thank you all very much & greetings, >-- Best Wishes, Stefan Lambrev ICQ# 24134177
On 2007-May-04 14:19:15 +0200, "Neo [GC]" <neo@gothic-chat.de> wrote:>When i do a 'make buildworld' in /usr/src, the make stops with the >following error: >---------- >/usr/src/lib/libkvm/kvm_getswapinfo.c: In function `kvm_getswapinfo_kvm': >/usr/src/lib/libkvm/kvm_getswapinfo.c:124: error: storage size of >'swinfo' isn't known >/usr/src/lib/libkvm/kvm_getswapinfo.c: In function `nlist_init': >/usr/src/lib/libkvm/kvm_getswapinfo.c:233: error: storage size of >'swinfo' isn't known >*** Error code 1... Out of interest, is this when it's building the amd64 or i386 libkvm?>CPUTYPE=nocona >CFLAGS= -O2 -pipe >CC=/usr/bin/cc >CXX=/usr/bin/g++I'd remove all 4 of these flags. 'CC' and 'CXX' in particular are wrong for buildworld because most of buildworld uses a temporary cross-compiler. -- Peter Jeremy -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20070504/6b18ed32/attachment.pgp