Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

help!There are some errors when i run a demo. #42657

Closed
jzyzxx opened this issue Nov 17, 2020 · 3 comments
Closed

help!There are some errors when i run a demo. #42657

jzyzxx opened this issue Nov 17, 2020 · 3 comments
Labels
FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.

Comments

@jzyzxx
Copy link

jzyzxx commented Nov 17, 2020

What version of Go are you using (go version)?

$ 1.9.7

Does this issue reproduce with the latest release?

yes

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
set GOARCH=amd64
set GOBIN=C:\Go\bin
set GOEXE=.exe
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=D:\gopath
set GORACE=
set GOROOT=C:\Go
set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64
set GCCGO=gccgo
set CC=gcc
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\Users\DELL\AppData\Local\Temp\go-build397049711=/tmp/go-build -gno-record-gcc-switches
set CXX=g++
set CGO_ENABLED=1
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config 

What did you do?

go install in a demo,there ara logs:

# fyne.io/fyne/vendor/golang.org/x/image/vector
..\..\vendor\golang.org\x\image\vector\acc_amd64.s:142: unrecognized instruction "PABSD"
..\..\vendor\golang.org\x\image\vector\acc_amd64.s:144: unrecognized instruction "PMINUD"
..\..\vendor\golang.org\x\image\vector\acc_amd64.s:215: unrecognized instruction "PABSD"
..\..\vendor\golang.org\x\image\vector\acc_amd64.s:217: unrecognized instruction "PMINUD"
..\..\vendor\golang.org\x\image\vector\acc_amd64.s:330: unrecognized instruction "PABSD"
..\..\vendor\golang.org\x\image\vector\acc_amd64.s:332: unrecognized instruction "PMINUD"
..\..\vendor\golang.org\x\image\vector\acc_amd64.s:366: unrecognized instruction "PABSD"
..\..\vendor\golang.org\x\image\vector\acc_amd64.s:368: unrecognized instruction "PMINUD"
..\..\vendor\golang.org\x\image\vector\acc_amd64.s:460: unrecognized instruction "PABSD"
..\..\vendor\golang.org\x\image\vector\acc_amd64.s:462: unrecognized instruction "PMINUD"
..\..\vendor\golang.org\x\image\vector\acc_amd64.s:494: unrecognized instruction "PABSD"
asm: too many errors
# fyne.io/fyne/driver/desktop
..\..\driver\desktop\shortcut.go:21:9: undefined: strings.Builder
# fyne.io/fyne/storage
..\..\storage\uri.go:29:10: undefined: strings.ReplaceAll
..\..\storage\uri.go:30:10: undefined: strings.ReplaceAll
# fyne.io/fyne/vendor/github.com/go-gl/gl/v3.2-core/gl
In file included from D:/MinGW/mingw64/x86_64-w64-mingw32/include/minwindef.h:163,
                 from D:/MinGW/mingw64/x86_64-w64-mingw32/include/windef.h:8,
                 from D:/MinGW/mingw64/x86_64-w64-mingw32/include/windows.h:69,
                 from ..\..\vendor\github.com\go-gl\gl\v3.2-core\gl\package.go:27:
D:/MinGW/mingw64/x86_64-w64-mingw32/include/winnt.h:1554:11: fatal error: x86intrin.h: No such file or directory
 # include <x86intrin.h>
           ^~~~~~~~~~~~~
compilation terminated.
# fyne.io/fyne/vendor/github.com/go-gl/glfw/v3.3/glfw
In file included from D:/MinGW/mingw64/x86_64-w64-mingw32/include/minwindef.h:163,
                 from D:/MinGW/mingw64/x86_64-w64-mingw32/include/windef.h:8,
                 from D:/MinGW/mingw64/x86_64-w64-mingw32/include/windows.h:69,
                 from ./glfw/src/win32_platform.h:68,
                 from ./glfw/src/internal.h:186,
                 from ./glfw/src/context.c:30,
                 from ..\..\vendor\github.com\go-gl\glfw\v3.3\glfw\c_glfw.go:4:
D:/MinGW/mingw64/x86_64-w64-mingw32/include/winnt.h:1554:11: fatal error: x86intrin.h: No such file or directory
 # include <x86intrin.h>
           ^~~~~~~~~~~~~
compilation terminated.
# fyne.io/fyne/layout
..\..\layout\gridlayout.go:63:13: undefined: math.Round

What did you expect to see?

install successfully

What did you see instead?

some errors above

@ALTree
Copy link
Member

ALTree commented Nov 17, 2020

Please update to a recent version (Go1.15 is the latest) and try again. Go1.9 is no longer supported.

@ALTree ALTree added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Nov 17, 2020
@mdlayher
Copy link
Member

I don't think this will ever work on Go 1.9.x. At least three of the compilation errors are due to APIs that were added in Go 1.10+, so I don't think there's anything to be done here. I'm going to close this out.

@jzyzxx
Copy link
Author

jzyzxx commented Nov 18, 2020

Please update to a recent version (Go1.15 is the latest) and try again. Go1.9 is no longer supported.

thank you,problem is solved.

@golang golang locked and limited conversation to collaborators Nov 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

4 participants