tools icon indicating copy to clipboard operation
tools copied to clipboard

qemu: uncaught target signal 4 (Illegal instruction) - core dumped

Open Martinfx opened this issue 3 years ago • 1 comments

Hi. i build from source code version 22.7, machine FreeBSD 13.1 and i have problem with build go with make packages DEVICE=ARM64 I dont know how to fix..

==>   go-1.18,2 depends on file: /usr/local/sbin/pkg - found
===>   Returning to build of go-1.18,2
[20220721121925] ===> Fetching all distfiles required by go-1.18,2 for building
[20220721121925] ===> Extracting for go-1.18,2
[20220721121925] ===> Patching for go-1.18,2
[20220721121926] ===> Configuring for go-1.18,2
[20220721121926] ===> Staging for go-1.18,2
===>   go-1.18,2 depends on executable: go118 - not found
[20220721121927] ===> License BSD3CLAUSE accepted by the user
===>   go118-1.18.4_1 depends on file: /usr/local/sbin/pkg - found
[20220721121928] => go1.18.4.src.tar.gz doesn't seem to exist in /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/ports/distfiles/.
[20220721121928] => Attempting to fetch https://golang.org/dl/go1.18.4.src.tar.gz
go1.18.4.src.tar.gz                                     21 MB 2161 kBps    10s
[20220721121940] => go-freebsd-arm64-go1.17.9.tar.xz doesn't seem to exist in /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/ports/distfiles/.
[20220721121940] => Attempting to fetch https://github.com/dmgk/go-bootstrap/releases/download/go1.17.9/go-freebsd-arm64-go1.17.9.tar.xz
go-freebsd-arm64-go1.17.9.tar.xz                        36 MB 2093 kBps    18s
[20220721121959] ===> Fetching all distfiles required by go118-1.18.4_1 for building
[20220721121959] ===> Extracting for go118-1.18.4_1
[20220721122002] => SHA256 Checksum OK for go1.18.4.src.tar.gz.
[20220721122005] => SHA256 Checksum OK for go-freebsd-arm64-go1.17.9.tar.xz.
[20220721122015] ===> Patching for go118-1.18.4_1
[20220721122017] ===> Applying FreeBSD patches for go118-1.18.4_1 from /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/ports/lang/go118/files
[20220721122017] ===> Configuring for go118-1.18.4_1
[20220721122017] ===> Building for go118-1.18.4_1
cd /usr/obj/media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/ports/lang/go118/work/go/src ; /usr/bin/env  XDG_CACHE_HOME=/usr/obj/media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/ports/lang/go118/work  GOROOT_BOOTSTRAP=/usr/obj/media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/ports/lang/go118/work/go-freebsd-arm64-bootstrap  GOROOT=/usr/obj/media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/ports/lang/go118/work/go  GOROOT_FINAL=/usr/local/go118  GOBIN=  GOOS=freebsd  GOARCH=arm64  GO386=  GOARM=  GOAMD64=  CC=cc  /bin/sh make.bash -v
go: not found
qemu: uncaught target signal 4 (Illegal instruction) - core dumped
Illegal instruction
Building Go cmd/dist using /usr/obj/media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/ports/lang/go118/work/go-freebsd-arm64-bootstrap. ()
cmd/dist
qemu: uncaught target signal 4 (Illegal instruction) - core dumped
Illegal instruction
*** Error code 132
 
Stop.
make[1]: stopped in /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code/ports/lang/go118
*** Error code 1
 
Stop.
make: stopped in /media/ST3000DM007-1WY10G_ZTT0SM4Q_p1/code//ports/lang/go
[20220721122042] ===> Cleaning for pkg-1.17.5_1
[20220721122044] ===> Cleaning for go118-1.18.4_1
[20220721122045] ===> Cleaning for go-1.18,2
Updating database digests format: 100%
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages:

Martinfx avatar Jul 21 '22 15:07 Martinfx

Hi @Martinfx , I am cross compiling "make arm DEVICE="RPI"" at the moment and had a look at the output and caught the following error. It keeps on building and probably just skips this package, but maybe this helps to narrow down the cause of this error:

...
Installing gmake-4.3_2...
`-- Installing indexinfo-0.3.1...
`-- Extracting indexinfo-0.3.1: .... done
Extracting gmake-4.3_2: ......... done
===>   wireguard-go-0.0.20220316_3,1 depends on package: gmake>=4.3 - found
===>   Returning to build of wireguard-go-0.0.20220316_3,1
===>   wireguard-go-0.0.20220316_3,1 depends on file: /usr/local/bin/go118 - not found
[20220727100053] ===> License BSD3CLAUSE accepted by the user
===>   go118-1.18.4_1 depends on file: /usr/local/sbin/pkg - found
[20220727100053] ===> Fetching all distfiles required by go118-1.18.4_1 for building
[20220727100054] ===> Extracting for go118-1.18.4_1
[20220727100056] => SHA256 Checksum OK for go1.18.4.src.tar.gz.
[20220727100059] => SHA256 Checksum OK for go-freebsd-arm64-go1.17.9.tar.xz.
[20220727100108] ===> Patching for go118-1.18.4_1
[20220727100110] ===> Applying FreeBSD patches for go118-1.18.4_1 from /usr/ports/lang/go118/files
[20220727100110] ===> Configuring for go118-1.18.4_1
[20220727100111] ===> Building for go118-1.18.4_1
cd /usr/obj/usr/ports/lang/go118/work/go/src ; /usr/bin/env  XDG_CACHE_HOME=/usr/obj/usr/ports/lang/go118/work  GOROOT_BOOTSTRAP=/usr/o
bj/usr/ports/lang/go118/work/go-freebsd-arm64-bootstrap  GOROOT=/usr/obj/usr/ports/lang/go118/work/go  GOROOT_FINAL=/usr/local/go118  G
OBIN=  GOOS=freebsd  GOARCH=arm64  GO386=  GOARM=  GOAMD64=  CC=cc  /bin/sh make.bash -v
go: not found
qemu: uncaught target signal 4 (Illegal instruction) - core dumped
Illegal instruction
Building Go cmd/dist using /usr/obj/usr/ports/lang/go118/work/go-freebsd-arm64-bootstrap. ()
cmd/dist
qemu: uncaught target signal 4 (Illegal instruction) - core dumped
Illegal instruction
*** Error code 132

Stop.
make[1]: stopped in /usr/ports/lang/go118
*** Error code 1
...

JohannesNeu avatar Jul 27 '22 12:07 JohannesNeu

Timeout.

fichtner avatar Aug 04 '23 06:08 fichtner