good (working) CFLAGS for SPARC64 (Christian Baer)

Christian Baer christian.baer at uni-dortmund.de
Thu Feb 15 12:50:52 UTC 2007


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



More information about the freebsd-sparc64 mailing list