Re: building cross-compiler for m68hc11/m68hc12

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 29/02/12 17:24, Kai Ruottu wrote:
> 29.2.2012 16:29, Mihai Daniel OPREA kirjoitti:
>> Thank you Kai Ruottu for all your help.
>>
>> I managed to build binutils-2.19. After that I tried building
>> gcc-4.3.2, which failed due to "compiler internal
>> error: segmentation fault". I then tried building gcc-3.3.6 (the
>> version which was used to compile the successful
>> m68hc11 build), which failed as well because of "open with O_CREAT in
>> second argument needs 3 arguments".
>
> Building old FSF sources with very new tools may be a problem :-(  They
> were written to be compiled with the tools available at that time so if
> any standard has changed that has influence. I don't know how 'open()'
> has changed in Linux/glibc since the gcc-3.3.6 time... 

open(2) is a POSIX interface. I suspect it's an actual old bug in the
sources, that wasn't being catched by the compiler (I have no idea how
it can detect such condition, maybe open() interface is hardcoded...).
May be easier to just add a 0666 to that open() call.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux