delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2012/05/02/04:47:21

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=mime-version:in-reply-to:references:date:message-id:subject:from:to
:content-type;
bh=cp1InBYbxHSQoPOQG1pg2xQW18oA2M/vVVlywkoLnrg=;
b=DFgOS4ocPddf4do3E4wH+Sp65gJ3Tli1jyVgvggJeK5+S3lZcyUmC2gUjrT9IXL4Na
J26Cqm+eYoYcKr0s6JHgnMD8FCWHKIWNL5iS6Hh2TjGme7NrbC+67sOriauF7FXS+bD1
ubh1xd18K78ZZu6lBZgT0hBR6rLcGWlNpZwTbxtje3S/jjplC3TltHKXWxEAy2i7Hwd1
zW1yUQySEs87oO+KoDlHvO4/5j7rhUa0K/LRUyxo6xY6AIl9Ltg++zI0gMb1yuKMY0mR
3ms6Gn893FJfCtgeFYHFbnbguZtKR2tx40/fv1z2M0E9Y6CExKE5Epv29OV1QIhtdvpQ
i4uQ==
MIME-Version: 1.0
In-Reply-To: <CAA2C=vAZSzboRkjYtk7-6M_=47UdjLZKXdNHUnyPryw5df_RFg@mail.gmail.com>
References: <4f9ff733$0$2610$892e0abb AT auth DOT newsreader DOT octanews DOT com>
<4FA0B01E DOT 5090809 AT iki DOT fi>
<CAA2C=vAZSzboRkjYtk7-6M_=47UdjLZKXdNHUnyPryw5df_RFg AT mail DOT gmail DOT com>
Date: Wed, 2 May 2012 11:24:46 +0300
Message-ID: <CAA2C=vCcTcb0GJv_vy9uO-UHLSvyEHisVZTOFruqh48sSxtxJA@mail.gmail.com>
Subject: Re: Building DJGPP cross-compiler from Andris' SRPMS on x86_64
From: Ozkan Sezer <sezeroz AT gmail DOT com>
To: djgpp AT delorie DOT 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 Wed, May 2, 2012 at 9:20 AM, Ozkan Sezer <sezeroz AT gmail DOT com> wrote:
> On Wed, May 2, 2012 at 6:55 AM, Andris Pavenis <andris DOT pavenis AT iki DOT fi> wrote:
>> On 05/01/2012 05:46 PM, Bob Tanner wrote:
>>>
>>> Downloaded the necessary .src.rpm from http://ap1.pp.fi/djgpp/
>>>
>>> Attempting to compile the src.rpm on CentOS 6.2 x86_64.
>>>
>>> First question, can the host platform by x86_64?
>>>
>>> djcross-binutils-2.19-9ap.x86_64 built without any problem.
>>>
>>> $ rpmbuild -bb djcrx.spec
>>> error: Failed build dependencies:
>>> djcross-gcc >= 4.1.0 is needed by djcrx-2.04pre_20111027-14ap.x86_64
>>>
>>> $ rpmbuild -bb djcross-gcc-4.7.spec
>>> error: Failed build dependencies:
>>> djcrx is needed by djcross-gcc-4.7.0-1ap.x86_64
>>>
>>> Cyclic dependencies?
>>
>>
>> There is one earlier SRPM
>>
>> ftp://ftp.delorie.com/pub/djgpp/rpms/djcrx-2.04pre-5.src.rpm
>>
>> which does not depend on existing cross-compiler build. It uses prepackaged
>> djcrx204.zip package. Later versions uses CVS snapshots of DJGPP library
>> sources.
>>
>> It is old and current rpmbuild complains about target related packages
>> present in noarch package. You can change target to x86_64 in SPEC file.
>> After that RPM package builds OK in Fedora 16 x86_64.
>> I have not tried CentOS-6.2. My available builds for ix86 are done in
>> CentOS-5.X chroot under Fedora x86_64 version.
>>
>>
>>
>>> Since I'm 64-bit CentOS I can't install the i686.rpm.
>>>
>>> Is the djcrx-2.04pre_20110501-14ap.i386.rpm 32-bit only?
>>>
>>> Does the host platform need to be 32-bit?
>>
>>
>> djcrx RPM contains stubify and stubedit executables, so it is target
>> dependent.
>>
>> One can install 32 bit packages in x86_64 linux installation, but not in
>> opposite direction. As result only 32 bit packages were provided . You do
>> not need very much for my RPM builds of cross-compiler. Of course that
>> assumes available root access on system.
>
> FYI: The djcrx srpm has several patches none of which are necessary
> today: -m32 is not needed with current djcvs nor are the -fno-builtin-* stuff.
>

Here's a native x86_64 rpm I built:  http://uhexen2.sf.net/tmp/djcrx/
The src and the spec file are there too. The binary rpm was built on
a fedora 16 x86_64 host using gcc-3.4.6 djgpp cross compiler. Hope it
helps.

>>
>> Andris
>
> --
> O.S.

--
O.S.

- Raw text -


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