pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/cross/aarch64-none-elf-gcc



Module Name:    pkgsrc
Committed By:   mrg
Date:           Thu Nov  8 23:28:28 UTC 2018

Modified Files:
        pkgsrc/cross/aarch64-none-elf-gcc: distinfo
Added Files:
        pkgsrc/cross/aarch64-none-elf-gcc/patches:
            patch-gcc_config_aarch64_aarch64.h

Log Message:
make a version of the GCC 7 gcc/config/arm/arm.h change for arm64
so that this package builds on arm64 platforms.

this change probably can be copied into the main GCC 7 package too.

no pkg bump as this should only enable building where it was not
working already.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/cross/aarch64-none-elf-gcc/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/cross/aarch64-none-elf-gcc/patches/patch-gcc_config_aarch64_aarch64.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/cross/aarch64-none-elf-gcc/distinfo
diff -u pkgsrc/cross/aarch64-none-elf-gcc/distinfo:1.1 pkgsrc/cross/aarch64-none-elf-gcc/distinfo:1.2
--- pkgsrc/cross/aarch64-none-elf-gcc/distinfo:1.1      Fri Sep  1 20:56:43 2017
+++ pkgsrc/cross/aarch64-none-elf-gcc/distinfo  Thu Nov  8 23:28:28 2018
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.1 2017/09/01 20:56:43 jmcneill Exp $
+$NetBSD: distinfo,v 1.2 2018/11/08 23:28:28 mrg Exp $
 
 SHA1 (gcc-7.2.0.tar.gz) = dec3effe9f73bf2216a88804ac805a05f9b33ea8
 RMD160 (gcc-7.2.0.tar.gz) = fa4eb09ea8c3fc388c6918096f134e188cce4c2d
@@ -9,6 +9,7 @@ RMD160 (newlib-2.5.0.tar.gz) = fc2beafe3
 SHA512 (newlib-2.5.0.tar.gz) = 4c99e8dfcb4a7ad0769b9e173ff06628d82e4993ef87d3adf9d6b5578626b14de81b4b3c5f0673ddbb49dc9f3d3628f9f8d4432dcded91f5cd3d27b7d44343cd
 Size (newlib-2.5.0.tar.gz) = 17912392 bytes
 SHA1 (patch-contrib_download__prerequisites) = be9b02068b3d4d783e92bee66d480bb2bfe35a84
+SHA1 (patch-gcc_config_aarch64_aarch64.h) = bf1ab74227badf54afb6cc8d5536f3449ab6c251
 SHA1 (patch-gcc_system.h) = 72a75ff773b9b5f3d2f16f4ec7d29e032aba5f53
 SHA1 (patch-libcc1_configure) = 0368733ddf79b109fcc7146b0baeb37ab31e634a
 SHA1 (patch-libcc1_connection.cc) = 2acd56a6f62b29ed3f02eecb7bf103e4564a442c

Added files:

Index: pkgsrc/cross/aarch64-none-elf-gcc/patches/patch-gcc_config_aarch64_aarch64.h
diff -u /dev/null pkgsrc/cross/aarch64-none-elf-gcc/patches/patch-gcc_config_aarch64_aarch64.h:1.1
--- /dev/null   Thu Nov  8 23:28:28 2018
+++ pkgsrc/cross/aarch64-none-elf-gcc/patches/patch-gcc_config_aarch64_aarch64.h        Thu Nov  8 23:28:28 2018
@@ -0,0 +1,21 @@
+$NetBSD: patch-gcc_config_aarch64_aarch64.h,v 1.1 2018/11/08 23:28:28 mrg Exp $
+
+driver-aarch64.o is not included for NetBSD and it is responsible for
+the definition of host_detect_local_cpu.
+
+Without it, we get an undefined reference.
+
+Similar to GCC bugzilla #77800 for arm.
+
+--- gcc/config/aarch64/aarch64.h.orig  2017-01-19 15:51:49.000000000 -0800
++++ gcc/config/aarch64/aarch64.h       2018-11-08 14:31:59.315619048 -0800
+@@ -930,7 +930,8 @@
+ #define MCPU_TO_MARCH_SPEC_FUNCTIONS \
+   { "rewrite_mcpu", aarch64_rewrite_mcpu },
+ 
+-#if defined(__aarch64__)
++/* NetBSD does not export necessary info via /proc/cpuinfo. */
++#if defined(__aarch64__) && !defined(__NetBSD__)
+ extern const char *host_detect_local_cpu (int argc, const char **argv);
+ # define EXTRA_SPEC_FUNCTIONS                                         \
+   { "local_cpu_detect", host_detect_local_cpu },                      \



Home | Main Index | Thread Index | Old Index