Subject: misc/20072: -current build failure (sparc64 cross-compilation)
To: None <>
From: None <>
List: netbsd-bugs
Date: 01/27/2003 00:45:51
>Number:         20072
>Category:       misc
>Synopsis:       -current build failure (sparc64 cross-compilation)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 26 14:37:00 PST 2003
>Originator:     cdi
>Release:        NetBSD 1.6
System: NetBSD 1.6 NetBSD 1.6 (GENERIC.MP) #0: Sat Sep 28 19:53:51 CEST 2002 i386
Architecture: i386
Machine: i386
I get the following error when I try to cross-compile sparc64 distribution on my i386 box:

/misc/import/src/libexec/lfs_cleanerd/cleanerd.c: In function `add_segment':
/misc/import/src/libexec/lfs_cleanerd/cleanerd.c:757: warning: long long unsigned int format, long unsigned int arg (arg 8)
*** Error code 1

That's what I used to fix my build, not sure if it is correct, though.

Index: cleanerd.c
RCS file: /misc/cvsrep/netbsd/libexec/lfs_cleanerd/cleanerd.c,v
retrieving revision
diff -r1.1.1.1 cleanerd.c
< 			       seg_addr + btofsb(lfsp, (char *)(tba[i].bi_bp) - seg_buf));
> 			       (long long)seg_addr +
> 			       (long long)btofsb(lfsp, (char *)(tba[i].bi_bp) - seg_buf));