dhulihan / grump

A CLI audio player written in go.
79 stars 11 forks source link

go install error "OpenAL is deprecated" #1

Closed jasonzhouu closed 4 years ago

jasonzhouu commented 4 years ago

Hello, @dhulihan

Thank you for your awesome work.

I come across problem when trying to go get it.

OS: Mac OS X 10.15.5

go version go1.14.3 darwin/amd64

command: $ go get github.com/dhulihan/grump

output:

go: downloading github.com/dhulihan/grump v0.0.0-20200522233023-30f56ab8718c
go: github.com/dhulihan/grump upgrade => v0.0.0-20200522233023-30f56ab8718c
go: downloading github.com/sirupsen/logrus v1.5.0
go: downloading github.com/gdamore/tcell v1.3.0
go: downloading github.com/rivo/tview v0.0.0-20200404204604-ca37f83cb2e7
go: downloading github.com/dhowden/tag v0.0.0-20191122115059-7e5c04feccd8
go: downloading github.com/faiface/beep v1.0.2
go: downloading github.com/konsorten/go-windows-terminal-sequences v1.0.1
go: downloading github.com/lucasb-eyer/go-colorful v1.0.3
go: downloading github.com/gdamore/encoding v1.0.0
go: downloading golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4
go: downloading github.com/rivo/uniseg v0.1.0
go: downloading github.com/mattn/go-runewidth v0.0.8
go: downloading github.com/hajimehoshi/go-mp3 v0.1.1
go: downloading github.com/mewkiz/flac v1.0.5
go: downloading github.com/hajimehoshi/oto v0.3.1
go: downloading github.com/jfreymuth/oggvorbis v1.0.0
go: downloading github.com/gopherjs/gopherwasm v1.0.0
go: downloading golang.org/x/mobile v0.0.0-20180806140643-507816974b79
go: downloading github.com/jfreymuth/vorbis v1.0.0
go: downloading github.com/gopherjs/gopherjs v0.0.0-20180825215210-0210a2f0f73c
go: downloading golang.org/x/exp v0.0.0-20180710024300-14dda7b62fcd
go: downloading golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81
# github.com/hajimehoshi/oto
../go/pkg/mod/github.com/hajimehoshi/oto@v0.3.1/driver_openal.go:35:22: warning: 'alcOpenDevice' is deprecated: first deprecated in macOS 10.15 - OpenAL is de
precated in favor of AVAudioEngine [-Wdeprecated-declarations]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenAL.framework/Headers/alc.h:209:38: note: 'alcOpenDevice' has been explicitly
 marked deprecated here
../go/pkg/mod/github.com/hajimehoshi/oto@v0.3.1/driver_openal.go:39:11: warning: 'alcCloseDevice' is deprecated: first deprecated in macOS 10.15 - OpenAL is d
eprecated in favor of AVAudioEngine [-Wdeprecated-declarations]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenAL.framework/Headers/alc.h:211:38: note: 'alcCloseDevice' has been explicitl
y marked deprecated here
../go/pkg/mod/github.com/hajimehoshi/oto@v0.3.1/driver_openal.go:43:22: warning: 'alcCreateContext' is deprecated: first deprecated in macOS 10.15 - OpenAL is
 deprecated in favor of AVAudioEngine [-Wdeprecated-declarations]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenAL.framework/Headers/alc.h:191:38: note: 'alcCreateContext' has been explici
tly marked deprecated here
../go/pkg/mod/github.com/hajimehoshi/oto@v0.3.1/driver_openal.go:47:11: warning: 'alcGetError' is deprecated: first deprecated in macOS 10.15 - OpenAL is depr
ecated in favor of AVAudioEngine [-Wdeprecated-declarations]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenAL.framework/Headers/alc.h:218:38: note: 'alcGetError' has been explicitly m
arked deprecated here
../go/pkg/mod/github.com/hajimehoshi/oto@v0.3.1/driver_openal.go:51:4: warning: 'alcMakeContextCurrent' is deprecated: first deprecated in macOS 10.15 - OpenA
L is deprecated in favor of AVAudioEngine [-Wdeprecated-declarations]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenAL.framework/Headers/alc.h:193:38: note: 'alcMakeContextCurrent' has been ex
plicitly marked deprecated here
../go/pkg/mod/github.com/hajimehoshi/oto@v0.3.1/driver_openal.go:55:4: warning: 'alcDestroyContext' is deprecated: first deprecated in macOS 10.15 - OpenAL is
 deprecated in favor of AVAudioEngine [-Wdeprecated-declarations]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenAL.framework/Headers/alc.h:199:38: note: 'alcDestroyContext' has been explic
