Hi there,
I ran into issue with using platformio
when attempting to build target for LPC1768.
I enter the nix shell and execute. However I get an error.
$ nix-shell -p platformio
[nix-shell:~/Marlin]$ pio run
Processing LPC1768 (platform: https://github.com/p3p/pio-nxplpc-arduino-lpc176x/archive/0.1.3.zip; board: nxp_lpc1768; framework: arduino)
---------------------------------------------------------------------------------------------------------------------
PackageManager: Installing toolchain-gccarmnoneeabi @ >=1.90000
Error: Detected unknown package 'toolchain-gccarmnoneeabi
Any idea what causes the error? I looked at strace and the error happens inside child process. If necessary I can attach the full strace.
[pid 8665] getsockopt(4, SOL_SOCKET, SO_ERROR, [0], [4]) = 0
10 [pid 8665] getsockname(4, {sa_family=AF_INET, sin_port=htons(45910), sin_addr=inet_addr("10.0.0.35")}, [16]) =
0
9 [pid 8665] getpeername(4, {sa_family=AF_INET, sin_port=htons(80), sin_addr=inet_addr("88.198.170.159")}, [16])
= 0
8 [pid 8665] close(4) = 0
7 [pid 8665] flock(3, LOCK_UN) = 0
6 [pid 8665] close(3) = 0
5 [pid 8665] stat("/home/cylon2p0/.platformio/packages.lock", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
4 [pid 8665] unlink("/home/cylon2p0/.platformio/packages.lock") = 0
3 [pid 8665] stat("/home/cylon2p0/.platformio/packages.lock", 0x7ffce8dfe9d0) = -1 ENOENT (No such file or direc
tory)
2 [pid 8665] chdir("/home/cylon2p0/Marlin") = 0
1 [pid 8665] ioctl(2, TCGETS, 0x7ffce8dfffd0) = -1 ENOTTY (Inappropriate ioctl for device)
16386 [pid 8665] write(2, "Error: Detected unknown package 'toolchain-gccarmnoneeabi'\n", 59Error: Detected unknown
package 'toolchain-gccarmnoneeabi'
1 ) = 59
2 [pid 8665] getcwd("/home/cylon2p0/Marlin", 1024) = 22
3 [pid 8665] stat("/home/cylon2p0/Marlin/platformio.ini", {st_mode=S_IFREG|0644, st_size=9417, ...}) = 0
4 [pid 8665] stat("/home/cylon2p0/Marlin/platformio.ini", {st_mode=S_IFREG|0644, st_size=9417, ...}) = 0
5 [pid 8665] stat("/home/cylon2p0/.platformio", {st_mode=S_IFDIR|0755, st_size=78, ...}) = 0
6 [pid 8665] getcwd("/home/cylon2p0/Marlin", 1024) = 22
I ran successfully PlatformIO on archlinux so this is probably something specific to NixOS.
I run stable 20.09.