From owner-freebsd-sparc64@FreeBSD.ORG Thu Feb 15 12:50:52 2007 Return-Path: X-Original-To: freebsd-sparc64@freebsd.org Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3D1B616A408 for ; Thu, 15 Feb 2007 12:50:52 +0000 (UTC) (envelope-from news@nermal.rz1.convenimus.net) Received: from mx3.netclusive.de (mx3.netclusive.de [89.110.132.133]) by mx1.freebsd.org (Postfix) with ESMTP id CF66E13C4AA for ; Thu, 15 Feb 2007 12:50:51 +0000 (UTC) (envelope-from news@nermal.rz1.convenimus.net) Received: from nermal.rz1.convenimus.net (Fdc2b.f.ppp-pool.de [195.4.220.43]) by mx3.netclusive.de (Postfix) with ESMTP id 33026604076 for ; Thu, 15 Feb 2007 13:50:50 +0100 (CET) Received: by nermal.rz1.convenimus.net (Postfix, from userid 8) id B21711521B; Thu, 15 Feb 2007 13:50:48 +0100 (CET) To: freebsd-sparc64@freebsd.org Path: not-for-mail From: Christian Baer Newsgroups: gmane.os.freebsd.devel.sparc Date: Thu, 15 Feb 2007 13:50:48 +0100 (CET) Organization: Convenimus Projekt Lines: 93 Message-ID: References: <340594530702021212x63266109yf2f1d4b7b5833c9e@mail.gmail.com> NNTP-Posting-Host: garfield.rz1.convenimus.net X-Trace: nermal.rz1.convenimus.net 1171543848 3866 192.168.100.11 (15 Feb 2007 12:50:48 GMT) X-Complaints-To: abuse@convenimus.net NNTP-Posting-Date: Thu, 15 Feb 2007 12:50:48 +0000 (UTC) User-Agent: slrn/0.9.8.1 (FreeBSD) Subject: Re: good (working) CFLAGS for SPARC64 (Christian Baer) X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Feb 2007 12:50:52 -0000 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 ' > 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