seq-lang / seq

A high-performance, Pythonic language for bioinformatics
https://seq-lang.org
Apache License 2.0
697 stars 50 forks source link

Running seq on WSL2 #231

Closed RenzoTale88 closed 3 years ago

RenzoTale88 commented 3 years ago

Hi, I've installed seq using the command line specified on the website. However, when I run it I come across an Illegal instruction error:

~/.seq/bin/seqc --help
Illegal instruction

I've seen the issue #229 and I've checked the cpu info, which are as follow:

processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 30
model name      : Intel(R) Core(TM) i7 CPU         860  @ 2.80GHz
stepping        : 5
microcode       : 0xffffffff
cpu MHz         : 2793.000
cache size      : 8192 KB
physical id     : 0
siblings        : 8
core id         : 0
cpu cores       : 4
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 11
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology cpuid pni ssse3 cx16 sse4_1 sse4_2 popcnt hypervisor lahf_lm pti ssbd ibrs ibpb stibp flush_l1d arch_capabilities
bugs            : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit
bogomips        : 5586.00
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

The cpu is admittedly old, but it does support sse4.2. Is there any other reason why it should not work? Thank you in advance for your help, Andrea

arshajii commented 3 years ago

Hi @RenzoTale88 — would it be possible to run seqc in gdb to see what instruction causes the issue (e.g. as described here)? Then we can fix it on our end in the next release.

RenzoTale88 commented 3 years ago

@arshajii just tried it now. After running gdb, I get the following:

GNU gdb (Ubuntu 9.2-0ubuntu1~20.04) 9.2
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
program: No such file or directory.
[New LWP 268]
Core was generated by `./seqc'.
Program terminated with signal SIGILL, Illegal instruction.
#0  0x7f53dfb9b609 in ?? ()

However, when running the memory layout it just tells me that it cannot access the memory at the address:

core LWP 282 In:                                                                                                                                                                        L??   PC: 0x7f53dfb9b609
Cannot access memory at address 0x7f53dfb9b609
(gdb)

It also opens a split terminal showing the message [ No Assembly Available ]. Not sure can be of help.

Andrea

arshajii commented 3 years ago

FYI we think we know what's causing this, and should be fixed in the next release in a few days.

arshajii commented 3 years ago

This should be fixed in 0.10.3 (released yesterday). Feel free to reopen if the issue persists.