discuss-gnustep
[Top][All Lists]
Advanced

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

Re: problem with gnustep on OpenBSD sparc64 -- the journey goes on


From: Sebastian Reitenbach
Subject: Re: problem with gnustep on OpenBSD sparc64 -- the journey goes on
Date: Fri, 08 Jul 2011 16:00:31 +0200
User-agent: SOGoMail 1.3.7

 
On Friday, July 8, 2011 01:49 CEST, David Chisnall <theraven@sucs.org> wrote: 
 
> On 7 Jul 2011, at 22:10, Sebastian Reitenbach wrote:
> 
> > defaults read works well, when there are no defaults existing, but with the 
> > copied .GNUstepDefaults file, it runs into the bus error.
> 
> 
> I'm not sure if it's related, but I was seeing 'conditional jump depends on 
> uninitialised value' errors in valgrind while loading defaults.  I think it 
> was somewhere in GSXML, but I'm not completely sure - by the time I got 
> around to trying to find the cause, they'd stopped happening.  I assumed that 
> meant someone had fixed the relevant bug, but it might just have meant that 
> my defaults settings had changed in a way that stopped the bug from being 
> triggered.

I guess, uninitialized variables, the compiler should warn, when it encounters 
it while compiling.
I recompiled gnustep-base again on sparc64 (gcc-4.2.1), to check for warnings 
regarding potentially uninitialized variables, but nothing in that direction 
turned up. I remembered, that compiling on sparc (gcc-2.95) I got more 
warnings, so recompiled there too, and got a bit more warnings, but as far as I 
can see, nothing dramatically:

