Re: Illegal instruction (core dumped) with go/restic on Soekris i386

2019-11-22 Thread lists+ports
On Fri, Nov 22, 2019 at 11:16:15PM +, Stuart Henderson wrote: > Oh, it looks like the lang/go port itself doesn't honour MAKE_ENV, but > I don't see any xorps in the restic binary - does that work for you? restic is now working. Thanks!

Re: Illegal instruction (core dumped) with go/restic on Soekris i386

2019-11-22 Thread Stuart Henderson
On 2019/11/22 21:34, lists+po...@ggp2.com wrote: > A little more info - it looks like the latest i386 package may have been > incorrectly built? I might start playing around trying to build from > ports on the soekris, but it may take a while :) > > https://github.com/golang/go/issues/35789 > >

Re: Illegal instruction (core dumped) with go/restic on Soekris i386

2019-11-22 Thread lists+ports
A little more info - it looks like the latest i386 package may have been incorrectly built? I might start playing around trying to build from ports on the soekris, but it may take a while :) https://github.com/golang/go/issues/35789 I don't really understand why I'm still seeing the "xorps" inst

Re: Illegal instruction (core dumped) with go/restic on Soekris i386

2019-11-21 Thread lists+ports
I saw that the repos had updated this morning so gave it a try - I'm seeing the exact same behavior I was before :( new dmesg header: OpenBSD 6.6-current (GENERIC) #391: Wed Nov 20 23:05:05 MST 2019 pkg_info for go: go-1.13.3p0 Go programming language On Wed, Nov 20, 2019 at 03:02:44PM

Re: Illegal instruction (core dumped) with go/restic on Soekris i386

2019-11-20 Thread Stuart Henderson
In theory the next set of i386 snapshot packages should be built without SSE for go ports, so they should work on these machines. Check for a set including "go-1.13.3p0.tgz" or newer - will probably be on the mirrors late tomorrow or thereabouts.

Re: Illegal instruction (core dumped) with go/restic on Soekris i386

2019-11-18 Thread Theo de Raadt
Sadly, it is hard to add incremental improvements to architectures, and then assume the old ones are gone... Stuart Henderson wrote: > On 2019/11/15 03:02, Ted Unangst wrote: > > Stuart Henderson wrote: > > > This runs OK on an i386 with more CPU features; most likely it wants > > > SSE or simil

Re: Illegal instruction (core dumped) with go/restic on Soekris i386

2019-11-18 Thread Stuart Henderson
On 2019/11/15 03:02, Ted Unangst wrote: > Stuart Henderson wrote: > > This runs OK on an i386 with more CPU features; most likely it wants > > SSE or similar which the Geode LX in your net5501 doesn't have. (Go has > > runtime cpuid checks for most of the SSE variants but I think not for > > the or

Re: Illegal instruction (core dumped) with go/restic on Soekris i386

2019-11-18 Thread lists+ports
I think I may have found the problem: https://github.com/golang/go/issues/20009#issuecomment-294437962 It looks like the ports machines building Go probably have SSE/SSE2, so the resulting binary expects those to be present. I'm not sure what can be done short of building Go on my Soekris… I can

Re: Illegal instruction (core dumped) with go/restic on Soekris i386

2019-11-15 Thread lists+ports
On Fri, Nov 15, 2019 at 01:16:55AM +, Stuart Henderson wrote: > I think if you run "disassemble" from gdb (or pkg_add gdb and run "egdb" > in case the old gdb in base doesn't understand the opcodes) you may find > which instruction it's complaining about. > > This runs OK on an i386 with more

Re: Illegal instruction (core dumped) with go/restic on Soekris i386

2019-11-15 Thread Ted Unangst
Stuart Henderson wrote: > This runs OK on an i386 with more CPU features; most likely it wants > SSE or similar which the Geode LX in your net5501 doesn't have. (Go has > runtime cpuid checks for most of the SSE variants but I think not for > the original SSE which it probably just assumes is avail

Re: Illegal instruction (core dumped) with go/restic on Soekris i386

2019-11-14 Thread Stuart Henderson
On 2019/11/14 20:08, lists+po...@ggp2.com wrote: > Hello all, > > Trying to run go or restic on a soekris net5501 results in: > > Illegal instruction (core dumped) > > Has anyone else seen issues similar to this? Go seems to work fine on > all my amd64 boxes, and this is unfortunately the only

Illegal instruction (core dumped) with go/restic on Soekris i386

2019-11-14 Thread lists+ports
Hello all, Trying to run go or restic on a soekris net5501 results in: Illegal instruction (core dumped) Has anyone else seen issues similar to this? Go seems to work fine on all my amd64 boxes, and this is unfortunately the only i386 I have around to test on. Here's some minimal debug output: