bugGNUstep - Bugs: bug #17927, gnustep-base build fails on HP-UX...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

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

Submitted by:  Rashmi <rashmi>
Submitted on:  Fri 06 Oct 2006 01:40:16 PM UTC  
 
Category: Base/FoundationSeverity: 3 - Normal
Item Group: Change RequestStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

(Jump to the original submission Jump to the original submission)

Wed 20 Feb 2008 10:12:04 AM UTC, comment #6:

Closing this ... never obtained any feedback to see if the fixes worked.

Richard Frith-Macdonald <CaS>
Project Member
Thu 17 Jan 2008 02:14:07 AM UTC, comment #5:

Thanks - I made a couple of very small changes
to your gnustep-make patch and then applied it. :-)

Unfortunately, I don't have an hpux system to test.

Let me know if it works any better.

Thanks

Nicola Pero <nico>
Project Member
Tue 03 Apr 2007 11:49:06 AM UTC, comment #4:

Hello there,

I have generalized the 2 patches and attached the same.

HPUX-linkSubproj.patch -> this patch is applied to target.make in gnustep-make code.
This ensures that libgnustep-base.so is linked to all the object files on HPUX.

HPUX-Intdeclaration.patch -> this patches the gnustep-base code.
Here _inttypes.h header file which defines the int types in HPUX is included in NSByteOrder.h.

It would be great if these changes are included in the next release of gnustep.

Thanks in advance
Rashmi.

(file #12384, file #12385)

Rashmi <rashmi>
Tue 23 Jan 2007 10:51:06 AM UTC, comment #3:

Thanks ... a patch would be very welcome. It's good to hear that you have been working on it.

Richard Frith-Macdonald <CaS>
Project Member
Tue 23 Jan 2007 10:38:12 AM UTC, comment #2:

Hello,

My apologies for not responding for so long.
I have made some tweaks to the gnustep 1.12.0 code and nows it works on HP-UX too.
I will check the same on 1.13.0 and make the patch more generic and post it here in a few days time.
Thanks again.

Rashmi <rashmi>
Fri 06 Oct 2006 02:29:09 PM UTC, comment #1:

Trying 1.6 is a bit pointless ... it's so old!

If you check the platforms GNUstep runs on (there is a link to the list from the FAQ in the user area of the website) you will see that HP/UX is neither supported nor known to run on HP/UX.

That being said, portability of GNUstep is good and it should run on HP/UX without much porting effort, and any changes needed to port 1.13 can easily be integrated into GNUstep for the next release. However full functionality will require a working copy of the ffcall or ffi library.

Looking at the trace it seems to be an HP/UX system header problem (eg one header depending on another but not including it), or is some incompatibility between a preprocessor constant defined in GNUstep and one the system headers used.

That can be tedious to sort out ... you have to go through a trial and error process of repositioning the include directives to see what other things included before them might be messing them up.

Richard Frith-Macdonald <CaS>
Project Member
Fri 06 Oct 2006 01:40:16 PM UTC, original submission:

I am trying to compile gnustep-base 1.6 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 for PA-risc.

The gnustep-base build fails as follows

.
.
.

gmake[1]: Entering directory `/USERSPACE/ocek/gnustep-base/gnustep-base-1.6.0/Source'
Making all in subprojects of library libgnustep-base...
gmake[2]: Entering directory `/USERSPACE/ocek/gnustep-base/gnustep-base-1.6.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.6.0/Source/Additions'
gmake[1]: *** [libgnustep-base.all.library.variables] Error 2
gmake[1]: Leaving directory `/USERSPACE/ocek/gnustep-base/gnustep-base-1.6.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.13.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.13.0/Source/Additions'
gmake[1]: *** [libgnustep-base.all.library.variables] Error 2
gmake[1]: Leaving directory `/USERSPACE/ocek/gnustep-base/gnustep-base-1.13.0/Source'
gmake: *** [internal-all] Error 2

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

Rashmi <rashmi>

 

Attached Files
file #12384:  HPUX-linkSubproj.patch added by rashmi (999B - text/x-patch)
file #12385:  HPUX-Intdeclaration.patch added by rashmi (564B - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by nico (Posted a comment)
  • -unavailable- added by CaS (Posted a comment)
  • -unavailable- added by rashmi (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 20 Feb 2008 10:12:04 AM UTCCaSOpen/ClosedOpen=>Closed
    Tue 03 Apr 2007 11:49:06 AM UTCrashmiAttached File-=>Added HPUX-linkSubproj.patch, #12384
      Attached File-=>Added HPUX-Intdeclaration.patch, #12385
    Fri 06 Oct 2006 02:29:09 PM UTCCaSCategoryNone=>Base/Foundation
      Item GroupBug=>Change Request
    Fri 06 Oct 2006 01:40:16 PM UTCrashmiCarbon-Copy-=>Added rashmi
      Carbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1