On 17.07.2013, at 11:56, David Chisnall <[email protected]> wrote: > On 17 Jul 2013, at 10:25, Marcus Müller <[email protected]> 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: <http://www.gnu.org/software/gdb/bugs/>... 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/
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Gnustep-dev mailing list [email protected] https://lists.gnu.org/mailman/listinfo/gnustep-dev