itly marked deprecated here
cgo-gcc-prolog:152:2: warning: 'alBufferData' is deprecated: first deprecated in macOS 10.15 - OpenAL is deprecated in favor of AVAudioEngine [-Wdeprecated-de
clarations]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenAL.framework/Headers/al.h:601:25: note: 'alBufferData' has been explicitly m
arked deprecated here
cgo-gcc-prolog:166:2: warning: 'alDeleteBuffers' is deprecated: first deprecated in macOS 10.15 - OpenAL is deprecated in favor of AVAudioEngine [-Wdeprecated
-declarations]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenAL.framework/Headers/al.h:595:25: note: 'alDeleteBuffers' has been explicitl
y marked deprecated here
cgo-gcc-prolog:180:2: warning: 'alDeleteSources' is deprecated: first deprecated in macOS 10.15 - OpenAL is deprecated in favor of AVAudioEngine [-Wdeprecated
-declarations]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenAL.framework/Headers/al.h:501:25: note: 'alDeleteSources' has been explicitl
y marked deprecated here
cgo-gcc-prolog:194:2: warning: 'alGenBuffers' is deprecated: first deprecated in macOS 10.15 - OpenAL is deprecated in favor of AVAudioEngine [-Wdeprecated-de
clarations]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenAL.framework/Headers/al.h:592:25: note: 'alGenBuffers' has been explicitly m
arked deprecated here
cgo-gcc-prolog:208:2: warning: 'alGenSources' is deprecated: first deprecated in macOS 10.15 - OpenAL is deprecated in favor of AVAudioEngine [-Wdeprecated-de
clarations]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenAL.framework/Headers/al.h:498:25: note: 'alGenSources' has been explicitly m
arked deprecated here
cgo-gcc-prolog:222:2: warning: 'alGetSourcei' is deprecated: first deprecated in macOS 10.15 - OpenAL is deprecated in favor of AVAudioEngine [-Wdeprecated-declarations]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenAL.framework/Headers/al.h:530:25: note: 'alGetSourcei' has been explicitly marked deprecated here
cgo-gcc-prolog:238:35: warning: 'alGetString' is deprecated: first deprecated in macOS 10.15 - OpenAL is deprecated in favor of AVAudioEngine [-Wdeprecated-declarations]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenAL.framework/Headers/al.h:382:34: note: 'alGetString' has been explicitly marked deprecated here
cgo-gcc-prolog:254:2: warning: 'alSourcePlay' is deprecated: first deprecated in macOS 10.15 - OpenAL is deprecated in favor of AVAudioEngine [-Wdeprecated-declarations]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenAL.framework/Headers/al.h:558:25: note: 'alSourcePlay' has been explicitly marked deprecated here
cgo-gcc-prolog:268:2: warning: 'alSourceQueueBuffers' is deprecated: first deprecated in macOS 10.15 - OpenAL is deprecated in favor of AVAudioEngine [-Wdeprecated-declarations]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenAL.framework/Headers/al.h:572:25: note: 'alSourceQueueBuffers' has been explicitly marked deprecated here
cgo-gcc-prolog:281:2: warning: 'alSourceRewind' is deprecated: first deprecated in macOS 10.15 - OpenAL is deprecated in favor of AVAudioEngine [-Wdeprecated-declarations]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenAL.framework/Headers/al.h:564:25: note: 'alSourceRewind' has been explicitly marked deprecated here
cgo-gcc-prolog:294:2: warning: 'alSourceStop' is deprecated: first deprecated in macOS 10.15 - OpenAL is deprecated in favor of AVAudioEngine [-Wdeprecated-declarations]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenAL.framework/Headers/al.h:561:25: note: 'alSourceStop' has been explicitly marked deprecated here
cgo-gcc-prolog:308:2: warning: 'alSourceUnqueueBuffers' is deprecated: first deprecated in macOS 10.15 - OpenAL is deprecated in favor of AVAudioEngine [-Wdeprecated-declarations]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenAL.framework/Headers/al.h:574:25: note: 'alSourceUnqueueBuffers' has been explicitly marked deprecated here
dhulihan commented 4 years ago