$ grep -i warning output | grep -v "type and size" | grep -v clobbered | grep 
-v misused | grep -v alignment
configure: WARNING: You have enabled the use of NXConstantString as the string 
class in gnustep-base.  The objective-c runtime library typically implements 
its own class of the same name, so you must either enforce a link order which 
ensures that the gnustep-base implementation is used, or (better) you must 
remove the class from the runtime library!
checking for thread-safe +initialize in runtime... configure: WARNING: Your 
ObjectiveC runtime does not support thread-safe class initialisation.  Please 
use a different runtime if you intend to use threads.
GSMime.m:731: warning: `val' might be used uninitialized in this function
GSRunLoopCtxt.m:672: warning: local declaration of `pollfds' hides instance 
variable
GSRunLoopCtxt.m:673: warning: local declaration of `pollfds' hides instance 
variable
GSRunLoopCtxt.m:674: warning: local declaration of `pollfds' hides instance 
variable
GSRunLoopCtxt.m:675: warning: local declaration of `pollfds' hides instance 
variable
NSArray.m:1457: warning: multiple declarations for method `compare:'
../Headers/Foundation/NSDate.h:105: warning: using 
`-(NSComparisonResult)compare:(NSDate *)otherDate'
../Headers/Foundation/NSValue.h:319: warning: also found 
`-(NSComparisonResult)compare:(NSNumber *)otherNumber'
../Headers/Foundation/NSString.h:385: warning: also found 
`-(NSComparisonResult)compare:(NSString *)aString'
NSArray.m:1475: warning: multiple declarations for method `compare:'
../Headers/Foundation/NSDate.h:105: warning: using 
`-(NSComparisonResult)compare:(NSDate *)otherDate'
../Headers/Foundation/NSValue.h:319: warning: also found 
`-(NSComparisonResult)compare:(NSNumber *)otherNumber'
../Headers/Foundation/NSString.h:385: warning: also found 
`-(NSComparisonResult)compare:(NSString *)aString'
NSDecimalNumber.m:712: warning: comparison of distinct pointer types lacks a 
cast
NSLock.m:392: warning: `NSCondition' does not respond to `lockBeforeDate:'
NSLock.m:392: warning: return makes integer from pointer without a cast
NSLock.m:427: warning: `NSCondition' does not respond to `tryLock'
NSLock.m:427: warning: return makes integer from pointer without a cast
NSLock.m:432: warning: `NSCondition' does not respond to `tryLock'
NSNumberFormatter.m:1829: warning: `NSNumberFormatterInternal' does not respond 
to `boolForKey:'
NSNumberFormatter.m:1829: warning: return makes integer from pointer without a 
cast
NSNumberFormatter.m:1843: warning: `NSNumberFormatterInternal' does not respond 
to `boolForKey:'
NSNumberFormatter.m:1843: warning: return makes integer from pointer without a 
cast
NSNumberFormatter.m:2037: warning: `NSNumberFormatterInternal' does not respond 
to `boolForKey:'
NSNumberFormatter.m:2037: warning: return makes integer from pointer without a 
cast
NSNumberFormatter.m:2074: warning: `NSNumberFormatterInternal' does not respond 
to `setBool:forKey:'
NSNumberFormatter.m:2079: warning: `NSNumberFormatterInternal' does not respond 
to `boolForKey:'
NSNumberFormatter.m:2079: warning: return makes integer from pointer without a 
cast
NSPredicate.m:900: warning: multiple declarations for method `compare:'
../Headers/Foundation/NSDate.h:105: warning: using 
`-(NSComparisonResult)compare:(NSDate *)otherDate'
../Headers/Foundation/NSValue.h:319: warning: also found 
`-(NSComparisonResult)compare:(NSNumber *)otherNumber'
../Headers/Foundation/NSString.h:385: warning: also found 
`-(NSComparisonResult)compare:(NSString *)aString'
NSPredicate.m:902: warning: multiple declarations for method `compare:'
../Headers/Foundation/NSDate.h:105: warning: using 
`-(NSComparisonResult)compare:(NSDate *)otherDate'
../Headers/Foundation/NSValue.h:319: warning: also found 
`-(NSComparisonResult)compare:(NSNumber *)otherNumber'
../Headers/Foundation/NSString.h:385: warning: also found 
`-(NSComparisonResult)compare:(NSString *)aString'
NSPredicate.m:904: warning: multiple declarations for method `compare:'
../Headers/Foundation/NSDate.h:105: warning: using 
`-(NSComparisonResult)compare:(NSDate *)otherDate'
../Headers/Foundation/NSValue.h:319: warning: also found 
`-(NSComparisonResult)compare:(NSNumber *)otherNumber'
../Headers/Foundation/NSString.h:385: warning: also found 
`-(NSComparisonResult)compare:(NSString *)aString'
NSPredicate.m:906: warning: multiple declarations for method `compare:'
../Headers/Foundation/NSDate.h:105: warning: using 
`-(NSComparisonResult)compare:(NSDate *)otherDate'
../Headers/Foundation/NSValue.h:319: warning: also found 
`-(NSComparisonResult)compare:(NSNumber *)otherNumber'
../Headers/Foundation/NSString.h:385: warning: also found 
`-(NSComparisonResult)compare:(NSString *)aString'
NSSet.m:686: warning: multiple declarations for method `compare:'
../Headers/Foundation/NSDate.h:105: warning: using 
`-(NSComparisonResult)compare:(NSDate *)otherDate'
../Headers/Foundation/NSValue.h:319: warning: also found 
`-(NSComparisonResult)compare:(NSNumber *)otherNumber'
../Headers/Foundation/NSString.h:385: warning: also found 
`-(NSComparisonResult)compare:(NSString *)aString'
NSSet.m:704: warning: multiple declarations for method `compare:'
../Headers/Foundation/NSDate.h:105: warning: using 
`-(NSComparisonResult)compare:(NSDate *)otherDate'
../Headers/Foundation/NSValue.h:319: warning: also found 
`-(NSComparisonResult)compare:(NSNumber *)otherNumber'
../Headers/Foundation/NSString.h:385: warning: also found 
`-(NSComparisonResult)compare:(NSString *)aString'
NSURLProtocol.m:295: warning: comparison of distinct pointer types lacks a cast
GSAvahiNetService.m:649: warning: method `netService:didUpdateAddresses:' not 
implemented by protocol.
GSAvahiNetService.m:684: warning: method 
`netService:didUpdateRecordData:forRecordType:' not implemented by protocol.
GSAvahiNetService.m:1958: warning: incomplete implementation of class 
`GSAvahiNetService'
GSAvahiNetService.m:1958: warning: method definition for `-delegate' not found
gmake[3]: Warning: File `SSL.bundle' has modification time 0.44 s in the future
gmake[3]: warning:  Clock skew detected.  Your build may be incomplete.
autogsdoc.m:2108: warning: `NSData' does not respond to 
`writeToFile:atomically:'
autogsdoc.m:2314: warning: `NSData' does not respond to 
`writeToFile:atomically:'

I guess the newer gcc on the sparc64 is just more clever in figuring out the 
order of declaration before usage, and therefore doesn't warn.
Since its generally working on the sparc, I tend ignore those warnings there 
for now.

cheers,
Sebastian

> 
> David
> 
> -- Sent from my Difference Engine
> 
> 
> 
 
 
 
 



reply via email to

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