GNU bug report logs - #12741
build: cross-compiling: any cross-compile fails due to new

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: coreutils; Reported by: Jim Meyering <jim@HIDDEN>; Keywords: fixed; merged with #78377; Done: Assaf Gordon <assafgordon@HIDDEN>; Maintainer for coreutils is bug-coreutils@HIDDEN.
Forcibly Merged 12741 78377. Request was from Pádraig Brady <P@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
bug unarchived. Request was from Pádraig Brady <P@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
bug archived. Request was from Debbugs Internal Request <help-debbugs@HIDDEN> to internal_control <at> debbugs.gnu.org. Full text available.
bug closed, send any further explanations to 12741 <at> debbugs.gnu.org and Jim Meyering <jim@HIDDEN> Request was from Assaf Gordon <assafgordon@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Added tag(s) fixed. Request was from Assaf Gordon <assafgordon@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 12741 <at> debbugs.gnu.org:


Received: (at 12741) by debbugs.gnu.org; 6 Nov 2018 18:10:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 06 13:10:28 2018
Received: from localhost ([127.0.0.1]:37698 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gK5o4-00051u-1A
	for submit <at> debbugs.gnu.org; Tue, 06 Nov 2018 13:10:28 -0500
Received: from mail-pg1-f174.google.com ([209.85.215.174]:40550)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <assafgordon@HIDDEN>)
 id 1gK5o1-00051c-Vj; Tue, 06 Nov 2018 13:10:26 -0500
Received: by mail-pg1-f174.google.com with SMTP id z10so4283214pgp.7;
 Tue, 06 Nov 2018 10:10:25 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=subject:to:references:from:message-id:date:user-agent:mime-version
 :in-reply-to:content-language:content-transfer-encoding;
 bh=3epTB6e4BfQvIJdb/0Pqt20ppH3DkwTVP1rhVIeYGpI=;
 b=pn28ba1HGPJF1tQTtscmIg3984uXcrdRgHAcBqrD4G3qYusfO7tZJF3AQ8ng6gaJ6W
 ZQrlsz4Jgge9KyCjui7V80Kmczb6RRQdHOviEM86iAHziD+ZMCaoWDnD7AuCFSoFguIL
 uCvB+btVtU9pKUm2kuGew7tWJP5Qi2Sd71Bpr546pmVUlPAffnIeGAR1p7UG5tqXBU2s
 y5EU2etTy90/B40zIaxrWSxjDU9/adXhL28Pa/nj3f8NhP8uqUH2J14VHl3DPxEIzMkd
 lG0X3DrRTnVQnulU1QujMpG4SDHXBsDwtDYI4/qKumG1N1ZyxRWQW1GLZZ9ZAPlcvSFn
 nmgA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:subject:to:references:from:message-id:date
 :user-agent:mime-version:in-reply-to:content-language
 :content-transfer-encoding;
 bh=3epTB6e4BfQvIJdb/0Pqt20ppH3DkwTVP1rhVIeYGpI=;
 b=MedeLWxxxBsrhffRYt7nYLNXUX2119cN+S1T7O20MXfPwZ2WmDAYxU5CokESxAzYS7
 413d/87XdgI63LXcB4wKWCjKmepUIHYBON0FsNsiVzkr56NunIdysgwFdzKOQH5xFP/j
 uPyK79v/H4UrHBcLuuXY69eAlVVM5SCBQHgeCcbbrkBYnlDW2F3cc+cmncHBTDKstppy
 D1E1OX7bg2UBzZ8VurPYrkxz0utvJyrHB+3WPkWXQNr/Yqy6JJ4a8kTBGO/w7VuS5q/b
 tueN7h5RuCTgYzB8Fy8YCwHwglXyTLBY5tT7jCOFFedXuUXtHxAJBcipwCQ9Ac/uG1o0
 ywgQ==
X-Gm-Message-State: AGRZ1gK7cEULoYbsERdYvyDyhcCj/qqvJquDQ4jKhx7M8+fwgIRPPbab
 IENcq1j0J9LkZwyxA4U/742beDnl
X-Google-Smtp-Source: AJdET5ef53Z1Tf5KC5sAASqzYCsmXr+6cG566pKJruQmpxerlgrndhFuzBqrmkGOYIHa9l4FwU9nJQ==
X-Received: by 2002:a62:5b43:: with SMTP id
 p64-v6mr28011010pfb.122.1541527819360; 
 Tue, 06 Nov 2018 10:10:19 -0800 (PST)
Received: from tomato.housegordon.com (moose.housegordon.com. [184.68.105.38])
 by smtp.googlemail.com with ESMTPSA id
 x12sm4879879pgr.55.2018.11.06.10.10.18
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Tue, 06 Nov 2018 10:10:18 -0800 (PST)
Subject: Re: bug#12741: any cross-compile fails due to new make-prime-list
To: 12741 <at> debbugs.gnu.org
References: <87625x2qja.fsf@HIDDEN> <508AC346.6030902@HIDDEN>
 <87txth16up.fsf@HIDDEN>
From: Assaf Gordon <assafgordon@HIDDEN>
Message-ID: <6a378bae-93ee-7f0b-619e-2d1d85e0b1c2@HIDDEN>
Date: Tue, 6 Nov 2018 11:10:17 -0700
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
 Thunderbird/60.2.1
MIME-Version: 1.0
In-Reply-To: <87txth16up.fsf@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 12741
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

tags 12741 fixed
close 12741
stop

(triaging old bugs)

On 2012-10-26 11:27 a.m., Jim Meyering wrote:
> That would be fine with me.
> We were precomputing the "wheel.h" table of primes before, too.
> 
> If we go the route of distributing the generated file,
> then we might as well resort to using Perl and say, -Mbigint,
> to do generate all variants.

Starting with version 8.21, "prime.h" is pre-built and distributed.

Committed here:
https://git.savannah.gnu.org/cgit/coreutils.git/commit/?id=f16e251dae43117c2cd19359c26ce7b5e05165b6

As such, closing this bug.

-assaf




Information forwarded to bug-coreutils@HIDDEN:
bug#12741; Package coreutils. Full text available.
Changed bug title to 'build: cross-compiling: any cross-compile fails due to new' from 'any cross-compile fails due to new make-prime-list' Request was from Assaf Gordon <assafgordon@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 12741 <at> debbugs.gnu.org:


Received: (at 12741) by debbugs.gnu.org; 26 Oct 2012 17:29:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 26 13:29:56 2012
Received: from localhost ([127.0.0.1]:35043 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1TRnjI-0007f4-GK
	for submit <at> debbugs.gnu.org; Fri, 26 Oct 2012 13:29:56 -0400
Received: from mx.meyering.net ([88.168.87.75]:37775)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <jim@HIDDEN>) id 1TRnjF-0007eu-Nb
	for 12741 <at> debbugs.gnu.org; Fri, 26 Oct 2012 13:29:55 -0400
Received: from rho (rho.meyering.net [127.0.0.1])
	by rho.meyering.net (Acme Bit-Twister) with ESMTP id 141FE60081;
	Fri, 26 Oct 2012 19:27:42 +0200 (CEST)
From: Jim Meyering <jim@HIDDEN>
To: Paul Eggert <eggert@HIDDEN>
Subject: Re: bug#12741: any cross-compile fails due to new make-prime-list
In-Reply-To: <508AC346.6030902@HIDDEN> (Paul Eggert's message of "Fri, 26
	Oct 2012 10:07:18 -0700")
References: <87625x2qja.fsf@HIDDEN> <508AC346.6030902@HIDDEN>
Date: Fri, 26 Oct 2012 19:27:42 +0200
Message-ID: <87txth16up.fsf@HIDDEN>
Lines: 25
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.1 (/)
X-Debbugs-Envelope-To: 12741
Cc: 12741 <at> debbugs.gnu.org, yegorslists@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: 0.1 (/)

Paul Eggert wrote:
> On 10/26/2012 08:37 AM, Jim Meyering wrote:
>> I would like to generate that table with a portable awk script (maybe
>> even Perl).  If someone can provide such a script, I would be happy
>> to dump the C program.  That would solve the problem.
>
> It'd be a pain to do it in portable awk, as it requires
> arithmetic modulo (UINTMAX_MAX + 1), which Awk is not
> likely to support directly.
>
> Since there are only two or three plausible values of UINTMAX_MAX
> these days, one possibility is to precompute primes.h for these
> two or three values, and ship the precomputed primes.h in the
> tarball, and to use the precomputed primes.h on hosts with typical
> UINTMAX_MAX values.  People who are on a weird platform where
> UINTMAX_MAX is an unusual value wouldn't be able to cross-compile,
> but that's unlikely to ever happen and even if it does, we simply
> add the unusual case to the precomputed primes.h.

That would be fine with me.
We were precomputing the "wheel.h" table of primes before, too.

If we go the route of distributing the generated file,
then we might as well resort to using Perl and say, -Mbigint,
to do generate all variants.




Information forwarded to bug-coreutils@HIDDEN:
bug#12741; Package coreutils. Full text available.

Message received at 12741 <at> debbugs.gnu.org:


Received: (at 12741) by debbugs.gnu.org; 26 Oct 2012 17:09:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 26 13:09:32 2012
Received: from localhost ([127.0.0.1]:35029 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1TRnPY-0007D6-Jh
	for submit <at> debbugs.gnu.org; Fri, 26 Oct 2012 13:09:32 -0400
Received: from smtp.cs.ucla.edu ([131.179.128.62]:47636)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <eggert@HIDDEN>) id 1TRnPW-0007Cz-Dx
	for 12741 <at> debbugs.gnu.org; Fri, 26 Oct 2012 13:09:31 -0400
Received: from localhost (localhost.localdomain [127.0.0.1])
	by smtp.cs.ucla.edu (Postfix) with ESMTP id B8487A60025;
	Fri, 26 Oct 2012 10:07:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu
Received: from smtp.cs.ucla.edu ([127.0.0.1])
	by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id oPEuGhX1JhPx; Fri, 26 Oct 2012 10:07:19 -0700 (PDT)
Received: from penguin.cs.ucla.edu (Penguin.CS.UCLA.EDU [131.179.64.200])
	by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 64498A60003;
	Fri, 26 Oct 2012 10:07:19 -0700 (PDT)
Message-ID: <508AC346.6030902@HIDDEN>
Date: Fri, 26 Oct 2012 10:07:18 -0700
From: Paul Eggert <eggert@HIDDEN>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:16.0) Gecko/20121016 Thunderbird/16.0.1
MIME-Version: 1.0
To: Jim Meyering <jim@HIDDEN>
Subject: Re: bug#12741: any cross-compile fails due to new make-prime-list
References: <87625x2qja.fsf@HIDDEN>
In-Reply-To: <87625x2qja.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Spam-Score: -2.2 (--)
X-Debbugs-Envelope-To: 12741
Cc: 12741 <at> debbugs.gnu.org, yegorslists@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.2 (--)

