From owner-freebsd-questions Wed Jan 8 2:27:17 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3BC4F37B401 for ; Wed, 8 Jan 2003 02:27:13 -0800 (PST) Received: from hugo.int-evry.fr (hugo.int-evry.fr [157.159.100.81]) by mx1.FreeBSD.org (Postfix) with ESMTP id C366543E4A for ; Wed, 8 Jan 2003 02:27:11 -0800 (PST) (envelope-from jb@ipv6-5.int-evry.fr) Received: from ipv6-5.int-evry.fr (ipv6-5 [157.159.100.78]) by hugo.int-evry.fr (8.8.8/jtpda-5.3) with ESMTP id LAA19537 ; Wed, 8 Jan 2003 11:27:06 +0100 (MET) Received: from jb by ipv6-5.int-evry.fr with local (Exim 4.10 #1 (FreeBSD)) id 18WDQf-0009jL-00; Wed, 08 Jan 2003 11:27:21 +0100 Date: Wed, 8 Jan 2003 11:27:21 +0100 From: Julien Bournelle To: freebsd-questions@freebsd.org Subject: 5.0-DP2 sparc64 buildworld problem Message-ID: <20030108102721.GE14264@ipv6-5.int-evry.fr> Mail-Followup-To: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi all, I try to compile a kernel for a sparc64 on my FreeBSD 4.5 box. So I cvsup with: " *default host=ftp.fr.FreeBSD.org *default base=/usr *default prefix=/usr *default release=cvs tag=. *default delete use-rel-suffix # If your network link is a T1 or faster, comment out the following line. #*default compress ## Main Source Tree. # # The easiest way to get the main source tree is to use the "src-all" # mega-collection. It includes all of the individual "src-*" collections. src-all " ok, I have no problem with that. Then I cd to /usr/src and run: make TARGET_ARCH=sparc64 buildworld and I have the following error: " ===> usr.bin/xargs /usr/obj/sparc64/usr/src/i386/usr/src/usr.bin/xargs created for /usr/src/usr.bin/xargs rm -f .depend mkdep -f .depend -a /usr/src/usr.bin/xargs/xargs.c /usr/src/usr.bin/xargs/strnsubst.c echo xargs: /usr/lib/libc.a >> .depend cc -O -pipe -Wall -Wno-format-y2k -W -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wno-uninitialized -c /usr/src/usr.bin/xargs/xargs.c cc -O -pipe -Wall -Wno-format-y2k -W -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wno-uninitialized -c /usr/src/usr.bin/xargs/strnsubst.c cc -O -pipe -Wall -Wno-format-y2k -W -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wno-uninitialized -static -o xargs xargs.o strnsubst.o xargs.o: In function `prompt': xargs.o(.text+0xd15): undefined reference to `nl_langinfo' *** Error code 1 Stop in /usr/src/usr.bin/xargs. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src " in stage 1 process. I tried to run these commands before: # chflags -R noschg /usr/obj/usr # rm -rf /usr/obj/usr # cd /usr/src # make cleandir # make cleandir but still have the same error. I guess that it isn't specific to TARGET_ARCH option because I tried to run the command without it and I still have this error. If someone has an idea or a better appropriated mailing lists and I would be very happy :-) Thanks in advance, julien.bournelle@int-evry.fr ps: I tried to run 'make TARGET_ARCH=sparc64' libraries before and in this case I have the following error: " ===> gnu/lib/csu make -f /usr/src/gnu/lib/csu/../../usr.bin/cc/cc_tools/Makefile MFILE=/usr/src/gnu/lib/csu/../../usr.bin/cc/cc_tools/Makefile GCCDIR=/usr/src/gnu/l ib/csu/../../../contrib/gcc tconfig.h echo 'struct rtx_def;' > tconfig.h echo 'typedef struct rtx_def *rtx;' >> tconfig.h echo 'struct rtvec_def;' >> tconfig.h echo 'typedef struct rtvec_def *rtvec;' >> tconfig.h echo 'union tree_node;' >> tconfig.h echo 'typedef union tree_node *tree;' >> tconfig.h echo '' >> tconfig.h echo '#include "ansidecl.h"' >> tconfig.h echo '#include "sparc/sparc.h"' >> tconfig.h echo '#include "dbxelf.h"' >> tconfig.h echo '#include "elfos.h"' >> tconfig.h echo '#include ' >> tconfig.h echo '#include "freebsd-spec.h"' >> tconfig.h echo '#include "freebsd.h"' >> tconfig.h echo '#include "sparc/sysv4.h"' >> tconfig.h echo '#include "sparc/freebsd.h"' >> tconfig.h echo '#include "defaults.h"' >> tconfig.h echo '#ifndef POSIX' >> tconfig.h echo '# define POSIX' >> tconfig.h echo '#endif' >> tconfig.h echo '#define CONFIG_SJLJ_EXCEPTIONS 0' >> tconfig.h rm -f .depend CC="cc" MKDEP_CPP_OPTS="-M -DCRT_BEGIN" mkdep -f .depend -a -DTARGET_CPU_DEFAULT=TARGET_CPU_ultrasparc -DIN_GCC -DHAVE_LD_EH_FRAME_HDR -I/usr/sr c/gnu/lib/csu/../../../contrib/gcc/config -I/usr/src/gnu/lib/csu/../../../contrib/gcc -I. -I/usr/src/gnu/lib/csu/../../usr.bin/cc/cc_tools /usr/sr c/gnu/lib/csu/../../../contrib/gcc/crtstuff.c /usr/src/gnu/lib/csu/../../../contrib/gcc/config/sparc/crtfastmath.c cc -O -pipe -mcpu=pentiumpro -DTARGET_CPU_DEFAULT=TARGET_CPU_ultrasparc -DIN_GCC -DHAVE_LD_EH_FRAME_HDR -finhibit-size-directive -fno-inline-functi ons -fno-exceptions -fno-omit-frame-pointer -I/usr/src/gnu/lib/csu/../../../contrib/gcc/config -I/usr/src/gnu/lib/csu/../../../contrib/gcc -I. -I /usr/src/gnu/lib/csu/../../usr.bin/cc/cc_tools -g0 -DCRT_BEGIN -c -o crtbegin.o /usr/src/gnu/lib/csu/../../../contrib/gcc/crtstuff.c In file included from /usr/src/gnu/lib/csu/../../../contrib/gcc/crtstuff.c:63: /usr/src/gnu/lib/csu/../../../contrib/gcc/unwind-dw2-fde.h:37: field `array' has incomplete type /usr/src/gnu/lib/csu/../../../contrib/gcc/unwind-dw2-fde.h:135: field `augmentation' has incomplete type /usr/src/gnu/lib/csu/../../../contrib/gcc/unwind-dw2-fde.h:143: field `pc_begin' has incomplete type /usr/src/gnu/lib/csu/../../../contrib/gcc/crtstuff.c:254: warning: `used' attribute directive ignored /usr/src/gnu/lib/csu/../../../contrib/gcc/crtstuff.c: In function `__do_global_dtors_aux': /usr/src/gnu/lib/csu/../../../contrib/gcc/crtstuff.c:256: syntax error before `completed' /usr/src/gnu/lib/csu/../../../contrib/gcc/crtstuff.c:259: `completed' undeclared (first use in this function) /usr/src/gnu/lib/csu/../../../contrib/gcc/crtstuff.c:259: (Each undeclared identifier is reported only once /usr/src/gnu/lib/csu/../../../contrib/gcc/crtstuff.c:259: for each function it appears in.) /usr/src/gnu/lib/csu/../../../contrib/gcc/crtstuff.c: At top level: /usr/src/gnu/lib/csu/../../../contrib/gcc/crtstuff.c:289: warning: `__used__' attribute directive ignored /usr/src/gnu/lib/csu/../../../contrib/gcc/crtstuff.c:298: warning: `used' attribute directive ignored /usr/src/gnu/lib/csu/../../../contrib/gcc/crtstuff.c:326: warning: `__used__' attribute directive ignored *** Error code 1 Stop in /usr/src/gnu/lib/csu. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. " To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message