From owner-freebsd-arm@freebsd.org Fri Oct 12 20:51:45 2018 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DFF9110CA758 for ; Fri, 12 Oct 2018 20:51:44 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.89]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 863E775A13 for ; Fri, 12 Oct 2018 20:51:44 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smtp.greenhost.nl ([213.108.110.112]) by smarthost1.greenhost.nl with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1gB4PN-0004CR-KC for freebsd-arm@freebsd.org; Fri, 12 Oct 2018 22:51:43 +0200 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: freebsd-arm@freebsd.org Subject: Re: building 11.2 on arm References: Date: Fri, 12 Oct 2018 22:51:41 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Ronald Klop" Message-ID: In-Reply-To: User-Agent: Opera Mail/12.16 (FreeBSD) X-Authenticated-As-Hash: 398f5522cb258ce43cb679602f8cfe8b62a256d1 X-Virus-Scanned: by clamav at smarthost1.samage.net X-Spam-Level: / X-Spam-Score: -0.2 X-Spam-Status: No, score=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 autolearn=disabled version=3.4.0 X-Scan-Signature: 10fb2eeb1e6a32429c7ce102d6ec6cdf X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Oct 2018 20:51:45 -0000 With this patch the build keeps running. $ svnlite diff Index: gnu/usr.bin/binutils/libbfd/bfd.h =================================================================== --- gnu/usr.bin/binutils/libbfd/bfd.h (revision 339336) +++ gnu/usr.bin/binutils/libbfd/bfd.h (working copy) @@ -85,7 +85,7 @@ #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__) +#elif defined(__alpha__) || defined(__sparc64__) || defined(__amd64__) || defined(__arm64__) || defined(__aarch64__) #define BFD_HOST_64BIT_LONG 1 #define BFD_HOST_64_BIT long #define BFD_HOST_U_64_BIT unsigned long Does this make any sense? Ronald. On Fri, 12 Oct 2018 22:36:25 +0200, Ronald Klop wrote: > 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. > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"