nonoo / kappanhang

Remotely open audio channels and a serial port to an Icom RS-BA1 server (for ex. Icom IC-705 transceiver).
Other
152 stars 28 forks source link

Undefined Errors on ChromeOS Linux #21

Closed bchabot closed 2 years ago

bchabot commented 2 years ago

What I am trying to do: Install kappenhang. What I expect: Install completes and I can run the program and connect to an IC-705. What happened: Errors.

Here is the transcript:

bchabot@penguin:~$ sudo apt-get install golang
{snip long useless info.}
Setting up golang (2:1.11~1) ...
Setting up g++ (4:8.3.0-1) ...
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode
Processing triggers for man-db (2.8.5-2) ...
bchabot@penguin:~$ sudo apt-get install libpulse-dev
{snip long useless info.}
bchabot@penguin:~$ go get github.com/nonoo/kappanhang
# go.uber.org/multierr
go/src/go.uber.org/multierr/error.go:249:6: undefined: errors.As
go/src/go.uber.org/multierr/error.go:262:6: undefined: errors.Is
bchabot@penguin:~$ go install github.com/nonoo/kappanhang
# go.uber.org/multierr
go/src/go.uber.org/multierr/error.go:249:6: undefined: errors.As
go/src/go.uber.org/multierr/error.go:262:6: undefined: errors.Is
bchabot@penguin:~$
bchabot@penguin:~$ cat /etc/debian_version 
10.11
bchabot@penguin:~$ 
bchabot@penguin:~$ free -g
              total        used        free      shared  buff/cache   available
Mem:             14           0          14           0           0          14
Swap:             0           0           0
bchabot@penguin:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/vdb         32G  6.6G   25G  21% /
none            492K     0  492K   0% /dev
devtmpfs        7.1G     0  7.1G   0% /dev/tty
/dev/vdb         32G  6.6G   25G  21% /dev/kvm
tmpfs           100K     0  100K   0% /dev/lxd
tmpfs           100K     0  100K   0% /dev/.lxd-mounts
run             7.2G   28K  7.2G   1% /dev/.host_ip
/dev/root       422M  290M  124M  71% /dev/.ssh/sshd_config
9p              7.8G  776K  7.8G   1% /mnt/chromeos
tmpfs           7.2G     0  7.2G   0% /mnt/external
/dev/vda         53M   53M     0 100% /opt/google/cros-containers
tmpfs           7.2G     0  7.2G   0% /dev/shm
tmpfs           7.2G  120K  7.2G   1% /run
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           7.2G     0  7.2G   0% /sys/fs/cgroup
tmpfs           1.5G   24K  1.5G   1% /run/user/1000
bchabot@penguin:~$ top -b -n 1
top - 00:46:54 up 22 min,  0 users,  load average: 0.19, 0.22, 0.15
Tasks:  29 total,   1 running,  28 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.0 us,  1.5 sy,  0.0 ni, 95.5 id,  0.0 wa,  0.0 hi,  0.0 si,  3.0 st
MiB Mem :  14541.2 total,  14507.3 free,      9.1 used,     24.8 buff/cache
MiB Swap:      0.0 total,      0.0 free,      0.0 used.  14532.1 avail Mem 

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
  210 bchabot   20   0  644520  35468  22144 S 200.0   0.2   0:35.55 ld-linux-x86-64
    1 root      20   0  104972  10316   7884 S   0.0   0.1   0:01.08 systemd
   34 root      20   0   52244  19204  18092 S   0.0   0.1   0:00.52 systemd-journal
   44 root      20   0   20652   5080   3804 S   0.0   0.0   0:00.09 systemd-udevd
   53 root      20   0  318176   9924   8600 S   0.0   0.1   0:00.11 ModemManager
   54 root      20   0   19520   7252   6352 S   0.0   0.0   0:00.18 systemd-logind
   55 message+  20   0    9536   4792   3800 S   0.0   0.0   0:00.63 dbus-daemon
   56 root      20   0   19764   5820   5204 S   0.0   0.0   0:00.01 wpa_supplicant
   65 root      20   0  239988   9396   8068 S   0.0   0.1   0:00.06 polkitd
   95 root      20   0    9484   5752   4476 S   0.0   0.0   0:00.02 dhclient
  143 root      20   0    5380   2064   1944 S   0.0   0.0   0:00.00 agetty
  145 root      20   0   15848   6620   5784 S   0.0   0.0   0:00.00 sshd
  146 bchabot   20   0   21432   9516   7828 S   0.0   0.1   0:00.13 systemd
  151 bchabot   20   0   23124   3108    940 S   0.0   0.0   0:00.00 (sd-pam)
  188 bchabot   20   0    6828   3444   2976 S   0.0   0.0   0:00.03 ld-linux-x86-64
  190 bchabot   20   0   36976  17268  13472 S   0.0   0.1   0:00.07 ld-linux-x86-64
  197 bchabot   20   0    6828   3608   3128 S   0.0   0.0   0:00.05 ld-linux-x86-64
  198 bchabot   20   0   36984  17328  13532 S   0.0   0.1   0:00.06 ld-linux-x86-64
  209 bchabot   20   0  644484  34964  21664 S   0.0   0.2   0:00.21 ld-linux-x86-64
  293 bchabot   20   0  753776  11900  10460 S   0.0   0.1   0:01.13 ld-linux-x86-64
  317 bchabot   20   0   14076   9244   8520 S   0.0   0.1   0:00.75 ld-linux-x86-64
  318 root      20   0   16936   8252   7136 S   0.0   0.1   0:00.03 sshd
  322 bchabot   20   0    8496   5344   3744 S   0.0   0.0   0:00.40 bash
  335 bchabot   20   0   16936   4936   3816 S   0.0   0.0   0:00.01 sshd
  336 bchabot   20   0   16936   3224   2100 S   0.0   0.0   0:00.00 sshd
 5270 root      20   0  361560  17544  14164 S   0.0   0.1   0:08.70 packagekitd
 6255 avahi     20   0    8284   3484   3156 S   0.0   0.0   0:00.04 avahi-daemon
 6256 avahi     20   0    8152    328      0 S   0.0   0.0   0:00.00 avahi-daemon
 7519 bchabot   20   0   11016   3480   3092 R   0.0   0.0   0:00.00 top
