NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

toolchain/43378: Can't cross-build toolchain on FreeBSD 6.2

>Number:         43378
>Category:       toolchain
>Synopsis:       Can't cross-build toolchain on FreeBSD 6.2
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 28 16:50:00 +0000 2010
>Originator:     Matteo Beccati
>Release:        5.1.0-RC2
FreeBSD 6.2-STABLE amd64

I was trying to cross build a 5.1.0-RC2 kernel on my freebsd server, but the 
toolchain build failed with the same error previously reported on the 
netbsd-users ML:

It looks like there's an issue with including sys/endian.h which contains the 
missing inline functions. In fact, I could succesfully build the toolchian 
after patching sha2.c as follows:

Index: common/lib/libc/hash/sha2/sha2.c
RCS file: /cvsroot/src/common/lib/libc/hash/sha2/sha2.c,v
retrieving revision
diff -u -r1.7.10.3 sha2.c
--- common/lib/libc/hash/sha2/sha2.c    30 Jan 2010 19:34:43 -0000
+++ common/lib/libc/hash/sha2/sha2.c    28 May 2010 16:39:57 -0000
@@ -63,7 +63,7 @@
 #include <sys/sha2.h>

+#  if 1 || HAVE_SYS_ENDIAN_H
 #    include <sys/endian.h>
 #  else
 #   undef htobe32

# On a FreeBSD machine
./ -m i386 tools

Home | Main Index | Thread Index | Old Index