new to sparc64--build problems

Hiroki Sato hrs at FreeBSD.org
Sat Feb 7 00:39:17 PST 2004


"John Goodleaf" <john at goodleaf.net> wrote
  in <54371.140.107.64.44.1075916714.squirrel at www.goodleaf.net>:

john> cc -O -pipe -mcpu=ultrasparc -I. -static -DGENERATOR_FILE
john> -DTARGET_CPU_DEFAULT=TARGET_CPU_ultrasparc -DIN_GCC -DHAVE_CONFIG_H
john> -DPREFIX=\"/usr\"
john> -I/usr/obj/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools
john> -I/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools
john> -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc
john> -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config 
john> -I/usr/obj/usr/src/sparc64/legacy/usr/include -c
john> /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/gencheck.c
john> In file included from hconfig.h:1,
john>                  from /usr/src/contrib/gcc/gencheck.c:21:
john> /usr/src/gnu/usr.bin/cc/cc_tools/auto-host.h:320:2: #error "I don't
john> know what arch this is."
john> *** Error code 1
john> 
john> Stop in /usr/src/gnu/usr.bin/cc/cc_tools.
john> *** Error code 1
john> 
john> I've tried setting the __sparc64__ and defining environment
john> variables like MACHINE_ARCH, but it just doesn't work. Is this
john> covered somewhere in some documentation I've not seen?

 You do not need to define such variables by hand.  In a buildworld
 log on my Ultra5, the line is as follows and the buildworld works fine:

 cc -O -pipe -I. -static -DGENERATOR_FILE \
  -DTARGET_CPU_DEFAULT=TARGET_CPU_ultrasparc -DIN_GCC -DHAVE_CONFIG_H \
  -DPREFIX=\"/usr\" -I/usr/obj/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools \
  -I/usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools \
  -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc \
  -I/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/config \
  -I/usr/obj/usr/src/sparc64/legacy/usr/include
  -c /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/gencheck.c

-- 
| Hiroki SATO
-------------- 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-sparc64/attachments/20040207/ef5f3f5a/attachment.bin


More information about the freebsd-sparc64 mailing list