You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
macOS Big Sur 11.4
MacBook Pro (16-inch, 2019)
> go version
go version go1.15.2 darwin/amd64
liunx error
> uname -a
Linux xxx 4.18.0-147.43.1.el8_1.x86_64 #1 SMP Thu Feb 18 08:33:46 EST 2021 x86_64 x86_64 x86_64 GNU/Linux
> cat /etc/redhat-release
Red Hat Enterprise Linux release 8.1 (Ootpa)
> go version
go version go1.15.13 linux/amd64
> gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/8/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl --disable-libmpx --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread model: posix
gcc version 8.4.1 20200928 (Red Hat 8.4.1-1) (GCC)
go run or go build error:
# github.com/karalabe/usb
/tmp/go-build517113935/b245/_x003.o: In function `get_usb_string':
../../pkg/mod/github.com/karalabe/usb@v0.0.0-20210518091819-4ea20957c210/hidapi/libusb/hid.c:440: undefined reference to `libiconv_open'
../../pkg/mod/github.com/karalabe/usb@v0.0.0-20210518091819-4ea20957c210/hidapi/libusb/hid.c:452: undefined reference to `libiconv'
../../pkg/mod/github.com/karalabe/usb@v0.0.0-20210518091819-4ea20957c210/hidapi/libusb/hid.c:467: undefined reference to `libiconv_close'
collect2: error: ld returned 1 exit status
The text was updated successfully, but these errors were encountered:
mac ok
liunx error
go run
orgo build
error:The text was updated successfully, but these errors were encountered: