This is the mail archive of the gcc@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]

Does anyone have 2.95.2 running on NetBSD for PowerPC?



The pain of the port is beginning to seem fairly endless.
I suppose that is why the port is not readily available?
In my efforts so far, I do not seem to be able to prevent
the config code from inserting "CLIB=-lld" into the make
files.  That breaks everything, so I strip it by hand.
(The `t-netbsd' explicitly sets it empty, so I don't know
where it is getting this assignment...)  Also, since BSD
has a rather unusual way of setting up the __va_list struct,
I wind up getting conflicts because sometimes this is
included before the va-ppc.h gets included and sometimes
after.  I finally did this in /usr/include/powerpc/ansi.h:

   #if  !defined( __GNUC_VA_LIST)
   typedef struct {
        char __gpr, __fpr, __pad[2];
        char *__stack, *__base;
   } __va_list;
   #define _BSD_VA_LIST_           __va_list       /* va_list */
   #define __GNUC_VA_LIST __va_list
   #define __gnuc_va_list __va_list

   #else
   #define _BSD_VA_LIST_ __gnuc_va_list
   #endif

Icky.  (The native gcc does not have fixed headers and won't
have until I get the blasted 2.95.2 installed.)

Now I have this:

/usr/src/tools/gcc/=build/gcc/xgcc -B/usr/src/tools/gcc/=build/gcc/ \
  -B/usr/local/powerpc-apple-netbsdelf1.4Z/bin/ -c -DHAVE_CONFIG_H -g -O2\
  -msoft-float -I. -I../../../../libiberty/../include  \
  ../../../../libiberty/concat.c
../../../../libiberty/concat.c: In function `concat':
../../../../libiberty/concat.c:96: incompatible type for \
  argument 1 of `__builtin_memcpy'
../../../../libiberty/concat.c:107: invalid type argument of `->'
../../../../.....

because the var args are mutilated.  What's next?
Are there any shortcuts to this plodding?  Thanks! - Bruce

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