discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GNUStep runtime / libobjc2 build problems: tests failing or segfault


From: Andreas Fink
Subject: Re: GNUStep runtime / libobjc2 build problems: tests failing or segfaulting
Date: Wed, 16 Jan 2019 15:57:20 +0100



On 16 Jan 2019, at 15:37, David Chisnall <address@hidden> wrote:

On 16/01/2019 10:40, Andreas Fink wrote:
cd libobjc2
mkdir Build
cd Build
cmake ..  -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_STATIC_LIBOBJC=1   -DCMAKE_C_COMPILER=${CC} -DCMAKE_CXX_COMPILER=${CXX} -DTESTS=OFF
make -j8
make install
cd ..
ldconfig

Two things here:

1. If things aren't working for you, why are you disabling the test suite?  Remove the -DTESTS=OFF and run ctest (optionally -j {cores} if you want it to run nice and fast).  This will run a load of tests of your Objective-C configuration and report errors.


Ok usually the libobjc2 part wasn the issues and some test stuff was screwing up things which was the reason why I disabled it usually. These things however have since been fixed it seems.


2. Why are you doing this *after* installing GNUstep Make?  GNUstep Make will search for your runtime and pick a sensible one.

Because in the past this didn't work in that order and various websites did it in that order.


David

P.S. I think you still need to patch -make to pass -fobjc-runtime=gnustep-2.0


yes and no

    export RUNTIME_VERSION=gnustep-2.0

takes care of that.
with 1.9 it was always putting  -fobjc-runtime=gnustep-1.8 which was making me go nuts until I figured out how to change this without patching.


Now I get the following errors:

