Operating System - HP-UX
1826484 Members
4460 Online
109692 Solutions
New Discussion

gnustep-base build fails on HP-UX 11.23 (both ia64 and pa)

 
Rashmi Hegde
New Member

gnustep-base build fails on HP-UX 11.23 (both ia64 and pa)

I am trying to compile gnustep-base 1.12.0/1.13.0 with binutils 2.14, gcc 3.4.6 , ffcall 1.8 ,GNU Make 3.80

binutils and gcc are built with native HP ANSI C compiler.
and gnustep-make with with this gcc
The platform is HPUX 11.23 June 2006 update.

The gnustep-base build fails as follows on pa-risc machine

gmake[1]: Entering directory `/USERSPACE/ocek/gnustep-base/gnustep-base-1.12.0/Source'
Making all in subprojects of library libgnustep-base...
gmake[2]: Entering directory `/USERSPACE/ocek/gnustep-base/gnustep-base-1.12.0/Source/Additions'
Making all for subproject Additions...
Compiling file GSObjCRuntime.m ...
GSObjCRuntime.m: In function `GSObjCFindVariable':
GSObjCRuntime.m:73: warning: dereferencing type-punned pointer will break strict-aliasing rules
GSObjCRuntime.m: At top level:
GSObjCRuntime.m:636: error: conflicting types for '__objc_exec_class'
GSObjCRuntime.m:300: error: previous declaration of '__objc_exec_class' was here
gmake[3]: *** [shared_obj/hppa/hpux11.23/gnu-gnu-gnu/GSObjCRuntime.o] Error 1
gmake[2]: *** [Additions.all.subproject.variables] Error 2
gmake[2]: Leaving directory `/USERSPACE/ocek/gnustep-base/gnustep-base-1.12.0/Source/Additions'
gmake[1]: *** [libgnustep-base.all.library.variables] Error 2
gmake[1]: Leaving directory `/USERSPACE/ocek/gnustep-base/gnustep-base-1.12.0/Source'
gmake: *** [internal-all] Error 2




On HPUX 11.23 ia64
the build fails as follows
Making all in subprojects of library libgnustep-base...
gmake[2]: Entering directory `/USERSPACE/ocek/gnustep-base/gnustep-base-1.12.0/Source/Additions'
Making all for subproject Additions...
Compiling file GSCategories.m ...
In file included from /usr/include/sys/stdpad.h:23,
from /usr/include/sys/sigevent.h:45,
from /opt/OCEK/lib/gcc/ia64-hp-hpux11.23/3.4.0/include/sys/time.h:37,
from /usr/include/sys/resource.h:50,
from /usr/include/sys/wait.h:100,
from /opt/OCEK/lib/gcc/ia64-hp-hpux11.23/3.4.0/include/stdlib.h:399,
from ../../Headers/Additions/GNUstepBase/preface.h:28,
from ../../Headers/Foundation/NSObject.h:160,
from ../../Headers/Foundation/NSDebug.h:31,
from ../../Headers/Foundation/Foundation.h:32,
from GSCategories.m:27:
/usr/include/machine/sys/_types.h:65: error: parse error before "__fpreg"
/usr/include/machine/sys/_types.h:69: error: parse error before '}' token
In file included from /opt/OCEK/lib/gcc/ia64-hp-hpux11.23/3.4.0/include/sys/newsig.h:87,
from /usr/include/sys/signal.h:43,
from /usr/include/sys/wait.h:141,
from /opt/OCEK/lib/gcc/ia64-hp-hpux11.23/3.4.0/include/stdlib.h:399,
from ../../Headers/Additions/GNUstepBase/preface.h:28,
from ../../Headers/Foundation/NSObject.h:160,
from ../../Headers/Foundation/NSDebug.h:31,
from ../../Headers/Foundation/Foundation.h:32,
from GSCategories.m:27:
/usr/include/machine/sys/newsig.h:47: error: parse error before "__opaque128_t"
/usr/include/machine/sys/newsig.h:52: error: parse error before "mcontext_t"
/usr/include/machine/sys/newsig.h:145: error: parse error before "mcontext_t"
In file included from /usr/include/machine/sys/signal.h:59,
from /usr/include/sys/signal.h:547,
from /usr/include/sys/wait.h:141,
from /opt/OCEK/lib/gcc/ia64-hp-hpux11.23/3.4.0/include/stdlib.h:399,
from ../../Headers/Additions/GNUstepBase/preface.h:28,
from ../../Headers/Foundation/NSObject.h:160,
from ../../Headers/Foundation/NSDebug.h:31,
from ../../Headers/Foundation/Foundation.h:32,
from GSCategories.m:27:
/usr/include/machine/sys/sigcontext.h:43: error: field `__uc' has incomplete type
In file included from ../../Headers/Additions/GNUstepBase/preface.h:28,
from ../../Headers/Foundation/NSObject.h:160,
from ../../Headers/Foundation/NSDebug.h:31,
from ../../Headers/Foundation/Foundation.h:32,
from GSCategories.m:27:
/opt/OCEK/lib/gcc/ia64-hp-hpux11.23/3.4.0/include/stdlib.h:573: error: parse error before "int"
/opt/OCEK/lib/gcc/ia64-hp-hpux11.23/3.4.0/include/stdlib.h:574: error: parse error before "int"
/opt/OCEK/lib/gcc/ia64-hp-hpux11.23/3.4.0/include/stdlib.h:614: error: parse error before "int"
/opt/OCEK/lib/gcc/ia64-hp-hpux11.23/3.4.0/include/stdlib.h:615: error: parse error before "int"
In file included from ../../Headers/Foundation/Foundation.h:39,
from GSCategories.m:27:
../../Headers/Foundation/NSBundle.h:578:1: warning: "__" redefined
In file included from /opt/OCEK/lib/gcc/ia64-hp-hpux11.23/3.4.0/include/string.h:15,
from GSCategories.m:26:
/opt/OCEK/lib/gcc/ia64-hp-hpux11.23/3.4.0/include/sys/stdsyms.h:398:1: warning: this is the location of the previous definition
In file included from ../../Headers/Foundation/NSException.h:35,
from ../../Headers/Foundation/NSClassDescription.h:29,
from ../../Headers/Foundation/Foundation.h:43,
from GSCategories.m:27:
/usr/include/setjmp.h:22: error: parse error before "jmp_buf"
/usr/include/setjmp.h:39: error: parse error before "sigjmp_buf"
/usr/include/setjmp.h:53: error: parse error before "int"
/usr/include/setjmp.h:67: error: parse error before "int"
/usr/include/setjmp.h:80: error: parse error before "int"
/usr/include/setjmp.h:81: error: parse error before "int"
In file included from ../../Headers/Foundation/NSClassDescription.h:29,
from ../../Headers/Foundation/Foundation.h:43,
from GSCategories.m:27:
../../Headers/Foundation/NSException.h:193: error: parse error before "jmp_buf"
../../Headers/Foundation/NSException.h:193: warning: no semicolon at end of struct or union
../../Headers/Foundation/NSException.h:196: error: parse error before '}' token
../../Headers/Foundation/NSException.h:196: warning: type defaults to `int' in declaration of `NSHandler'
../../Headers/Foundation/NSException.h:196: warning: data definition has no type or storage class
../../Headers/Foundation/NSException.h:275: error: parse error before '*' token
../../Headers/Foundation/NSException.h:277: error: parse error before '*' token
In file included from ../../Headers/Foundation/Foundation.h:97,
from GSCategories.m:27:
../../Headers/Foundation/NSThread.h:41: error: parse error before "NSHandler"
GSCategories.m: In function `-[NSData(GSCategories) initWithHexadecimalRepresentation:]':
GSCategories.m:308: warning: subscript has type `char'
gmake[3]: *** [shared_obj/GSCategories.o] Error 1
gmake[2]: *** [Additions.all.subproject.variables] Error 2
gmake[2]: Leaving directory `/USERSPACE/ocek/gnustep-base/gnustep-base-1.12.0/Source/Additions'
gmake[1]: *** [libgnustep-base.all.library.variables] Error 2
gmake[1]: Leaving directory `/USERSPACE/ocek/gnustep-base/gnustep-base-1.12.0/Source'
gmake: *** [internal-all] Error 2


The build goes through with gcc 3.3.x line on both pa and ipf.

The build is successful on 11.11 with gcc 3.4.6, what I saw was that the machine specific header files /usr/include/machine/sys/*.h are not present in 11.11 machine.

any pointers ?
1 REPLY 1
Jon Ward_3
Advisor

Re: gnustep-base build fails on HP-UX 11.23 (both ia64 and pa)

Wow - old compiler.

Have you tried the gcc 4 stream? There are lots of improvements.

HP provides pre-compiled depots:
http://www.hp.com/go/gcc