Page 1 of 1

Ubuntu 19.04 created executable doesnt work on Ubuntu 16.04

Posted: Tue Jun 11, 2019 9:54 pm
by arma
Hello everybody,

If i compile any code on Ubuntu 19.04, my executable doesnt run on old Ubuntu 16.04.
I had the same problem few years ago, and the solution was to add "ImportC "-no-pie" : EndImport" at the beginning of my code...
But the same thing doesnt work this time now.
I think there is new way to do.

Can you help me please?

Thanks A LOT!

Re: Ubuntu 19.04 created executable doesnt work on Ubuntu 16

Posted: Thu Jun 13, 2019 2:00 pm
by arma
I mean, If i create exacutable on Ubuntu 19.04, Exe file doesnt run on Ubuntu 16.04.
I think i need some code or i need to set some linker options..
:(

Re: Ubuntu 19.04 created executable doesnt work on Ubuntu 16

Posted: Fri Jun 14, 2019 6:47 pm
by mk-soft
Start program unter terminal and show output...

button1 is a testprogram
./button1: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by ./button1)
...
Install VM and compile program unter Ubuntu v16.04

Re: Ubuntu 19.04 created executable doesnt work on Ubuntu 16

Posted: Fri Jun 14, 2019 10:28 pm
by Bitblazer
Use LDD and strace to locate the exact problem, then solve it. Did you see and ignore any binding / linker warnings? Without more infos, it could be due to many reasons.

If i try to release a portable binary for linux (which is a big Don't do it in the linux world for good reasons), i compile it on the smallest possible version and take it to higher versions, not vice versa.