# make test
Running tests...
Test project /Users/afink/development/gnustep/libobjc2/build2
        Start   1: alias
  1/162 Test   #1: alias .............................................   Passed    0.00 sec
        Start   2: alias_optimised
  2/162 Test   #2: alias_optimised ...................................   Passed    0.00 sec
        Start   3: alias_legacy
  3/162 Test   #3: alias_legacy ......................................   Passed    0.00 sec
        Start   4: alias_legacy_optimised
  4/162 Test   #4: alias_legacy_optimised ............................   Passed    0.00 sec
        Start   5: alignTest
  5/162 Test   #5: alignTest .........................................   Passed    0.00 sec
        Start   6: alignTest_optimised
  6/162 Test   #6: alignTest_optimised ...............................   Passed    0.00 sec
        Start   7: alignTest_legacy
  7/162 Test   #7: alignTest_legacy ..................................***Exception: Other  0.00 sec
        Start   8: alignTest_legacy_optimised
  8/162 Test   #8: alignTest_legacy_optimised ........................***Exception: Other  0.00 sec
        Start   9: AllocatePair
  9/162 Test   #9: AllocatePair ......................................   Passed    0.00 sec
        Start  10: AllocatePair_optimised
 10/162 Test  #10: AllocatePair_optimised ............................   Passed    0.00 sec
        Start  11: AllocatePair_legacy
 11/162 Test  #11: AllocatePair_legacy ...............................   Passed    0.00 sec
        Start  12: AllocatePair_legacy_optimised
 12/162 Test  #12: AllocatePair_legacy_optimised .....................   Passed    0.00 sec
        Start  13: ARCTest_arc
 13/162 Test  #13: ARCTest_arc .......................................   Passed    0.00 sec
        Start  14: ARCTest_arc_optimised
 14/162 Test  #14: ARCTest_arc_optimised .............................   Passed    0.00 sec
        Start  15: ARCTest_arc_legacy
 15/162 Test  #15: ARCTest_arc_legacy ................................   Passed    0.00 sec
        Start  16: ARCTest_arc_legacy_optimised
 16/162 Test  #16: ARCTest_arc_legacy_optimised ......................   Passed    0.00 sec
        Start  17: AssociatedObject
 17/162 Test  #17: AssociatedObject ..................................   Passed    0.00 sec
        Start  18: AssociatedObject_optimised
 18/162 Test  #18: AssociatedObject_optimised ........................***Exception: Other  0.00 sec
        Start  19: AssociatedObject_legacy
 19/162 Test  #19: AssociatedObject_legacy ...........................   Passed    0.00 sec
        Start  20: AssociatedObject_legacy_optimised
 20/162 Test  #20: AssociatedObject_legacy_optimised .................***Exception: Other  0.00 sec
        Start  21: AssociatedObject2
 21/162 Test  #21: AssociatedObject2 .................................   Passed    0.00 sec
        Start  22: AssociatedObject2_optimised
 22/162 Test  #22: AssociatedObject2_optimised .......................   Passed    0.00 sec
        Start  23: AssociatedObject2_legacy
 23/162 Test  #23: AssociatedObject2_legacy ..........................   Passed    0.00 sec
        Start  24: AssociatedObject2_legacy_optimised
 24/162 Test  #24: AssociatedObject2_legacy_optimised ................   Passed    0.00 sec
        Start  25: BlockImpTest
 25/162 Test  #25: BlockImpTest ......................................   Passed    0.00 sec
        Start  26: BlockImpTest_optimised
 26/162 Test  #26: BlockImpTest_optimised ............................   Passed    0.00 sec
        Start  27: BlockImpTest_legacy
 27/162 Test  #27: BlockImpTest_legacy ...............................   Passed    0.00 sec
        Start  28: BlockImpTest_legacy_optimised
 28/162 Test  #28: BlockImpTest_legacy_optimised .....................   Passed    0.00 sec
        Start  29: BlockTest_arc
 29/162 Test  #29: BlockTest_arc .....................................   Passed    0.00 sec
        Start  30: BlockTest_arc_optimised
 30/162 Test  #30: BlockTest_arc_optimised ...........................   Passed    0.00 sec
        Start  31: BlockTest_arc_legacy
 31/162 Test  #31: BlockTest_arc_legacy ..............................   Passed    0.00 sec
        Start  32: BlockTest_arc_legacy_optimised
 32/162 Test  #32: BlockTest_arc_legacy_optimised ....................   Passed    0.00 sec
        Start  33: ConstantString
 33/162 Test  #33: ConstantString ....................................   Passed    0.00 sec
        Start  34: ConstantString_optimised
 34/162 Test  #34: ConstantString_optimised ..........................   Passed    0.00 sec
        Start  35: ConstantString_legacy
 35/162 Test  #35: ConstantString_legacy .............................***Exception: Other  0.00 sec
        Start  36: ConstantString_legacy_optimised
 36/162 Test  #36: ConstantString_legacy_optimised ...................***Exception: Other  0.00 sec
        Start  37: Category
 37/162 Test  #37: Category ..........................................   Passed    0.00 sec
        Start  38: Category_optimised
 38/162 Test  #38: Category_optimised ................................   Passed    0.00 sec
        Start  39: Category_legacy
 39/162 Test  #39: Category_legacy ...................................   Passed    0.00 sec
        Start  40: Category_legacy_optimised
 40/162 Test  #40: Category_legacy_optimised .........................   Passed    0.00 sec
        Start  41: ExceptionTest
 41/162 Test  #41: ExceptionTest .....................................   Passed    0.00 sec
        Start  42: ExceptionTest_optimised
 42/162 Test  #42: ExceptionTest_optimised ...........................   Passed    0.00 sec
        Start  43: ExceptionTest_legacy
 43/162 Test  #43: ExceptionTest_legacy ..............................   Passed    0.00 sec
        Start  44: ExceptionTest_legacy_optimised
 44/162 Test  #44: ExceptionTest_legacy_optimised ....................   Passed    0.00 sec
        Start  45: Forward
 45/162 Test  #45: Forward ...........................................   Passed    0.00 sec
        Start  46: Forward_optimised
 46/162 Test  #46: Forward_optimised .................................   Passed    0.00 sec
        Start  47: Forward_legacy
 47/162 Test  #47: Forward_legacy ....................................   Passed    0.00 sec
        Start  48: Forward_legacy_optimised
 48/162 Test  #48: Forward_legacy_optimised ..........................   Passed    0.00 sec
        Start  49: ManyManySelectors
 49/162 Test  #49: ManyManySelectors .................................   Passed    1.70 sec
        Start  50: ManyManySelectors_optimised
 50/162 Test  #50: ManyManySelectors_optimised .......................   Passed    1.42 sec
        Start  51: ManyManySelectors_legacy
 51/162 Test  #51: ManyManySelectors_legacy ..........................   Passed    1.41 sec
        Start  52: ManyManySelectors_legacy_optimised
 52/162 Test  #52: ManyManySelectors_legacy_optimised ................   Passed    1.69 sec
        Start  53: NestedExceptions
 53/162 Test  #53: NestedExceptions ..................................   Passed    0.00 sec
        Start  54: NestedExceptions_optimised
 54/162 Test  #54: NestedExceptions_optimised ........................   Passed    0.00 sec
        Start  55: NestedExceptions_legacy
 55/162 Test  #55: NestedExceptions_legacy ...........................   Passed    0.00 sec
        Start  56: NestedExceptions_legacy_optimised
 56/162 Test  #56: NestedExceptions_legacy_optimised .................   Passed    0.00 sec
        Start  57: PropertyAttributeTest
 57/162 Test  #57: PropertyAttributeTest .............................   Passed    0.00 sec
        Start  58: PropertyAttributeTest_optimised
 58/162 Test  #58: PropertyAttributeTest_optimised ...................   Passed    0.00 sec
        Start  59: PropertyAttributeTest_legacy
 59/162 Test  #59: PropertyAttributeTest_legacy ......................   Passed    0.00 sec
        Start  60: PropertyAttributeTest_legacy_optimised
 60/162 Test  #60: PropertyAttributeTest_legacy_optimised ............   Passed    0.00 sec
        Start  61: ProtocolExtendedProperties
 61/162 Test  #61: ProtocolExtendedProperties ........................   Passed    0.00 sec
        Start  62: ProtocolExtendedProperties_optimised
 62/162 Test  #62: ProtocolExtendedProperties_optimised ..............   Passed    0.00 sec
        Start  63: ProtocolExtendedProperties_legacy
 63/162 Test  #63: ProtocolExtendedProperties_legacy .................   Passed    0.00 sec
        Start  64: ProtocolExtendedProperties_legacy_optimised
 64/162 Test  #64: ProtocolExtendedProperties_legacy_optimised .......   Passed    0.00 sec
        Start  65: PropertyIntrospectionTest
 65/162 Test  #65: PropertyIntrospectionTest .........................   Passed    0.00 sec
        Start  66: PropertyIntrospectionTest_optimised
 66/162 Test  #66: PropertyIntrospectionTest_optimised ...............   Passed    0.00 sec
        Start  67: PropertyIntrospectionTest_legacy
 67/162 Test  #67: PropertyIntrospectionTest_legacy ..................   Passed    0.00 sec
        Start  68: PropertyIntrospectionTest_legacy_optimised
 68/162 Test  #68: PropertyIntrospectionTest_legacy_optimised ........   Passed    0.00 sec
        Start  69: PropertyIntrospectionTest2_arc
 69/162 Test  #69: PropertyIntrospectionTest2_arc ....................   Passed    0.00 sec
        Start  70: PropertyIntrospectionTest2_arc_optimised
 70/162 Test  #70: PropertyIntrospectionTest2_arc_optimised ..........   Passed    0.00 sec
        Start  71: PropertyIntrospectionTest2_arc_legacy
 71/162 Test  #71: PropertyIntrospectionTest2_arc_legacy .............   Passed    0.00 sec
        Start  72: PropertyIntrospectionTest2_arc_legacy_optimised
 72/162 Test  #72: PropertyIntrospectionTest2_arc_legacy_optimised ...   Passed    0.00 sec
        Start  73: ProtocolCreation
 73/162 Test  #73: ProtocolCreation ..................................   Passed    0.00 sec
        Start  74: ProtocolCreation_optimised
 74/162 Test  #74: ProtocolCreation_optimised ........................   Passed    0.00 sec
        Start  75: ProtocolCreation_legacy
 75/162 Test  #75: ProtocolCreation_legacy ...........................   Passed    0.00 sec
        Start  76: ProtocolCreation_legacy_optimised
 76/162 Test  #76: ProtocolCreation_legacy_optimised .................   Passed    0.00 sec
        Start  77: ResurrectInDealloc_arc
 77/162 Test  #77: ResurrectInDealloc_arc ............................   Passed    0.00 sec
        Start  78: ResurrectInDealloc_arc_optimised
 78/162 Test  #78: ResurrectInDealloc_arc_optimised ..................   Passed    0.00 sec
        Start  79: ResurrectInDealloc_arc_legacy
 79/162 Test  #79: ResurrectInDealloc_arc_legacy .....................   Passed    0.00 sec
        Start  80: ResurrectInDealloc_arc_legacy_optimised
 80/162 Test  #80: ResurrectInDealloc_arc_legacy_optimised ...........   Passed    0.00 sec
        Start  81: RuntimeTest
 81/162 Test  #81: RuntimeTest .......................................   Passed    0.00 sec
        Start  82: RuntimeTest_optimised
 82/162 Test  #82: RuntimeTest_optimised .............................   Passed    0.00 sec
        Start  83: RuntimeTest_legacy
 83/162 Test  #83: RuntimeTest_legacy ................................   Passed    0.00 sec
        Start  84: RuntimeTest_legacy_optimised
 84/162 Test  #84: RuntimeTest_legacy_optimised ......................   Passed    0.00 sec
        Start  85: WeakBlock_arc
 85/162 Test  #85: WeakBlock_arc .....................................   Passed    0.00 sec
        Start  86: WeakBlock_arc_optimised
 86/162 Test  #86: WeakBlock_arc_optimised ...........................   Passed    0.00 sec
        Start  87: WeakBlock_arc_legacy
 87/162 Test  #87: WeakBlock_arc_legacy ..............................   Passed    0.00 sec
        Start  88: WeakBlock_arc_legacy_optimised
 88/162 Test  #88: WeakBlock_arc_legacy_optimised ....................   Passed    0.00 sec
        Start  89: WeakReferences_arc
 89/162 Test  #89: WeakReferences_arc ................................   Passed    2.15 sec
        Start  90: WeakReferences_arc_optimised
 90/162 Test  #90: WeakReferences_arc_optimised ......................   Passed    1.90 sec
        Start  91: WeakReferences_arc_legacy
 91/162 Test  #91: WeakReferences_arc_legacy .........................   Passed    1.95 sec
        Start  92: WeakReferences_arc_legacy_optimised
 92/162 Test  #92: WeakReferences_arc_legacy_optimised ...............   Passed    1.74 sec
        Start  93: WeakImportClass
 93/162 Test  #93: WeakImportClass ...................................   Passed    0.00 sec
        Start  94: WeakImportClass_optimised
 94/162 Test  #94: WeakImportClass_optimised .........................   Passed    0.00 sec
        Start  95: WeakImportClass_legacy
 95/162 Test  #95: WeakImportClass_legacy ............................   Passed    0.00 sec
        Start  96: WeakImportClass_legacy_optimised
 96/162 Test  #96: WeakImportClass_legacy_optimised ..................   Passed    0.00 sec
        Start  97: ivar_arc
 97/162 Test  #97: ivar_arc ..........................................   Passed    0.00 sec
        Start  98: ivar_arc_optimised
 98/162 Test  #98: ivar_arc_optimised ................................   Passed    0.00 sec
        Start  99: ivar_arc_legacy
 99/162 Test  #99: ivar_arc_legacy ...................................   Passed    0.00 sec
        Start 100: ivar_arc_legacy_optimised
