From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15226 invoked by alias); 29 May 2009 20:39:48 -0000 Received: (qmail 15217 invoked by uid 22791); 29 May 2009 20:39:47 -0000 X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-gx0-f157.google.com (HELO mail-gx0-f157.google.com) (209.85.217.157) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 29 May 2009 20:39:43 +0000 Received: by gxk1 with SMTP id 1so10649084gxk.0 for ; Fri, 29 May 2009 13:39:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.150.153.2 with SMTP id a2mr5883727ybe.169.1243629580982; Fri, 29 May 2009 13:39:40 -0700 (PDT) In-Reply-To: <5B0E5196613D1341A952944FDCCC4EB601D83FCB@cimatec-mail.fieb.org.br> References: <5B0E5196613D1341A952944FDCCC4EB601D83FCB@cimatec-mail.fieb.org.br> Date: Sat, 30 May 2009 12:07:00 -0000 Message-ID: Subject: Re: Problems about CROSSTOOL for ARM architecture on Linux Ubuntu From: Dan Kegel To: CLEBER Vinicius Ribeiro de Almeida Cc: RAFAEL de Brito Tavares Lima , crossgcc Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org X-SW-Source: 2009-05/txt/msg00095.txt.bz2 [+crossgcc] wrote: > ... working on a workstation that runs an Ubuntu 8.10. I > was trying to use your crosstool for ARM architecture (ARM9), but it=92s > presenting some problems in the compilation process. > > $ sh demo-arm.sh > ... > ... /opt/crosstool/build/arm-linux/gcc-3.4.5-glibc-2.3.6/gcc-3.4.5/gcc/co= llect2.c > -o collect2.o > > In function open: > > inlined from collect_execute at > /opt/crosstool/build/arm-linux/gcc-3.4.5-glibc-2.3.6/gcc-3.4.5/gcc/collec= t2.c:1537: > > /usr/include/bits/fcntl2.h:51: error: call to __open_missing_mode > declared with attribute error: open with O_CREAT in second argument needs= 3 > arguments I guess you'd need to drop a patch into patches/gcc-3.4.5 containing something like the patch in http://www.freelists.org/post/haiku-development/buildtools-building-on-ubun= tu-810 > I clean the line 1537 but the file returns without modifications! That's because when you rerun demo.sh, it unpacks the source and applies all patches again, overwriting any changes you made. That's why you have to put a patch into the patches/gcc-3.4.5 directory where it can be picked up by the script. - Dan -- For unsubscribe information see http://sourceware.org/lists.html#faq