Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss
Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

ANNOUNCE: DJGPP port of GCC-4.7.0

23 views
Skip to first unread message

Andris Pavenis

unread,
May 19, 2012, 1:24:51 AM5/19/12
to djgpp-a...@delorie.com
This is announcement of DJGPP port of GCC-4.7.0

GCC used to stand for the GNU C Compiler, but since the
compiler supports several other languages aside from C,
it now stands for the GNU Compiler Collection.


Warning: DJGPP port of binutils-2.17 or newer is required.
It is however recommended to use binutils-2.22
or newer when using DJGPP port of gcc-4.7.0.

Use of DJGPP port of binutils-2.22 or newer is required for building
gcc-4.7.0 for DJGPP.

=======================================
Build for current stable version of DJGPP (djdev203 patchlevel 2) is
available from:
ftp://ftp.delorie.com/pub/djgpp/current/v2gnu/
and mirror sites (see http://www.delorie.com/djgpp/getting.html)

gfor470b.zip GNU Fortan 95 compiler 4.7.0 for DJGPP V2
ftp://ftp.delorie.com/pub/djgpp/current/v2gnu/gfor470b.zip

gcc470b.zip GNU GCC 4.7.0 for DJGPP V2
ftp://ftp.delorie.com/pub/djgpp/current/v2gnu/gcc470b.zip

gcc470s.zip GNU GCC 4.7.0 sources for DJGPP
ftp://ftp.delorie.com/pub/djgpp/current/v2gnu/gcc470s.zip

gpp470b.zip GNU C++ Compiler 4.7.0 for DJGPP V2
ftp://ftp.delorie.com/pub/djgpp/current/v2gnu/gpp470b.zip

objc470b.zip GNU Objective C and Objective C++ compiler and
runtime libraries v4.7.0
ftp://ftp.delorie.com/pub/djgpp/current/v2gnu/objc470b.zip

ada470d.zip Documentation for GNU Ada compiler (note that only
cross-compiler RPM package is available, but not native compiler
for DJGPP)
ftp://ftp.delorie.com/pub/djgpp/current/v2gnu/ada470d.zip

gfor470d.zip Documentation for GNU Fortran compiler
ftp://ftp.delorie.com/pub/djgpp/current/v2gnu/gfor470d.zip

gcc470d.zip Documentation for GNU C compiler
ftp://ftp.delorie.com/pub/djgpp/current/v2gnu/gcc470d.zip

gcc470.README DJGPP specific readme file
ftp://ftp.delorie.com/pub/djgpp/current/v2gnu/README.gcc470
(it is identical with file gnu/gcc-4.70/readme.DJGPP in archives
gcc470b.zip and gcc470s.zip)


Binaries are built and tested mostly under Windows Vista Business (SP2)
========================================
Build for development version of DJGPP (CVS version of djdev204) is
available from
ftp://ftp.delorie.com/pub/djgpp/beta/v2gnu/

ftp://ftp.delorie.com/pub/djgpp/beta/v2gnu/gfor470b.zip
ftp://ftp.delorie.com/pub/djgpp/beta/v2gnu/gcc470b.zip
ftp://ftp.delorie.com/pub/djgpp/beta/v2gnu/gpp470b.zip
ftp://ftp.delorie.com/pub/djgpp/beta/v2gnu/objc470b.zip

Binaries for djdev204 may not work with djdev203r2 (at least
C++ compiler).

Binaries for djdev203 may probably work also with djdev204 CVS
versions, but also such use is not recommended.


Source RPMS needed for building Linux to DJGPP cross-compiler
=============================================================

I myself have tested binary RPMs on
- CentOS 5.8 ix86 (really in chroot under Fedora 16 x86_64)
- Fedora 16 x86_64 only
They are built under CentOS 5.8, and linked statically with GMP-5.0.2,
MPFR-3.1.0 and MPC-0.9 to avoid unnecessary dependencies and increase
compatibility with other Linux distributions. For example they are
expected to work without problems in recent Fedora versions
(both i686 and x86_64)

gcc470s2.zip is no more provided as patching GCC using DJGPP tools
has not been tested and even attempted by me for a long time.
DJGPP source file gcc470s.zip is a side product of building
gcc-4.7.0 Linux to DJGPP cross-compiler RPM packages. See source
RPM for patches applied to original FSF version of GCC-4.7.0.
You can find the same contents in the file

ftp://ftp.delorie.com/pub/djgpp/rpms/djcross-gcc-4.7.0/djcross-gcc-4.7.0.tar.bz2


Cross-compiler SRPM:

ftp://ftp.delorie.com/pub/djgpp/rpms/djcross-gcc-4.7.0/djcross-gcc-4.7.0-1ap.src.rpm

Cross-compiler binary RPMs (built under CentOS 5.3 i386, tested also under Fedora 11 x86_64):

GNU C compiler:
ftp://ftp.delorie.com/pub/djgpp/rpms/djcross-gcc-4.7.0/djcross-gcc-4.7.0-1ap.i686.rpm

GNU C++ compiler:
ftp://ftp.delorie.com/pub/djgpp/rpms/djcross-gcc-4.7.0/djcross-gcc-c++-4.7.0-1ap.i686.rpm

GNU Ada compiler (note that native compiler is not available at this moment):
ftp://ftp.delorie.com/pub/djgpp/rpms/djcross-gcc-4.7.0/djcross-gcc-gnat-4.7.0-1ap.i686.rpm

GNU Fortran compiler:
ftp://ftp.delorie.com/pub/djgpp/rpms/djcross-gcc-4.7.0/djcross-gcc-gfortran-4.7.0-1ap.i686.rpm

GNU Objective C and Objective C++ compilers:
ftp://ftp.delorie.com/pub/djgpp/rpms/djcross-gcc-4.7.0/djcross-gcc-objc-4.7.0-1ap.i686.rpm

Tools for GCC 4.7.0 (currently only fixincl):
ftp://ftp.delorie.com/pub/djgpp/rpms/djcross-gcc-4.7.0/djcross-gcc-tools-4.7.0-1ap.i686.rpm

Info files of GCC-4.7.0 (a separate RPM file as these files are expected to
conflict with system compiler info files, but You do not need to install them...):
ftp://ftp.delorie.com/pub/djgpp/rpms/djcross-gcc-4.7.0/djcross-gcc-info-4.7.0-1ap.i686.rpm

You need also cross binutils:
http://ap1.pp.fi/djgpp/binutils/2.21/rpms/djcross-binutils-2.21-2ap.src.rpm
http://ap1.pp.fi/djgpp/binutils/2.21/rpms/djcross-binutils-2.21-2ap.i386.rpm
or
ftp://ftp.delorie.com/pub/djgpp/rpms/djcross-binutils-2.19.1-10ap.src.rpm
ftp://ftp.delorie.com/pub/djgpp/rpms/djcross-binutils-2.19.1-10ap.i386.rpm

You need also DJGPP development libraries, include files and some tools (eg. stubify)
ftp://ftp.delorie.com/pub/djgpp/rpms/djcrx-2.04pre_20120507-15ap.src.rpm
ftp://ftp.delorie.com/pub/djgpp/rpms/djcrx-2.04pre_20120507-15ap.i386.rpm
ftp://ftp.delorie.com/pub/djgpp/rpms/djcrx-2.04pre_20120507-15ap.x86_64.rpm
(2012/05/07 CVS version)

=========================================

See
http://gcc.gnu.org/gcc-4.6
for more information about GCC-4.7.0 and about changes in comparison
with earlier versions

Also see file gnu/gcc-4.70/readme.DJGPP (from gcc470b.zip and
gcc470s.zip) or
ftp://ftp.delorie.com/pub/djgpp/current/v2gnu/gcc470.README for more
information about this port.

There is also my web page about DJGPP port of GCC

http://www.iki.fi/andris.pavenis/djgpp/gcc

I cannot promise however, that I'll update it very often.
However new versions may appear there earlier (including ones not available
from ftp://ftp.delorie.com).


Andris Pavenis <andris DOT pavenis AT iki DOT fi>

RayeR

unread,
May 20, 2012, 7:04:25 PM5/20/12
to
Hi,
is there some difference from gcc version 4.7.0 that I found on your
site, binary compile date 17.4.2012 ?

Rugxulo

unread,
May 22, 2012, 3:25:21 AM5/22/12
to
Hi,

On May 19, 12:24 am, Andris Pavenis <andris.pave...@iki.fi> wrote:
>
> This is announcement of DJGPP port of GCC-4.7.0

First of all, big thanks for your efforts!

> ada470d.zip     Documentation for GNU Ada compiler (note that only
>      cross-compiler RPM package is available, but not native compiler
>      for DJGPP)
>      ftp://ftp.delorie.com/pub/djgpp/current/v2gnu/ada470d.zip

What happened here? What went wrong? I don't expect any miracles here,
esp. with no upstream help, but this can't be good, can it? :-(

The only "obvious" change I can find is this, and surely that didn't
break it??

"
Ada:
The command-line option -feliminate-unused-debug-types has been re-
enabled by default, as it is for the other languages, leading to a
reduction in debug info size of 12.5% and more for relevant cases, as
well as to a small compilation speedup.
"

> =========================================
>
> See
>      http://gcc.gnu.org/gcc-4.6
> for more information about GCC-4.7.0 and about changes in comparison
> with earlier versions

Or this page, even. ;-)

http://gcc.gnu.org/gcc-4.7/

> There is also my web page about DJGPP port of GCC
>
> http://www.iki.fi/andris.pavenis/djgpp/gcc
>
> I cannot promise however, that I'll update it very often.
> However new versions may appear there earlier (including ones not available
> from ftp://ftp.delorie.com).

Which will ... never mind, forgot I already accidentally checked the
ZIP Picker, it already has 4.7.0 offered. Wouldn't 4.6.3 be a safer
choice since Ada isn't available? (Though admittedly that's less
interesting to most C/C++ people.) Ah, well, I guess it doesn't matter
(and I never learned Ada, sadly, only subsets of other Wirth-ian
languages).

Andris Pavenis

unread,
May 22, 2012, 11:25:47 AM5/22/12
to dj...@delorie.com, Rugxulo
On 05/22/2012 10:25 AM, Rugxulo wrote:
> Hi,
>
> On May 19, 12:24 am, Andris Pavenis<andris.pave...@iki.fi> wrote:
>>
>> This is announcement of DJGPP port of GCC-4.7.0
>
> First of all, big thanks for your efforts!
>
>> ada470d.zip Documentation for GNU Ada compiler (note that only
>> cross-compiler RPM package is available, but not native compiler
>> for DJGPP)
>> ftp://ftp.delorie.com/pub/djgpp/current/v2gnu/ada470d.zip
>
> What happened here? What went wrong? I don't expect any miracles here,
> esp. with no upstream help, but this can't be good, can it? :-(
>
> The only "obvious" change I can find is this, and surely that didn't
> break it??

At least one of Ada tools (gnatmake if I remember correctly) failed to build for DJGPP. I wrote "at
least one" as I do not know whether there would be more problems later. Fixing this problem would
require noticeably more knowledge about Ada language that I have. This problem does not appear for
cross-compiler so there is no need to leave Ada out when building cross-compiler RPMs.

>
> "
> Ada:
> The command-line option -feliminate-unused-debug-types has been re-
> enabled by default, as it is for the other languages, leading to a
> reduction in debug info size of 12.5% and more for relevant cases, as
> well as to a small compilation speedup.
> "
>
>> =========================================
>>
>> See
>> http://gcc.gnu.org/gcc-4.6
>> for more information about GCC-4.7.0 and about changes in comparison
>> with earlier versions

Well: replacements 's/4.6.3/4.7.0/g', 's/4.63/4.70/g' and 's/463/470/g' were done and still one
forgotten. Of course there were other changes as well as one can see. I did not however write
announcement from scratch.

>
> Or this page, even. ;-)
>
> http://gcc.gnu.org/gcc-4.7/
>
>> There is also my web page about DJGPP port of GCC
>>
>> http://www.iki.fi/andris.pavenis/djgpp/gcc
>>
>> I cannot promise however, that I'll update it very often.
>> However new versions may appear there earlier (including ones not available
>> from ftp://ftp.delorie.com).
>
> Which will ... never mind, forgot I already accidentally checked the
> ZIP Picker, it already has 4.7.0 offered. Wouldn't 4.6.3 be a safer
> choice since Ada isn't available? (Though admittedly that's less
> interesting to most C/C++ people.) Ah, well, I guess it doesn't matter
> (and I never learned Ada, sadly, only subsets of other Wirth-ian
> languages).
>

Andris


0 new messages