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,

[EMAIL PROTECTED]

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 <freebsd-native.h>'              >> 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 [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to