building 11.2 on arm
Ronald Klop
ronald-lists at klop.ws
Fri Oct 12 20:36:36 UTC 2018
Hi,
I'm cross-compiling for 11.2-RELEASE/arm (for the sheevaplug) on my rpi3b+
12-ALHPA5/arm64.
And I get this error. It is building make -j1.
===> gnu/usr.bin/binutils/libbfd (all)
cc -O2 -pipe -DBFD_DEFAULT_TARGET_SIZE=32 -I.
-I/data/src/11.2/gnu/usr.bin/binutils/libbfd
-I/data/src/11.2/gnu/usr.bin/binutils/libbfd/../libbfd
-I/data/src/obj-11.2/arm.arm/data/src/11.2/tmp/data/src/11.2/gnu/usr.bi
n/binutils/libbfd/../libbfd
-I/data/src/11.2/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/include
-D_GNU_SOURCE
-I/data/src/11.2/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd
-DSELECT_ARCHITE
CTURES=" &bfd_arm_arch" -DHAVE_bfd_elf32_littlearm_vec
-DHAVE_bfd_elf32_bigarm_vec -DSELECT_VECS=" &bfd_elf32_littlearm_vec
,&bfd_elf32_bigarm_vec" -DDEFAULT_VECTOR=bfd_elf32_littlearm_vec
-DDEBUGDIR="NULL" -MD -MF.d
epend.elf32.o -MTelf32.o -std=gnu99 -Qunused-arguments
-I/data/src/obj-11.2/arm.arm/data/src/11.2/tmp/legacy/usr/include -c
/data/src/11.2/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/elf32.c
-o elf32
.o
In file included from
/data/src/11.2/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/elf32.c:22:
In file included from
/data/src/11.2/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/elfcode.h:69:
/data/src/11.2/gnu/usr.bin/binutils/libbfd/bfd.h:93:2: error: Unsupported
architecture/platform.
#error Unsupported architecture/platform.
^
/data/src/11.2/gnu/usr.bin/binutils/libbfd/bfd.h:97:9: error: unknown type
name 'BFD_HOST_64_BIT'
typedef BFD_HOST_64_BIT bfd_int64_t;
^
/data/src/11.2/gnu/usr.bin/binutils/libbfd/bfd.h:98:9: error: unknown type
name 'BFD_HOST_U_64_BIT'
typedef BFD_HOST_U_64_BIT bfd_uint64_t;
^
/data/src/11.2/gnu/usr.bin/binutils/libbfd/bfd.h:133:3: error: No 64 bit
integer type available
#error No 64 bit integer type available
^
I compile with these variables set:
export TARGET_ARCH=arm
export KERNCONF=SHEEVAPLUG
export WITH_NAND=yes
export WITH_ARM_EABI=yes
export NO_CLEAN=yes
It is about this piece of code:
#if defined(__i386__) || defined(__powerpc__) || defined(__arm__) ||
defined(__mips__)
#define BFD_HOST_64BIT_LONG 0
#define BFD_HOST_64_BIT long long
#define BFD_HOST_U_64_BIT unsigned long long
#elif defined(__alpha__) || defined(__sparc64__) || defined(__amd64__)
#define BFD_HOST_64BIT_LONG 1
#define BFD_HOST_64_BIT long
#define BFD_HOST_U_64_BIT unsigned long
#else
#error Unsupported architecture/platform.
#endif /* 64-bit host */
Any easy fix for this?
Regards,
Ronald.
More information about the freebsd-arm
mailing list