This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GCC 4.8.0 does not compile for DJGPP


On 03/24/2013 07:51 PM, Fabrizio Gennari wrote:
Il 24/03/2013 18:48, Fabrizio Gennari ha scritto:
Il 23/03/2013 18:07, DJ Delorie ha scritto:
The DJGPP build of gcc 4.8.0 was just uploaded, it might have some
patches that haven't been committed upstream yet.
Thank you DJ. I downloaded beta/v2gnu/gcc480s.zip from a mirror, and that compiles. And, indeed,
the file gcc/config/i386/djgpp.h is different from the one in the official gcc-4.8.0.tar.bz2,
meaning that some DJGPP patches are not present upstream.

I guess it would be easier to see changes from:

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

Its much smaller and contains only DJGPP related patches and scripts
for using them. Changes from subdirectory diff2 in that archive are not needed
for building cross-compiler only ones from subdirectory diffs.

One may also try SRPM from the same place:

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

Forgot to say that I also had to apply this patch

--- ../gcc-4.8.0/libbacktrace/alloc.c    2013-01-14 19:17:30.000000000 +0100
+++ ../gcc-4.80/libbacktrace/alloc.c    2013-03-24 18:07:11.995891959 +0100
@@ -34,6 +34,7 @@

  #include <errno.h>
  #include <stdlib.h>
+#include <sys/types.h>

  #include "backtrace.h"
  #include "internal.h"


This fix is required for current stable version (2.03) of DJGPP only. I only built for
development version 2.0.4 (really recent once from CVS) which does not need this fix.

Native build for DJGPP v2.03 fails due to DJGPP own problems and was left out
for that reason and because of DJGPP v2.03 is already too old.

Andris



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]