delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2015/09/27/14:55:13

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
Subject: Re: djgpp to Linux ARM cross binutils
To: djgpp AT delorie DOT com
References: <mu8em4$bas$1 AT usenet DOT news DOT interia DOT pl> <5607D4C3 DOT 4040800 AT gmx DOT de>
<4b10ba83-055b-4ff9-bdd1-81b37c9aee36 AT googlegroups DOT com>
From: "Andris Pavenis (andris DOT pavenis AT iki DOT fi) [via djgpp AT delorie DOT com]" <djgpp AT delorie DOT com>
Message-ID: <56083B83.6040707@iki.fi>
Date: Sun, 27 Sep 2015 21:54:59 +0300
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101
Thunderbird/38.2.0
MIME-Version: 1.0
In-Reply-To: <4b10ba83-055b-4ff9-bdd1-81b37c9aee36@googlegroups.com>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On 09/27/2015 04:02 PM, Juan Manuel Guerrero (juan DOT guerrero AT gmx DOT de) [via djgpp AT delorie DOT com] wrote:
> On Sunday, September 27, 2015 at 1:34:43 PM UTC+2, Juan Manuel Guerrero (juan DOT guerrero AT gmx DOT de) [via djgpp AT delorie DOT com] wrote:
>> Am 27.09.2015 11:59, schrieb Wiktor S. (wswiktorSP AT Mpoczta DOT fm) [via djgpp AT delorie DOT com]:
>>> I want to build a version of as and ld that would output Linux for ARM (ELF) binaries.
>>> Is it possible to configure DJGPP sources of binutils in such a way?
>>>
>>> --
>>> Wiktor S.
>>>
>>
>> Please note that I will not support anything else than my port of binutils
>> aka bnu2251sr2.zip and DJGPP 2.05.  If you use a different setup you are alone.
>> Theoretically every target supported by binutils should be possible.
>> Please install bnu2251sr2.zip and edit djgpp/build.sh adding the target option
>> like in the patch below:
>>
>> --- build.sh.orig	2015-09-27 13:18:42 -25244
>> +++ build.sh	2015-09-27 13:21:18 -25244
>> @@ -425,7 +425,7 @@
>>    ../configure  --disable-dependency-tracking ${NLS_SUPPORT} \
>>                  --with-mpc='/dev/env/DJDIR' --with-mpfr='/dev/env/DJDIR' --with-gmp='/dev/env/DJDIR' \
>>                  --enable-install-bfd --enable-install-libiberty \
>> -              --enable-build-warnings=-Wimplicit,-Wcomment,-Wformat,-Wparentheses,-Wpointer-arith >> build_log.txt  2>&1
>> +              --enable-build-warnings=-Wimplicit,-Wcomment,-Wformat,-Wparentheses,-Wpointer-arith --target=MACHINE-SYSTEM-RELEASE-VERSION >> build_log.txt  2>&1
>>
>>    echo >> build_log.txt
>>    echo ################################################################################ >> build_log.txt
>>
>>
>> Please note that it is *your* job to figure out what the right values for:
>>     MACHINE-SYSTEM-RELEASE-VERSION
>> are.  I also do not remember if it is the right syntax.  May be it is like this:
>>     MACHINE:SYSTEM:RELEASE:VERSION
>>
>> Anyway I have serious doubts about a MSDOS/DJGPP/COFF to Linux/ARM/ELF cross-compiler.
>> Why not use Linux directly as host?
>>
>> Regars,
>> Juan M. Guerrero
> OFYI, I have tried to build with target i786-linux.  Everything went well until some binutils code expected that functions like wcsncasecmp would be provided by libc.a or some other library.  DJGPP offers no wide char support so I do not think that it may be possible to compile some modern DJGPP to something cross-compiler without some major porting effort in the DJGPP C-library.
> Of course there may be also some other DJGPP specific issues than wide char preventing from building a DJGPP cross-compiler.
>
> Of course after having successfully build binutils for ARM you would need a gcc that runs on DOS/DJGPP but targets ARM.

Well tried under Linuxs (Fedora 22 x86_64)

../binutils-2.25.1/configure --build=i686-linux-gnu --host=i586-pc-msdosdjgpp --target=arm-none-eabi

It seems that all builds OK execpt readelf.exe (linker fails to find mbrtowc)

Andris


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019