Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Oct 2018 09:32:16 +0200
From:      "Ronald Klop" <ronald-lists@klop.ws>
To:        freebsd-arm@freebsd.org
Cc:        "Andrew Turner" <andrew@freebsd.org>
Subject:   Re: cross building 11.2 on arm (gnu/usr.bin/binutils/libbfd/bfd.h)
Message-ID:  <op.zqta72iwkndu52@sjakie>
In-Reply-To: <op.zqshkfj2kndu52@sjakie>
References:  <op.zqsguz1ikndu52@sjakie> <op.zqshkfj2kndu52@sjakie>

next in thread | previous in thread | raw e-mail | index | archive | help
After a manual diff between this file on 11.2 and head I found:
https://svnweb.freebsd.org/base?view=revision&revision=336027

Which is the same fix.
Is there a chance to have this MFC'ed to 11?

Ronald.



On Fri, 12 Oct 2018 22:51:41 +0200, Ronald Klop <ronald-lists@klop.ws>  
wrote:

> 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 <ronald-lists@klop.ws>  
> 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"
> _______________________________________________
> 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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.zqta72iwkndu52>