100/162 Test #100: ivar_arc_legacy_optimised .........................   Passed    0.00 sec
        Start 101: IVarOverlap
101/162 Test #101: IVarOverlap .......................................   Passed    0.00 sec
        Start 102: IVarOverlap_optimised
102/162 Test #102: IVarOverlap_optimised .............................   Passed    0.00 sec
        Start 103: IVarOverlap_legacy
103/162 Test #103: IVarOverlap_legacy ................................   Passed    0.00 sec
        Start 104: IVarOverlap_legacy_optimised
104/162 Test #104: IVarOverlap_legacy_optimised ......................   Passed    0.00 sec
        Start 105: objc_msgSend
105/162 Test #105: objc_msgSend ......................................   Passed    0.00 sec
        Start 106: objc_msgSend_optimised
106/162 Test #106: objc_msgSend_optimised ............................   Passed    0.00 sec
        Start 107: objc_msgSend_legacy
107/162 Test #107: objc_msgSend_legacy ...............................   Passed    0.00 sec
        Start 108: objc_msgSend_legacy_optimised
108/162 Test #108: objc_msgSend_legacy_optimised .....................   Passed    0.00 sec
        Start 109: msgInterpose
109/162 Test #109: msgInterpose ......................................   Passed    0.00 sec
        Start 110: msgInterpose_optimised
110/162 Test #110: msgInterpose_optimised ............................   Passed    0.00 sec
        Start 111: msgInterpose_legacy
111/162 Test #111: msgInterpose_legacy ...............................   Passed    0.00 sec
        Start 112: msgInterpose_legacy_optimised
112/162 Test #112: msgInterpose_legacy_optimised .....................   Passed    0.00 sec
        Start 113: NilException
113/162 Test #113: NilException ......................................   Passed    0.00 sec
        Start 114: NilException_optimised
114/162 Test #114: NilException_optimised ............................   Passed    0.00 sec
        Start 115: NilException_legacy
115/162 Test #115: NilException_legacy ...............................   Passed    0.00 sec
        Start 116: NilException_legacy_optimised
116/162 Test #116: NilException_legacy_optimised .....................   Passed    0.00 sec
        Start 117: MethodArguments
117/162 Test #117: MethodArguments ...................................   Passed    0.00 sec
        Start 118: MethodArguments_optimised
118/162 Test #118: MethodArguments_optimised .........................   Passed    0.00 sec
        Start 119: MethodArguments_legacy
119/162 Test #119: MethodArguments_legacy ............................   Passed    0.00 sec
        Start 120: MethodArguments_legacy_optimised
120/162 Test #120: MethodArguments_legacy_optimised ..................   Passed    0.00 sec
        Start 121: zeroSizedIVar
