The officially official Devuan Forum!

You are not logged in.

#1 2023-09-03 21:14:14

rbit
Member
Registered: 2018-06-12
Posts: 41  

[SOLVED] C-compiled code

There's probably another, better place to post this than devuan forums (but that's the O/S I'm using, so, there's that).

I've upgraded my main system to daedalus.  When I gcc a simple program here, and try to run it on chimaera (the same architecture, amd64), I get this error: ./a.out: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./a.out)

I can transfer the source to the chimaera machine and re-build it there and it runs fine on either.  Is there a simple workaround to avoid that step, some kind of build setting I can change on my daedalus machine to produce a binary executable that will run on chimaera?

Last edited by rbit (2023-09-03 21:15:11)

Offline

#2 2023-09-03 21:58:19

alexkemp
Member
Registered: 2018-05-14
Posts: 292  

Re: [SOLVED] C-compiled code

There are a number of what seems from my desktop to be useful answers to your specific use-case here (stackoverflow).

Offline

#3 2023-09-03 23:58:30

rbit
Member
Registered: 2018-06-12
Posts: 41  

Re: [SOLVED] C-compiled code

Thanks, adding -static option to gcc worked.  smile

Offline

Board footer