This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Failures in tests for obj-c++....


David Ayers wrote:

> David Ayers wrote:
> 
> 
>>Ziemowit Laski wrote:
>>
>>
>>>On 6 Jun 2005, at 22.26, Christian Joensson wrote:
>>>
>>
>>[snip]
>>
>>
>>>>./bitfield-4.exe: error while loading shared libraries: libobjc.so.1:
>>>>cannot open shared object file: No such file or directory
>>>>FAIL: obj-c++.dg/bitfield-4.mm execution test
>>>>
>>>>Any ideas of what migt go wrong?
>>>
>>>
>>>No idea. :-(  Perhaps someone maintaining the GNU runtime could take a 
>>>look, and also address the i686-pc-linux-gnu ObjC/ObjC++ failures 
>>>(http://gcc.gnu.org/ml/gcc/2005-05/msg01513.html)...
>>
>>
>>I cannot reproduce this, yet I think this patch is probably correct
>>anyway.  Does it help?
> 
> 
> OK, besides the fact that the patch was supposed to go to gcc-patches@,
> I think this may not really address the issue.  I could imagine that the
> problem lies in using: #include <objc/hash.h> in some header files
> instead of #include "hash.h".  (Or issue with the ordering of the -I
> directives.)  

Maybe you can try this one instead.  (The -B and -I flags seem sane over
here though.)

Cheers,
David Ayers


2005-06-07  David Ayers  <d.ayers@inode.at>

	* archive.c, init.c, selector.c: Include hash.h.
	* archive.c, class.c, encoding.c, gc.c, hash.c, hash_compat.c,
	init.c, misc.c, nil_method.c, objects.c, sarray.c, selector.c,
	sendmsg.c, thr-dce.c, thr-decosf1.c, thr-irix.c, thr-mach.c,
	thr-objc.c, thr-os2.c, thr-posix.c, thr-pthreads.c, thr-rtems.c,
	thr-single.c, thr-solaris.c, thr-vxworks.c, thr-win32.c, thr.c:
	Include Objective-C headers with quotes and objc/ directory
	prefix.

Index: archive.c
===================================================================
RCS file: /cvs/gcc/gcc/libobjc/archive.c,v
retrieving revision 1.10
diff -u -r1.10 archive.c
--- archive.c	2 Mar 2005 19:37:02 -0000	1.10
+++ archive.c	7 Jun 2005 12:21:19 -0000
@@ -25,9 +25,9 @@
    covered by the GNU General Public License.  */
 
 #include "tconfig.h"
-#include "runtime.h"
-#include "typedstream.h"
-#include "encoding.h"
+#include "objc/runtime.h"
+#include "objc/typedstream.h"
+#include "objc/encoding.h"
 #include <stdlib.h>
 
 extern int fflush (FILE *);
Index: class.c
===================================================================
RCS file: /cvs/gcc/gcc/libobjc/class.c,v
retrieving revision 1.6
diff -u -r1.6 class.c
--- class.c	23 May 2003 20:04:58 -0000	1.6
+++ class.c	7 Jun 2005 12:21:20 -0000
@@ -88,12 +88,12 @@
   classes from the table - and the difficult thing with lock-free data
   structures is freeing data when is removed from the structures.  */
 
-#include "runtime.h"            /* the kitchen sink */
-#include "sarray.h"
+#include "objc/runtime.h"            /* the kitchen sink */
+#include "objc/sarray.h"
 
-#include <objc/objc.h>
-#include <objc/objc-api.h>
-#include <objc/thr.h>
+#include "objc/objc.h"
+#include "objc/objc-api.h"
+#include "objc/thr.h"
 
 /* We use a table which maps a class name to the corresponding class
  * pointer.  The first part of this file defines this table, and
Index: encoding.c
===================================================================
RCS file: /cvs/gcc/gcc/libobjc/encoding.c,v
retrieving revision 1.24
diff -u -r1.24 encoding.c
--- encoding.c	16 Sep 2004 08:35:01 -0000	1.24
+++ encoding.c	7 Jun 2005 12:21:20 -0000
@@ -32,8 +32,8 @@
 #include "tconfig.h"
 #include "coretypes.h"
 #include "tm.h"
-#include "objc-api.h"
-#include "encoding.h"
+#include "objc/objc-api.h"
+#include "objc/encoding.h"
 #include <stdlib.h>
 
 #undef  MAX
Index: gc.c
===================================================================
RCS file: /cvs/gcc/gcc/libobjc/gc.c,v
retrieving revision 1.7
diff -u -r1.7 gc.c
--- gc.c	20 Dec 2004 22:32:39 -0000	1.7
+++ gc.c	7 Jun 2005 12:21:20 -0000
@@ -26,8 +26,8 @@
    the executable file might be covered by the GNU General Public License.  */
 
 #include "tconfig.h"
-#include "objc.h"
-#include "encoding.h"
+#include "objc/objc.h"
+#include "objc/encoding.h"
 
 #include <assert.h>
 #include <string.h>
Index: hash.c
===================================================================
RCS file: /cvs/gcc/gcc/libobjc/hash.c,v
retrieving revision 1.6
diff -u -r1.6 hash.c
--- hash.c	2 Mar 2005 19:37:02 -0000	1.6
+++ hash.c	7 Jun 2005 12:21:20 -0000
@@ -26,9 +26,9 @@
 
 #include "assert.h"
 
-#include "hash.h"
+#include "objc/hash.h"
 
-#include "runtime.h"		/* for DEBUG_PRINTF */
+#include "objc/runtime.h"		/* for DEBUG_PRINTF */
 
 /* These two macros determine when a hash table is full and
    by how much it should be expanded respectively.
Index: hash_compat.c
===================================================================
RCS file: /cvs/gcc/gcc/libobjc/hash_compat.c,v
retrieving revision 1.1
diff -u -r1.1 hash_compat.c
--- hash_compat.c	2 Mar 2005 19:37:02 -0000	1.1
+++ hash_compat.c	7 Jun 2005 12:21:20 -0000
@@ -25,7 +25,7 @@
    the executable file might be covered by the GNU General Public License.  */
 
 #define OBJC_IGNORE_DEPRECATED_API 1
-#include "hash.h"
+#include "objc/hash.h"
 
 cache_ptr
 hash_new (unsigned int size,
Index: init.c
===================================================================
RCS file: /cvs/gcc/gcc/libobjc/init.c,v
retrieving revision 1.10
diff -u -r1.10 init.c
--- init.c	2 Mar 2005 19:37:02 -0000	1.10
+++ init.c	7 Jun 2005 12:21:20 -0000
@@ -24,7 +24,7 @@
    however invalidate any other reasons why the executable file might be
    covered by the GNU General Public License.  */
 
-#include "runtime.h"
+#include "objc/runtime.h"
 
 /* The version number of this runtime.  This must match the number 
    defined in gcc (objc-act.c).  */
Index: misc.c
===================================================================
RCS file: /cvs/gcc/gcc/libobjc/misc.c,v
retrieving revision 1.4
diff -u -r1.4 misc.c
--- misc.c	23 May 2003 20:25:39 -0000	1.4
+++ misc.c	7 Jun 2005 12:21:20 -0000
@@ -28,7 +28,7 @@
 
 #define __USE_FIXED_PROTOTYPES__
 #include <stdlib.h>
-#include "runtime.h"
+#include "objc/runtime.h"
 
 /*
 ** Error handler function
Index: nil_method.c
===================================================================
RCS file: /cvs/gcc/gcc/libobjc/nil_method.c,v
retrieving revision 1.7
diff -u -r1.7 nil_method.c
--- nil_method.c	23 May 2003 20:25:39 -0000	1.7
+++ nil_method.c	7 Jun 2005 12:21:20 -0000
@@ -27,7 +27,7 @@
 /* This is the nil method, the function that is called when the receiver
    of a method is nil */
 
-#include "runtime.h"
+#include "objc/runtime.h"
 
 /* When the receiver of a method invocation is nil, the runtime
    returns nil_method() as the method implementation.  This function
Index: objects.c
===================================================================
RCS file: /cvs/gcc/gcc/libobjc/objects.c,v
retrieving revision 1.4
diff -u -r1.4 objects.c
--- objects.c	23 May 2003 20:25:39 -0000	1.4
+++ objects.c	7 Jun 2005 12:21:20 -0000
@@ -25,8 +25,8 @@
    covered by the GNU General Public License.  */
 
 #include "tconfig.h"         /* include defs of bzero for target */
-#include "objc.h"
-#include "runtime.h"		/* the kitchen sink */
+#include "objc/objc.h"
+#include "objc/runtime.h"		/* the kitchen sink */
 
 #if OBJC_WITH_GC
 # include <gc.h>
Index: sarray.c
===================================================================
RCS file: /cvs/gcc/gcc/libobjc/sarray.c,v
retrieving revision 1.9
diff -u -r1.9 sarray.c
--- sarray.c	25 May 2004 19:10:52 -0000	1.9
+++ sarray.c	7 Jun 2005 12:21:20 -0000
@@ -24,8 +24,8 @@
    This exception does not however invalidate any other reasons why
    the executable file might be covered by the GNU General Public License.  */
 
-#include "sarray.h"
-#include "runtime.h"
+#include "objc/sarray.h"
+#include "objc/runtime.h"
 #include <stdio.h>
 #include "assert.h"
 
Index: selector.c
===================================================================
RCS file: /cvs/gcc/gcc/libobjc/selector.c,v
retrieving revision 1.10
diff -u -r1.10 selector.c
--- selector.c	2 Mar 2005 19:37:03 -0000	1.10
+++ selector.c	7 Jun 2005 12:21:20 -0000
@@ -23,9 +23,9 @@
    however invalidate any other reasons why the executable file might be
    covered by the GNU General Public License.  */
 
-#include "runtime.h"
-#include "sarray.h"
-#include "encoding.h"
+#include "objc/runtime.h"
+#include "objc/sarray.h"
+#include "objc/encoding.h"
 
 /* Initial selector hash table size. Value doesn't matter much */
 #define SELECTOR_HASH_SIZE 128
Index: sendmsg.c
===================================================================
RCS file: /cvs/gcc/gcc/libobjc/sendmsg.c,v
retrieving revision 1.13
diff -u -r1.13 sendmsg.c
--- sendmsg.c	25 May 2004 19:10:52 -0000	1.13
+++ sendmsg.c	7 Jun 2005 12:21:20 -0000
@@ -32,9 +32,9 @@
 #include "tconfig.h"
 #include "coretypes.h"
 #include "tm.h"
-#include "runtime.h"
-#include "sarray.h"
-#include "encoding.h"
+#include "objc/runtime.h"
+#include "objc/sarray.h"
+#include "objc/encoding.h"
 #include "runtime-info.h"
 
 /* This is how we hack STRUCT_VALUE to be 1 or 0.   */
Index: thr-dce.c
===================================================================
RCS file: /cvs/gcc/gcc/libobjc/thr-dce.c,v
retrieving revision 1.3
diff -u -r1.3 thr-dce.c
--- thr-dce.c	23 May 2003 20:25:39 -0000	1.3
+++ thr-dce.c	7 Jun 2005 12:21:20 -0000
@@ -25,8 +25,8 @@
    covered by the GNU General Public License.  */
 
 #include <pthread.h>
-#include <thr.h>
-#include "runtime.h"
+#include "objc/thr.h"
+#include "objc/runtime.h"
 
 /* Key structure for maintaining thread specific storage */
 static pthread_key_t _objc_thread_storage;
Index: thr-decosf1.c
===================================================================
RCS file: /cvs/gcc/gcc/libobjc/thr-decosf1.c,v
retrieving revision 1.3
diff -u -r1.3 thr-decosf1.c
--- thr-decosf1.c	23 May 2003 20:25:39 -0000	1.3
+++ thr-decosf1.c	7 Jun 2005 12:21:20 -0000
@@ -25,8 +25,8 @@
    covered by the GNU General Public License.  */
 
 #include <pthread.h>
-#include <objc/thr.h>
-#include "runtime.h"
+#include "objc/thr.h"
+#include "objc/runtime.h"
 
 /* Key structure for maintaining thread specific storage */
 static pthread_key_t _objc_thread_storage;
Index: thr-irix.c
===================================================================
RCS file: /cvs/gcc/gcc/libobjc/thr-irix.c,v
retrieving revision 1.3
diff -u -r1.3 thr-irix.c
--- thr-irix.c	23 May 2003 20:25:39 -0000	1.3
+++ thr-irix.c	7 Jun 2005 12:21:20 -0000
@@ -29,8 +29,8 @@
 #include <sys/sysmp.h>
 #include <sys/prctl.h>
 #include <ulocks.h>
-#include <objc/thr.h>
-#include "runtime.h"
+#include "objc/thr.h"
+#include "objc/runtime.h"
 
 /* Key structure for maintaining thread specific storage */
 static void * __objc_shared_arena_handle = NULL;
Index: thr-mach.c
===================================================================
RCS file: /cvs/gcc/gcc/libobjc/thr-mach.c,v
retrieving revision 1.4
diff -u -r1.4 thr-mach.c
--- thr-mach.c	23 May 2003 20:25:39 -0000	1.4
+++ thr-mach.c	7 Jun 2005 12:21:20 -0000
@@ -28,8 +28,8 @@
 
 #include <mach/mach.h>
 #include <mach/cthreads.h>
-#include <objc/thr.h>
-#include "runtime.h"
+#include "objc/thr.h"
+#include "objc/runtime.h"
 
 /*
   Obtain the maximum thread priority that can set for t.  Under the
Index: thr-objc.c
===================================================================
RCS file: /cvs/gcc/gcc/libobjc/thr-objc.c,v
retrieving revision 1.4
diff -u -r1.4 thr-objc.c
--- thr-objc.c	28 Feb 2005 20:04:41 -0000	1.4
+++ thr-objc.c	7 Jun 2005 12:21:20 -0000
@@ -29,8 +29,8 @@
 #include "coretypes.h"
 #include "tm.h"
 #include "defaults.h"
-#include <objc/thr.h>
-#include "runtime.h"
+#include "objc/thr.h"
+#include "objc/runtime.h"
 #include <gthr.h>
 
 /* Backend initialization functions */
Index: thr-os2.c
===================================================================
RCS file: /cvs/gcc/gcc/libobjc/thr-os2.c,v
retrieving revision 1.3
diff -u -r1.3 thr-os2.c
--- thr-os2.c	23 May 2003 20:25:39 -0000	1.3
+++ thr-os2.c	7 Jun 2005 12:21:20 -0000
@@ -24,8 +24,8 @@
    however invalidate any other reasons why the executable file might be
    covered by the GNU General Public License.  */
 
-#include <objc/thr.h>
-#include "runtime.h"
+#include "objc/thr.h"
+#include "objc/runtime.h"
 
 #define INCL_DOSSEMAPHORES
 #define INCL_DOSPROCESS
Index: thr-posix.c
===================================================================
RCS file: /cvs/gcc/gcc/libobjc/thr-posix.c,v
retrieving revision 1.5
diff -u -r1.5 thr-posix.c
--- thr-posix.c	23 May 2003 20:25:39 -0000	1.5
+++ thr-posix.c	7 Jun 2005 12:21:20 -0000
@@ -26,8 +26,8 @@
    however invalidate any other reasons why the executable file might be
    covered by the GNU General Public License.  */
 
-#include <objc/thr.h>
-#include "runtime.h"
+#include "objc/thr.h"
+#include "objc/runtime.h"
 #include <pthread.h>
 
 /* Key structure for maintaining thread specific storage */
Index: thr-pthreads.c
===================================================================
RCS file: /cvs/gcc/gcc/libobjc/thr-pthreads.c,v
retrieving revision 1.3
diff -u -r1.3 thr-pthreads.c
--- thr-pthreads.c	23 May 2003 20:25:39 -0000	1.3
+++ thr-pthreads.c	7 Jun 2005 12:21:20 -0000
@@ -26,8 +26,8 @@
    covered by the GNU General Public License.  */
 
 #include <pcthread.h>
-#include <objc/thr.h>
-#include "runtime.h"
+#include "objc/thr.h"
+#include "objc/runtime.h"
 
 /* Key structure for maintaining thread specific storage */
 static pthread_key_t _objc_thread_storage;
Index: thr-rtems.c
===================================================================
RCS file: /cvs/gcc/gcc/libobjc/thr-rtems.c,v
retrieving revision 1.2
diff -u -r1.2 thr-rtems.c
--- thr-rtems.c	23 May 2003 20:25:39 -0000	1.2
+++ thr-rtems.c	7 Jun 2005 12:21:20 -0000
@@ -26,8 +26,8 @@
    however invalidate any other reasons why the executable file might be
    covered by the GNU General Public License.  */
 
-#include <objc/thr.h>
-#include "runtime.h"
+#include "objc/thr.h"
+#include "objc/runtime.h"
 
 /* Thread local storage for a single thread */
 static void *thread_local_storage = NULL;
Index: thr-single.c
===================================================================
RCS file: /cvs/gcc/gcc/libobjc/thr-single.c,v
retrieving revision 1.3
diff -u -r1.3 thr-single.c
--- thr-single.c	23 May 2003 20:25:39 -0000	1.3
+++ thr-single.c	7 Jun 2005 12:21:20 -0000
@@ -24,8 +24,8 @@
    however invalidate any other reasons why the executable file might be
    covered by the GNU General Public License.  */
 
-#include <objc/thr.h>
-#include "runtime.h"
+#include "objc/thr.h"
+#include "objc/runtime.h"
 
 /* Thread local storage for a single thread */
 static void *thread_local_storage = NULL;
Index: thr-solaris.c
===================================================================
RCS file: /cvs/gcc/gcc/libobjc/thr-solaris.c,v
retrieving revision 1.3
diff -u -r1.3 thr-solaris.c
--- thr-solaris.c	23 May 2003 20:25:39 -0000	1.3
+++ thr-solaris.c	7 Jun 2005 12:21:20 -0000
@@ -25,8 +25,8 @@
    however invalidate any other reasons why the executable file might be
    covered by the GNU General Public License.  */
 
-#include <objc/thr.h>
-#include "runtime.h"
+#include "objc/thr.h"
+#include "objc/runtime.h"
 
 #include <thread.h>
 #include <synch.h>
Index: thr-vxworks.c
===================================================================
RCS file: /cvs/gcc/gcc/libobjc/thr-vxworks.c,v
retrieving revision 1.3
diff -u -r1.3 thr-vxworks.c
--- thr-vxworks.c	23 May 2003 20:25:39 -0000	1.3
+++ thr-vxworks.c	7 Jun 2005 12:21:20 -0000
@@ -24,8 +24,8 @@
    however invalidate any other reasons why the executable file might be
    covered by the GNU General Public License.  */
 
-#include <objc/thr.h>
-#include "runtime.h"
+#include "objc/thr.h"
+#include "objc/runtime.h"
 
 /* Thread local storage for a single thread */
 static void *thread_local_storage = NULL;
Index: thr-win32.c
===================================================================
RCS file: /cvs/gcc/gcc/libobjc/thr-win32.c,v
retrieving revision 1.3
diff -u -r1.3 thr-win32.c
--- thr-win32.c	23 May 2003 20:25:39 -0000	1.3
+++ thr-win32.c	7 Jun 2005 12:21:20 -0000
@@ -24,8 +24,8 @@
    however invalidate any other reasons why the executable file might be
    covered by the GNU General Public License.  */
 
-#include <objc/thr.h>
-#include "runtime.h"
+#include "objc/thr.h"
+#include "objc/runtime.h"
 
 #ifndef __OBJC__
 #define __OBJC__
Index: thr.c
===================================================================
RCS file: /cvs/gcc/gcc/libobjc/thr.c,v
retrieving revision 1.7
diff -u -r1.7 thr.c
--- thr.c	22 Jul 2004 22:20:08 -0000	1.7
+++ thr.c	7 Jun 2005 12:21:20 -0000
@@ -25,7 +25,7 @@
    covered by the GNU General Public License.  */
 
 #include <stdlib.h>
-#include "runtime.h"
+#include "objc/runtime.h"
 
 /* Global exit status. */
 int __objc_thread_exit_status = 0;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]