Date: Thu, 15 Feb 2007 13:50:48 +0100 (CET) From: Christian Baer <christian.baer@uni-dortmund.de> To: freebsd-sparc64@freebsd.org Subject: Re: good (working) CFLAGS for SPARC64 (Christian Baer) Message-ID: <er1kv8$3oq$5@nermal.rz1.convenimus.net> References: <340594530702021212x63266109yf2f1d4b7b5833c9e@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 2 Feb 2007 12:12:56 -0800 Steven Hillis wrote: Hello Steven! Sorry this answer took so long. I was off on a holiday in east Germany. Now I have settled in again and got back to my old problems. :-) > I've personally had some success with the following: > -O2 -mcpu=ultrasparc -pipe -fomit-frame-pointer -ffast-math > -finline-functions -fweb -frename-registers -mapp-regs I've been much more careful that you, as I have only added the mcpu-flag and also added the mtune-flag (both set to ultrasparc). The -O2 I left in place. In many cases, things won't compile. This includes the world as well (make buildworld). While I am writing this, I am running a csup on my Sun, so I can try again with the current sources (RELENG_6). Once again, it didn't work. :-( I only used the flags above in /etc/make.conf and buildworld doesn't work anymore. Can you actually build a whole world with those flags? I'm putting the results (final lines) below. Regards Chris make -j 2 buildworld starts here... echo "\"/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/c-common.c\", " >> gtyp-gen.h echo "\"/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/c-common.h\", " >> gtyp-gen.h echo "\"/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/c-pragma.c\", " >> gtyp-gen.h echo "\"/usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/c-objc-common.c\", " >> gtyp-gen.h echo "NULL};" >> gtyp-gen.h echo "static const char *lang_dir_names[] = { \"c\", " >> gtyp-gen.h echo "\"cp\", " >> gtyp-gen.h echo "\"objc\", " >> gtyp-gen.h echo "\"f\", " >> gtyp-gen.h echo "NULL};" >> gtyp-gen.h cat gengtype-yacc.c > gengtype-yacc+%DIKED.c sed -e "s/xmalloc/malloc/g" -e "s/xrealloc/realloc/g" -e "s/malloc/xmalloc/g" -e "s/realloc/xrealloc/g" gengtype-yacc.c > gengtype-yacc+%DIKED.c echo '#include <bconfig.h>' > config.h cc -O2 -pipe -mcpu=ultrasparc -mtune=ultrasparc -I. -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 -DGENERATOR_FILE -I/usr/obj/usr/src/tmp/legacy/usr/include -c /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/choose-temp.c cc -O2 -pipe -mcpu=ultrasparc -mtune=ultrasparc -I. -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 -DGENERATOR_FILE -I/usr/obj/usr/src/tmp/legacy/usr/include -c /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/concat.c In file included from ./bconfig.h:3, In file included from ./bconfig.h:3, from ./config.h:1, from /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/choose-temp.c:23: /usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools/auto-host.h:532:3: #error "I don't know what arch this is." from ./config.h:1, from /usr/src/gnu/usr.bin/cc/cc_tools/../../../../contrib/gcc/concat.c:48: /usr/src/gnu/usr.bin/cc/cc_tools/../cc_tools/auto-host.h:532:3: #error "I don't know what arch this is." *** Error code 1 *** Error code 1 2 errors *** Error code 2 1 error *** Error code 2 1 error *** Error code 2 1 error
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?er1kv8$3oq$5>