bchabot@penguin:~$ 

System info: Machine is a Google Pixelbook Model C0A, 16G RAM, 512G storage, Core i7-7Y75.

Google Chrome 96.0.4664.111 (Official Build) (64-bit)
Revision d9aa4162631f5327235a143589de62a47cc34394-refs/branch-heads/4664@{#1287}
Platform 14268.67.0 (Official Build) stable-channel eve
Firmware Version Google_Eve.9584.201.0

================================================

nonoo commented 2 years ago

Your Go (golang) version is too old. Use a more recent one.

mstyne commented 2 years ago

@bchabot Just in case you weren't able to find a solution, you can upgrade the Linux Container in ChromeOS to Debian 11:

https://chromeunboxed.com/debian-11-bullseye-is-headed-to-chrome-os/

I was able to do this and install more contemporary versions of golang and libpulse-dev.

kappanhang installs / runs without any trouble.

Good luck and 73 de K2MTS

MaggieLeber commented 2 years ago

@mstyne I'd love to run this on my Chromebook. It installs and runs OK, but I haven't yet figured out how to access the WiFi from Crostini. In fact, the IC-705 in access point mode isn't connecting (probably due to the lack of a dchpd?)

mstyne commented 2 years ago

@MaggieLeber Unfortunately, my success was not with Crostini, I was using the 'baked in' Linux support found in (some) more contemporary Chromebooks.

https://support.google.com/chromebook/answer/9145439?hl=en

MaggieLeber commented 2 years ago

Oh, that's what I meant by "Crostini"...I freshly installed Bullseye using exactly that procedure; your link to chromeunboxed prompted me. I waited so long for real Linux support to come to the ASUS Chromebook Flip C302.

I just haven't been able to get the native wifi to connect to my 705. Did you use a USB WiFi dongle?