From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32390 invoked by alias); 21 Dec 2010 19:56:59 -0000 Received: (qmail 32378 invoked by uid 22791); 21 Dec 2010 19:56:57 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-ew0-f43.google.com (HELO mail-ew0-f43.google.com) (209.85.215.43) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 21 Dec 2010 19:56:52 +0000 Received: by ewy22 with SMTP id 22so2839308ewy.30 for ; Tue, 21 Dec 2010 11:56:50 -0800 (PST) Received: by 10.213.3.68 with SMTP id 4mr6194070ebm.56.1292961410392; Tue, 21 Dec 2010 11:56:50 -0800 (PST) Received: from sg-laptop ([178.123.144.243]) by mx.google.com with ESMTPS id x54sm4051048eeh.11.2010.12.21.11.56.47 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 21 Dec 2010 11:56:49 -0800 (PST) Date: Tue, 21 Dec 2010 19:56:00 -0000 From: Sergei Gavrikov To: Peter Smith cc: ecos-discuss@sourceware.org In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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: Re: [ECOS] New User Question X-SW-Source: 2010-12/txt/msg00068.txt.bz2 On Tue, 21 Dec 2010, Peter Smith wrote: > Having discovered eCos I thought I would try to build and run the > examples on the synthetic linux target. > > I created the build tree using ecosconfig new linux followed by > ecosconfig tree. > > I then built the tree without errors. > > My problem came when attempting to build the examples as shown below. > > psmith@ubuntu:~/examples$ make INSTALL_DIR=$HOME/linux/install > gcc -c -o hello.o -I/home/psmith/linux/install/include -Wall > -Wpointer-arith -Wstrict-prototypes -Wundef -Woverloaded-virtual > -Wno-write-strings -g -O2 -ffunction-sections -fdata-sections > -fno-rtti -fno-exceptions hello.c > cc1: warning: command line option "-Woverloaded-virtual" is valid for > C++/ObjC++ but not for C > cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ > but not for C > gcc -nostartfiles -L/home/psmith/linux/install/lib -Ttarget.ld -g > -nostdlib -Wl,--gc-sections -Wl,-static -o hello hello.o > target.ld:33 cannot move location counter backwards (from > 000000000200cd10 to 00000000007f32f0) > collect2: ld returned 1 exit status > make: *** [hello] Error 1 > > I am using Ubuntu 10.10 by the way Hi Peter, if your host is x86_64 you can try some from recipes which you can find on the list http://sourceware.org/cgi-bin/search.cgi?q=eCos+AND+synthetic+AND+x86_64 Sergei -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss