help-gnustep
[Top][All Lists]
Advanced

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

Problem with compiling the gnustep-base - NSSet.m


From: bbceler
Subject: Problem with compiling the gnustep-base - NSSet.m
Date: Thu, 10 Mar 2011 23:40:00 -0800 (PST)

I have a problem with compiling the gnustep-base from SVN (revision 32527). 
Please help. 

OS QNX 6.5.0
Libobjc2 revision 32527.
# clang --version
clang version 2.9 (trunk)
Target: i386-pc-qnx6.5.0-nto
Thread model: posix
#
Warnings.
..................................
Making all for library libgnustep-base...
 Compiling file GSLocale.m ...
.................................. 
In file included from GSFTPURLHandle.m:38:
/usr/pkg/include/Foundation/NSByteOrder.h:280:11: warning: cast from 'double
*' to 'union dconv *' increases required alignment 
        from 4 to 8 [-Wcast-align]
  return ((union dconv *)&num)->sd;
          ^~~~~~~~~~~~~~~~~~~
1 warning generated.
..................................
 Compiling file NSAssertionHandler.m ...
NSAssertionHandler.m:107:1: warning: function declared 'noreturn' should not
return [-Winvalid-noreturn]
}
^
NSAssertionHandler.m:136:1: warning: function declared 'noreturn' should not
return [-Winvalid-noreturn]
}
^
2 warnings generated.
 Compiling file NSAttributedString.m ...
..................................
 Compiling file NSDate.m ...
 Compiling file NSDateFormatter.m ...
NSDateFormatter.m:191:7: warning: receiver type 'void *' is not 'id' or
interface pointer, consider casting it to 'id'
      GS_DESTROY_INTERNAL(NSDateFormatter)
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from NSDateFormatter.m:92:
././GSInternal.h:103:25: note: instantiated from:
if (nil != _internal) {[_internal release]; _internal = nil; }
                        ^~~~~~~~~
NSDateFormatter.m:191:7: warning: method '-release' not found (return type
defaults to 'id')
      GS_DESTROY_INTERNAL(NSDateFormatter)
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from NSDateFormatter.m:92:
././GSInternal.h:103:24: note: instantiated from:
if (nil != _internal) {[_internal release]; _internal = nil; }
                       ^~~~~~~~~~~~~~~~~~~
2 warnings generated.
 Compiling file NSDebug.m ...
...............................
 Compiling file NSFileHandle.m ...
In file included from NSFileHandle.m:33:
/usr/pkg/include/GNUstepBase/GSFileHandle.h:107:27: warning: declaration of
'struct sockaddr_in' will not be visible outside of this function
- (void) setAddr: (struct sockaddr_in *)sin;
                          ^
1 warning generated.
 Compiling file NSFileManager.m ...
...............................
 Compiling file NSNumberFormatter.m ...
NSNumberFormatter.m:336:7: warning: receiver type 'void *' is not 'id' or
interface pointer, consider casting it to 'id'
      GS_DESTROY_INTERNAL(NSNumberFormatter)
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from NSNumberFormatter.m:210:
././GSInternal.h:103:25: note: instantiated from:
if (nil != _internal) {[_internal release]; _internal = nil; }
                        ^~~~~~~~~
NSNumberFormatter.m:336:7: warning: method '-release' not found (return type
defaults to 'id')
      GS_DESTROY_INTERNAL(NSNumberFormatter)
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from NSNumberFormatter.m:210:
././GSInternal.h:103:24: note: instantiated from:
if (nil != _internal) {[_internal release]; _internal = nil; }
                       ^~~~~~~~~~~~~~~~~~~
2 warnings generated.
 Compiling file NSObjCRuntime.m ...
.....................................
And error:
clang NSSet.m -c \
              -MMD -MP -I/usr/pkg/include -DGNUSTEP_TARGET_DIR=\".\"
-DGNUSTEP_TARGET_CPU=\"ix86\" -DGNUSTEP_TARGET_OS=\"nto-qnx\"
-DGNUSTEP_IS_FLATTENED=\"yes\" -DLIBRARY_COMBO=\"gnu-gnu-gnu\"
-DGNUSTEP_BASE_INTERNAL=1 -Wall -Wdeclaration-after-statement -Wcast-align
-DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1
-fno-strict-aliasing -fobjc-nonfragile-abi -D_NONFRAGILE_ABI -fPIC -Wall
-DGSWARN -DGSDIAGNOSE -Wno-import -g -O2 -fgnu-runtime -fobjc-nonfragile-abi
-fgnu-runtime -fconstant-string-class=NSConstantString
-I../Headers/Additions -I../Headers -I./. -I. -I/usr/pkg/include
-I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include
-I/usr/pkg/include/libxml2 -I/usr/pkg/include
-I/root/GNUstep/Library/Headers -I/usr/pkg/include \
               -o obj/libgnustep-base.obj/NSSet.m.o
NSSet.m:861:39: error: expected a type
- (void) enumerateObjectsUsingBlock: (GSSetEnumeratorBlock)aBlock
                                      ^
NSSet.m:863:3: warning: method '-enumerateObjectsWithOptions:usingBlock:'
not found (return type defaults to 'id')
  [self enumerateObjectsWithOptions: 0 usingBlock: aBlock];
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NSSet.m:867:40: error: expected a type
                          usingBlock: (GSSetEnumeratorBlock)aBlock
                                       ^
NSSet.m:874:5: error: called object type 'id' is not a function or function
pointer
    CALL_BLOCK(aBlock, obj, &shouldStop);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from NSSet.m:29:
In file included from /usr/pkg/include/Foundation/NSArray.h:32:
/usr/pkg/include/GNUstepBase/GSBlocks.h:18:7: note: instantiated from:
        block(args, ## __VA_ARGS__)
             ^
1 warning and 3 errors generated.
make[4]: *** [obj/libgnustep-base.obj/NSSet.m.o] Error 1
make[3]: *** [internal-library-all_] Error 2
make[2]: *** [libgnustep-base.all.library.variables] Error 2
make[1]: *** [internal-all] Error 2
make[1]: Leaving directory `/src/GNUstep/gnustep-base/Source'
make: *** [internal-all] Error 2

Bogdan Celer

-- 
View this message in context: 
http://old.nabble.com/Problem-with-compiling-the-gnustep-base---NSSet.m-tp31121103p31121103.html
Sent from the GNUstep - Help mailing list archive at Nabble.com.




reply via email to

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