Subject: misc/20072: -current build failure (sparc64 cross-compilation)
To: None <gnats-bugs@gnats.netbsd.org>
From: None <cdi@mawhrin.net>
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
>Closed-Date:
>Last-Modified:
>Originator:     cdi
>Release:        NetBSD 1.6
>Organization:
>Environment:
System: NetBSD merlin.camelot.net 1.6 NetBSD 1.6 (GENERIC.MP) #0: Sat Sep 28 19:53:51 CEST 2002 cdi@merlin.camelot.net:/misc/home/cdi/src/netbsd/smp/src/sys/arch/i386/compile/GENERIC.MP i386
Architecture: i386
Machine: i386
>Description:
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

>How-To-Repeat:
>Fix:
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 1.1.1.1
diff -r1.1.1.1 cleanerd.c
757c757,758
< 			       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));
>Release-Note:
>Audit-Trail:
>Unformatted: