Illegal instruction on i386 launchpad built binary

Asked by lemonsqueeze

Hi,

I created a package for Pachi in my trusty ppa. The build was successful on both i386 and amd64, however strangely enough if i try to run the built binary from the i386 package it crashes immediately with illegal instruction:

$ uname -a
Linux trusty 3.19.0-58-generic #64~14.04.1-Ubuntu SMP Fri Mar 18 19:05:42 UTC 2016 i686 i686 i686 GNU/Linux
$ sudo add-apt-repository 'ppa:lemonsqueeze/trusty'
$ sudo apt-get update
$ sudo apt-get install pachi-engine
$ pachi -h
Illegal instruction (core dumped)
$ gdb /usr/share/pachi-engine/bin/pachi
(gdb) r
Program received signal SIGILL, Illegal instruction.
(gdb) where
#0 0x0804e9d5 in ?? ()
#1 0x080b3872 in __libc_csu_init ()
#2 0xb7988a1a in __libc_start_main (main=0x804ed30 <main>, argc=1, argv=0xbffff054,
    init=0x80b3820 <__libc_csu_init>, fini=0x80b3890 <__libc_csu_fini>, rtld_fini=0xb7fed180 <_dl_fini>,
    stack_end=0xbffff04c) at libc-start.c:246
#3 0x0804f47c in _start ()

-> Any ideas what could cause this ??
Some libc incompatibility maybe ?
I'd expect something pretty weird, a home build works fine ... (amd64 fine too)

Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Solved by:
lemonsqueeze
Solved:
Last query:
Last reply:
Revision history for this message
lemonsqueeze (lemonsqueeze) said :
#1

Tried upgrading home machine to libc6:i386 (2.19-0ubuntu6.9), but same result.

Revision history for this message
lemonsqueeze (lemonsqueeze) said :
#2

Just to make sure, tried from ubuntu trusty i386 livecd, same result.

Revision history for this message
lemonsqueeze (lemonsqueeze) said :
#3

I was compiling with -march=native, my bad.