From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28876 invoked by alias); 30 Jun 2008 01:46:17 -0000 Received: (qmail 28865 invoked by uid 22791); 30 Jun 2008 01:46:16 -0000 X-Spam-Check-By: sourceware.org Received: from gatekeeper.tait.co.nz (HELO gatekeeper.tait.co.nz) (202.37.96.11) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 30 Jun 2008 01:45:45 +0000 Received: from gatekeeper.tait.co.nz (localhost.localdomain [127.0.0.1]) by localhost.tait.co.nz (Postfix) with ESMTP id E6C2B46756 for ; Mon, 30 Jun 2008 13:45:41 +1200 (NZST) Received: from sunstrike.tait.co.nz (sunstrike [172.25.40.92])by gatekeeper.tait.co.nz (Postfix) with ESMTP id AE40E46755for ; Mon, 30 Jun 2008 13:45:39 +1200 (NZST) Received: from conversion-daemon.sunstrike.tait.co.nz by sunstrike.tait.co.nz(Sun Java System Messaging Server 6.1 (built Apr 28 2004))id <0K390070130PLR00@sunstrike.tait.co.nz>(original mail from john.carter@tait.co.nz)for ecos-discuss@ecos.sourceware.org; Mon, 30 Jun 2008 13:45:39 +1200 (NZST) Received: from parore.tait.co.nz ([172.25.140.12])by sunstrike.tait.co.nz (Sun Java System Messaging Server 6.1 (built Apr 282004)) with ESMTP id <0K39006LK683U330@sunstrike.tait.co.nz> forecos-discuss@ecos.sourceware.org; Mon, 30 Jun 2008 13:45:39 +1200 (NZST) Received: from localhost ([127.0.0.1]) by parore.tait.co.nz with esmtp(Exim 4.69) (envelope-from )id 1KD8SZ-0001j3-3g for ecos-discuss@ecos.sourceware.org; Mon,30 Jun 2008 13:45:39 +1200 Date: Mon, 30 Jun 2008 07:18:00 -0000 From: John Carter To: ecos-discuss@ecos.sourceware.org Message-id: MIME-version: 1.0 X-Mailer: Pidgeon Post Content-type: TEXT/PLAIN; charset=US-ASCII; format=flowed Content-transfer-encoding: 7BIT X-Apparently-From: mars X-Contents: May contain traces of nuts. User-Agent: Alpine 1.00 (DEB 882 2007-12-20) X-imss-version: 2.051 X-imss-result: Passed X-imss-approveListMatch: *@tait.co.nz X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] Patches to get ecos to build & link against gcc-4.2.3 & binutils 2.18 X-SW-Source: 2008-06/txt/msg00175.txt.bz2 The first set of patches between >>> and <<< are patches to get the configtool building under Ubuntu Hardy Heron, tcl-8.4, The second set are to get it linking for a sparc / leon using gcc-4.2.3 and binutils 2.18 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Index: host/tools/Utils/common/Subprocess.cpp =================================================================== RCS file: /cvs/ecos/ecos/host/tools/Utils/common/Subprocess.cpp,v retrieving revision 1.4 diff -u -r1.4 Subprocess.cpp --- host/tools/Utils/common/Subprocess.cpp 2 Nov 2005 08:39:19 -0000 1.4 +++ host/tools/Utils/common/Subprocess.cpp 26 Jun 2008 21:40:53 -0000 @@ -45,6 +45,7 @@ //=========================================================================== // define _GNU_SOURCE to ensure that stdlib.h provides Unix98 PTY declarations +#undef _GNU_SOURCE #define _GNU_SOURCE #include "eCosTrace.h" Index: host/tools/configtool/standalone/wxwin/makefile.gnu =================================================================== RCS file: /cvs/ecos/ecos/host/tools/configtool/standalone/wxwin/makefile.gnu,v retrieving revision 1.12 diff -u -r1.12 makefile.gnu --- host/tools/configtool/standalone/wxwin/makefile.gnu 26 Mar 2008 13:15:44 -0000 1.12 +++ host/tools/configtool/standalone/wxwin/makefile.gnu 26 Jun 2008 21:40:53 -0000 @@ -6,23 +6,22 @@ # cd emptydir # make -f /path/to/this/makefile WXDIR=/path/to/wx/installation INSTALLDIR=/path/to/ecos/tools [ ECOSSRCDIR=/path/to/ecos/tools/src ] [ TCLDIR=/path/to/tcl/installation ] [ DEBUG=1 ] -INSTALLDIR=INSTALLDIR_not_defined -WXDIR=WXDIR_not_defined CTBUILDDIR=$(shell pwd) ECOSSRCDIR=$(INSTALLDIR)/src CTDIR=$(ECOSSRCDIR)/tools/configtool/standalone/wxwin -TCLDIR=TCLDIR_use_system +TCLDIR=/usr USEEXPERIMENTALCODE=1 +DEBUG=1 EXTRACPPFLAGS=\ - -I$(TCLDIR)/include \ + -I$(TCLDIR)/include/tcl8.4 \ -I$(INSTALLDIR)/include \ -I$(ECOSSRCDIR)/tools/configtool/common/common \ -I$(ECOSSRCDIR)/tools/Utils/common \ -I$(ECOSSRCDIR)/tools/ecostest/common \ -DecUSE_EXPERIMENTAL_CODE=$(USEEXPERIMENTALCODE) -EXTRALDFLAGS=-L$(TCLDIR)/lib -L$(INSTALLDIR)/lib -lcdl -lcyginfra -ltcl +EXTRALDFLAGS=-L$(TCLDIR)/lib -L$(INSTALLDIR)/lib -lcdl -lcyginfra -ltcl8.4 -g3 --ggdb3 ifneq (,$(findstring CYGWIN, $(shell uname))) PROGRAM=configtool.exe @@ -41,7 +40,7 @@ ifeq "$(DEBUG)" "" CPPDEBUGOPTIONS=-O2 else - CPPDEBUGOPTIONS=-ggdb + CPPDEBUGOPTIONS=-ggdb3 -g3 -O0 -Wall -W endif OBJECTS = \ <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< The first change is due to gcc have additional anmed .bss sections now. The second change is due to this fault...Spurious "section xxx overlaps section yyy" http://www.mail-archive.com/bug-binutils@gnu.org/msg04512.html >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Index: packages/hal/sparc/arch/current/src/sparc.ld =================================================================== RCS file: /cvs/ecos/ecos/packages/hal/sparc/arch/current/src/sparc.ld,v retrieving revision 1.3 diff -u -r1.3 sparc.ld --- packages/hal/sparc/arch/current/src/sparc.ld 10 Apr 2003 18:07:58 -0000 1.3 +++ packages/hal/sparc/arch/current/src/sparc.ld 26 Jun 2008 21:41:03 -0000 @@ -125,9 +125,9 @@ #define SECTION_bss(_region_, _vma_, _lma_) \ .bss _vma_ : _lma_ \ { __bss_start = ABSOLUTE (.); \ - *(.scommon) *(.dynbss) *(.bss) *(COMMON) \ + *(.scommon) *(.dynbss) *(.bss*) *(COMMON) \ __bss_end = ABSOLUTE (.); } \ - > _region_ + AT> _region_ #define SECTIONS_END . = ALIGN(8); _end = .; PROVIDE (end = .); \ .debug 0 : { *(.debug) } \ <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< John Carter Phone : (64)(3) 358 6639 Tait Electronics Fax : (64)(3) 359 4632 PO Box 1645 Christchurch Email : john.carter@tait.co.nz New Zealand -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss