unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Joshua Branson <jbranso@dismail.de>
To: zamfofex <zamfofex@twdb.moe>
Cc: "guix-devel@gnu.org" <guix-devel@gnu.org>
Subject: Re: GMP GCC C++ Hurd cross-build failure on core-updates
Date: Sun, 04 Dec 2022 11:46:29 -0500	[thread overview]
Message-ID: <87o7sj15i2.fsf@dismail.de> (raw)
In-Reply-To: <1309771808.1564506.1670138591125@privateemail.com> (zamfofex@twdb.moe's message of "Sun, 4 Dec 2022 04:23:11 -0300 (BRT)")

zamfofex <zamfofex@twdb.moe> writes:

> Hello, Guix! I have been trying to update the Hurd packages to their latest
> commits in the hopes that I can eventually get networking with netdde
> functioning.
>
> In <https://issues.guix.gnu.org/51770>, I got something that seemed to be
> working at first (at least it progressed farther than the status quo at the
> time), but eventually I got an error that seemed related to Mig, which I had not
> updated in that patch set.
>
> Updating Mig required a more recent glibc than what was available in Guix at the time, so I worked on <https://issues.guix.gnu.org/54832> to update glibc.
>
> Now that the recent glibc is on core-updates, I picked up my work once again. I
> updated the packages to the latest commits, and updated Mig! However, I ran into
> an issue while trying to build a system image. The issue is that GMP fails to
> cross‐compile during the ‘configure’ phase becase the cross‐compiling ‘g++’ is
> not functional.
>
> When checking whether ‘g++’ can compile executables during ‘configure’, ‘g++’ is
> unable to link the executables because some ‘pthread_*’ symbols required by
> libstdc++ are missing from libc. And when checking using ‘readelf’, they are
> indeed missing from the cross‐built libc, which instead contains similar
> ‘__pthread_*’ symbols.
>
> I don’t know for sure what the issue is, but I highly suspect libstdc++ is being
> compiled against the native glibc headers, rather than the cross‐built glibc
> headers like it should.
>

I am way out of my depth here, but would it matter that on the hurd
pthread is not in glibc?

https://lists.gnu.org/archive/html/bug-hurd/2022-10/msg00069.html

>
> Note: Currently, trying to cross‐build packages from core‐updates for the Hurd
> will fail while compiling glibc, since the Hurd package is too outdated for that
> version of glibc.
>
> I’ll attach a diff (for core-updates) with the updated Hurd packages to this email. To verify the behavior I’m describing, try running:
>
> - - - - -
> ./pre-inst-env guix build --target=i586-pc-gnu gmp
> - - - - -
>
> Any kind of assistance would be appreciated! Thanks in advance.


  reply	other threads:[~2022-12-04 16:47 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-04  7:23 GMP GCC C++ Hurd cross-build failure on core-updates zamfofex
2022-12-04 16:46 ` Joshua Branson [this message]
2022-12-05 16:08 ` Ludovic Courtès
2022-12-06 10:06   ` zamfofex
2022-12-06 11:20     ` zamfofex
2022-12-08 15:43       ` Ludovic Courtès
2022-12-19 21:06     ` Ludovic Courtès
  -- strict thread matches above, loose matches on Subject: below --
2022-12-15  7:24 Nathan Dehnel
2022-12-15 11:17 ` Svante Signell
2022-12-19 10:57   ` Svante Signell

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=87o7sj15i2.fsf@dismail.de \
    --to=jbranso@dismail.de \
    --cc=guix-devel@gnu.org \
    --cc=zamfofex@twdb.moe \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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).