From owner-freebsd-mips@FreeBSD.ORG Sun Mar 6 01:52:42 2011 Return-Path: Delivered-To: mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 94398106566B; Sun, 6 Mar 2011 01:52:42 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by mx1.freebsd.org (Postfix) with ESMTP id 683128FC1A; Sun, 6 Mar 2011 01:52:42 +0000 (UTC) Received: from freebsd-current.sentex.ca (localhost [127.0.0.1]) by freebsd-current.sentex.ca (8.14.4/8.14.4) with ESMTP id p261qftr012722; Sat, 5 Mar 2011 20:52:41 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-current.sentex.ca (8.14.4/8.14.4/Submit) id p261qfkj012675; Sun, 6 Mar 2011 01:52:41 GMT (envelope-from tinderbox@freebsd.org) Date: Sun, 6 Mar 2011 01:52:41 GMT Message-Id: <201103060152.p261qfkj012675@freebsd-current.sentex.ca> X-Authentication-Warning: freebsd-current.sentex.ca: tinderbox set sender to FreeBSD Tinderbox using -f Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Cc: Subject: [head tinderbox] failure on mips/mips X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Mar 2011 01:52:42 -0000 TB --- 2011-03-06 01:14:22 - tinderbox 2.6 running on freebsd-current.sentex.ca TB --- 2011-03-06 01:14:22 - starting HEAD tinderbox run for mips/mips TB --- 2011-03-06 01:14:22 - cleaning the object tree TB --- 2011-03-06 01:14:30 - cvsupping the source tree TB --- 2011-03-06 01:14:30 - /usr/bin/csup -z -r 3 -g -L 1 -h cvsup.sentex.ca /tinderbox/HEAD/mips/mips/supfile TB --- 2011-03-06 01:15:11 - building world TB --- 2011-03-06 01:15:11 - MAKEOBJDIRPREFIX=/obj TB --- 2011-03-06 01:15:11 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2011-03-06 01:15:11 - TARGET=mips TB --- 2011-03-06 01:15:11 - TARGET_ARCH=mips TB --- 2011-03-06 01:15:11 - TZ=UTC TB --- 2011-03-06 01:15:11 - __MAKE_CONF=/dev/null TB --- 2011-03-06 01:15:11 - cd /src TB --- 2011-03-06 01:15:11 - /usr/bin/make -B buildworld >>> World build started on Sun Mar 6 01:15:12 UTC 2011 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything [...] cc -O -pipe -G0 -I/src/cddl/usr.bin/sgsmsg/../../../sys/cddl/compat/opensolaris -I/src/cddl/usr.bin/sgsmsg/../../../cddl/compat/opensolaris/include -I/src/cddl/usr.bin/sgsmsg/../../../cddl/contrib/opensolaris/cmd/sgs/include -I/src/cddl/usr.bin/sgsmsg/../../../sys/cddl/contrib/opensolaris/uts/common -DNEED_SOLARIS_BOOLEAN -std=gnu89 -Wno-pointer-sign -Wno-unknown-pragmas -o sgsmsg avl.o sgsmsg.o string_table.o findprime.o ===> cddl/usr.bin/zinject (all) cc -O -pipe -G0 -I/src/cddl/usr.bin/zinject/../../../sys/cddl/compat/opensolaris -I/src/cddl/usr.bin/zinject/../../compat/opensolaris/include -I/src/cddl/usr.bin/zinject/../../compat/opensolaris/lib/libumem -I/src/cddl/usr.bin/zinject/../../contrib/opensolaris/lib/libzfs/common -I/src/cddl/usr.bin/zinject/../../contrib/opensolaris/lib/libzpool/common -I/src/cddl/usr.bin/zinject/../../contrib/opensolaris/lib/libnvpair -I/src/cddl/usr.bin/zinject/../../../sys/cddl/contrib/opensolaris/uts/common/fs/zfs -I/src/cddl/usr.bin/zinject/../../../sys/cddl/contrib/opensolaris/uts/common/sys -I/src/cddl/usr.bin/zinject/../../../sys/cddl/contrib/opensolaris/uts/common -I/src/cddl/usr.bin/zinject/../../contrib/opensolaris/head -I/src/cddl/usr.bin/zinject/../../lib/libumem -DNEED_SOLARIS_BOOLEAN -std=gnu89 -Wno-pointer-sign -Wno-unknown-pragmas -c /src/cddl/usr.bin/zinject/../../contrib/opensolaris/cmd/zinject/zinject.c cc -O -pipe -G0 -I/src/cddl/usr.bin/zinject/../../../sys/cddl/compat/opensolaris -I/src/cddl/usr.bin/zinject/../../compat/opensolaris/include -I/src/cddl/usr.bin/zinject/../../compat/opensolaris/lib/libumem -I/src/cddl/usr.bin/zinject/../../contrib/opensolaris/lib/libzfs/common -I/src/cddl/usr.bin/zinject/../../contrib/opensolaris/lib/libzpool/common -I/src/cddl/usr.bin/zinject/../../contrib/opensolaris/lib/libnvpair -I/src/cddl/usr.bin/zinject/../../../sys/cddl/contrib/opensolaris/uts/common/fs/zfs -I/src/cddl/usr.bin/zinject/../../../sys/cddl/contrib/opensolaris/uts/common/sys -I/src/cddl/usr.bin/zinject/../../../sys/cddl/contrib/opensolaris/uts/common -I/src/cddl/usr.bin/zinject/../../contrib/opensolaris/head -I/src/cddl/usr.bin/zinject/../../lib/libumem -DNEED_SOLARIS_BOOLEAN -std=gnu89 -Wno-pointer-sign -Wno-unknown-pragmas -c /src/cddl/usr.bin/zinject/../../contrib/opensolaris/cmd/zinject/translate.c /src/cddl/usr.bin/zinject/../../contrib/opensolaris/cmd/zinject/translate.c: In function 'translate_record': /src/cddl/usr.bin/zinject/../../contrib/opensolaris/cmd/zinject/translate.c:382: warning: passing argument 4 of 'calculate_range' discards qualifiers from pointer target type cc -O -pipe -G0 -I/src/cddl/usr.bin/zinject/../../../sys/cddl/compat/opensolaris -I/src/cddl/usr.bin/zinject/../../compat/opensolaris/include -I/src/cddl/usr.bin/zinject/../../compat/opensolaris/lib/libumem -I/src/cddl/usr.bin/zinject/../../contrib/opensolaris/lib/libzfs/common -I/src/cddl/usr.bin/zinject/../../contrib/opensolaris/lib/libzpool/common -I/src/cddl/usr.bin/zinject/../../contrib/opensolaris/lib/libnvpair -I/src/cddl/usr.bin/zinject/../../../sys/cddl/contrib/opensolaris/uts/common/fs/zfs -I/src/cddl/usr.bin/zinject/../../../sys/cddl/contrib/opensolaris/uts/common/sys -I/src/cddl/usr.bin/zinject/../../../sys/cddl/contrib/opensolaris/uts/common -I/src/cddl/usr.bin/zinject/../../contrib/opensolaris/head -I/src/cddl/usr.bin/zinject/../../lib/libumem -DNEED_SOLARIS_BOOLEAN -std=gnu89 -Wno-pointer-sign -Wno-unknown-pragmas -o zinject zinject.o translate.o -lavl -lgeom -lm -lnvpair -lumem -luutil -lzfs -lzpool /obj/mips.mipsel/src/tmp/usr/lib/libzpool.so: undefined reference to `zvol_rename_minors' *** Error code 1 Stop in /src/cddl/usr.bin/zinject. *** Error code 1 Stop in /src/cddl/usr.bin. *** Error code 1 Stop in /src/cddl. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2011-03-06 01:52:41 - WARNING: /usr/bin/make returned exit code 1 TB --- 2011-03-06 01:52:41 - ERROR: failed to build world TB --- 2011-03-06 01:52:41 - 1624.27 user 451.59 system 2298.80 real http://tinderbox.freebsd.org/tinderbox-head-HEAD-mips-mips.full From owner-freebsd-mips@FreeBSD.ORG Mon Mar 7 04:45:57 2011 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 35A07106564A for ; Mon, 7 Mar 2011 04:45:57 +0000 (UTC) (envelope-from brobecker@adacore.com) Received: from rock.gnat.com (rock.gnat.com [205.232.38.15]) by mx1.freebsd.org (Postfix) with ESMTP id DE83B8FC0C for ; Mon, 7 Mar 2011 04:45:56 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 45AA92BAFA1; Sun, 6 Mar 2011 23:35:41 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at gnat.com Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id oPH-wvD7mzhT; Sun, 6 Mar 2011 23:35:41 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 934682BAF9D; Sun, 6 Mar 2011 23:35:40 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id 2C4971459AD; Mon, 7 Mar 2011 08:35:18 +0400 (RET) Date: Mon, 7 Mar 2011 08:35:18 +0400 From: Joel Brobecker To: Robert Millan Message-ID: <20110307043518.GA28588@adacore.com> References: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="3V7upXqbjpZ4EhLz" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-mips@freebsd.org, gdb-patches@sourceware.org Subject: Re: [PATCH] gdb for GNU/kFreeBSD on MIPS X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Mar 2011 04:45:57 -0000 --3V7upXqbjpZ4EhLz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline For the record, the copyright assignment paperwork just came through, and Robert asked me to look at this patch. > 2011-01-09 Robert Millan > > * configure.host: Detect mips-freebsd and mips-kfreebsd-gnu, and set > `gdb_host' appropiately. > * configure.tgt: Detect mips-freebsd and mips-kfreebsd-gnu, and use > the same definitions as with mips-netbsd. > > * config/mips/fbsd.mh: New file. > * config/mips/nbsd.mh (MH_CFLAGS): New variable (defines BSD_OSABI > C macro). > > * mipsnbsd-tdep.c [BSD_OSABI == GDB_OSABI_FREEBSD_ELF] > (MIPSNBSD_NUM_GREGS): Define as `40'. > (MIPSNBSD_NUM_FPREGS): Define as `34'. > (NBSD_MIPS_JB_PC): Define as `12'. > > * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Replace > `GDB_OSABI_NETBSD_ELF' with `BSD_OSABI'. I think that Mark Kettenis would be a better reviewer for this patch, as he knows the BSDs better than I do. However, I can comment on a few things... For Mark's benefit, I'll attach a copy of the patch, so that he does not have to go fish it back. > +# Host: FreeBSD/mips > +MH_CFLAGS= -DBSD_OSABI=GDB_OSABI_FREEBSD_ELF This looked very suspicious, and indeed: > --- gdb/mipsnbsd-tdep.c 2011-01-01 15:32:52 +0000 > +++ gdb/mipsnbsd-tdep.c 2011-01-09 09:08:54 +0000 > @@ -45,10 +45,18 @@ > /* Core file support. */ > > /* Number of registers in `struct reg' from . */ > +#if BSD_OSABI == GDB_OSABI_NETBSD_ELF > #define MIPSNBSD_NUM_GREGS 38 > +#elif BSD_OSABI == GDB_OSABI_FREEBSD_ELF > +#define MIPSNBSD_NUM_GREGS 40 > +#endif This is not the way to go. GDB is supposed to be able to support multiple architectures at the same time (within the same binary). What you need to do is to make this process dynamic. This can be achieved via a couple of things: Register the GDB_OSABI_FREEBSD_ELF osabi, attaching an ABI-init routine, and turning the various macros into struct gdbarch_tdep field. I'm having a hard time being more precise, because the exact work will depend on whether you need to create your own -tdep file for fbsd or not (I would imagine that you will - except that it seems that the nbsd and fbsd tdep files would otherwise share a lot of code). I hope that Mark will be able to give you additional guidance. -- Joel --3V7upXqbjpZ4EhLz-- From owner-freebsd-mips@FreeBSD.ORG Mon Mar 7 13:24:22 2011 Return-Path: Delivered-To: mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9C1F110656D2; Mon, 7 Mar 2011 13:24:22 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by mx1.freebsd.org (Postfix) with ESMTP id 6F1218FC0C; Mon, 7 Mar 2011 13:24:22 +0000 (UTC) Received: from freebsd-current.sentex.ca (localhost [127.0.0.1]) by freebsd-current.sentex.ca (8.14.4/8.14.4) with ESMTP id p27DOL0S013760; Mon, 7 Mar 2011 08:24:21 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-current.sentex.ca (8.14.4/8.14.4/Submit) id p27DOL4h013727; Mon, 7 Mar 2011 13:24:21 GMT (envelope-from tinderbox@freebsd.org) Date: Mon, 7 Mar 2011 13:24:21 GMT Message-Id: <201103071324.p27DOL4h013727@freebsd-current.sentex.ca> X-Authentication-Warning: freebsd-current.sentex.ca: tinderbox set sender to FreeBSD Tinderbox using -f Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Cc: Subject: [head tinderbox] failure on mips/mips X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Mar 2011 13:24:22 -0000 TB --- 2011-03-07 12:33:53 - tinderbox 2.6 running on freebsd-current.sentex.ca TB --- 2011-03-07 12:33:53 - starting HEAD tinderbox run for mips/mips TB --- 2011-03-07 12:33:53 - cleaning the object tree TB --- 2011-03-07 12:34:00 - cvsupping the source tree TB --- 2011-03-07 12:34:00 - /usr/bin/csup -z -r 3 -g -L 1 -h cvsup.sentex.ca /tinderbox/HEAD/mips/mips/supfile TB --- 2011-03-07 12:34:14 - building world TB --- 2011-03-07 12:34:14 - MAKEOBJDIRPREFIX=/obj TB --- 2011-03-07 12:34:14 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2011-03-07 12:34:14 - TARGET=mips TB --- 2011-03-07 12:34:14 - TARGET_ARCH=mips TB --- 2011-03-07 12:34:14 - TZ=UTC TB --- 2011-03-07 12:34:14 - __MAKE_CONF=/dev/null TB --- 2011-03-07 12:34:14 - cd /src TB --- 2011-03-07 12:34:14 - /usr/bin/make -B buildworld >>> World build started on Mon Mar 7 12:34:15 UTC 2011 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything [...] cc -O -pipe -G0 -I/src/sbin/hastctl/../hastd -DINET -DINET6 -DYY_NO_UNPUT -DYY_NO_INPUT -DHAVE_CRYPTO -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -Wno-format -c /src/sbin/hastctl/../hastd/lzf.c cc -O -pipe -G0 -I/src/sbin/hastctl/../hastd -DINET -DINET6 -DYY_NO_UNPUT -DYY_NO_INPUT -DHAVE_CRYPTO -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -Wno-format -c /src/sbin/hastctl/../hastd/metadata.c cc -O -pipe -G0 -I/src/sbin/hastctl/../hastd -DINET -DINET6 -DYY_NO_UNPUT -DYY_NO_INPUT -DHAVE_CRYPTO -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -Wno-format -c /src/sbin/hastctl/../hastd/nv.c cc -O -pipe -G0 -I/src/sbin/hastctl/../hastd -DINET -DINET6 -DYY_NO_UNPUT -DYY_NO_INPUT -DHAVE_CRYPTO -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -Wno-format -c parse.c cc -O -pipe -G0 -I/src/sbin/hastctl/../hastd -DINET -DINET6 -DYY_NO_UNPUT -DYY_NO_INPUT -DHAVE_CRYPTO -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -Wno-format -c /src/sbin/hastctl/../hastd/pjdlog.c cc1: warnings being treated as errors /src/sbin/hastctl/../hastd/pjdlog.c: In function 'pjdlog_printf_render_sockaddr': /src/sbin/hastctl/../hastd/pjdlog.c:110: warning: cast increases required alignment of target type *** Error code 1 Stop in /src/sbin/hastctl. *** Error code 1 Stop in /src/sbin. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2011-03-07 13:24:20 - WARNING: /usr/bin/make returned exit code 1 TB --- 2011-03-07 13:24:20 - ERROR: failed to build world TB --- 2011-03-07 13:24:20 - 2174.50 user 520.83 system 3026.96 real http://tinderbox.freebsd.org/tinderbox-head-HEAD-mips-mips.full From owner-freebsd-mips@FreeBSD.ORG Mon Mar 7 18:22:27 2011 Return-Path: Delivered-To: mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AA19F106566B; Mon, 7 Mar 2011 18:22:27 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by mx1.freebsd.org (Postfix) with ESMTP id 7CB468FC13; Mon, 7 Mar 2011 18:22:27 +0000 (UTC) Received: from freebsd-current.sentex.ca (localhost [127.0.0.1]) by freebsd-current.sentex.ca (8.14.4/8.14.4) with ESMTP id p27IMQSK084921; Mon, 7 Mar 2011 13:22:26 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-current.sentex.ca (8.14.4/8.14.4/Submit) id p27IMQXG084854; Mon, 7 Mar 2011 18:22:26 GMT (envelope-from tinderbox@freebsd.org) Date: Mon, 7 Mar 2011 18:22:26 GMT Message-Id: <201103071822.p27IMQXG084854@freebsd-current.sentex.ca> X-Authentication-Warning: freebsd-current.sentex.ca: tinderbox set sender to FreeBSD Tinderbox using -f Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Cc: Subject: [head tinderbox] failure on mips/mips X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Mar 2011 18:22:27 -0000 TB --- 2011-03-07 17:33:05 - tinderbox 2.6 running on freebsd-current.sentex.ca TB --- 2011-03-07 17:33:05 - starting HEAD tinderbox run for mips/mips TB --- 2011-03-07 17:33:05 - cleaning the object tree TB --- 2011-03-07 17:33:10 - cvsupping the source tree TB --- 2011-03-07 17:33:10 - /usr/bin/csup -z -r 3 -g -L 1 -h cvsup.sentex.ca /tinderbox/HEAD/mips/mips/supfile TB --- 2011-03-07 17:33:23 - building world TB --- 2011-03-07 17:33:23 - MAKEOBJDIRPREFIX=/obj TB --- 2011-03-07 17:33:23 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2011-03-07 17:33:23 - TARGET=mips TB --- 2011-03-07 17:33:23 - TARGET_ARCH=mips TB --- 2011-03-07 17:33:23 - TZ=UTC TB --- 2011-03-07 17:33:23 - __MAKE_CONF=/dev/null TB --- 2011-03-07 17:33:23 - cd /src TB --- 2011-03-07 17:33:23 - /usr/bin/make -B buildworld >>> World build started on Mon Mar 7 17:33:24 UTC 2011 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything [...] cc -O -pipe -G0 -I/src/sbin/hastctl/../hastd -DINET -DINET6 -DYY_NO_UNPUT -DYY_NO_INPUT -DHAVE_CRYPTO -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -Wno-format -c /src/sbin/hastctl/../hastd/lzf.c cc -O -pipe -G0 -I/src/sbin/hastctl/../hastd -DINET -DINET6 -DYY_NO_UNPUT -DYY_NO_INPUT -DHAVE_CRYPTO -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -Wno-format -c /src/sbin/hastctl/../hastd/metadata.c cc -O -pipe -G0 -I/src/sbin/hastctl/../hastd -DINET -DINET6 -DYY_NO_UNPUT -DYY_NO_INPUT -DHAVE_CRYPTO -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -Wno-format -c /src/sbin/hastctl/../hastd/nv.c cc -O -pipe -G0 -I/src/sbin/hastctl/../hastd -DINET -DINET6 -DYY_NO_UNPUT -DYY_NO_INPUT -DHAVE_CRYPTO -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -Wno-format -c parse.c cc -O -pipe -G0 -I/src/sbin/hastctl/../hastd -DINET -DINET6 -DYY_NO_UNPUT -DYY_NO_INPUT -DHAVE_CRYPTO -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -Wno-format -c /src/sbin/hastctl/../hastd/pjdlog.c cc1: warnings being treated as errors /src/sbin/hastctl/../hastd/pjdlog.c: In function 'pjdlog_printf_render_sockaddr': /src/sbin/hastctl/../hastd/pjdlog.c:110: warning: cast increases required alignment of target type *** Error code 1 Stop in /src/sbin/hastctl. *** Error code 1 Stop in /src/sbin. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2011-03-07 18:22:26 - WARNING: /usr/bin/make returned exit code 1 TB --- 2011-03-07 18:22:26 - ERROR: failed to build world TB --- 2011-03-07 18:22:26 - 2168.57 user 531.71 system 2960.99 real http://tinderbox.freebsd.org/tinderbox-head-HEAD-mips-mips.full From owner-freebsd-mips@FreeBSD.ORG Thu Mar 10 02:41:53 2011 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CEB98106566B for ; Thu, 10 Mar 2011 02:41:53 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 83BAA8FC13 for ; Thu, 10 Mar 2011 02:41:53 +0000 (UTC) Received: by vxc34 with SMTP id 34so1312281vxc.13 for ; Wed, 09 Mar 2011 18:41:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=10uhMucfJDIs0DYet/zNOpsptlzrgemQtiuBTu/TCMk=; b=a5QNY7Jt8heV9U0kX8h1qyW1NJi1rT+LVDh9sBgmYEhyO8ASUg9vLJA/46dXxRwYD3 zTaSyKz1UKczv5dKruDhImAcLK+8f4N88L2Dl9YT+uy6LcJ8qMp9VgSHYFVQrTKne9R4 MJPEsXvFtd0ktXOn+Sj8RB8//rP0Spn6KEufk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Vupn9J+hsXH8Nz4Wi/gqKwVX9wL0QlWoCNenPraOWTMDYeKNfIKJsy5YAnkjuzeJ/t rRh19iRMwA0+WBYOL8Bg6/E2idOwp2gAZpql8+n5n2bxlP5R/u+d4Lykhkc/xqy8J4Ep /1U8J00gXd4OZKyYSdoeEW7yDVUAjHHIPaGmc= MIME-Version: 1.0 Received: by 10.52.0.9 with SMTP id 9mr5029254vda.147.1299724912744; Wed, 09 Mar 2011 18:41:52 -0800 (PST) Received: by 10.52.70.17 with HTTP; Wed, 9 Mar 2011 18:41:52 -0800 (PST) Date: Thu, 10 Mar 2011 10:41:52 +0800 Message-ID: From: Adrian Chadd To: freebsd-mips@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: What to do when Redboot lies about REALMEM? X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Mar 2011 02:41:53 -0000 One of the Ubiquiti boards (LS-SR71) has redboot firmware that seems to lie about the amount of RAM it has. Although the board has 32 megabytes of RAM, Redboot only reports 16mb. Linux doesn't query redboot; it probes the amount of RAM by writing bits and reading them back until it finds where that fails. I've whacked together a quick hack to make this memory selection overridable in the kernel configuration. What would be the cleaner way? :) Thanks, Adrian Index: conf/options =================================================================== --- conf/options (revision 219395) +++ conf/options (working copy) @@ -30,6 +30,9 @@ # If filename is missing, the default is # opt_.h +# A temporary workaround for where redboot lies +MIPS_REALMEM opt_global.h + AAC_DEBUG opt_aac.h AHC_ALLOW_MEMIO opt_aic7xxx.h AHC_TMODE_ENABLE opt_aic7xxx.h Index: mips/atheros/ar71xx_machdep.c =================================================================== --- mips/atheros/ar71xx_machdep.c (revision 219395) +++ mips/atheros/ar71xx_machdep.c (working copy) @@ -180,6 +180,11 @@ if (realmem == 0) realmem = btoc(32*1024*1024); + /* Allow build-time override in case Redboot lies */ +#if defined(MIPS_REALMEM) + realmem = btoc(MIPS_REALMEM); +#endif + /* phys_avail regions are in bytes */ phys_avail[0] = MIPS_KSEG0_TO_PHYS(kernel_kseg0_end); phys_avail[1] = ctob(realmem); [adrian@pcbsd-3114 /data/freebsd/mips/head/src/sys]$ From owner-freebsd-mips@FreeBSD.ORG Thu Mar 10 02:43:40 2011 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1CB131065670 for ; Thu, 10 Mar 2011 02:43:40 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id C49608FC0A for ; Thu, 10 Mar 2011 02:43:39 +0000 (UTC) Received: by vxc34 with SMTP id 34so1313766vxc.13 for ; Wed, 09 Mar 2011 18:43:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:date:x-google-sender-auth :message-id:subject:from:to:content-type; bh=TjOtYnd82hiDMlprcOv/dvAcfTws52FhZHIzQdicWuQ=; b=amFuW3cswEStCkLNoNV8WBCvyNx9phUrnjZLmHL+AegGWyEbqC5HJW/okMIRCZ635r 4icjH/B7gx23Lfc8aO7N3rFkJtby1FvuyWVasFuLA+oLz4QeLjEdeMKUX6J7GitbpKmQ Zi1VFHZoFmXcoW5zk62Y6kCbl8DZGMZfGiOTc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=CqN9DM2UA0HYWFZmUQRl9ZT2eWycDK2jXmRioxDcHYLHZoh6kUI3wouoIE1dsQqu6x VYAwgZq0S5mEA8/93S8UWiUZsTWnXv0OzcFWCxH4pIB72KPW5tP4SKWJ+v2NU6x3n0eG PCuw+9KKNbinOAVS2Ey7F8pI2B1+Iuly/eoTA= MIME-Version: 1.0 Received: by 10.52.97.99 with SMTP id dz3mr4682541vdb.267.1299724991173; Wed, 09 Mar 2011 18:43:11 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.52.70.17 with HTTP; Wed, 9 Mar 2011 18:43:11 -0800 (PST) Date: Thu, 10 Mar 2011 10:43:11 +0800 X-Google-Sender-Auth: 7fAPguAMJ4pXPfoc16NaTQE2eDo Message-ID: From: Adrian Chadd To: freebsd-mips@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: What to do when redboot lies about RAM? X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Mar 2011 02:43:40 -0000 One of the Ubiquiti boards (LS-SR71) has redboot firmware that seems to lie about the amount of RAM it has. Although the board has 32 megabytes of RAM, Redboot only reports 16mb. Linux doesn't query redboot; it probes the amount of RAM by writing bits and reading them back until it finds where that fails. I've whacked together a quick hack to make this memory selection overridable in the kernel configuration. What would be the cleaner way? :) Thanks, Adrian Index: conf/options =================================================================== --- conf/options (revision 219395) +++ conf/options (working copy) @@ -30,6 +30,9 @@ # If filename is missing, the default is # opt_.h +# A temporary workaround for where redboot lies +MIPS_REALMEM opt_global.h + AAC_DEBUG opt_aac.h AHC_ALLOW_MEMIO opt_aic7xxx.h AHC_TMODE_ENABLE opt_aic7xxx.h Index: mips/atheros/ar71xx_machdep.c =================================================================== --- mips/atheros/ar71xx_machdep.c (revision 219395) +++ mips/atheros/ar71xx_machdep.c (working copy) @@ -180,6 +180,11 @@ if (realmem == 0) realmem = btoc(32*1024*1024); + /* Allow build-time override in case Redboot lies */ +#if defined(MIPS_REALMEM) + realmem = btoc(MIPS_REALMEM); +#endif + /* phys_avail regions are in bytes */ phys_avail[0] = MIPS_KSEG0_TO_PHYS(kernel_kseg0_end); phys_avail[1] = ctob(realmem); [adrian@pcbsd-3114 /data/freebsd/mips/head/src/sys]$ From owner-freebsd-mips@FreeBSD.ORG Thu Mar 10 03:11:10 2011 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5BCC9106564A for ; Thu, 10 Mar 2011 03:11:10 +0000 (UTC) (envelope-from c.jayachandran@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id BE3738FC12 for ; Thu, 10 Mar 2011 03:11:09 +0000 (UTC) Received: by wyf23 with SMTP id 23so1335569wyf.13 for ; Wed, 09 Mar 2011 19:11:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=MrwQvI/rSbBSzIFlS7toTPr2fMKkxUvU4Uxx47tM96Q=; b=X66mDIJsJN9AQECxVTlUtbg0aJZc83r5kBCO+Lei2mCkabIjtevt9k4apRy/kMUyVT G2F4Apgze/qwc+V9KKUsXGzw6NQs09pcYCxotVXTnfGk010TjakmJBuuipPDCj4opV9v IjU7krurZ/EkklAKeFM7hSjo2jdMj7KVPlBPw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=Hyf0emv8sQ2P9QWYKrbuCCoZiic6nCIhYItDgA5qha0yuxZ9gusHsloVreVS/RKKnJ pPdIiWLcsZ20bDicLDQzQLsOEOwvM5MCIHr6vHTJi/gPJyCGvy0lYlvYobem9XUwhuMw sWfz5KLbcHqQjzihikTpx3E6HB/RYAVvX0lOw= MIME-Version: 1.0 Received: by 10.227.196.208 with SMTP id eh16mr6411248wbb.224.1299726668379; Wed, 09 Mar 2011 19:11:08 -0800 (PST) Received: by 10.227.142.141 with HTTP; Wed, 9 Mar 2011 19:11:08 -0800 (PST) In-Reply-To: References: Date: Thu, 10 Mar 2011 08:41:08 +0530 Message-ID: From: "Jayachandran C." To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-mips@freebsd.org Subject: Re: What to do when redboot lies about RAM? X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Mar 2011 03:11:10 -0000 On Thu, Mar 10, 2011 at 8:13 AM, Adrian Chadd wrote: > One of the Ubiquiti boards (LS-SR71) has redboot firmware that seems to lie > about the amount of RAM it has. > > Although the board has 32 megabytes of RAM, Redboot only reports 16mb. Linux > doesn't query redboot; it probes the amount of RAM by writing bits and > reading them back until it finds where that fails. > > I've whacked together a quick hack to make this memory selection overridable > in the kernel configuration. > What would be the cleaner way? :) Sibyte (mips/sibyte/sb_machdep.c) has a tunable hw.physmem for this. That has an advantage that you do not have to re-compile the kernel to change the memory setting. There is also a MAXMEM option already in conf/options.mips which can be used I think... JC. From owner-freebsd-mips@FreeBSD.ORG Thu Mar 10 09:12:23 2011 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6B32A106566B; Thu, 10 Mar 2011 09:12:23 +0000 (UTC) (envelope-from ray@dlink.ua) Received: from dlink.ua (smtp.dlink.ua [193.138.187.146]) by mx1.freebsd.org (Postfix) with ESMTP id 25BDC8FC13; Thu, 10 Mar 2011 09:12:21 +0000 (UTC) Received: from gw-lan1.kiev.dlink.ua ([192.168.10.10] helo=terran.dlink.ua) by dlink.ua with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1PxbQJ-0006ro-3P; Thu, 10 Mar 2011 10:40:43 +0200 Date: Thu, 10 Mar 2011 10:40:38 +0200 From: Aleksandr Rybalko To: "Jayachandran C." Message-Id: <20110310104038.b67b3c5b.ray@dlink.ua> In-Reply-To: References: Organization: D-Link X-Mailer: Sylpheed 2.7.1 (GTK+ 2.20.1; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-mips@freebsd.org Subject: Re: What to do when redboot lies about RAM? X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Mar 2011 09:12:23 -0000 On Thu, 10 Mar 2011 08:41:08 +0530 "Jayachandran C." wrote: >> On Thu, Mar 10, 2011 at 8:13 AM, Adrian Chadd wrote: >> > One of the Ubiquiti boards (LS-SR71) has redboot firmware that seems to lie >> > about the amount of RAM it has. >> > >> > Although the board has 32 megabytes of RAM, Redboot only reports 16mb. Linux >> > doesn't query redboot; it probes the amount of RAM by writing bits and >> > reading them back until it finds where that fails. >> > >> > I've whacked together a quick hack to make this memory selection overridable >> > in the kernel configuration. >> > What would be the cleaner way? :) >> >> Sibyte (mips/sibyte/sb_machdep.c) has a tunable hw.physmem for this. >> That has an advantage that you do not have to re-compile the kernel to >> change the memory setting. >> >> There is also a MAXMEM option already in conf/options.mips which can >> be used I think... >> >> JC. >> _______________________________________________ >> freebsd-mips@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-mips >> To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org" Hi there, for that case will be nice to have (and use) some fallback variable in nvram/U-Boot env. something like realmem_override. Also we can use realmem testing algorithm: 1. backup uint32 in some place of minimum memory size (think 8M) 2. write some unique signature in that place 3. for (i = 8M; place < sdram_window_size; i <<= 1) if (*(i + place) == signature) { *place = ~signature; if (*(i + place) == ~signature) { printf("Found memory \"address wire\" alias, realmem=%08x\n", i); break; } /* Restore signature */ *place = signature; } -- Alexandr Rybalko aka Alex RAY From owner-freebsd-mips@FreeBSD.ORG Fri Mar 11 21:40:47 2011 Return-Path: Delivered-To: mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EC8CD106564A for ; Fri, 11 Mar 2011 21:40:46 +0000 (UTC) (envelope-from marius@alchemy.franken.de) Received: from alchemy.franken.de (alchemy.franken.de [194.94.249.214]) by mx1.freebsd.org (Postfix) with ESMTP id 4A8B18FC12 for ; Fri, 11 Mar 2011 21:40:45 +0000 (UTC) Received: from alchemy.franken.de (localhost [127.0.0.1]) by alchemy.franken.de (8.14.4/8.14.4/ALCHEMY.FRANKEN.DE) with ESMTP id p2BLS4Yk056634 for ; Fri, 11 Mar 2011 22:28:04 +0100 (CET) (envelope-from marius@alchemy.franken.de) Received: (from marius@localhost) by alchemy.franken.de (8.14.4/8.14.4/Submit) id p2BLS4H5056633 for mips@freebsd.org; Fri, 11 Mar 2011 22:28:04 +0100 (CET) (envelope-from marius) Date: Fri, 11 Mar 2011 22:28:04 +0100 From: Marius Strobl To: mips@freebsd.org Message-ID: <20110311212804.GC1606@alchemy.franken.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Cc: Subject: [marius@freebsd.org: svn commit: r219534 - in head: contrib/gcc/config/sparc gnu/lib/libgomp gnu/lib/libstdc++ gnu/usr.bin/cc/cc_tools] X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Mar 2011 21:40:47 -0000 FYI, if you look at the blow diff you'll notice an inconsistency in auto-host.h for mips, which seems incorrect as at least rtld(1) apparently doesn't support TLS for mips. ----- Forwarded message from Marius Strobl ----- Delivered-To: svn-src-all@freebsd.org From: Marius Strobl Date: Fri, 11 Mar 2011 21:24:02 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head Cc: Subject: svn commit: r219534 - in head: contrib/gcc/config/sparc gnu/lib/libgomp gnu/lib/libstdc++ gnu/usr.bin/cc/cc_tools X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: owner-svn-src-all@freebsd.org Author: marius Date: Fri Mar 11 21:24:02 2011 New Revision: 219534 URL: http://svn.freebsd.org/changeset/base/219534 Log: Now that TLS is supported for sparc64 by both binutils 2.17.50 committed in r218822 and rtld(1) committed in r219533 turn on TLS support in GCC. Modified: head/contrib/gcc/config/sparc/freebsd.h head/gnu/lib/libgomp/config.h head/gnu/lib/libstdc++/config.h head/gnu/usr.bin/cc/cc_tools/auto-host.h Modified: head/contrib/gcc/config/sparc/freebsd.h ============================================================================== --- head/contrib/gcc/config/sparc/freebsd.h Fri Mar 11 21:08:02 2011 (r219533) +++ head/contrib/gcc/config/sparc/freebsd.h Fri Mar 11 21:24:02 2011 (r219534) @@ -161,6 +161,13 @@ Boston, MA 02110-1301, USA. */ /* #define DWARF_OFFSET_SIZE PTR_SIZE */ +#ifdef HAVE_AS_TLS +#undef TARGET_SUN_TLS +#undef TARGET_GNU_TLS +#define TARGET_SUN_TLS 0 +#define TARGET_GNU_TLS 1 +#endif + #undef ENDFILE_SPEC #define ENDFILE_SPEC \ "%{ffast-math|funsafe-math-optimizations:crtfastmath.o%s} " \ Modified: head/gnu/lib/libgomp/config.h ============================================================================== --- head/gnu/lib/libgomp/config.h Fri Mar 11 21:08:02 2011 (r219533) +++ head/gnu/lib/libgomp/config.h Fri Mar 11 21:24:02 2011 (r219534) @@ -59,7 +59,7 @@ #define HAVE_SYS_TYPES_H 1 /* Define to 1 if the target supports thread-local storage. */ -#if !defined(__sparc64__) && !defined(__arm__) && !defined(__mips__) +#if !defined(__arm__) && !defined(__mips__) #define HAVE_TLS 1 #endif Modified: head/gnu/lib/libstdc++/config.h ============================================================================== --- head/gnu/lib/libstdc++/config.h Fri Mar 11 21:08:02 2011 (r219533) +++ head/gnu/lib/libstdc++/config.h Fri Mar 11 21:24:02 2011 (r219534) @@ -371,7 +371,7 @@ /* #undef HAVE_TANL */ /* Define to 1 if the target supports thread-local storage. */ -#if !defined(__sparc64__) && !defined(__arm__) && !defined(__mips__) +#if !defined(__arm__) && !defined(__mips__) #define HAVE_TLS 1 #endif Modified: head/gnu/usr.bin/cc/cc_tools/auto-host.h ============================================================================== --- head/gnu/usr.bin/cc/cc_tools/auto-host.h Fri Mar 11 21:08:02 2011 (r219533) +++ head/gnu/usr.bin/cc/cc_tools/auto-host.h Fri Mar 11 21:24:02 2011 (r219534) @@ -287,7 +287,7 @@ /* Define if your assembler supports thread-local storage. */ #ifndef USED_FOR_TARGET -#if !defined(__sparc64__) && !defined(__arm__) +#if !defined(__arm__) #define HAVE_AS_TLS 1 #endif #endif _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org" ----- End forwarded message -----