Michael Leong | 27 Nov 00:08

Installing SWIG on AIX with xlc

Greetings,

I'm trying to install SWIG on an AIX 5.3 machine with the xlc
compiler. I've unzipped the package, and then I give the ./configure
CC=xlc command, which works just fine. However, when I run make, I get
the following errors:

        make  all-am
        source='CParse/cscanner.c' object='CParse/cscanner.o' libtool=no  DEPDIR
=.deps depmode=aix /bin/sh ../Tools/config/depcomp  /usr/vacpp/bin/xlC_r -DHAVE_
CONFIG_H      -I../Source/Include        -I../Source/CParse      -I../Source/Inc
lude             -I../Source/DOH                 -I../Source/CParse
 -I../Source/Preprocessor        -I../Source/Swig                -I../Source/Mod
ules -g -Wall -W -ansi -pedantic -c -o CParse/cscanner.o CParse/cscanner.c
/usr/vacpp/bin/xlC_r: 1501-210 (S) command option Wall contains an incorrect sub
argument
make: 1254-004 The error code from the last command is 40.

Stop.
make: 1254-004 The error code from the last command is 2.

Stop.
make: 1254-004 The error code from the last command is 2.

Stop.

I notice that it's trying to use the -Wall option, which is a gcc
option that is not recognized by xlc. Has anyone encountered this
problem before, or done anything fancy to get SWIG installed on AIX?
Any help would be appreciated.
(Continue reading)

William S Fulton | 27 Nov 00:22
Favicon

Re: Installing SWIG on AIX with xlc

Run ./configure --without-maximum-compile-warnings to get rid of the 
warning flags, or override with ./configure CFLAGS= CXXFLAGS=

William

Michael Leong wrote:
> Greetings,
> 
> I'm trying to install SWIG on an AIX 5.3 machine with the xlc
> compiler. I've unzipped the package, and then I give the ./configure
> CC=xlc command, which works just fine. However, when I run make, I get
> the following errors:
> 
>         make  all-am
>         source='CParse/cscanner.c' object='CParse/cscanner.o' libtool=no  DEPDIR
> =.deps depmode=aix /bin/sh ../Tools/config/depcomp  /usr/vacpp/bin/xlC_r -DHAVE_
> CONFIG_H      -I../Source/Include        -I../Source/CParse      -I../Source/Inc
> lude             -I../Source/DOH                 -I../Source/CParse
>  -I../Source/Preprocessor        -I../Source/Swig                -I../Source/Mod
> ules -g -Wall -W -ansi -pedantic -c -o CParse/cscanner.o CParse/cscanner.c
> /usr/vacpp/bin/xlC_r: 1501-210 (S) command option Wall contains an incorrect sub
> argument
> make: 1254-004 The error code from the last command is 40.
> 
> 
> Stop.
> make: 1254-004 The error code from the last command is 2.
> 
> 
> Stop.
(Continue reading)


Gmane