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
>Organization:
>Environment:
FreeBSD 6.2-STABLE amd64

>Description:
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:

http://mail-index.netbsd.org/netbsd-users/2010/03/02/msg005765.html

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 1.7.10.3
diff -u -r1.7.10.3 sha2.c
--- common/lib/libc/hash/sha2/sha2.c    30 Jan 2010 19:34:43 -0000      1.7.10.3
+++ common/lib/libc/hash/sha2/sha2.c    28 May 2010 16:39:57 -0000
@@ -63,7 +63,7 @@
 #include <sys/sha2.h>

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


>How-To-Repeat:
# On a FreeBSD machine
./build.sh -m i386 tools
>Fix:



Home | Main Index | Thread Index | Old Index