summaryrefslogtreecommitdiff
path: root/x86_64_external_files.patch
blob: 9ed178ba45e59680503d6334941ff8656791292c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
diff --git a/external/local_config_cc/BUILD b/external/local_config_cc/BUILD
index e5d697e..1558f6d 100755
--- a/external/local_config_cc/BUILD
+++ b/external/local_config_cc/BUILD
@@ -47,15 +47,15 @@ filegroup(
 cc_toolchain_suite(
     name = "toolchain",
     toolchains = {
-        "aarch64|compiler": ":cc-compiler-aarch64",
-        "aarch64": ":cc-compiler-aarch64",
+        "k8|compiler": ":cc-compiler-k8",
+        "k8": ":cc-compiler-k8",
         "armeabi-v7a|compiler": ":cc-compiler-armeabi-v7a",
         "armeabi-v7a": ":cc-compiler-armeabi-v7a",
     },
 )
 
 cc_toolchain(
-    name = "cc-compiler-aarch64",
+    name = "cc-compiler-k8",
     toolchain_identifier = "local",
     toolchain_config = ":local",
     all_files = ":compiler_deps",
@@ -72,7 +72,7 @@ cc_toolchain(
 
 cc_toolchain_config(
     name = "local",
-    cpu = "aarch64",
+    cpu = "k8",
     compiler = "compiler",
     toolchain_identifier = "local",
     host_system_name = "local",
@@ -80,7 +80,7 @@ cc_toolchain_config(
     target_libc = "local",
     abi_version = "local",
     abi_libc_version = "local",
-    cxx_builtin_include_directories = ["/usr/lib/gcc/aarch64-linux-gnu/10.3.1/include",
+    cxx_builtin_include_directories = ["/usr/lib/gcc/x86_64-linux-gnu/10.3.1/include",
     "/usr/local/include",
     "/usr/include",
     "/root/rpmbuild/BUILD/ANNC-v0.0.2/annc/service/cpu/xla",
@@ -91,7 +91,7 @@ cc_toolchain_config(
     "/root/rpmbuild/BUILD/ANNC-v0.0.2/annc/service/cpu/xla/libs/XNNPACK/build/pthreadpool-source/include",
     "/root/rpmbuild/BUILD/ANNC-v0.0.2/output/e7b069029cc648c50e1b8083cef52b4f/external/local_config_cc",
     "/usr/include/c++/10.3.1",
-    "/usr/include/c++/10.3.1/aarch64-linux-gnu",
+    "/usr/include/c++/10.3.1/x86_64-linux-gnu",
     "/usr/include/c++/10.3.1/backward"],
     tool_paths = {"ar": "/usr/bin/ar",
         "ld": "/usr/bin/ld",
diff --git a/external/local_config_cc/builtin_include_directory_paths b/external/local_config_cc/builtin_include_directory_paths
index 9547846..57343c4 100755
--- a/external/local_config_cc/builtin_include_directory_paths
+++ b/external/local_config_cc/builtin_include_directory_paths
@@ -4,7 +4,7 @@ changes to it will be reflected in the action cache key. When some of these
 paths change, Bazel will make sure to rerun the action, even though none of
 declared action inputs or the action commandline changes.
 
-/usr/lib/gcc/aarch64-linux-gnu/10.3.1/include
+/usr/lib/gcc/x86_64-linux-gnu/10.3.1/include
 /usr/local/include
 /usr/include
 /root/rpmbuild/BUILD/ANNC-v0.0.2/annc/service/cpu/xla
@@ -15,5 +15,5 @@ declared action inputs or the action commandline changes.
 /root/rpmbuild/BUILD/ANNC-v0.0.2/annc/service/cpu/xla/libs/XNNPACK/build/pthreadpool-source/include
 /root/rpmbuild/BUILD/ANNC-v0.0.2/output/e7b069029cc648c50e1b8083cef52b4f/external/local_config_cc
 /usr/include/c++/10.3.1
-/usr/include/c++/10.3.1/aarch64-linux-gnu
+/usr/include/c++/10.3.1/x86_64-linux-gnu
 /usr/include/c++/10.3.1/backward
diff --git a/external/go_sdk/BUILD.bazel b/x86_64/external/go_sdk/BUILD.bazel
index 9cf6add..511ddbc 100644
--- a/external/go_sdk/BUILD.bazel
+++ b/x86_64/external/go_sdk/BUILD.bazel
@@ -7,8 +7,8 @@ package(default_visibility = ["//visibility:public"])
 filegroup(
     name = "libs",
     srcs = glob(
-        ["pkg/linux_arm64/**/*.a"],
-        exclude = ["pkg/linux_arm64/**/cmd/**"],
+        ["pkg/linux_amd64/**/*.a"],
+        exclude = ["pkg/linux_amd64/**/cmd/**"],
     ),
 )
 
@@ -34,7 +34,7 @@ go_sdk(
     name = "go_sdk",
     srcs = [":srcs"],
     go = "bin/go",
-    goarch = "arm64",
+    goarch = "amd64",
     goos = "linux",
     headers = [":headers"],
     libs = [":libs"],
@@ -60,7 +60,7 @@ package_list(
 
 declare_toolchains(
     builder = ":builder",
-    host = "linux_arm64",
+    host = "linux_amd64",
     sdk = ":go_sdk",
 )
 
diff --git a/external/go_sdk/src/internal/buildcfg/zbootstrap.go b/x86_64/external/go_sdk/src/internal/buildcfg/zbootstrap.go
index 81bd76b..560f94f 100644
--- a/external/go_sdk/src/internal/buildcfg/zbootstrap.go
+++ b/x86_64/external/go_sdk/src/internal/buildcfg/zbootstrap.go
@@ -12,7 +12,7 @@ const defaultGOMIPS64 = `hardfloat`
 const defaultGOPPC64 = `power8`
 const defaultGOEXPERIMENT = ``
 const defaultGO_EXTLINK_ENABLED = ``
-const defaultGO_LDSO = `/lib/ld-linux-aarch64.so.1`
+const defaultGO_LDSO = `/lib64/ld-linux-x86-64.so.2`
 const version = `go1.18.4`
 const defaultGOOS = runtime.GOOS
 const defaultGOARCH = runtime.GOARCH
diff --git a/external/local_config_cc_toolchains/BUILD b/x86_64/external/local_config_cc_toolchains/BUILD
index db5234f..f9c0875 100755
--- a/external/local_config_cc_toolchains/BUILD
+++ b/x86_64/external/local_config_cc_toolchains/BUILD
@@ -1,10 +1,10 @@
 load("@local_config_platform//:constraints.bzl", "HOST_CONSTRAINTS")
 
 toolchain(
-    name = "cc-toolchain-aarch64",
+    name = "cc-toolchain-k8",
     exec_compatible_with = HOST_CONSTRAINTS,
     target_compatible_with = HOST_CONSTRAINTS,
-    toolchain = "@local_config_cc//:cc-compiler-aarch64",
+    toolchain = "@local_config_cc//:cc-compiler-k8",
     toolchain_type = "@bazel_tools//tools/cpp:toolchain_type",
 )
 
diff --git a/external/local_config_platform/constraints.bzl b/x86_64/external/local_config_platform/constraints.bzl
index 4b29ad7..6a7d8c3 100644
--- a/external/local_config_platform/constraints.bzl
+++ b/x86_64/external/local_config_platform/constraints.bzl
@@ -1,6 +1,6 @@
 # DO NOT EDIT: automatically generated constraints list for local_config_platform
 # Auto-detected host platform constraints.
 HOST_CONSTRAINTS = [
-  '@platforms//cpu:aarch64',
+  '@platforms//cpu:x86_64',
   '@platforms//os:linux',
 ]
diff --git a/external/local_execution_config_platform/BUILD b/x86_64/external/local_execution_config_platform/BUILD
index b4d7fdf..7dfbc12 100755
--- a/external/local_execution_config_platform/BUILD
+++ b/x86_64/external/local_execution_config_platform/BUILD
@@ -18,7 +18,7 @@ platform(
     name = "platform",
     visibility = ["//visibility:public"],
     constraint_values = [
-        "@platforms//cpu:aarch64",
+        "@platforms//cpu:x86_64",
         "@platforms//os:linux",
         ":platform_constraint",
     ],