gnustep-dev
[Top][All Lists]
Advanced

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

Re: gnustep-base's configure is broken on FreeBSD 9.1 when used with lib


From: Marcus Müller
Subject: Re: gnustep-base's configure is broken on FreeBSD 9.1 when used with libobjc2 r36872
Date: Wed, 17 Jul 2013 13:59:00 +0200


On 17.07.2013, at 11:56, David Chisnall <address@hidden> wrote:

On 17 Jul 2013, at 10:25, Marcus Müller <address@hidden> wrote:

It seems r36851 breaks gnustep-base's configure somehow.

Hmm, this is the change that ensures that ivars are correctly aligned.  I don't see how it would cause problems of this nature, it should have basically no effect on the kind of program in the test…

Not sure how to progress from here. I can definitely verify that this particular change (r36851) breaks this:

$ cat conftest.c
#include "./config/config.constant-string-class.m"
$ /usr/local/bin/clang33 -o conftest -g -O2  -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include  -fgnu-runtime -x objective-c -fconstant-string-class=FooConstantString  -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib conftest.c -lrt  -lpthread -rdynamic -pthread -fexceptions -fobjc-nonfragile-abi -fgnu-runtime -L/home/znek/GNUstep/Library/Libraries -L/usr/local/lib -L/usr/local/lib -lobjc -lm
$ ./conftest 
Segmentation fault: 11 (core dumped)
$ gdb conftest conftest.core 
GNU gdb (GDB) 7.6 [GDB v7.6 for FreeBSD]
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-portbld-freebsd9.1".
For bug reporting instructions, please see:
Reading symbols from /home/znek/Projects/GNUstep/core/base/conftest...done.
[New process 100446]
[New Thread 802007400 (LWP 100446)]
Core was generated by `conftest'.
Program terminated with signal 11, Segmentation fault.
#0  0x000000080119d0a0 in strcmp () from /lib/libc.so.7
(gdb) bt
#0  0x000000080119d0a0 in strcmp () from /lib/libc.so.7
#1  0x0000000000400eb0 in main (argc=<optimized out>, argv=<optimized out>) at ././config/config.constant-string-class.m:62
(gdb) 

Please note that this warning occurs when compiling conftest.c:
././config/config.constant-string-class.m:23:31: warning: class 'FooConstantString' defined without specifying a base class [-Wobjc-root-class]
GS_OBJC_ROOT_CLASS @interface FooConstantString

Maybe there's a bug in r36851 that improperly aligns classes in this case (just a wild guess)?


Cheers,


  Marcus


--
Marcus Müller  .  .  .  http://www.mulle-kybernetik.com/znek/



Attachment: smime.p7s
Description: S/MIME cryptographic signature


reply via email to

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