public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* Re: Problems about CROSSTOOL for ARM architecture on Linux Ubuntu
       [not found] <5B0E5196613D1341A952944FDCCC4EB601D83FCB@cimatec-mail.fieb.org.br>
@ 2009-05-30 12:07 ` Dan Kegel
  0 siblings, 0 replies; only message in thread
From: Dan Kegel @ 2009-05-30 12:07 UTC (permalink / raw)
  To: CLEBER Vinicius Ribeiro de Almeida; +Cc: RAFAEL de Brito Tavares Lima, crossgcc

[+crossgcc]

<cleber.vinicius@cimatec.fieb.org.br> wrote:
> ... working on a workstation that runs an Ubuntu 8.10. I
> was trying to use your crosstool for ARM architecture (ARM9), but it’s
> 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/collect2.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/collect2.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-ubuntu-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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-05-29 20:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <5B0E5196613D1341A952944FDCCC4EB601D83FCB@cimatec-mail.fieb.org.br>
2009-05-30 12:07 ` Problems about CROSSTOOL for ARM architecture on Linux Ubuntu Dan Kegel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).