public inbox for libc-help@sourceware.org
 help / color / mirror / Atom feed
From: "Горбешко Богдан" <bodqhrohro@gmail.com>
To: Florian Weimer <fweimer@redhat.com>
Cc: "Горбешко Богдан via Libc-help" <libc-help@sourceware.org>
Subject: Re: libstdc++ link errors in support/links-dso-program
Date: Fri, 15 Mar 2024 21:22:34 +0200	[thread overview]
Message-ID: <98b5b573-67b8-4110-8759-ca67fab6f85b@gmail.com> (raw)
In-Reply-To: <8734srh194.fsf@oldenburg.str.redhat.com>

On 15/03/2024 19:07, Florian Weimer wrote:
> * Горбешко Богдан:
>
>> I'm not going to install it system-wide, just to build it for
>> cross-compiling a Golang project for a Debian Buster system, by
>> specifying -rpath and --dynamic-linker.
> Is this because you need a newer GCC?
Not really, GCC 12 is just the default on Bullseye, GCC 10 seems to be 
available there too. So I should attempt to build and link with GCC 10?
> If not, it's easier to use
> pbuilder (or one of its variants) to build the program in a chroot with
> Debian buster.  Many people nowadays use podman or docker with a Debian
> image for the same purpose.  The pbuilder approach is perhaps preferable
> if you already build a .deb archive, and podman can be scripted more
> easily to build something that isn't.

I don't really build .deb packages, Golang compiler produces one static 
binary, so that would be redundant.

We already have a solution to build this in Docker, though the target 
test VPS is tight on resources and I wouldn't really like to mess with 
Docker there.

My scenario is developing the project on one VPS, building it there and 
sending test builds (just copying one binary file, pretty easy) to 
another VPS where they are run. Previously they had the same Debian 
version, so this was a non-issue; recently I upgraded the first one to 
Bullseye, but the target VPS has some legacy and 3rd party software 
running, so an upgrade would be complicated and I postponed it for now. 
I could actually run the builds on the development VPS as well, migrate 
project data there and bind a remote port via SSH, but this would make 
it more prone to network interruptions.

>
> Thanks,
> Florian
>


  reply	other threads:[~2024-03-15 19:22 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-15  3:09 Горбешко Богдан
2024-03-15  7:27 ` Florian Weimer
2024-03-15 11:51   ` Горбешко Богдан
2024-03-15 17:07     ` Florian Weimer
2024-03-15 19:22       ` Горбешко Богдан [this message]
2024-04-10 12:03         ` Florian Weimer
2024-04-10 12:50           ` Горбешко Богдан
2024-04-10 13:22             ` Konstantin Kharlamov
2024-04-10 13:30               ` Горбешко Богдан
2024-04-10 13:55                 ` Konstantin Kharlamov
2024-04-10 14:02                   ` Горбешко Богдан
2024-04-10 14:11                     ` Konstantin Kharlamov
2024-04-10 14:24                       ` Горбешко Богдан

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=98b5b573-67b8-4110-8759-ca67fab6f85b@gmail.com \
    --to=bodqhrohro@gmail.com \
    --cc=fweimer@redhat.com \
    --cc=libc-help@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).