wasp: Illegal instruction error when starting wasp

Just followed the install guide:

git clone https://github.com/iotaledger/wasp
cd wasp
make install
./wasp
./wasp-cli

Installed the dependencies - rocksdb and goshimmer.

sudo pacman -S rocksdb go
Packages (1) rocksdb-6.23.3-1
go version go1.17.1 linux/amd64

Compiled and running on same laptop. CPU:

    CPU family:          6
    Model:               42
    Thread(s) per core:  2
    Core(s) per socket:  2
    Socket(s):           1
    Stepping:            7
    CPU max MHz:         3200.0000
    CPU min MHz:         800.0000
    BogoMIPS:            4988.20
    Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ht tm pbe syscall nx rdtscp lm con
                         stant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse
                         3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx lahf_lm epb pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexp
                         riority ept vpid xsaveopt dtherm ida arat pln pts md_clear flush_l1d

Attaching GDB trace:

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Program received signal SIGILL, Illegal instruction.

0x00000000021019ef in rocksdb::LRUCache::LRUCache(unsigned long, int, bool, double, std::shared_ptr<rocksdb::MemoryAllocator>, bool, rocksdb::CacheMetadataChargePolicy) ()
(gdb) 

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15

Most upvoted comments

@jorgemmsilva Works great ! 🎉 🚀 I can confirm that wasp; wasp-cli and wasp-cluster are able to start now

./wasp

     __          __
     \ \        / /
      \ \  /\  / /_ _ ___ _ __
       \ \/  \/ / _| / __| |_ \
        \  /\  / (_| \__ \ |_) |
         \/  \/ \__,_|___/ |__/
                         | |
                         |_|
                0.2.0

2021-10-23T19:57:33+03:00	INFO	Node	banner/plugin.go:32	Loading plugins ...
2021-10-23T19:57:33+03:00	INFO	Node	node/node.go:95	Loading Plugin: Banner ... done
2021-10-23T19:57:33+03:00	INFO	Node	node/node.go:95	Loading Plugin: Config ... done
2021-10-23T19:57:33+03:00	INFO	Node	node/node.go:95	Loading Plugin: Logger ... done
2021-10-23T19:57:33+03:00	INFO	Node	node/node.go:95	Loading Plugin: Graceful Shutdown ... done
2021-10-23T19:57:33+03:00	INFO	Node	node/node.go:95	Loading Plugin: Downloader ... done
2021-10-23T19:57:33+03:00	INFO	Node	node/node.go:95	Loading Plugin: CLI ... done
2021-10-23T19:57:33+03:00	INFO	dbmanager	dbmanager/dbmanager.go:56	creating new registry database. Persistent: true
2021-10-23T19:57:33+03:00	INFO	Node	node/node.go:95	Loading Plugin: Database ... done
2021-10-23T19:57:33+03:00	INFO	Node	node/node.go:95	Loading Plugin: Registry ... done
2021-10-23T19:57:33+03:00	INFO	Registry.registry	registry/registry_impl.go:317	Node identity key pair generated.
2021/10/23 19:57:33 failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). See https://github.com/lucas-clemente/quic-go/wiki/UDP-Receive-Buffer-Size for details.
2021-10-23T19:57:33+03:00	INFO	Peering	peering/plugin.go:52	------------- NetID is 127.0.0.1:4000 ------------------

yeah, this one helps 🎉

go build . && wasp --database.inMemory=true

Previous one was failing, because when we use make command we are passing the build arg rocksdb which is build with unsupported instructions. The docker container is not starting, will try to debug it. I had the same issues with bee/gohornet with the first versions, probably because of rocksdb again. If there is anyway to reuse the solution will be great 😃 Found this on a quick search if this helps 😃 https://github.com/gohornet/hornet/pull/1050/commits/8c2b450b3bea5083afd2e0d60ec60d3535b8da7e https://github.com/gohornet/hornet/pull/1080/commits/826a6ed4b69312d48f01e9b68b227dd4b34bda39