Illegal instruction when starting urbackupsrv

I successfully build urbackupsrv on machine and it runs like a charm.

When I install the same package on a different machine, urbackupsrv stops with an error ‘Illegal instruction’

Screenshot:
[root@odin urbackup]# /usr/bin/urbackupsrv run --config /etc/default/urbackupsrv
2017-10-22 12:41:46: Starting HTTP-Server on port 55414
2017-10-22 12:41:46: HTTP: Server started up successfully!
2017-10-22 12:41:46: SQLite: recovered 4 frames from WAL file /var/urbackup/backup_server.db-wal code: 283
2017-10-22 12:41:46: SQLite: recovered 8 frames from WAL file /var/urbackup/backup_server_link_journal.db-wal code: 283
2017-10-22 12:41:46: SQLite: recovered 4 frames from WAL file /var/urbackup/backup_server.db-wal code: 283
2017-10-22 12:41:46: SQLite: recovered 8 frames from WAL file /var/urbackup/backup_server_link_journal.db-wal code: 283
2017-10-22 12:41:46: Started UrBackup…
2017-10-22 12:41:46: Testing if backup destination can handle subvolumes and snapshots…
Backupfolder not set
2017-10-22 12:41:47: Backup destination cannot handle subvolumes and snapshots. Snapshots disabled.
2017-10-22 12:41:47: Testing if backup destination can handle filesystem transactions…
Backupfolder not set
2017-10-22 12:41:47: Image mounting disabled: Backupfolder not set
2017-10-22 12:41:47: WARNING: Backupfolder “C:\urbackup” does not exist. Not running recovery.
2017-10-22 12:41:47: Binding to interface enp0s13 for broadcasting…
2017-10-22 12:41:47: Broadcasting on interface IP 192.168.12.2
2017-10-22 12:41:47: UrBackup Server start up complete.
2017-10-22 12:41:47: Server started up successfully!
2017-10-22 12:41:47: Looking for old Sessions… 0 sessions
Illegal instruction

In /var/log/urbackup.log:
2017-10-22 12:41:46: Starting HTTP-Server on port 55414
2017-10-22 12:41:46: HTTP: Server started up successfully!
2017-10-22 12:41:46: SQLite: recovered 4 frames from WAL file /var/urbackup/backup_server.db-wal code: 283
2017-10-22 12:41:46: SQLite: recovered 8 frames from WAL file /var/urbackup/backup_server_link_journal.db-wal code: 283
2017-10-22 12:41:46: SQLite: recovered 4 frames from WAL file /var/urbackup/backup_server.db-wal code: 283
2017-10-22 12:41:46: SQLite: recovered 8 frames from WAL file /var/urbackup/backup_server_link_journal.db-wal code: 283
2017-10-22 12:41:46: Started UrBackup…
2017-10-22 12:41:46: Testing if backup destination can handle subvolumes and snapshots…
2017-10-22 12:41:47: Backup destination cannot handle subvolumes and snapshots. Snapshots disabled.
2017-10-22 12:41:47: Testing if backup destination can handle filesystem transactions…
2017-10-22 12:41:47: Image mounting disabled: Backupfolder not set
2017-10-22 12:41:47: WARNING: Backupfolder “C:\urbackup” does not exist. Not running recovery.
2017-10-22 12:41:47: Binding to interface enp0s13 for broadcasting…
2017-10-22 12:41:47: Broadcasting on interface IP 192.168.12.2
2017-10-22 12:41:47: UrBackup Server start up complete.
2017-10-22 12:41:47: Server started up successfully!
2017-10-22 12:41:47: Looking for old Sessions… 0 sessions

Build was done on : Linux zeus 4.12.12-1-ARCH #1 SMP PREEMPT Sun Sep 10 10:03:08 CEST 2017 i686 GNU/Linux
Error was on : Linux odin 4.13.7-1-ARCH #1 SMP PREEMPT Tue Oct 17 15:16:10 CEST 2017 i686 GNU/Linux

When I try to build it on th errormachine the file urbackupsrv was not created

As i remember on arch there s an issue with the arch compile options. You need to set the cpu the good flags for urbackup and maybe the crypto lib.

I ran the command to compile urbackupsrv seperatly and it compiled without problem.
I copied the line from the logfile of previous ‘makepkg -s’
g++ -pthread -DLINUX -DSTATIC_PLUGIN -DWITH_FUSEPLUGIN -DVARDIR=’"/var"’ -DBINDIR=’"/usr/bin"’ -DDATADIR=’"/usr/share"’ -march=native -O2 -pipe -fstack-protector-strong -ansi
-Wno-deprecated-declarations -L/usr/lib -Wl,-z,relro -Wl,-O1,–sort-common,–as-needed,-z,relro,-z,now -L/usr/lib -L/usr/lib -o urbackupsrv …

So you still got the pb ?
if so, Does it says anything in dmesg ?

As i remember the issue i had was with march native, and then the server binary was deployed to computers with not exactly the same cpu.

Problem is solved.

I recompiled it on the same machine. In first run the urbackupsrv was not created and than I compiled it with the command I found in the logfile.

The initial problem was probably because the CPU’s weren’t exactly the same. I checked version of linux but didn’t saw the difference in CPU.
I compiled on and made a uar-package:
Intel® Core™2 Duo CPU E6550 @ 2.33GHz
Linux zeus 4.13.9-1-ARCH #1 SMP PREEMPT Sun Oct 22 09:29:35 CEST 2017 i686 GNU/Linux
and used it on
Intel® Pentium® 4 CPU 2.00GHz
Linux odin 4.13.9-1-ARCH #1 SMP PREEMPT Fri Oct 27 18:47:41 CEST 2017 i686 GNU/Linux