This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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

SOLVED: cross binutil for sparc-aout problems



i recent was able to compile my binutils with no problem.
it seems that in gcc-3.0 the printf function is a macro
and gcc-3.0 does not allow preprocessor directives within
a macro. i wrote a small patch for this. hope this helps others.

i have not submitted it to binutils developers yet but i hope
it will get there.

-- 

--------------------------------------
William Emmanuel S. Yu
Ateneo Cervini-Eliazo Networks (ACENT)
email  :  william.s.yu@ieee.org
web    :  http://cersa.admu.edu.ph/
phone  :  63(2)4266001-5925/5904

There is nothing new except what has been forgotten.
		-- Marie Antoinette

diff -Nur binutils-2.10.1-old/binutils/nm.c binutils-2.10.1/binutils/nm.c
--- binutils-2.10.1-old/binutils/nm.c	Sun Oct 15 02:42:22 2000
+++ binutils-2.10.1/binutils/nm.c	Fri Jul  6 13:49:59 2001
@@ -1447,13 +1447,11 @@
 {
   if (bfd_is_undefined_symclass (info->type))
     {
-      printf ("%*s",
 #ifdef BFD64
-	      16,
+      printf ("%*s", 16, "");
 #else
-	      8,
+      printf ("%*s", 8, "");
 #endif
-	      "");
     }
   else
     print_value (info->value);
diff -Nur binutils-2.10.1-old/intl/config.status binutils-2.10.1/intl/config.status
--- binutils-2.10.1-old/intl/config.status	Tue Nov  7 18:22:16 2000
+++ binutils-2.10.1/intl/config.status	Fri Jul  6 13:33:20 2001
@@ -2,9 +2,9 @@
 # Generated automatically by configure.
 # Run this file to recreate the current configuration.
 # This directory was configured as follows,
-# on host fountain:
+# on host jabber.admu.edu.ph:
 #
-# ./configure  --host=sun4 --target=sun4 --with-gnu-as --cache-file=../config.cache
+# ./configure  --verbose --host=i586-pc-linux-gnu --target=sparc-aout --prefix=/data/javafs --with-gnu-as --with-gnu-ld --cache-file=../config.cache
 #
 # Compiler output produced by configure, useful for debugging
 # configure, is in ./config.log if it exists.
@@ -14,8 +14,8 @@
 do
   case "$ac_option" in
   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
-    echo "running ${CONFIG_SHELL-/bin/sh} ./configure  --host=sun4 --target=sun4 --with-gnu-as --cache-file=../config.cache --no-create --no-recursion"
-    exec ${CONFIG_SHELL-/bin/sh} ./configure  --host=sun4 --target=sun4 --with-gnu-as --cache-file=../config.cache --no-create --no-recursion ;;
+    echo "running ${CONFIG_SHELL-/bin/sh} ./configure  --verbose --host=i586-pc-linux-gnu --target=sparc-aout --prefix=/data/javafs --with-gnu-as --with-gnu-ld --cache-file=../config.cache --no-create --no-recursion"
+    exec ${CONFIG_SHELL-/bin/sh} ./configure  --verbose --host=i586-pc-linux-gnu --target=sparc-aout --prefix=/data/javafs --with-gnu-as --with-gnu-ld --cache-file=../config.cache --no-create --no-recursion ;;
   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
     echo "./config.status generated by autoconf version 2.12.1"
     exit 0 ;;
@@ -43,7 +43,7 @@
 s%@LDFLAGS@%%g
 s%@LIBS@%%g
 s%@exec_prefix@%${prefix}%g
-s%@prefix@%/usr/local%g
+s%@prefix@%/data/javafs%g
 s%@program_transform_name@%s,x,x,%g
 s%@bindir@%${exec_prefix}/bin%g
 s%@sbindir@%${exec_prefix}/sbin%g
------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

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