121/162 Test #121: zeroSizedIVar .....................................   Passed    0.00 sec
        Start 122: zeroSizedIVar_optimised
122/162 Test #122: zeroSizedIVar_optimised ...........................   Passed    0.00 sec
        Start 123: zeroSizedIVar_legacy
123/162 Test #123: zeroSizedIVar_legacy ..............................***Exception: Other  0.00 sec
        Start 124: zeroSizedIVar_legacy_optimised
124/162 Test #124: zeroSizedIVar_legacy_optimised ....................***Exception: Other  0.00 sec
        Start 125: exchange
125/162 Test #125: exchange ..........................................   Passed    0.00 sec
        Start 126: exchange_optimised
126/162 Test #126: exchange_optimised ................................   Passed    0.00 sec
        Start 127: exchange_legacy
127/162 Test #127: exchange_legacy ...................................   Passed    0.00 sec
        Start 128: exchange_legacy_optimised
128/162 Test #128: exchange_legacy_optimised .........................   Passed    0.00 sec
        Start 129: hash_table_delete
129/162 Test #129: hash_table_delete .................................   Passed    0.00 sec
        Start 130: hash_table_delete_optimised
130/162 Test #130: hash_table_delete_optimised .......................   Passed    0.00 sec
        Start 131: hash_table_delete_legacy
131/162 Test #131: hash_table_delete_legacy ..........................   Passed    0.00 sec
        Start 132: hash_table_delete_legacy_optimised
132/162 Test #132: hash_table_delete_legacy_optimised ................   Passed    0.00 sec
        Start 133: hash_test
133/162 Test #133: hash_test .........................................   Passed    3.94 sec
        Start 134: hash_test_optimised
134/162 Test #134: hash_test_optimised ...............................   Passed    1.25 sec
        Start 135: hash_test_legacy
135/162 Test #135: hash_test_legacy ..................................   Passed    3.78 sec
        Start 136: hash_test_legacy_optimised
136/162 Test #136: hash_test_legacy_optimised ........................   Passed    1.24 sec
        Start 137: setSuperclass
137/162 Test #137: setSuperclass .....................................   Passed    0.00 sec
        Start 138: setSuperclass_optimised
138/162 Test #138: setSuperclass_optimised ...........................   Passed    0.00 sec
        Start 139: setSuperclass_legacy