Hi @jasonzhouu , thanks for reporting this issue and for the level of detail you have provided. grump has just recently been released and is very much in alpha phase. I've mostly been testing it in OSX 10.14.6 (Mojave). The version of oto we're using here is pretty old as well (0.3.1), and should probably be updated. I'll try building in 10.15.5 when I get a sec. Thanks!

dhulihan commented 4 years ago

Hmm, I'm having trouble reproducing the error you're running into.

> sw_vers
ProductName:    Mac OS X
ProductVersion: 10.15.5
BuildVersion:   19F101

> go version
go version go1.14.3 darwin/amd64

# clean mod cache, just in case
> go clean -modcache

> go get -u -v github.com/dhulihan/grump
github.com/dhulihan/grump (download)
github.com/sirupsen/logrus (download)
get "golang.org/x/sys/unix": found meta tag get.metaImport{Prefix:"golang.org/x/sys", VCS:"git", RepoRoot:"https://go.googlesource.com/sys"} at //golang.org/x/sys/unix?go-get=1
get "golang.org/x/sys/unix": verifying non-authoritative meta tag
golang.org/x/sys (download)
get "golang.org/x/sys/internal/unsafeheader": found meta tag get.metaImport{Prefix:"golang.org/x/sys", VCS:"git", RepoRoot:"https://go.googlesource.com/sys"} at //golang.org/x/sys/internal/unsafeheader?go-get=1
get "golang.org/x/sys/internal/unsafeheader": verifying non-authoritative meta tag
github.com/dhowden/tag (download)
github.com/faiface/beep (download)
github.com/mewkiz/flac (download)
github.com/icza/bitio (download)
github.com/mewkiz/pkg (download)
github.com/pkg/errors (download)
github.com/hajimehoshi/go-mp3 (download)
github.com/hajimehoshi/oto (download)
github.com/jfreymuth/oggvorbis (download)
github.com/jfreymuth/vorbis (download)
github.com/gdamore/tcell (download)
github.com/gdamore/encoding (download)
get "golang.org/x/text/encoding": found meta tag get.metaImport{Prefix:"golang.org/x/text", VCS:"git", RepoRoot:"https://go.googlesource.com/text"} at //golang.org/x/text/encoding?go-get=1
get "golang.org/x/text/encoding": verifying non-authoritative meta tag
golang.org/x/text (download)
get "golang.org/x/text/encoding/internal/identifier": found meta tag get.metaImport{Prefix:"golang.org/x/text", VCS:"git", RepoRoot:"https://go.googlesource.com/text"} at //golang.org/x/text/encoding/internal/identifier?go-get=1
get "golang.org/x/text/encoding/internal/identifier": verifying non-authoritative meta tag
get "golang.org/x/text/transform": found meta tag get.metaImport{Prefix:"golang.org/x/text", VCS:"git", RepoRoot:"https://go.googlesource.com/text"} at //golang.org/x/text/transform?go-get=1
get "golang.org/x/text/transform": verifying non-authoritative meta tag
github.com/lucasb-eyer/go-colorful (download)
github.com/mattn/go-runewidth (download)
github.com/rivo/tview (download)
github.com/rivo/uniseg (download)
github.com/hajimehoshi/go-mp3/internal/consts
github.com/sirupsen/logrus
github.com/gdamore/tcell
github.com/hajimehoshi/go-mp3/internal/frameheader
github.com/hajimehoshi/go-mp3/internal/sideinfo
github.com/hajimehoshi/go-mp3/internal/maindata
github.com/hajimehoshi/go-mp3/internal/frame
github.com/hajimehoshi/go-mp3
github.com/dhulihan/grump/internal/config
github.com/dhulihan/grump/library
github.com/faiface/beep/mp3
github.com/dhulihan/grump/player
github.com/rivo/tview
github.com/dhulihan/grump/ui
github.com/dhulihan/grump

I noticed you're using cgo-gcc-prolog. I wonder if there's something different between our build environments (maybe GCCGO), would you mind providing the output of this command?

go env
jasonzhouu commented 4 years ago

@dhulihan Thank you for reply! This is by go env:

