This is the mail archive of the gcc-help@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]

gcc compilation


OS - AIX 5.2
g++ - 3.3

I have the most simple of .cpp programs :


#include <stdlib.h>
#include <stdio.h>

int main(int argc, char **argv)
{
        printf("hello world\n");

        exit(0);
}


I am then using the following command :


g++ myprog.cpp


I get the following error :


In file included from
/usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.3.0/3.3/include/sys/signal.h:349,
                 from
/usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.3.0/3.3/include/sys/wait.h:62,
                 from
/usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.3.0/3.3/include/stdlib.h:235,
                 from myprog.cpp:1:
/usr/include/sys/context.h:169: error: 'sigset64_t' is used as a type, but
is not defined as a type.


Do you have any idea as to what is causing this ?.

I thought this may be some compatibility issue with your gcc binaries so I
downloaded the gcc source to build myself but when I try to make it using
the following command :

make bootstrap

I get a similar error to the above :

        if [ x"" != x ]; then  gcc -c -DHAVE_CONFIG_H -g -O2 -I.
-I../../SOURCE/
gcc-3.3.1/libiberty/../include  -W -Wall -Wtraditional -pedantic
../../SOURCE/g
cc-3.3.1/libiberty/regex.c -o pic/regex.o;  else true; fi
        gcc -c -DHAVE_CONFIG_H -g -O2 -I.
-I../../SOURCE/gcc-3.3.1/libiberty/../
include  -W -Wall -Wtraditional -pedantic
../../SOURCE/gcc-3.3.1/libiberty/regex
.c -o regex.o
In file included from
/usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.3.0/3.3/include/
sys/signal.h:349,
                 from
/usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.3.0/3.3/include/
sys/wait.h:62,
                 from
/usr/local/lib/gcc-lib/powerpc-ibm-aix4.3.3.0/3.3/include/
stdlib.h:235,
                 from ../../SOURCE/gcc-3.3.1/libiberty/regex.c:130:
/usr/include/sys/context.h:169: error: parse error before "sigset64_t"
/usr/include/sys/context.h:172: error: parse error before '}' token
In file included from ../../SOURCE/gcc-3.3.1/include/xregex.h:26,
                 from ../../SOURCE/gcc-3.3.1/libiberty/regex.c:195:
../../SOURCE/gcc-3.3.1/include/xregex2.h:551: warning: ISO C90 does not
support
`static' or type qualifiers in parameter array declarators
../../SOURCE/gcc-3.3.1/libiberty/regex.c: In function `xregcomp':
../../SOURCE/gcc-3.3.1/libiberty/regex.c:8043: warning: signed and unsigned
type
 in conditional expression
../../SOURCE/gcc-3.3.1/libiberty/regex.c: In function `xregerror':
../../SOURCE/gcc-3.3.1/libiberty/regex.c:8178: warning: unused parameter
`preg'
make: 1254-004 The error code from the last command is 1.


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


Stop.


I'm completely stumped.
Any help will be greatly appreciated.


Andy.

> Andrew Hallam
> Project Consultant (software)
> 
> Exel Computer Systems plc
> Bothe Hall
> Sawley, Long Eaton
> Nottingham, UK
> NG10 3XL
> Telephone :	0115 946 0101
> EMail:		ahm@exel.co.uk
> Website :	 	www.exel.co.uk
> 


************************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom
they are addressed. Any views or opinions are solely those of
the author and do not necessarily represent those of Exel
Computer Systems plc. If you have received this email in error
please notify Customer Services on 0115 946 0101.
************************************************************************


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