delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2012/05/03/00:23:31

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
Message-ID: <4FA20833.50701@iki.fi>
Date: Thu, 03 May 2012 07:23:15 +0300
From: Andris Pavenis <andris DOT pavenis AT iki DOT fi>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120424 Thunderbird/12.0
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: Building DJGPP cross-compiler from Andris' SRPMS on x86_64
References: <4f9ff733$0$2610$892e0abb AT auth DOT newsreader DOT octanews DOT com> <4fa1f69c$0$17213$892e0abb AT auth DOT newsreader DOT octanews DOT com>
In-Reply-To: <4fa1f69c$0$17213$892e0abb@auth.newsreader.octanews.com>
Reply-To: djgpp AT delorie DOT com

On 05/03/2012 06:08 AM, Bob Tanner wrote:
> Several missing BuildRequirements, here's a patch to fix it.
>
> --- djcross-gcc-4.7.spec.old 2012-05-01 10:09:25.987679166 -0500
> +++ djcross-gcc-4.7.spec 2012-05-02 21:48:40.229797722 -0500
> @@ -44,7 +44,7 @@
> BuildArch: i686 x86_64
> Requires: djcrx djcross-binutils >= 2.17
> BuildRequires: gcc gcc-gnat djcrx djcross-binutils >= 2.17
> -BuildRequires: zlib-devel
> +BuildRequires: zlib-devel autoconf zip texinfo-tex
>
> %define shortver %(echo %{gcc_version} | sed -e 's:\\.::2g')
> %define shortver2 %(echo %{gcc_version} | sed -e 's:\\.::g')

True about zlib-devel and texinfo-tex.

autoconf is included to avoid unnecessary dependence on build system. For example RHEL5 (or it 
clones, I built RPMs on CentOS 5) have outdated autoconf. The same about automake. For some time 
GCC required exact versions of both.

Building on RHEL5 clone and linking statically with GMP, MPFR and MPC is to make binary RPM 
packages as compatible with different distributions as possible. Built in CentOS 5 chroot, verified 
to work in Fedora 16.

>
> Ok, got binutils and gcc built.
>
> Gonna try to build djcrx-2.04pre_20111027-14ap.src.rpm (but I'll put that into a new post)
>

You can check out current CVS version and replace the source archive in RPM. There are changes 
after 27/11/2011. I may have newer build myself, but seems that I have not uploaded it anywhere.

Andris

- Raw text -


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