Skip to content

Commit 2fe9244

Browse files
authored
Fix compile image (#171)
1 parent 0958ad8 commit 2fe9244

File tree

1 file changed

+2
-30
lines changed

1 file changed

+2
-30
lines changed

DistTasks.yml

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -170,35 +170,7 @@ tasks:
170170
PLATFORM_DIR: "{{.PROJECT_NAME}}_linux_arm_6"
171171
BUILD_COMMAND: "go build -o {{.DIST_DIR}}/{{.PLATFORM_DIR}}/{{.PROJECT_NAME}} {{.LDFLAGS}}"
172172
BUILD_PLATFORM: "linux/armv6"
173-
# We are experiencing the following error with ARMv6 build:
174-
#
175-
# # github.com/arduino/arduino-cli
176-
# net(.text): unexpected relocation type 296 (R_ARM_V4BX)
177-
# panic: runtime error: invalid memory address or nil pointer dereference
178-
# [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x51ae53]
179-
#
180-
# goroutine 1 [running]:
181-
# cmd/link/internal/loader.(*Loader).SymName(0xc000095c00, 0x0, 0xc0000958d8, 0x5a0ac)
182-
# /usr/local/go/src/cmd/link/internal/loader/loader.go:684 +0x53
183-
# cmd/link/internal/ld.dynrelocsym2(0xc000095880, 0x5a0ac)
184-
# /usr/local/go/src/cmd/link/internal/ld/data.go:777 +0x295
185-
# cmd/link/internal/ld.(*dodataState).dynreloc2(0xc007df9800, 0xc000095880)
186-
# /usr/local/go/src/cmd/link/internal/ld/data.go:794 +0x89
187-
# cmd/link/internal/ld.(*Link).dodata2(0xc000095880, 0xc007d00000, 0x60518, 0x60518)
188-
# /usr/local/go/src/cmd/link/internal/ld/data.go:1434 +0x4d4
189-
# cmd/link/internal/ld.Main(0x8729a0, 0x4, 0x8, 0x1, 0xd, 0xe, 0x0, 0x0, 0x6d7737, 0x12, ...)
190-
# /usr/local/go/src/cmd/link/internal/ld/main.go:302 +0x123a
191-
# main.main()
192-
# /usr/local/go/src/cmd/link/main.go:68 +0x1dc
193-
# Error: failed building for linux/armv6: exit status 2
194-
#
195-
# This seems to be a problem in the go builder 1.16.x that removed support for the R_ARM_V4BX instruction:
196-
# https://github.com/golang/go/pull/44998
197-
# https://groups.google.com/g/golang-codereviews/c/yzN80xxwu2E
198-
#
199-
# Until there is a fix released we must use a recent gcc for Linux_ARMv6 build, so for this
200-
# build we select the debian10 based container.
201-
CONTAINER_TAG: "{{.GO_VERSION}}-armel-debian11"
173+
CONTAINER_TAG: "{{.GO_VERSION}}-armel-debian12"
202174
PACKAGE_PLATFORM: "Linux_ARMv6"
203175
PACKAGE_NAME: "{{.PROJECT_NAME}}_{{.VERSION}}_{{.PACKAGE_PLATFORM}}.tar.gz"
204176

@@ -255,6 +227,6 @@ tasks:
255227
#
256228
# To compile it we need an SDK >=10.12 so we use the debian10 based container that
257229
# has the SDK 10.14 installed.
258-
CONTAINER_TAG: "{{.GO_VERSION}}-darwin-debian11"
230+
CONTAINER_TAG: "{{.GO_VERSION}}-darwin"
259231
PACKAGE_PLATFORM: "macOS_64bit"
260232
PACKAGE_NAME: "{{.PROJECT_NAME}}_{{.VERSION}}_{{.PACKAGE_PLATFORM}}.tar.gz"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy