GNU Pascal Homepage - gpc - gpc-announce - gpc-de - gpc-doc
Diese Seite auf deutsch

Mail #14567

Back to main page of archive

Previous mail   Next mail   Unformatted/full headers
Overview  10 days   Subject   Date   Thread   Author  

From: Waldek Hebisch
Subject: GPC 20060325 + GCC 3.4.6 on AIX 6.1
Date: 12 Dec 2009, 01:08:03

Gert Doering wrote:
> 
> $Management has now decided to have me working on "GPC on AIX 6" again,
> and I did some work with gcc-3.4.6 and gpc-20060325 today.
> 
> gcc-3.4.6 contains most of the patches contained in the mailing list
> posting quited above already, so the patch does not apply.  It is not
> needed, though - all that remains is one small bit in config.gcc:
> 
> 
> ------------------- snip --------------------
> diff -wur gcc-3.4.6.orig/gcc/config.gcc gcc-3.4.6/gcc/config.gcc
> --- gcc-3.4.6.orig/gcc/config.gcc	2005-07-19 23:08:48.000000000 +0200
> +++ gcc-3.4.6/gcc/config.gcc	2009-12-08 14:51:51.000000000 +0100
> @@ -1867,7 +1867,7 @@
>  	thread_file='aix'
>  	extra_headers=
>  	;;
> -rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
> +rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].* | rs6000-ibm-aix )
>  	tm_file="${tm_file} rs6000/aix.h rs6000/aix52.h rs6000/xcoff.h"
>  	tmake_file=rs6000/t-aix52
>  	use_collect2=yes
> ------------------- snip --------------------
> 
> 
> (for some weird reason, AIX 6 is detected by configure as "rs6000-ibm-aix",
> without any version number.  But hey, the resulting pascal and C compiler 
> work, so who am I to complain...)
>
> 
> There's two further hickups in building GPC itself, one is that
> "mk-t-inc" doesn't like AIX sed but works fine with GNU sed, the other
> one is that gpidump.pas references a few symbols that I couldn't find 
> anywhere. 
> So I commented them out...
> 
> ------------------- snip --------------------
> diff -u -w --recursive gpc-20060325.orig/p/utils/gpidump.pas gpc-20060325/p/utils/gpidump.pas
> --- gpc-20060325.orig/p/utils/gpidump.pas	2006-03-24 03:47:16.000000000 +0100
> +++ gpc-20060325/p/utils/gpidump.pas	2009-12-08 15:18:22.000000000 +0100
> @@ -746,7 +746,9 @@
>                             OutputFlag ('method');
>                             IsMethod := True
>                           end;
> +{
>            OPERATOR_DECL: OutputFlag ('also_built_in');
> +}

mk-t-inc is supposed to create file declaring those symbols.

> diff -u -w --recursive gpc-20060325.orig/p/utils/mk-t-inc gpc-20060325/p/utils/mk-t-inc
> --- gpc-20060325.orig/p/utils/mk-t-inc	2006-03-25 01:28:56.000000000 +0100
> +++ gpc-20060325/p/utils/mk-t-inc	2009-12-08 15:09:23.000000000 +0100
> @@ -44,7 +44,7 @@
>  
>  GCCDIR="$1"
>  
> -version="`grep version_string "$GCCDIR/version.c" | sed -e 's/[^"]*"//;s/".*//'`"
> +version="`grep version_string "$GCCDIR/version.c" | gsed -e 's/[^"]*"//;s/".*//'`"
>  if [ x"$version" = x ]; then
>    exit 1
>  fi
> @@ -62,15 +62,15 @@
>  EOF
>  
>  # Use result of GPC's config-lang.in
> -sed -ne 's,#define\(.*\),{$define\1},p' ../../gcc-version.h
> +gsed -ne 's,#define\(.*\),{$define\1},p' ../../gcc-version.h
>

As local fix for your installation this is fine.
  
> The problem that remains now is the "collect2" bit that was discussed
> on this list a long while ago, but yet-unresolved...
> 
> gd@hilb31:/tmp> gpc -o hello hello.pas
> gd@hilb31:/tmp> gpc -fno-unit-path -o hello hello.pas
> cc1: warning: command line option "-fno-unit-path" is valid for Pascal but not for C
> 
> (this is just a warning, but upsets "make check")
> 
> 
> Waldek, in last year's "GPC on AIX 6" thread you mentioned a new GPC
> version, gpc-20070904.  I think it might be worthwile to start hacking
> on this (to get the option passing to collect2 fixed) before I work on
> the older version.  Is gpc-20070904 the latest version?  If yes, where
> can I find it?  http://www.gnu-pascal.de only lists the 20060325
> version.
>

As Maurice wrote it is on my gpc page:

http://www.math.uni.wroc.pl/~hebisch/gpc

> Who is rolling GPC "alpha releases" these days anyway?
>
 
I am affraid currently nobody.  I released the last five alphas,
but currently my work on gpc is suspended -- I am busy with other
projects.

Previous mail   Next mail   Unformatted/full headers
Overview  10 days   Subject   Date   Thread   Author  


Replies

Author Subject Date
Scott Moore P5, and associated test (the PAT) 2 Feb 2010, 00:55:44
Scott Moore Compiler directives and the --standard-pascal switch 2 Feb 2010, 11:41:31
Rugxulo P5, and associated test (the PAT) 16 Feb 2010, 00:35:34
Scott Moore P5, and associated test (the PAT) 16 Feb 2010, 01:03:56

In reply to

Author Subject Date
Gert Doering GPC 20060325 + GCC 3.4.6 on AIX 6.1 (was: Re: GPC support for AIX 6?) 8 Dec 2009, 17:00:41

Back to main page of archive


Note: This page contains information that does not originate from the owner of this web site, but from the authors of the mails archived. The owner of this web site is not responsible for the content of such information. Any use of that infomation requires the consent of the respective author.

Where WWW addresses (URLs) in the mails archived are marked as hyperlinks, this is only for the comfort of the reader. The content of the web pages linked to like this does not necessarily reflect the opinion of the owner of this web site or of the authors of the mails archived. The owner of this web site is not responsible for the content of such web pages. Those pages are explicitly not to be considered as part of the content of this page, but merely as references.


This page was created by Crystal 0.999 (Linux 2.4.27/i686).