Hi,
I received a message from another user, who found a workaround for this
problem. He replaced src/gcc/cppdefault.h by the version shipped in a
previous version of gcc-3.3 and the cross-build went fine. It works for me,
too and the cross-compiler seems to work. Here is the diff between
cppdefault.h shipped with the current gcc-3.3 and the one it has been
replaced with to successfully build the m68k cross-compiler.

Christian

--- src/gcc/cppdefault.h        2007-01-21 12:06:05.000000000 +0100
+++ src/gcc/cppdefault.h        2007-01-21 11:48:27.000000000 +0100
@@ -30,25 +30,17 @@
 #define STANDARD_INCLUDE_DIR "/usr/include"
 #endif
 
-#ifndef MULTIARCH_STANDARD_INCLUDE_DIR
-#define MULTIARCH_STANDARD_INCLUDE_DIR STANDARD_INCLUDE_DIR "/" TARGET_MACHINE
-#endif
-
-#ifndef MULTIARCH_LOCAL_INCLUDE_DIR
-#define MULTIARCH_LOCAL_INCLUDE_DIR LOCAL_INCLUDE_DIR "/" TARGET_MACHINE
-#endif
-
 #ifndef STANDARD_INCLUDE_COMPONENT
 #define STANDARD_INCLUDE_COMPONENT 0
 #endif
 
-#if defined (CROSS_COMPILE) && !defined (TARGET_SYSTEM_ROOT)
-# undef LOCAL_INCLUDE_DIR
-# undef SYSTEM_INCLUDE_DIR
-# undef STANDARD_INCLUDE_DIR
-#else
-# undef CROSS_INCLUDE_DIR
-#endif
+// #if defined (CROSS_COMPILE) && !defined (TARGET_SYSTEM_ROOT)
+// # undef LOCAL_INCLUDE_DIR
+//# undef SYSTEM_INCLUDE_DIR
+// # undef STANDARD_INCLUDE_DIR
+// #else
+// # undef CROSS_INCLUDE_DIR
+// #endif
 
 /* This is the default list of directories to search for include files.
    It may be overridden by the various -I and -ixxx options.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to