169 похожих чатов

@Renat_Suleymanov Is that a pre-compiled binary or something you've compiled

yourself?
If it's a pre-compiled binary, but you have access to the source, just re-compile it and the linker will link the proper libc.so version.
If you don't have access to the source, then you'll have to try and suss out what the correct libc.so it needs and force install that on your system.

I had a similar issue when Ubuntu upgraded to a newer version of libc.so and the binaries I was compiling were no longer running on older systems.
But I had access to a VPS and just installed Ubuntu 22.04(or was it 20.04?) on that and compiled on it.
Even the GitHub runners, on ubuntu-latest were giving me that issue.
Some people, on their GitHub workflow, are now compiling under ubuntu-20.04 and ubuntu-22.04 to get over that issue.

Sorry I can't be of more help.

3 ответов

23 просмотра

THis is my compiled binary with my source code. It compiles from WIndows Lazarus to Linux binary (Lazarus installed with fpcupdeluxe). and then ran on the 18.04.5 Ubuntu. «If it's a pre-compiled binary, but you have access to the source, just re-compile it and the linker will link the proper libc.so version.» Can you describe more? The most interesting thing is that last year's compiled binary is working, and now the same source code gives this error when running my binary Thanks for the help

Gustavo 'Gus'-Carreno 🇵🇹 Автор вопроса
Renat Suleymanov
THis is my compiled binary with my source code. It...

Hummmm, you threw me a curve ball with cross-compile from Windows to Linux. But it's my fault since having switched to Linux after more than 10 years ago, I get blind to Windows!! fpcupdeluxe downloads a set of needed .so files in order to have the linker use them when cross-compiling onto Linux. To be honest I never had a look at said archive to identify the versions of those .so. Like anything in computing there's always a solution. Albeit this one needs a bit of investigation, knowing how to edit fpc.cfg and some clever made build modes. But this is just me trying to guess a solution. What I've seen done, not related to cross-compiling, is how in some GitHub CI/CD workflows, they use specific versions of Ubuntu, instead of ubuntu-latest to compile for Ubuntu 20.04 and Ubuntu 22.04 in separate actions. If you have enough resources in you computer to run VMs, the best way is to have 2 VMs(Ubuntu 20 and 22) and natively compile from there. The very dubious solution with downloading .so, messing with fpc.cfg, etc is more work than just setting up 2 VMs. Or one, since you're able to compile to Ubuntu 20, from my guessing... What's your opinion on this?

Gustavo 'Gus' Carreno 🇵🇹
Hummmm, you threw me a curve ball with cross-compi...

Thank you very much for such the informative message. I'll research it. I'll reply later. Thanks, bro

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
Чёт не понял, я ж правильной функцией воспользовался чтобы вывести отладочную информацию? но что-то она не ловится
notme
18
У меня есть функция где происходит это: write_bit(buffer, 1); write_bit(buffer, 0); write_bit(buffer, 1); write_bit(buffer, 1); write_bit(buffer, 1); w...
~
14
Добрый день! Скажите пожалуйста, а какие программы вы бы рекомендовали написать для того, чтобы научиться управлять памятью? Можно написать динамический массив, можно связный ...
Филипп
7
Недавно Google Project Zero нашёл багу в SQLite с помощью LLM, о чём достаточно было шумно в определённых интернетах, которые сопровождались рассказами, что скоро всех "ибешни...
Alex Sherbakov
5
Ребят в СИ можно реализовать ООП?
Николай
33
https://github.com/erlang/otp/blob/OTP-27.1/lib/kernel/src/logger_h_common.erl#L174 https://github.com/erlang/otp/blob/OTP-27.1/lib/kernel/src/logger_olp.erl#L76 15 лет назад...
Maksim Lapshin
20
Карта сайта