Dear all,

I am not sure to understand what is the *reliable* way to regenerate
GCC configure files from the real (human typed) master source files
(like Makefile.in, gcc/configure.ac, Makefile.tpl, etc...)

I made some suggestions on the Wiki

  http://gcc.gnu.org/wiki/AboutGCCConfiguration


Again, feel free to edit the above page (and/or incorporate parts of
it into the documentation).

And I am using (on Debian/Sid/AMD64, with additional autoconf-2.59
inside /usr/local) the following regen-basile-gcc script (explicitly
in the public domain, without warranties of any kind)

  #! /bin/sh
  set -x
  GCCTOP=${1:-/usr/src/Lang/basile-ggcc/}
  cd $GCCTOP  || { echo failed to cd $GCCTOP ; exit 1 }
  echo

  pwd
  rm -rf autom4te.cache */autom4te.cache 
  
  pwd
  autogen Makefile.def
  autoreconf2.13

  echo
  cd gcc/
  pwd
  autoreconf-2.59

  echo done regen-basile-gcc

Actually, I have two wishes

  First, to have the exact process of regenerating configure files
  documented in the GCC internal documentation

  Second, to have some script (perhaps in contrib/) within the source
  tree which does that.


Maybe both are already there, my apologies if I didn't found them (but
I did seek them).

BTW, I cannot submit a patch for this because while it is trivial in
my view, it would exceed the 10 line limit, and my copyright
assignment is not signed yet (but it will be signed soon). Is it
permitted to submit trivial patches of a bit more than 10 lines while
the copyright assignment is pending?

With Sebastian Pop I am patching the configure machinerey to add
additional libraries usable by GCC, such as the Parma Polyhedra
Library. IF you are curious, this tentative patch (not yet working) is
available on http://starynkevitch.net/Basile/ggcc-basile.tgz and its
md5 is http://starynkevitch.net/Basile/ggcc-basile.md5 ; actually
these URL contains an automated backup of my work...


When I run my script, I'm getting
 % regen-basile-gcc
+/home/basile/scripts/regen-basile-gcc:3> GCCTOP=/usr/src/Lang/basile-ggcc/
+/home/basile/scripts/regen-basile-gcc:4> cd /usr/src/Lang/basile-ggcc/
+/home/basile/scripts/regen-basile-gcc:5> pwd
/usr/src/Lang/basile-ggcc
+/home/basile/scripts/regen-basile-gcc:6> rm -rf autom4te.cache 
gcc/autom4te.cache
+/home/basile/scripts/regen-basile-gcc:9> pwd
/usr/src/Lang/basile-ggcc
/home/basile/scripts/regen-basile-gcc:10: no matches found: */autom4te.cache
+/home/basile/scripts/regen-basile-gcc:12> pwd
/usr/src/Lang/basile-ggcc
+/home/basile/scripts/regen-basile-gcc:13> autogen Makefile.def
+/home/basile/scripts/regen-basile-gcc:14> autoreconf2.13
+/home/basile/scripts/regen-basile-gcc:16> echo

+/home/basile/scripts/regen-basile-gcc:17> cd gcc/
+/home/basile/scripts/regen-basile-gcc:18> pwd
/usr/src/Lang/basile-ggcc/gcc
+/home/basile/scripts/regen-basile-gcc:19> autoreconf-2.59
aclocal:configure.ac:1120: warning: macro `AM_LC_MESSAGES' not found in library
configure.ac:1120: error: possibly undefined macro: AM_LC_MESSAGES
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
autoreconf-2.59: /usr/local/bin/autoconf-2.59 failed with exit status: 1
+/home/basile/scripts/regen-basile-gcc:21> echo done regen-basile-gcc
done regen-basile-gcc


I don't understand why and when do I get the warning about
AM_LC_MESSAGES

And I am getting the same error (with the same script) when running it
on a pristine gcc trunk SVN tree of svn info

Path: .
URL: svn://gcc.gnu.org/svn/gcc/trunk
Repository Root: svn://gcc.gnu.org/svn/gcc
Repository UUID: 138bc75d-0d04-0410-961f-82ee72b054a4
Revision: 118865
Node Kind: directory
Schedule: normal
Last Changed Author: pbrook
Last Changed Rev: 118864
Last Changed Date: 2006-11-15 19:12:17 +0100 (Wed, 15 Nov 2006)


Could experts who are hacking the master files for configuration
please share their reconfiguration script or experience? This is
making me crazy! And if these people have write access to the GCC
trunk, I would be pleased to help them to document it, or adding such
a script... Alternatively I would be delighted if they could
contribute to the Wiki...


Regards.

NB: mail sent to both the gcc mailing list and the private globalgcc list

-- 
Basile STARYNKEVITCH         http://starynkevitch.net/Basile/ 
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359 
8, rue de la Faïencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***

Reply via email to