Re: Libc6 Usage Question

2023-04-26 Thread Sam Morris

On 25/04/2023 23:29, Alexis E wrote:
     I am working on a project which requires libc6. When I build this 
project on my laptop, the project works fine as it builds for the libc6 
on my laptop, however, when I build it in Github actions, the project 
fails to run, due to Debian not having a libc6 version as low as GLibC 
2.32.


Try changing your job to run on an older runner image: 
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#choosing-github-hosted-runners


For instance, ubuntu-18.04 will build against glibc 2.27.

--
Sam Morris 
PGP: rsa4096/CAAA AA1A CA69 A83A 892B  1855 D20B 4202 5CDA 27B9



Re: Libc6 Usage Question

2023-04-26 Thread Andrey Rakhmatullin
On Tue, Apr 25, 2023 at 10:24:35PM -0400, Alexis E wrote:
> I discovered there are more lists than just this one, so I'll be forwarding
> the email to the appropriate list (which I believe to be
> debian-gl...@lists.debian.org). 
Definitely not that one.



Re: Libc6 Usage Question

2023-04-26 Thread Steve Langasek
Hi Alexis,

Note that the debian-project mailing list is for internal discussions of the
debian-project; debian-user is probably a better mailing list for questions
such as this.

On Tue, Apr 25, 2023 at 06:29:11PM -0400, Alexis E wrote:
> Dear Debian Mailing List,
> I am working on a project which requires libc6. When I build this
> project on my laptop, the project works fine as it builds for the libc6 on
> my laptop, however, when I build it in Github actions, the project fails to
> run, due to Debian not having a libc6 version as low as GLibC 2.32. I've
> tried to compile my project to musl, statically, and even just embedding
> the correct version of libc6 in the lib folder that I set my rpath to. I've
> either had segfaults or failed builds. I would like to ask how I can either
> support an older version of libc6 or upgrade any customers' systems to the
> correct version. I'd also happily accept not requiring libc6 at all.

The basic fact is that Linux binaries built in one environment are not
guaranteed to be portable to run on other Linux distributions (or other
versions of the same distribution).

If github actions give you the option of building in a Debian stable
environment, that would address your needs.

But I wouldn't generally regard github as a production build environment.

The other option is that you can wait for the next Debian stable release,
which will bring glibc 2.36...

> How may I achieve this?
> 
> Thank You,
> Alexis
> 
> ```bash
> ./project: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found
> (required by ./project)
> ./project: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found
> (required by ./project)
> ./project: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found
> (required by ./project)
> ./project: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found
> (required by lib/libSDL2-2.0.so.0)
> ./project: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found
> (required by lib/libSDL2-2.0.so.0)
> ./project: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found
> (required by lib/libSDL2-2.0.so.0)
> ./project: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found
> (required by lib/libfreetype.so.6)
> ```

-- 
Steve Langasek   Give me a lever long enough and a Free OS
Debian Developer   to set it on, and I can move the world.
Ubuntu Developer   https://www.debian.org/
slanga...@ubuntu.com vor...@debian.org


signature.asc
Description: PGP signature


Re: Libc6 Usage Question

2023-04-26 Thread Andrey Rakhmatullin
On Tue, Apr 25, 2023 at 06:29:11PM -0400, Alexis E wrote:
> Dear Debian Mailing List,
> I am working on a project which requires libc6. When I build this
> project on my laptop, the project works fine as it builds for the libc6 on
> my laptop, however, when I build it in Github actions, the project fails to
> run, due to Debian not having a libc6 version as low as GLibC 2.32.
If you want to support running on stable consider building on stable. You
may want to consult Github actions documentation to see if it's possible
and how to do that.
Please also note that the user support list is debian-user@.

> I've
> tried to compile my project to musl, statically, and even just embedding
> the correct version of libc6 in the lib folder that I set my rpath to. I've
> either had segfaults or failed builds. I would like to ask how I can either
> support an older version of libc6 or upgrade any customers' systems to the
> correct version. I'd also happily accept not requiring libc6 at all.
Out of all of these options building on an older system sounds the best
and the easiest.



Re: Libc6 Usage Question

2023-04-26 Thread tomas
On Tue, Apr 25, 2023 at 06:29:11PM -0400, Alexis E wrote:
> Dear Debian Mailing List,
> I am working on a project which requires libc6. When I build this
> project on my laptop, the project works fine as it builds for the libc6 on
> my laptop, however, when I build it in Github actions, the project fails to
> run, due to Debian not having a libc6 version as low as GLibC 2.32 [...]

It's not clear whether you need a version lower than 2.32, higher than
that or exactly that one.

FWIW, Debian stable has 2.31, soon-to-be stable testing 2.36 [1], so perhaps
testing fills your bill.

All in all, I think you'd have to take this up with Github, not with
Debian.

Cheers

[1] 
https://packages.debian.org/search?keywords=libc6=names=all=all
-- 
t


signature.asc
Description: PGP signature


Re: Libc6 Usage Question

2023-04-26 Thread Alexis E
I discovered there are more lists than just this one, so I'll be forwarding
the email to the appropriate list (which I believe to be
debian-gl...@lists.debian.org). I should mention, I'm so glad I only
supplied my first name as I did not know that y'all could even get the name
I supplied to Google, much less that it would be published. I would rather
not publish my name and only be referenced by email

On Tue, Apr 25, 2023 at 6:29 PM Alexis E 
wrote:

> Dear Debian Mailing List,
> I am working on a project which requires libc6. When I build this
> project on my laptop, the project works fine as it builds for the libc6 on
> my laptop, however, when I build it in Github actions, the project fails to
> run, due to Debian not having a libc6 version as low as GLibC 2.32. I've
> tried to compile my project to musl, statically, and even just embedding
> the correct version of libc6 in the lib folder that I set my rpath to. I've
> either had segfaults or failed builds. I would like to ask how I can either
> support an older version of libc6 or upgrade any customers' systems to the
> correct version. I'd also happily accept not requiring libc6 at all.
>
> How may I achieve this?
>
> Thank You,
> Alexis
>
> ```bash
> ./project: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found
> (required by ./project)
> ./project: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found
> (required by ./project)
> ./project: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found
> (required by ./project)
> ./project: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found
> (required by lib/libSDL2-2.0.so.0)
> ./project: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found
> (required by lib/libSDL2-2.0.so.0)
> ./project: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found
> (required by lib/libSDL2-2.0.so.0)
> ./project: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found
> (required by lib/libfreetype.so.6)
> ```
>