On 10/26/2012 08:37 AM, Jim Meyering wrote:
> I would like to generate that table with a portable awk script (maybe
> even Perl).  If someone can provide such a script, I would be happy
> to dump the C program.  That would solve the problem.

It'd be a pain to do it in portable awk, as it requires
arithmetic modulo (UINTMAX_MAX + 1), which Awk is not
likely to support directly.

Since there are only two or three plausible values of UINTMAX_MAX
these days, one possibility is to precompute primes.h for these
two or three values, and ship the precomputed primes.h in the
tarball, and to use the precomputed primes.h on hosts with typical
UINTMAX_MAX values.  People who are on a weird platform where
UINTMAX_MAX is an unusual value wouldn't be able to cross-compile,
but that's unlikely to ever happen and even if it does, we simply
add the unusual case to the precomputed primes.h.




Information forwarded to bug-coreutils@HIDDEN:
bug#12741; Package coreutils. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 26 Oct 2012 15:39:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 26 11:39:44 2012
Received: from localhost ([127.0.0.1]:34912 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1TRm0d-0003zp-QX
	for submit <at> debbugs.gnu.org; Fri, 26 Oct 2012 11:39:44 -0400
Received: from eggs.gnu.org ([208.118.235.92]:36045)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <jim@HIDDEN>) id 1TRm0b-0003zh-6S
	for submit <at> debbugs.gnu.org; Fri, 26 Oct 2012 11:39:42 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jim@HIDDEN>) id 1TRlyR-0006nm-KW
	for submit <at> debbugs.gnu.org; Fri, 26 Oct 2012 11:37:31 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI
	autolearn=unavailable version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:41889)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@HIDDEN>) id 1TRlyR-0006nf-HY
	for submit <at> debbugs.gnu.org; Fri, 26 Oct 2012 11:37:27 -0400
Received: from eggs.gnu.org ([208.118.235.92]:44150)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@HIDDEN>) id 1TRlyJ-00015q-Nb
	for bug-coreutils@HIDDEN; Fri, 26 Oct 2012 11:37:27 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jim@HIDDEN>) id 1TRlyF-0006l8-Qr
	for bug-coreutils@HIDDEN; Fri, 26 Oct 2012 11:37:19 -0400
Received: from mx.meyering.net ([88.168.87.75]:33590)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jim@HIDDEN>) id 1TRlyF-0006kr-Ju
	for bug-coreutils@HIDDEN; Fri, 26 Oct 2012 11:37:15 -0400
Received: from rho (rho.meyering.net [127.0.0.1])
	by rho.meyering.net (Acme Bit-Twister) with ESMTP id DDCFE600DB;
	Fri, 26 Oct 2012 17:37:13 +0200 (CEST)
From: Jim Meyering <jim@HIDDEN>
To: bug-coreutils@HIDDEN
Subject: any cross-compile fails due to new make-prime-list
Date: Fri, 26 Oct 2012 17:37:13 +0200
Message-ID: <87625x2qja.fsf@HIDDEN>
Lines: 20
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 208.118.235.17
X-Spam-Score: -4.2 (----)
X-Debbugs-Envelope-To: submit
Cc: yegorslists@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -4.2 (----)

As reported privately by Yegor Yefremov:

    coreutils-8.20 has interesting issue. Have you tried to cross
    compile it for ARM? I get following error:

    GEN    src/primes.h
    /bin/sh: src/make-prime-list: cannot execute binary file
    make[1]: * [src/primes.h] Error 126

    because make-prime-list is also cross compiled. Any idea how to fix thi=
s?=EF=BB=BF

Thanks for the bug report.  (forwarding it to the bug-coreutils list)
Yes, that is a problem when cross-compiling to any target.

I would like to generate that table with a portable awk script (maybe
even Perl).  If someone can provide such a script, I would be happy
to dump the C program.  That would solve the problem.

You can work around it by touching the executable, creating the generated
file on another system and copying it to your build directory.




Acknowledgement sent to Jim Meyering <jim@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-coreutils@HIDDEN. Full text available.
Report forwarded to bug-coreutils@HIDDEN:
bug#12741; Package coreutils. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 17 May 2025 08:00:06 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.