GO111MODULE="on"
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/johnny/Library/Caches/go-build"
GOENV="/Users/johnny/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/johnny/go"
GOPRIVATE=""
GOPROXY="https://goproxy.cn"
GOROOT="/usr/local/Cellar/go/1.14.3/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.14.3/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/johnny/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/tx/8xlnp3mn3fdd1rk5j_s64_0c0000gn/T/go-build492045089=/t
mp/go-build -gno-record-gcc-switches -fno-common"
jasonzhouu commented 4 years ago

go get successfully with -u flat today

go get -u -v github.com/dhulihan/grump

output:

 go get -u -v github.com/dhulihan/grump
go: github.com/dhulihan/grump upgrade => v0.0.0-20200522233023-30f56ab8718c
go: github.com/hajimehoshi/go-mp3 upgrade => v0.3.0
go: github.com/gdamore/tcell upgrade => v1.3.0
go: github.com/jfreymuth/oggvorbis upgrade => v1.0.1
go: golang.org/x/sys upgrade => v0.0.0-20200620081246-981b61492c35
go: github.com/mattn/go-runewidth upgrade => v0.0.9
go: github.com/dhowden/tag upgrade => v0.0.0-20200412032933-5d76b8eaae27
go: github.com/konsorten/go-windows-terminal-sequences upgrade => v1.0.3
go: golang.org/x/text upgrade => v0.3.3
go: github.com/mewkiz/flac upgrade => v1.0.6
go: golang.org/x/exp upgrade => v0.0.0-20200513190911-00229845015e
go: github.com/hajimehoshi/oto upgrade => v0.6.1
go: github.com/pkg/errors upgrade => v0.9.1
go: github.com/lucasb-eyer/go-colorful upgrade => v1.0.3
go: golang.org/x/image upgrade => v0.0.0-20200618115811-c13761719519
go: github.com/rivo/tview upgrade => v0.0.0-20200528200248-fe953220389f
go: golang.org/x/mobile upgrade => v0.0.0-20200329125638-4c31acba0007
go: github.com/sirupsen/logrus upgrade => v1.6.0
go: downloading github.com/rivo/tview v0.0.0-20200528200248-fe953220389f
go: downloading github.com/sirupsen/logrus v1.6.0
go: downloading github.com/dhowden/tag v0.0.0-20200412032933-5d76b8eaae27
go: downloading github.com/mewkiz/flac v1.0.6
go: downloading golang.org/x/sys v0.0.0-20200620081246-981b61492c35
go: downloading github.com/mattn/go-runewidth v0.0.9
go: downloading golang.org/x/text v0.3.3
go: downloading github.com/jfreymuth/oggvorbis v1.0.1
go: downloading golang.org/x/mobile v0.0.0-20200329125638-4c31acba0007
go: downloading github.com/konsorten/go-windows-terminal-sequences v1.0.3
go: downloading golang.org/x/exp v0.0.0-20200513190911-00229845015e
go: downloading github.com/icza/bitio v1.0.0
go: downloading github.com/mewkiz/pkg v0.0.0-20190919212034-518ade7978e2
go: downloading golang.org/x/image v0.0.0-20200618115811-c13761719519
go: github.com/mewkiz/pkg upgrade => v0.0.0-20200411195739-f6b5e26764c3
go: downloading github.com/mewkiz/pkg v0.0.0-20200411195739-f6b5e26764c3
golang.org/x/sys/internal/unsafeheader
github.com/hajimehoshi/go-mp3/internal/bits
github.com/hajimehoshi/go-mp3/internal/imdct
golang.org/x/text/encoding/internal/identifier
github.com/rivo/uniseg
github.com/icza/bitio
github.com/mewkiz/flac/internal/hashutil
golang.org/x/sys/unix
github.com/mewkiz/flac/internal/ioutilx
github.com/mewkiz/flac/internal/hashutil/crc16
github.com/faiface/beep
github.com/dhowden/tag
github.com/mewkiz/flac/internal/bits
github.com/mewkiz/flac/internal/hashutil/crc8
github.com/mewkiz/pkg/term
github.com/faiface/beep/effects
github.com/mewkiz/pkg/errutil
github.com/mewkiz/flac/meta
github.com/mewkiz/flac/internal/utf8
github.com/mewkiz/flac/frame
github.com/pkg/errors
github.com/mewkiz/flac
github.com/hajimehoshi/go-mp3/internal/consts
github.com/hajimehoshi/go-mp3/internal/frameheader
github.com/hajimehoshi/go-mp3/internal/huffman
github.com/hajimehoshi/go-mp3/internal/sideinfo
github.com/hajimehoshi/go-mp3/internal/maindata
github.com/faiface/beep/flac
github.com/hajimehoshi/go-mp3/internal/frame
github.com/hajimehoshi/oto/internal/mux
github.com/hajimehoshi/oto
github.com/hajimehoshi/go-mp3
github.com/faiface/beep/mp3
github.com/jfreymuth/vorbis
github.com/faiface/beep/wav
golang.org/x/text/transform
github.com/sirupsen/logrus
github.com/jfreymuth/oggvorbis
golang.org/x/text/encoding
github.com/faiface/beep/vorbis
github.com/gdamore/encoding
github.com/gdamore/tcell/terminfo
github.com/lucasb-eyer/go-colorful
github.com/mattn/go-runewidth
github.com/gdamore/tcell/terminfo/a/ansi
github.com/gdamore/tcell/terminfo/v/vt100
github.com/gdamore/tcell/terminfo/v/vt102
github.com/gdamore/tcell/terminfo/v/vt220
github.com/dhulihan/grump/internal/config
github.com/dhulihan/grump/library
github.com/gdamore/tcell/terminfo/x/xterm
github.com/gdamore/tcell/terminfo/dynamic
github.com/gdamore/tcell/terminfo/a/adm3a
github.com/gdamore/tcell/terminfo/a/aixterm
github.com/gdamore/tcell/terminfo/base
github.com/gdamore/tcell/terminfo/a/alacritty
github.com/gdamore/tcell/terminfo/a/aterm
github.com/gdamore/tcell/terminfo/b/beterm
github.com/gdamore/tcell/terminfo/b/bsdos_pc
github.com/gdamore/tcell/terminfo/c/cygwin
github.com/gdamore/tcell/terminfo/d/d200
github.com/gdamore/tcell/terminfo/d/d210
github.com/gdamore/tcell/terminfo/d/dtterm
github.com/gdamore/tcell/terminfo/e/emacs
github.com/gdamore/tcell/terminfo/e/eterm
github.com/gdamore/tcell/terminfo/g/gnome
github.com/gdamore/tcell/terminfo/h/hpterm
github.com/gdamore/tcell/terminfo/h/hz1500
github.com/gdamore/tcell/terminfo/k/konsole
github.com/gdamore/tcell/terminfo/k/kterm
github.com/gdamore/tcell/terminfo/l/linux
github.com/gdamore/tcell/terminfo/p/pcansi
github.com/gdamore/tcell/terminfo/r/rxvt
github.com/gdamore/tcell/terminfo/s/screen
github.com/gdamore/tcell/terminfo/s/simpleterm
github.com/gdamore/tcell/terminfo/s/sun
github.com/gdamore/tcell/terminfo/t/termite
github.com/gdamore/tcell/terminfo/t/tvi910
github.com/gdamore/tcell/terminfo/t/tvi912
github.com/gdamore/tcell/terminfo/t/tvi921
github.com/gdamore/tcell/terminfo/t/tvi925
github.com/gdamore/tcell/terminfo/t/tvi950
github.com/gdamore/tcell/terminfo/t/tvi970
github.com/gdamore/tcell/terminfo/v/vt320
github.com/gdamore/tcell/terminfo/v/vt400
github.com/gdamore/tcell/terminfo/v/vt420
github.com/gdamore/tcell/terminfo/v/vt52
github.com/gdamore/tcell/terminfo/w/wy50
github.com/gdamore/tcell/terminfo/w/wy60
github.com/gdamore/tcell/terminfo/w/wy99_ansi
github.com/gdamore/tcell/terminfo/x/xfce
github.com/gdamore/tcell/terminfo/x/xnuppc
github.com/gdamore/tcell/terminfo/x/xterm_kitty
github.com/gdamore/tcell/terminfo/extended
github.com/gdamore/tcell
github.com/rivo/tview
github.com/faiface/beep/speaker
github.com/dhulihan/grump/player
github.com/dhulihan/grump/ui
github.com/dhulihan/grump
dhulihan commented 4 years ago

Ok, I'm glad you were able to run go get successfully. Let me know if you run into any other problems!