Discussion:
Problem compiling GNU M4
(too old to reply)
Eric Blake
2017-07-14 14:15:19 UTC
Permalink
Raw Message
[adding gnulib]
Good morning,
I'm trying to compile a GNU M4 version 1.4.18 with XLC compiler and I have
make all-recursive
Making all in .
Target "all-am" is up to date.
Making all in examples
Target "all" is up to date.
Making all in lib
make all-am
CC c-ctype.o
"c-ctype.h", line 174.5: 1506-052 (S) Duplicate case label for value 48.
Labels must be unique.
"c-ctype.h", line 175.5: 1506-076 (W) Character constant '\'A\' - \'a\''
has more than one character. No more than rightmost 4 characters are used.
c-ctype.h comes from gnulib, so presumably that's the place that needs
to be fixed, and you will probably see similar compilation failures on
other projects until we figure out why your compiler is griping about
the file.
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
Bruno Haible
2017-07-14 15:18:38 UTC
Permalink
Raw Message
Hi Reinier,
I'm trying to compile a GNU M4 version 1.4.18 with XLC compiler and I have
make all-recursive
Making all in .
Target "all-am" is up to date.
Making all in examples
Target "all" is up to date.
Making all in lib
make all-am
CC c-ctype.o
"c-ctype.h", line 174.5: 1506-052 (S) Duplicate case label for value 48.
Labels must be unique.
"c-ctype.h", line 175.5: 1506-076 (W) Character constant '\'A\' - \'a\''
has more than one character. No more than rightmost 4 characters are used.
Which version of xlc are you using, and with which options? (Sorry I have to ask,
but the "CC" abbreviation above hides all interesting details.)

Which version of AIX?

Bruno
Bruno Haible
2017-07-14 15:28:44 UTC
Permalink
Raw Message
Post by Bruno Haible
Which version of xlc are you using, and with which options? (Sorry I have to ask,
but the "CC" abbreviation above hides all interesting details.)
If you don't know, look into the Makefile, or run "./config.status --version".

I'm asking because this looks like a K&R C preprocessor, and of course xlc has
options to use a sane preprocessor instead.

Btw, support for a K&R C preprocessor was actually added by Paul [1], but it
was after the m4-1.4.18 release.

Bruno

[1] http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commitdiff;h=16f6a8d8d81cc93745a24c0fb89caab2c383ae3c
Loading...