X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Recipient: djgpp AT delorie DOT com Message-ID: <4FA0B01E.5090809@iki.fi> Date: Wed, 02 May 2012 06:55:10 +0300 From: Andris Pavenis 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 CC: Bob Tanner 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> In-Reply-To: <4f9ff733$0$2610$892e0abb@auth.newsreader.octanews.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com 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. Andris