aarch64-none-elf-gcc and related programs will not install
Mark Millard
marklmi at yahoo.com
Mon Jul 9 18:03:57 UTC 2018
On 2018-Jul-9, at 9:13 AM, John Baldwin <jhb at FreeBSD.org> wrote:
> On 7/7/18 5:56 PM, Mark Millard wrote:
>> Things seem to be in a confused state/status. Here is my limited understanding,
>> including what has me confused . . .
>>
>> https://svnweb.freebsd.org/ports/head/devel/aarch64-none-elf-gcc/Makefile?revision=472670&view=markup
>> shows that this is a slave port of powerpc64-gcc :
>>
>> 17 MASTERDIR= ${.CURDIR}/../powerpc64-gcc
>>
>> (This looks to be true from when aarch64-none-elf-gcc/Makefile
>> was first checked in as well.)
>>
>> As of -r465416 powerpc64-gcc recursively removes:
>>
>> ${STAGEDIR}${PREFIX}/lib/gcc/${GCC_TARGET}/${PORTVERSION}/include-fixed
>>
>> in post-install . (Other things are also removed.)
>>
>> ("include-fixed" tends to not track FreeBSD in a timely manor, for example.
>> I'll not get into all the issues that I'm aware of.)
>>
>> But https://svnweb.freebsd.org/ports/head/devel/aarch64-none-elf-gcc/pkg-plist?revision=467716&view=markup
>> shows:
>>
>> 23 lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include-fixed/limits.h
>> 24 lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include-fixed/netinet/ip_fil.h
>> 25 lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include-fixed/netinet/ip_lookup.h
>> 26 lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include-fixed/netinet/ip_nat.h
>> 27 lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include-fixed/netinet/ip_proxy.h
>> 28 lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include-fixed/netinet/ip_scan.h
>> 29 lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include-fixed/netinet/ip_state.h
>> 30 lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include-fixed/README
>> 31 lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include-fixed/stddef.h
>> 32 lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include-fixed/stdio.h
>> 33 lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include-fixed/stdlib.h
>> 34 lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include-fixed/sys/types.h
>> 35 lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include-fixed/syslimits.h
>> 36 lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include-fixed/unistd.h
>> 37 lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include-fixed/wchar.h
>>
>> and so has references to files that do not exist as far as I can tell
>> so far.
>>
>> Most/all other slave ports of powerpc64-gcc have had such
>> references removed as I understand.
>>
>> For example, -r437977 removed:
>>
>> lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include-fixed/README
>> lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include-fixed/limits.h
>> lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include-fixed/syslimits.h
>>
>> in devel/aarch64-gcc/pkg-plist .
>>
>> But -r466699 (that included aarch64-none-elf-gcc changes) says:
>>
>> Author: jhb
>> Date: Sat Apr 7 00:26:46 2018 UTC (3 months ago)
>> Changed paths: 3
>> Log Message:
>> Fix two more issues with r465416
>>
>> . . .
>> - Don't remove the include-fixed headers for the aarch64-none-elf-gcc
>> and arm-none-eabi-gcc packages.
>> . . .
>>
>> Reported by: kevans (2)
>> Reviewed by: bdrewery, kevans
>> Differential Revision:
>> https://reviews.freebsd.org/D14925
>
> This made the RM conditional if you look at the diff:
>
> .if empty(PKGNAMEPREFIX:M*-*-)
> @${RM} -r ${STAGEDIR}${PREFIX}/lib/gcc/${GCC_TARGET}/${PORTVERSION}/include-fixed
> .endif
>
> The conditional should only apply to xtoolchain gcc ports (e.g. amd64-gcc)
> not to aarch64-none-elf-gcc.
>
> I don't have the context from the start of this thread to know what is broken
> though.
Somehow I missed the conditional code. Sorry.
https://svnweb.freebsd.org/ports/branches/2018Q2/devel/ goes
back to -r466125 before the conditional was added.
It looks like https://svnweb.freebsd.org/ports/branches/2018Q3/devel/
was only established about 7 days ago as/at -r473710 .
So if the quarterly 2018Q2 was in use at the time, that would explain
the types messages.
===
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)
More information about the freebsd-ports
mailing list