139/162 Test #139: setSuperclass_legacy ..............................   Passed    0.00 sec
        Start 140: setSuperclass_legacy_optimised
140/162 Test #140: setSuperclass_legacy_optimised ....................   Passed    0.00 sec
        Start 141: BoxedForeignException
141/162 Test #141: BoxedForeignException .............................   Passed    0.00 sec
        Start 142: BoxedForeignException_optimised
142/162 Test #142: BoxedForeignException_optimised ...................   Passed    0.00 sec
        Start 143: BoxedForeignException_legacy
143/162 Test #143: BoxedForeignException_legacy ......................   Passed    0.00 sec
        Start 144: BoxedForeignException_legacy_optimised
144/162 Test #144: BoxedForeignException_legacy_optimised ............   Passed    0.00 sec
        Start 145: ForeignException
145/162 Test #145: ForeignException ..................................   Passed    0.00 sec
        Start 146: ForeignException_optimised
146/162 Test #146: ForeignException_optimised ........................   Passed    0.00 sec
        Start 147: ForeignException_legacy
147/162 Test #147: ForeignException_legacy ...........................   Passed    0.00 sec
        Start 148: ForeignException_legacy_optimised
148/162 Test #148: ForeignException_legacy_optimised .................   Passed    0.00 sec
        Start 149: category_properties
149/162 Test #149: category_properties ...............................   Passed    0.00 sec
        Start 150: category_properties_optimised
150/162 Test #150: category_properties_optimised .....................   Passed    0.00 sec
        Start 151: CXXExceptions
151/162 Test #151: CXXExceptions .....................................   Passed    0.00 sec
        Start 152: CXXExceptions_optimised
152/162 Test #152: CXXExceptions_optimised ...........................   Passed    0.00 sec
        Start 153: CXXExceptions_legacy
153/162 Test #153: CXXExceptions_legacy ..............................   Passed    0.00 sec
        Start 154: CXXExceptions_legacy_optimised
154/162 Test #154: CXXExceptions_legacy_optimised ....................   Passed    0.00 sec
        Start 155: ForwardDeclareProtocolAccess
155/162 Test #155: ForwardDeclareProtocolAccess ......................   Passed    0.00 sec
        Start 156: ForwardDeclareProtocolAccess_optimised
156/162 Test #156: ForwardDeclareProtocolAccess_optimised ............   Passed    0.00 sec
        Start 157: ForwardDeclareProtocolAccess_legacy
157/162 Test #157: ForwardDeclareProtocolAccess_legacy ...............   Passed    0.00 sec
        Start 158: ForwardDeclareProtocolAccess_legacy_optimised
158/162 Test #158: ForwardDeclareProtocolAccess_legacy_optimised .....   Passed    0.00 sec
        Start 159: ObjCXXEHInterop
159/162 Test #159: ObjCXXEHInterop ...................................   Passed    0.00 sec
        Start 160: ObjCXXEHInterop_optimised
160/162 Test #160: ObjCXXEHInterop_optimised .........................   Passed    0.00 sec
        Start 161: ObjCXXEHInterop_legacy
161/162 Test #161: ObjCXXEHInterop_legacy ............................   Passed    0.00 sec
        Start 162: ObjCXXEHInterop_legacy_optimised
162/162 Test #162: ObjCXXEHInterop_legacy_optimised ..................   Passed    0.00 sec

95% tests passed, 8 tests failed out of 162

Total Test time (real) =  24.72 sec

The following tests FAILED:
 7 - alignTest_legacy (OTHER_FAULT)
 8 - alignTest_legacy_optimised (OTHER_FAULT)
18 - AssociatedObject_optimised (OTHER_FAULT)
20 - AssociatedObject_legacy_optimised (OTHER_FAULT)
35 - ConstantString_legacy (OTHER_FAULT)
36 - ConstantString_legacy_optimised (OTHER_FAULT)
123 - zeroSizedIVar_legacy (OTHER_FAULT)
124 - zeroSizedIVar_legacy_optimised (OTHER_FAULT)
Errors while running CTest
Makefile:83: recipe for target 'test' failed
make: *** [test] Error 8




reply via email to

[Prev in Thread] Current Thread [Next in Thread]