From debbugs-submit-bounces@debbugs.gnu.org Sun May 11 11:43:41 2025 Received: (at submit) by debbugs.gnu.org; 11 May 2025 15:43:41 +0000 Received: from localhost ([127.0.0.1]:38038 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uE8q3-0002rU-Pw for submit@debbugs.gnu.org; Sun, 11 May 2025 11:43:41 -0400 Received: from lists.gnu.org ([2001:470:142::17]:47888) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uE8aA-00019K-SM for submit@debbugs.gnu.org; Sun, 11 May 2025 11:27:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uE8a4-0005Jw-KJ for bug-coreutils@gnu.org; Sun, 11 May 2025 11:27:08 -0400 Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uE8a3-0003YJ-5Q for bug-coreutils@gnu.org; Sun, 11 May 2025 11:27:08 -0400 Received: by mail-pl1-x633.google.com with SMTP id d9443c01a7336-22fb33898bbso43262845ad.3 for ; Sun, 11 May 2025 08:27:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1746977226; x=1747582026; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=PULF2XCveWP5WZpBV5Du4NtUgSPORNK50O7Ok76kg6g=; b=Bh/b1aAseRka6B19haNR+VvQxUTFP2wuR4rpot6Yf7+la+Rrp2NjndFVMrb+r6+gjS wk+1a43T7r+opcj97L/4R1S2sEyS2g0CuHnV7NqUF/MHKhZ8eoQGhszxQ1m4nmZM+BTg iv7NjQn4pg9IY03lTopzlUUIRvNCcXdL24IPzR1h6Yjp7DTjZRi5maBsk40/QBZabKBZ MsBKlLwiD5YKnv+2BTPQq4q+/VRdtx52oYelUR5lk0K9uddbaBlfsC0CAbm3jjJhMSMI Kzu9BlfzreUkAeIOmI9fOW+AHAE36HGA5vrUVhwBLyhQzTKgnOr2khORLuwoy8QsHicS 0vSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746977226; x=1747582026; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=PULF2XCveWP5WZpBV5Du4NtUgSPORNK50O7Ok76kg6g=; b=K6U077Ya7S+hSldG4A7VzvgfkCIcezFbFIysIHxvAE1xDUjQu/YJrC4byztVI4Asu9 6rye/hJ7Tv3b9D3+pu06qQ/f7xAcYTfi9N3HSb313QIrYDZIYCSAk53RTgb9rKE1CfXa aZG47uXzk0rbwgVCgFUczaec5gXdgY10cNdSmKggphOvCxIsC/FyDyGiKXQFYL2m+DVE SY1ucABUXJtQX0N4MSEr6OETye78VdcZKo6Wyq4VJTSH8mNMdC7hOec3M+cxMRUBc7L2 ycSaRKikrd7BtWG5gTzb8uNe6fxZklTCOQW7ChxM1VK1JZ2kAaFlqGPBErdiTybUPimr 4jrQ== X-Gm-Message-State: AOJu0YwqbX28tdWmEb/yvCkG8eCVylehImru+7ptEzt3nm/J2euCCP8j 7KME8imfiFsMhu8UIZgTgKZiNkS9N2ZmQVic7bvX4nR1V+sJmx3SmHMNgrd7zrGAH/s4VaX8Nwg e+y9KtenYy/kcvjFR/xK4hmNj/PaU4CSJ X-Gm-Gg: ASbGnctrqNKvX6p7vW8GwqGYSZR4v65MJWflwe2k+OwEXJOOtvogoRp7ljf1NwJzzsb L+9plTOvW0pnIOo2zVDTqHCrXf/WvqyTNd9ZY8G6KZZB0NnfAK6xmJHI67p+iaUmQYM3TZnOC7R 80k78TKyShz8pBvSrxxVGUfcflUBitA+GT X-Google-Smtp-Source: AGHT+IH9Qb0CuVb8HYiKhhOuz6BbNAcrpJOMvUQPQVICZdFyw+oHfKHRsxqVPxv5AEzolcSnHcF6IpImv8mWlqJ12NE= X-Received: by 2002:a17:902:cf06:b0:21f:564:80a4 with SMTP id d9443c01a7336-22fc9185dcfmr125759265ad.33.1746977225805; Sun, 11 May 2025 08:27:05 -0700 (PDT) MIME-Version: 1.0 From: NR Date: Sun, 11 May 2025 10:26:29 -0500 X-Gm-Features: AX0GCFvfp4De7Qs8VU0Voee5Ngn-13A99SOi-cvFOtYBgi6IdRjjpFO8WpduouQ Message-ID: Subject: Cross-Compile - "src/make-prime-list: cannot execute: required file not found" To: bug-coreutils@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::633; envelope-from=nroycea@gmail.com; helo=mail-pl1-x633.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 11 May 2025 11:43:28 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) It'd be nice to be able to cross-compile coreutils. It could be done by detecting if `--host=` is different from the build system. If it is different, then make the `src/primes.h` target natively (specifically the `src/make-prime-list` target). I noticed it was a very old issue (going back to 2012). My workaround was just to `configure` without any arguments, `make src/primes.h`, then `configure` again for cross-compiling, and run a normal `make`. From debbugs-submit-bounces@debbugs.gnu.org Tue May 13 11:14:17 2025 Received: (at 78377) by debbugs.gnu.org; 13 May 2025 15:14:17 +0000 Received: from localhost ([127.0.0.1]:60927 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uErKi-0003Vc-MZ for submit@debbugs.gnu.org; Tue, 13 May 2025 11:14:17 -0400 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]:46401) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uErKe-0003VG-OK; Tue, 13 May 2025 11:14:13 -0400 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-43ea40a6e98so58483555e9.1; Tue, 13 May 2025 08:14:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1747149246; x=1747754046; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=IGWyQFMPlCV3t5ecJHDbsQcpT3ILX+njkOcohPkzLjo=; b=e/NBFtaYYYsUut53TO25gGxigmQYH4+vhYyLBt0BZFc/P3iNrm8KiqwuvW+8wZ5c4T VVkTE/luaAgm5TwFXLeubHu9RPolyfQ6xQcIyaicNWRSIeX3WaDAt20kXXq8MFjDyeo8 Yo5SQRddwIkBYrN8JlnuCnAFujSR9v8rmaU6+T7BAIEIrWbEEB/np+S7a6m9ZipGYbFQ fbQyU+YigfuCCkbNGSfCLNmyQeLxAbKgsiotS3okxZ7OUHQWX06UmdzDgcDAv/txSWpr fE53gUWqKUEjnR0N5leR2AoEaKER7SfqAQRTUjDe2CU2JBthJxFooeIQHWQlrOQLYYQ8 ZL4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747149246; x=1747754046; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=IGWyQFMPlCV3t5ecJHDbsQcpT3ILX+njkOcohPkzLjo=; b=BZskD5VIf9wy0H1P7D3HstIgXGLVyENtsRTOt1AJ/PDqUq/UHyHj/YdrjF5B1rSOnB TUzHL6X1sSl6XIfJGsjjj4e2SWbHwq3GbcqiWGK58Iq0auwhojIdoAg0IzYgqC/qg4wS LgDaEI1KfwZMdsRhko0yL/yrRWaIAfJQk9UJM52mET400jlDKSOSd8uWswSIx2s3ECxl Pu9a6VovZHcfE1E2ny90sXzew4siw2+6QwNQPnq+5lon4X/91o0yOWV43xrsDrYfcS4R xc3WQlTfbh6FlILcInnfbCbhjGCkcbskJmFAJ4DNnfBAREFK9q+8wqvIElrLY6H4Px3L F+ug== X-Forwarded-Encrypted: i=1; AJvYcCUK9zQK5YS5gWtvIO0o5GHcOXPRGVJoge66eWmqPHC7+MoAnZw1VCH/ANm8vhVmUOvWvwOTIldh5A==@debbugs.gnu.org, AJvYcCVnnc0VOhkICd1U3g4AV20j10lmFC0yndAetMzPhDkstfb1XDAHFhH/f6hhvGq+5ET+I4EhPA==@debbugs.gnu.org X-Gm-Message-State: AOJu0YxdLzxPguLSFjW9tJ7WkEjQIpTaSyYrusu1SicuhaWeHvihAhuj RT9kSEZBUWNRs0e8gsoHhVuY45jlSAUCd+Y+lY0Zjzk8hnu63C+REPdFWg== X-Gm-Gg: ASbGncuXUV4jsVeyQnhma09j/BHAYTvOUwYU0RyxV/VChqJxIAs31aoUc8x1mdgsrAH Xj6byHzWzF2SLsDy8hUbKqjmUy8yJ4oB7rqn/cjqJ239MD6cf1Edvf7KOW6xPfyjA2Vj8lKjJKH xl0ox8DXnRHqFoXkULlk7k77L/fEdz0QUv6G8kxFp3B00MOJG4jQUkfJDQP69spgjXAuEegaQH6 mv79fjIJOZVwBnJfsYPlN07+7dmR/6OLJssuJ4y10BruHQr8tZ71OeFPU8addd3TMT+PYO2nYsZ vX6nyPEFyH6eJIL0mlbb2V8lIdNkNF5sIYKbfnLEaKHHwnESKl8lCbZtHPBwKI599ELRfxP5UVv 34KqEeL4CLJKZHIubZkrs7JgJLScaKmI= X-Google-Smtp-Source: AGHT+IEpNZ2KWR2HP9893/3pMPevRSAUfQRJWPJSokCgi7o07G6saLzY1uWsWH9ha+pQw5vHCpCZ8Q== X-Received: by 2002:a05:600c:46c3:b0:43c:fc04:6d35 with SMTP id 5b1f17b1804b1-442d6d0a9f6mr149714995e9.4.1747149245969; Tue, 13 May 2025 08:14:05 -0700 (PDT) Received: from [192.168.1.31] (86-44-211-146-dynamic.agg2.lod.rsl-rtd.eircom.net. [86.44.211.146]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-442d146af31sm207875035e9.17.2025.05.13.08.14.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 13 May 2025 08:14:05 -0700 (PDT) Message-ID: <163cff0e-79dc-4379-a6c1-ced7bac9dc12@draigBrady.com> Date: Tue, 13 May 2025 16:14:03 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Beta Subject: Re: bug#78377: Cross-Compile - "src/make-prime-list: cannot execute: required file not found" To: NR , 78377@debbugs.gnu.org References: Content-Language: en-US From: =?UTF-8?Q?P=C3=A1draig_Brady?= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 78377 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) forcemerge 12741 78377 stop On 11/05/2025 16:26, NR wrote: > It'd be nice to be able to cross-compile coreutils. > > It could be done by detecting if `--host=` is different from the build system. > If it is different, then make the `src/primes.h` target natively > (specifically the `src/make-prime-list` target). > > I noticed it was a very old issue (going back to 2012). > My workaround was just to `configure` without any arguments, `make > src/primes.h`, then `configure` again for cross-compiling, and run a > normal `make`. Yes this was discussed at https://bugs.gnu.org/12741 The workaround isn't too onerous, but yes it would be good to clean this up. cheers, Pádraig From debbugs-submit-bounces@debbugs.gnu.org Tue May 13 13:01:42 2025 Received: (at 78377) by debbugs.gnu.org; 13 May 2025 17:01:42 +0000 Received: from localhost ([127.0.0.1]:32953 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uEt0g-0003BB-6S for submit@debbugs.gnu.org; Tue, 13 May 2025 13:01:42 -0400 Received: from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d]:46297) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uEt0e-0003Au-7E for 78377@debbugs.gnu.org; Tue, 13 May 2025 13:01:40 -0400 Received: by mail-pj1-x102d.google.com with SMTP id 98e67ed59e1d1-30a9718de94so5690764a91.0 for <78377@debbugs.gnu.org>; Tue, 13 May 2025 10:01:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1747155694; x=1747760494; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=4kxFblvOPuAKZ+sq5qpfTbxnBAPtX3h7mZC5H3diGjk=; b=fFuNL0bSU9w4HivIhIgN5xoPO3i1h/tTGDSqtZfxiobn789EOQZikW2BjevT7ZG7n4 fNSk3cM5WY270eSWHyk4nBIn6YnlckrXPizrk4bkh5MTAnIKwvN3lKKL3ueGBKLyDmqZ PeGSlpF/0pYO5f6c9wG7hS/mDbYGFgX1kO8B8d/uMNahi+CZssZjo0txwq5S/UD9LnJ5 LXcron8kLad9v59eV2PEdoVTB77a44APhW8ZiR8FEqJjXKOxnNkUoEDwsYwgI6x4F+G+ EuoC+SUNnKI7sqlsthHDogXkmqDsPqS/rI6YAE4px0jqD60fhDIAiv4XFlG8NU6gQ3VO arTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747155694; x=1747760494; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=4kxFblvOPuAKZ+sq5qpfTbxnBAPtX3h7mZC5H3diGjk=; b=gLx7SRLgAuk5Ijf/IR5uuG3B9OB/2V/kFQFQFePPLYLzPqYBCVRqLhsZvx8sRmsxRP IExKpUuuuEaWU+Bs4zPj5aURkxcmFFHOnXcaP62/meclMQiE6zI/VF4daPKTtS+FCvGp pejOUjjY5l+RqrslppPspibp2eWaKOhOFgpIIQGbva6wJMRRRaNjIoQcx3GBjqPmmMuq eUL3tGLlESFH8yboOTv79nSIqsarIjlnFgmK6kuVh4LY2va5ScEq+6etsv2zLktw8Vbw nvgFabnbIv3fHBxoAwpcBolw4IijFCe6YMoG/dSRs0fskWF/Tc+jw+sVO9ep7FlqDxS8 kLzw== X-Forwarded-Encrypted: i=1; AJvYcCW1ZwYIAHUAdhblnUZ2QPmZf9/OuZUAj+iTbxdLkbADEkhtIYD4hEccrMij9jME6nsixmaACg==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yxs/hTq2+I1IHZxzr1ncaGvaGWdCDzoDOsV3bfGrT+h077PKTzK dwmSsK+emyTqrixXtfNn0S+M0bpf4ejU5EIBrtMfIX1S59Z+3XO7LtNwdg2K X-Gm-Gg: ASbGncs0RgzsnZKM3magrDuCGe/TOBM5d2kpNzsmL2R4pL13wgWYKOszKjQCwXv445D AXxqCoF68nixr6kmnOmevoeOJ3NubgRN6/zWoDQgM2eWOOa2zxRGv4opqmmPQxu/8pjFAN4V0wY Dz5K8CO1ffVZe1B/jIDRgueBMoqC5ddj+EEmbpOLSSWiFKG1Ivws4HQqhCRtZBBxaFz8aY0ROMi xmHlzmuPVxEPgMxqPu8j1W1S95ej0h7UIooM22JDw+rsnihnj8kQ3RDNPHq/S67wQmUuFiWlEU3 5s9yG07KKnNPkwbnUPGngkdLSX2AuXm3tdEhQyudRsJvfrQDC4U9i6IPnPFcWUoArOK1JqzJt/U LveL+EeEesQ== X-Google-Smtp-Source: AGHT+IHJpMStQdbI87H7mZrNhvKL+b8teS4AqGE8ZzRhRBNcgBy1VXdkO+hDnGRRzq80QUxiMt+8Xg== X-Received: by 2002:a17:90b:4c51:b0:305:2d27:7c9f with SMTP id 98e67ed59e1d1-30e2e612cbamr496394a91.16.1747155693516; Tue, 13 May 2025 10:01:33 -0700 (PDT) Received: from fedora (static-23-234-94-191.cust.tzulo.com. [23.234.94.191]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-30ad4d56976sm11104608a91.27.2025.05.13.10.01.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 May 2025 10:01:32 -0700 (PDT) From: Collin Funk To: =?utf-8?Q?P=C3=A1draig?= Brady Subject: Re: bug#78377: Cross-Compile - "src/make-prime-list: cannot execute: required file not found" In-Reply-To: <163cff0e-79dc-4379-a6c1-ced7bac9dc12@draigBrady.com> References: <163cff0e-79dc-4379-a6c1-ced7bac9dc12@draigBrady.com> Date: Tue, 13 May 2025 10:01:31 -0700 Message-ID: <878qn0savo.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 78377 Cc: 78377@debbugs.gnu.org, NR X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) P=C3=A1draig Brady writes: > The workaround isn't too onerous, > but yes it would be good to clean this up. Doesn't crc32 in Gnulib handle this using $(BUILD_CC)? I imagine it should be simple to do the same here. I can have a look later. Collin From debbugs-submit-bounces@debbugs.gnu.org Tue May 13 13:25:09 2025 Received: (at submit) by debbugs.gnu.org; 13 May 2025 17:25:10 +0000 Received: from localhost ([127.0.0.1]:32981 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uEtNN-0004BR-BQ for submit@debbugs.gnu.org; Tue, 13 May 2025 13:25:09 -0400 Received: from lists.gnu.org ([2001:470:142::17]:57288) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uEtNK-0004Ac-PX for submit@debbugs.gnu.org; Tue, 13 May 2025 13:25:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uEtN0-0002ko-Od for bug-coreutils@gnu.org; Tue, 13 May 2025 13:24:50 -0400 Received: from mail.cs.ucla.edu ([131.179.128.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uEtMy-0001hY-Qj for bug-coreutils@gnu.org; Tue, 13 May 2025 13:24:46 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 180593C011BD9 for ; Tue, 13 May 2025 10:24:43 -0700 (PDT) Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10032) with ESMTP id b7FfiyyU-P1D for ; Tue, 13 May 2025 10:24:43 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id E65163C010854 for ; Tue, 13 May 2025 10:24:42 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu E65163C010854 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1747157082; bh=Ts8+ogKBsEQB5q4nFSMvEZRedY3ropI4SjjDpyu9HXc=; h=Message-ID:Date:MIME-Version:To:From; b=k0jQcva+7+41l2uLae40EGsTjk+219fyAjt8dXnlAOThxdZkTT0NZD1lUZmK4ACiA UFVd36n7c7j6xDDKPAqzUp7pkGbTs9puwiMHSr3V/D1R7hYw+ATm2HrE5877kLOTZN IgnWUt56TIYUMdMqwNm5iAJXqqNKkIeAJVcQ3kdeOBF8NScvxgpLsBlCtjcXY9KRL/ glZLqa2RQS1/AqxFP+nHrjhquJjobz9XBiweUKzt2P5NDxTWzPt253zRsaps2E8vqw bJyfAHnt6wTkQUbHAtWwnIGc3/ilMkkXjz5tvEVO9f9kR/R9MFow1+CMqdCVviHTR1 9GhwKBiYsv9tA== X-Virus-Scanned: amavis at mail.cs.ucla.edu Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10026) with ESMTP id UoogpgF21rRd for ; Tue, 13 May 2025 10:24:42 -0700 (PDT) Received: from [192.168.254.12] (47-147-225-25.fdr01.snmn.ca.ip.frontiernet.net [47.147.225.25]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id CEEEE3C011BD9 for ; Tue, 13 May 2025 10:24:42 -0700 (PDT) Message-ID: <88f6ce51-5bc6-4746-ba6f-9168b3b25f3b@cs.ucla.edu> Date: Tue, 13 May 2025 10:24:42 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#78377: Cross-Compile - "src/make-prime-list: cannot execute: required file not found" To: bug-coreutils@gnu.org References: <163cff0e-79dc-4379-a6c1-ced7bac9dc12@draigBrady.com> <878qn0savo.fsf@gmail.com> Content-Language: en-US From: Paul Eggert Organization: UCLA Computer Science Department In-Reply-To: <878qn0savo.fsf@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=131.179.128.66; envelope-from=eggert@cs.ucla.edu; helo=mail.cs.ucla.edu X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) On 2025-05-13 10:01, Collin Funk wrote: > Doesn't crc32 in Gnulib handle this using $(BUILD_CC)? I imagine it > should be simple to do the same here. I can have a look later. Yes, that should work, so long as the build host isn't a Microsoft Windows platform that would require $(BUILD_EXEEXT). And that should be good enough; we don't need the full power of AX_PROG_CC_FOR_BUILD from the Autoconf Archive. From debbugs-submit-bounces@debbugs.gnu.org Fri May 16 01:36:44 2025 Received: (at 78377) by debbugs.gnu.org; 16 May 2025 05:36:44 +0000 Received: from localhost ([127.0.0.1]:60752 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uFnkR-0006tO-DJ for submit@debbugs.gnu.org; Fri, 16 May 2025 01:36:43 -0400 Received: from mail-pf1-x42f.google.com ([2607:f8b0:4864:20::42f]:48317) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uFnkN-0006sv-RR for 78377@debbugs.gnu.org; Fri, 16 May 2025 01:36:41 -0400 Received: by mail-pf1-x42f.google.com with SMTP id d2e1a72fcca58-74237a74f15so2423878b3a.0 for <78377@debbugs.gnu.org>; Thu, 15 May 2025 22:36:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1747373793; x=1747978593; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=ORngFpy9+e6tJ9XtCobYL4JeJGbcYU/ToHrvp+nY1hU=; b=aFAswWxDTCKnON2wE43SiYCU/9pihhELNty0KEF02WcDUIShRcC2R1VbzRWiB+j0cL LLR2clm1+6QlKNXB1QD94PO/m/j727ysE3FMzFRJtXrpVAt29m673fAc2ePsaAX2KHsL //kZJNgO399I2alYgYkqcuxGZT4qXBlVNjvoFPAHufvIxWEN7vyszr65cS7FEjhevQXB 8j3I/Q9cxKJubPVOdLjPBuqLOOym4oUGvEI6Z7nRUD2PGTNMpg2hl0sw8OJfgg+Dyg5t J+XX7CD54As0XtNpYBXkSmphSNxDISkACMxy2xQ8AuZ7POw+NAY4e5ZloW8I9cBLJ3JW LJ9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747373793; x=1747978593; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ORngFpy9+e6tJ9XtCobYL4JeJGbcYU/ToHrvp+nY1hU=; b=Pf5muLsr5/+rhdFKm72Lfzg4mbWMkKWcuYuTAOOY4CHOr35v+B3dRutZJQJRbM1sUt DE1ObB0G4o/UR68R9lPLwXia5i/YSanyjAz2IzsWlA3bnkfdJWDv9i+F2F8cXdM7w0pf TDUJ1t4aBLL104FfUxfrBjKvOKMA+dLzUKq1RC8xhmN9cuoIMIfqSRVd8BApDzO0F1K6 sgrt32q/DLhdFgglPw4vBl4sTLPnWXf81P45Zhs9+yEDjIsbGhgFzi3eAvVBKutseOKL UsGDJFNcHQXBh9Bc3m5GALwTZIcUUmpldxqjVpNP3khKSIVkWX5ByocTdWwCWK9U+U26 Pcdw== X-Gm-Message-State: AOJu0Yw/tJDz0CcBor+CbYQe7toK5fY2HB9XL0TEw7lR7CrT8A35y4Ba EjdM9rV8LumzG1AriBNkA2vIy7FYPRnOrLgXweSvmlaViJ3g4oerjRfrWbCijQ== X-Gm-Gg: ASbGnctaFvdxw5x73DfAEuYZrnrIOoFmpJxkeeYR+Ys4z1dlNWvWNX1yt4sYtkA7x0W yfG/1CoZ0nT/q1pYhgUpYRu20DbttYmualMo+VSjGkbbQTEb4qjDqFPSoADBalhayWYFZeHymg/ R88hXM1zz9s9flM/92R7QSKjxM2Y4twR8quzUx8PcxRyg4ZSlSnP2agoIPEQMLRS/MuPOwliz7f hNCz602OvuUFwDEI8pI/Tpl776gOiLtCDOR6fNrP/R6nZPp78GzL9OfCw13j1yMJvckoWNQvb3i 8HB4+KPH+oRJmIKHXQoHqoNRNqJtM7eXPZ/WeDfLQRtDqal23XcPTN0pgL60MQr/gYpfk84j4kg ZZKtm/VWSoQ== X-Google-Smtp-Source: AGHT+IFffc/QEYb4xxfUTVh7czKuy7NPGahJJ20HROxZYFMyJA5xFqQvV9jlZ30pNymzfwiJFDyXxw== X-Received: by 2002:a05:6a21:69b:b0:1f5:8622:5ed5 with SMTP id adf61e73a8af0-2162187a8a8mr3140994637.3.1747373793263; Thu, 15 May 2025 22:36:33 -0700 (PDT) Received: from fedora (static-23-234-94-191.cust.tzulo.com. [23.234.94.191]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-b26eb0a44e7sm809891a12.73.2025.05.15.22.36.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 May 2025 22:36:32 -0700 (PDT) From: Collin Funk To: Paul Eggert Subject: Re: bug#78377: Cross-Compile - "src/make-prime-list: cannot execute: required file not found" In-Reply-To: <88f6ce51-5bc6-4746-ba6f-9168b3b25f3b@cs.ucla.edu> References: <163cff0e-79dc-4379-a6c1-ced7bac9dc12@draigBrady.com> <878qn0savo.fsf@gmail.com> <88f6ce51-5bc6-4746-ba6f-9168b3b25f3b@cs.ucla.edu> Date: Thu, 15 May 2025 22:36:31 -0700 Message-ID: <87bjrtazhc.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 78377 Cc: 78377@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --=-=-= Content-Type: text/plain Hi Paul, Paul Eggert writes: > Yes, that should work, so long as the build host isn't a Microsoft > Windows platform that would require $(BUILD_EXEEXT). And that should > be good enough; we don't need the full power of AX_PROG_CC_FOR_BUILD > from the Autoconf Archive. Here is a patch that worked in an x86 docker container with an arm64 cross compiler. Can we just assume that crc will always be used and depend on build-cc.m4? I guess the more robust way to do things is to do the following in bootstrap.conf: bootstrap_post_import_hook () { $gnulib_tool --copy-file m4/build-cc.m4 } Like we do for tests/init.sh. Collin --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-build-allow-make-prime-list-to-build-when-cross-comp.patch >From 9dab53ad3f15e0482020253f3f87f7be03748d53 Mon Sep 17 00:00:00 2001 From: Collin Funk Date: Thu, 15 May 2025 22:02:26 -0700 Subject: [PATCH] build: allow make-prime-list to build when cross-compiling * src/local.mk: Compile the make-prime-list in a temporary directory using $(BUILD_CC) so it can be run even when $(CC) is a cross-compiler. Add some comments. (noinst_PROGRAMS): Remove src/make-prime-list. (src_make_prime_list_LDADD): Remove variable. * src/make-prime-list.c: Don't include config.h and attributes.h. Remove unnecessary #undefs (ATTRIBUTE_CONST, ATTRIBUTE_MALLOC): Define for the host compiler. --- src/local.mk | 33 ++++++++++++++++++--------------- src/make-prime-list.c | 22 ++++++++++++++-------- 2 files changed, 32 insertions(+), 23 deletions(-) diff --git a/src/local.mk b/src/local.mk index fd9dc81c2..833c714e1 100644 --- a/src/local.mk +++ b/src/local.mk @@ -36,8 +36,7 @@ pkglibexec_PROGRAMS = @pkglibexec_PROGRAMS@ # Needed by the testsuite. noinst_PROGRAMS = \ - src/getlimits \ - src/make-prime-list + src/getlimits noinst_HEADERS = \ src/chown.h \ @@ -150,11 +149,6 @@ src_ln_LDADD = $(LDADD) src_logname_LDADD = $(LDADD) src_ls_LDADD = $(LDADD) -# This must *not* depend on anything in lib/, since it is used to generate -# src/primes.h. If it depended on libcoreutils.a, that would pull all lib/*.c -# into BUILT_SOURCES. -src_make_prime_list_LDADD = - src_md5sum_LDADD = $(LDADD) src_mkdir_LDADD = $(LDADD) src_mkfifo_LDADD = $(LDADD) @@ -556,15 +550,24 @@ $(top_srcdir)/src/dircolors.h: src/dcgen src/dircolors.hin # and it needs to be built on a widest-known-int architecture, so it's # built only if absent. It is not cleaned because we don't want to # insist that maintainers must build on hosts that support the widest -# known ints (currently 128-bit). +# known ints (currently 128-bit). It is built in a temporary directory +# to avoid Gnulib and allow cross-compilers. The BUILD_* definitions +# come from Gnulib's gl_BUILD_CC which is invoked for the crc module. BUILT_SOURCES += $(top_srcdir)/src/primes.h -$(top_srcdir)/src/primes.h: - $(AM_V_at)${MKDIR_P} src - $(MAKE) src/make-prime-list$(EXEEXT) - $(AM_V_GEN)rm -f $@ $@-t - $(AM_V_at)src/make-prime-list$(EXEEXT) 5000 > $@-t - $(AM_V_at)chmod a-w $@-t - $(AM_V_at)mv $@-t $@ +$(top_srcdir)/src/primes.h: $(top_srcdir)/src/make-prime-list.c + $(AM_V_GEN)if test -n '$(BUILD_CC)'; then \ + $(MKDIR_P) $(top_srcdir)/src/primes-tmp \ + && (cd $(top_srcdir)/src/primes-tmp \ + && $(BUILD_CC) $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) \ + $(BUILD_LDFLAGS) -o make-prime-list$(EXEEXT) \ + $(abs_top_srcdir)/src/make-prime-list.c) \ + && rm -f $@ $@-t \ + && $(top_srcdir)/src/primes-tmp/make-prime-list$(EXEEXT) \ + 5000 > $@-t \ + && chmod a-w $@-t \ + && mv $@-t $@ \ + && rm -rf $(top_srcdir)/src/primes-tmp; \ + fi # false exits nonzero even with --help or --version. # test doesn't support --help or --version. diff --git a/src/make-prime-list.c b/src/make-prime-list.c index 35cf3627c..1b4c50f34 100644 --- a/src/make-prime-list.c +++ b/src/make-prime-list.c @@ -17,9 +17,6 @@ PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/. */ -#include - -#include #include #include @@ -29,11 +26,20 @@ this program. If not, see https://www.gnu.org/licenses/. */ #include #include -/* Deactivate "rpl_"-prefixed definitions of these symbols. */ -#undef fclose -#undef free -#undef malloc -#undef strerror +/* This program is compiled in a separate directory to avoid linking to Gnulib + which may be cross-compiled. Therefore, we also do not have config.h and + attribute.h. Just define what we need. */ +#if 2 < __GNUC__ + (95 <= __GNUC_MINOR__) +# define ATTRIBUTE_CONST __attribute__ ((__const__)) +#else +# define ATTRIBUTE_CONST +#endif +#if 3 < __GNUC__ +# define ATTRIBUTE_MALLOC __attribute__ ((__malloc__)) +#else +# define ATTRIBUTE_MALLOC +#endif + /* An unsigned type that is no narrower than 32 bits and no narrower than unsigned int. It's best to make it as wide as possible. -- 2.49.0 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Fri May 16 08:16:02 2025 Received: (at 78377) by debbugs.gnu.org; 16 May 2025 12:16:02 +0000 Received: from localhost ([127.0.0.1]:36426 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uFtyr-0007JC-Hl for submit@debbugs.gnu.org; Fri, 16 May 2025 08:16:02 -0400 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]:51460) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uFtyn-0007I7-Bx for 78377@debbugs.gnu.org; Fri, 16 May 2025 08:15:58 -0400 Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-3a206845eadso1312803f8f.3 for <78377@debbugs.gnu.org>; Fri, 16 May 2025 05:15:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1747397751; x=1748002551; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=C+6/w2y7JFjbs6XkTkVUKZzKgysWiEtidf8IJAQJ458=; b=DXUp/L27vk+JyL6lPWdLfrOOvWmTEepkFtHhd02tKAguVDpm88WWk9kJh9fjM4DaL3 A4qz9zGX9UooyBJhaC+bolmG0Gz30knJve05e3oU1bxKyTXXJPwvpH/XLxEXclmu5CYa esv6KhrUCy/nQs9ZzEBOvgKe7B6nwsWoXPKgrykG1V/krAvIDwbz0McL7q+PZ1970jVh wPygaMBImBR/wLvM6lhsxR/UuXq3GQd0oa/XHyraXQOl4Cozjrp6sjnCSvpx/cj0Ll2b +CYh4LMAfHzTGqUcTt5zL2wZYRIzVaTOPKaxqrRD5Z3A+AxxziY7QYjsftzL1X6HUfEz X9Bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747397751; x=1748002551; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=C+6/w2y7JFjbs6XkTkVUKZzKgysWiEtidf8IJAQJ458=; b=nJNiYYuifdXS+3J9h6EC/Vai+UfJvCLw2l5Ot4HurvYMALGCyjggpHGKzKHdWsmW8I agf+pP/mhwfrZdZK1hUhHfHAaF00d7tfR6So/JxJUPuIErdrlPDQ+i750sqKeTshyXIW GrjqGHxRrO/oH9Y8AFoHlqV4fHuCocGxrKGlWz/2tUA+EeiKzYu8Z7omwODihYQlekXm e2QU6cov+ZMIADknGDQSNb8LeK8avSDu1P1dbNLyIXXtZA+hMg2HmufQN/b4xGQnl7pt qfOVyj0v+w1sKtcLL1oaGNVlzCEnn5htl+OyodopxKw04JlZxWP7X5r+B3nl+WkfrJge ep+g== X-Gm-Message-State: AOJu0YyHLVA2qMxyCe+DdxIEpT0U+6RKmrn8a12+XE68m2XbuNvzDsNz VKkS76gm6zRKPU2GBL2cfnKsc8v0Nsy2bOqUJOsOUp561lZ8euJfqPSd X-Gm-Gg: ASbGnctktSFvF27L8K8MLozP0wLBOeXrMYjMwlqCVJyYnzAEt6vhVg/wEKZI+T1spsK 5lOA758ezjUojSOst+nZ4ys5JIHInI0Gl75ovlq8wjpcw+jn3VdrzROErzjRaRHiTy3H4xraOwq SiE5Zj73KSpYIRE1U6tmfPXyuK20HKyE3md98F1vr5ugksFxrxwDy8whfzF/onHhx9zcqzxVCe1 JK3gQ3NfvVf5+2YaZwT69Uy7MDlJoE6NpCNc58zlZug/1CZtygtV8OLp56w6aBFD/tKVL+0WAYl gAwHzMdDIVgT5NDJlPi1DUtbs4Gn58TFCPTs6daf5JH1ge6oAPVaEAfiZDbFpUME1DrMv1bMfZQ Rtt0QEwtDp7HEBVeQ8eVjfMxQ5kpHZK4= X-Google-Smtp-Source: AGHT+IFuwZ8fBm4DCq4IoO/P0ZD/VKCrk1s3GNxIwi0ZVWj/4rXt/qYVZoWoHYqxy88xLh5aUNttMA== X-Received: by 2002:a5d:64ee:0:b0:391:43cb:43fa with SMTP id ffacd0b85a97d-3a3601dbd53mr2539865f8f.51.1747397750464; Fri, 16 May 2025 05:15:50 -0700 (PDT) Received: from [192.168.1.31] (86-44-211-146-dynamic.agg2.lod.rsl-rtd.eircom.net. [86.44.211.146]) by smtp.googlemail.com with ESMTPSA id ffacd0b85a97d-3a35ca4d105sm2744002f8f.11.2025.05.16.05.15.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 16 May 2025 05:15:49 -0700 (PDT) Message-ID: Date: Fri, 16 May 2025 13:15:49 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Beta Subject: Re: bug#78377: Cross-Compile - "src/make-prime-list: cannot execute: required file not found" To: Collin Funk , Paul Eggert References: <163cff0e-79dc-4379-a6c1-ced7bac9dc12@draigBrady.com> <878qn0savo.fsf@gmail.com> <88f6ce51-5bc6-4746-ba6f-9168b3b25f3b@cs.ucla.edu> <87bjrtazhc.fsf@gmail.com> Content-Language: en-US From: =?UTF-8?Q?P=C3=A1draig_Brady?= In-Reply-To: <87bjrtazhc.fsf@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 78377 Cc: 78377@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On 16/05/2025 06:36, Collin Funk wrote: > Hi Paul, > > Paul Eggert writes: > >> Yes, that should work, so long as the build host isn't a Microsoft >> Windows platform that would require $(BUILD_EXEEXT). And that should >> be good enough; we don't need the full power of AX_PROG_CC_FOR_BUILD >> from the Autoconf Archive. > > Here is a patch that worked in an x86 docker container with an arm64 > cross compiler. > > Can we just assume that crc will always be used and depend on > build-cc.m4? I guess the more robust way to do things is to do the > following in bootstrap.conf: > > bootstrap_post_import_hook () > { > $gnulib_tool --copy-file m4/build-cc.m4 > } > > Like we do for tests/init.sh. Well given we also need to call gl_BUILD_CC perhaps the best way would be to have a separate build-cc gnulib module and have the crc module depend on that. I'm fine just depending on crc for now though, though I can see a build-cc gnulib module being generally useful. Talking about crc, given our crctab.c has expanded recently, it probably makes sense to generate that at build time also. The patch looks good, and I tested with: make BUILD_CC=clang BUILD_CFLAGS=-m32 V=1 I'll apply later and squash the following in to avoid `make syntax-check` failures, and remove a stale entry from .gitignore. thank you! Pádraig diff --git a/.gitignore b/.gitignore index bafeb2bc5..ba7344994 100644 --- a/.gitignore +++ b/.gitignore @@ -201,7 +201,6 @@ /src/fs-kernel-magic /src/fs-latest-magic.h /src/fs-magic -/src/make-prime-list /src/primes.h /src/single-binary.mk /src/version.c diff --git a/cfg.mk b/cfg.mk index e147d4ae7..fa032f52e 100644 --- a/cfg.mk +++ b/cfg.mk @@ -869,7 +869,7 @@ exclude_file_name_regexp--sc_system_h_headers = \ ^src/((system|copy|chown-core|find-mount-point)\.h|make-prime-list\.c)$$ _src := (false|lbracket|chown-(chgrp|chown) -_src := $(_src)|ls-(dir|ls|vdir)|tac-pipe|uname-(arch|uname)) +_src := $(_src)|ls-(dir|ls|vdir)|make-prime-list|tac-pipe|uname-(arch|uname)) _gl_src = (xdecto.max|cl-strtold) exclude_file_name_regexp--sc_require_config_h_first = \ (^lib/buffer-lcm\.c|gl/lib/$(_gl_src)\.c|src/$(_src)\.c)$$ @@ -921,8 +921,10 @@ exclude_file_name_regexp--sc_prohibit_operator_at_end_of_line = \ exclude_file_name_regexp--sc_error_message_uppercase = ^src/factor\.c$$ exclude_file_name_regexp--sc_prohibit_atoi_atof = ^src/make-prime-list\.c$$ -# Exception here as we don't want __attribute elided on non GCC -exclude_file_name_regexp--sc_prohibit-gl-attributes = ^src/libstdbuf\.c$$ +# Exception here as we don't want __attribute elided on non GCC for stdbuf +# and we don't want to depend on gnulib for make-prime-list +exclude_file_name_regexp--sc_prohibit-gl-attributes = \ + ^src/(make-prime-list|libstdbuf)\.c$$ exclude_file_name_regexp--sc_prohibit_uppercase_id_est = \.diff$$ exclude_file_name_regexp--sc_ensure_dblspace_after_dot_before_id_est = \.diff$$ diff --git a/src/local.mk b/src/local.mk index 833c714e1..68c7db63a 100644 --- a/src/local.mk +++ b/src/local.mk @@ -559,8 +559,8 @@ $(top_srcdir)/src/primes.h: $(top_srcdir)/src/make-prime-list.c $(MKDIR_P) $(top_srcdir)/src/primes-tmp \ && (cd $(top_srcdir)/src/primes-tmp \ && $(BUILD_CC) $(BUILD_CPPFLAGS) $(BUILD_CFLAGS) \ - $(BUILD_LDFLAGS) -o make-prime-list$(EXEEXT) \ - $(abs_top_srcdir)/src/make-prime-list.c) \ + $(BUILD_LDFLAGS) -o make-prime-list$(EXEEXT) \ + $(abs_top_srcdir)/src/make-prime-list.c) \ && rm -f $@ $@-t \ && $(top_srcdir)/src/primes-tmp/make-prime-list$(EXEEXT) \ 5000 > $@-t \ From debbugs-submit-bounces@debbugs.gnu.org Fri May 16 23:21:17 2025 Received: (at 78377) by debbugs.gnu.org; 17 May 2025 03:21:17 +0000 Received: from localhost ([127.0.0.1]:43261 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uG86v-0000We-2C for submit@debbugs.gnu.org; Fri, 16 May 2025 23:21:17 -0400 Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]:51346) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uG86q-0000W4-Uh for 78377@debbugs.gnu.org; Fri, 16 May 2025 23:21:14 -0400 Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-7370a2d1981so2314181b3a.2 for <78377@debbugs.gnu.org>; Fri, 16 May 2025 20:21:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1747452066; x=1748056866; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=LKGowVSAOasQS3N2eRVYZlsZBhEjtib/BYf19oOsSlE=; b=SDpm06DlZFlhIjhVvYL0rtbBF4i63HOTWhQr8YacIXP9lWgx25ISN6hISd/3Ev6fsz A27tTslDrragGA74jWZahmDtYHOBzYHgdBihjuwvFPUti8uj6b2Zp2/aSz4ZCZpAY0I9 sWhaeWVCIgd3SrrZ9ekP1k6EkSySMlOEJKIFIuYagvKnKARnrwyW1julALmYO57nk4rI NywCt+1G8ragqp9OEcHqd+H2TNEx7Y5mA0/Av1c1Y5QJdyOPLq+wvmgZS3uWRq4/s6wq AQZIghoqOyEiG9pFijEFFhmqis2MWyEcf2a7XvoQqdAs7bpkMNjAjCBAw92TEvq+ygFP 2ALQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747452066; x=1748056866; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=LKGowVSAOasQS3N2eRVYZlsZBhEjtib/BYf19oOsSlE=; b=hdxYcOWxZUa4igE0eiaCacWXLKmtOIpci4Poy0tUvKSAoReFKgWyPC4dpxfgAZ+3ew lrXHB8PVLMIvHA9xoIoVymEpS5GkI+Q44rqzbI4nivuCBcMXXcx0YYpO7xTowcCVvf1p L13/d6CeM8SoIUgiOoB+nyf0fE24sBuPOUE2cq8gRNz3gPvbTFaJw8sBkSg+5YrxAD27 bdze7VbU6HP5aRDBq5EUYtCfyLjbLZ/fAWnAZpVnXCzJGr8MITzkF0Et9NtKJZUTwqLR V2/xcHTWWEvfbqWc/xoDfGm5FZdd6NvazpbrvvW+znmju4wn0MxY56vKuNn8RNZnNKNr 0ALA== X-Forwarded-Encrypted: i=1; AJvYcCXyI7hlQYEv1FQgA5TYxxDZkL4i0FOtWFUfooZgOhh1nvZnxi0+eFZSLJj8mXU7jhf2ue7x6A==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yz5gOMHLgnls1h7g+3oNwtd31KfcZ9mKCwevJQIzDgXLB+Fu1mz k5kxbspGrvC/bIfhTFbDXiA7EckUWNsZmsPomkAA4sIlsLph4tD/ZLxrzzMieQ== X-Gm-Gg: ASbGncvb0694XSCsVL04K7G+EQw1UePOR0nf6po+ey3RfwnOz3wfj2nLaGU3E6Dg35c i40mpSgRofAnfo4m5cUI3aEJlZmAlajPFDJXDNEPC+fn94mTtpG82zoH6+ZHy+B82Xok1yhw23/ SqE01sdke4gFLHY8u5przlny57zLBcQkhOFySz0y6c6/89qB9Vcr8p/cKWh//TbMz58zOrbQVrO vTxOpG6yaBahr2+Gn7I/wScTP6BCcsQNRTx3LlH89tmPel0CiX4i4HZRvrqEpmnZy+W+qzk888T Cu3X44UwBznZoA8vw1Gol3G9PVfX0TdWot7a6Trc8X4= X-Google-Smtp-Source: AGHT+IGNPf9AXRWrUoNOibIOOR3Tc4nlYXXLTHFU7K/JdfVQ1shElImGh7VA28QjR55nb34qCM3SKA== X-Received: by 2002:a05:6a00:3e0b:b0:740:3830:4119 with SMTP id d2e1a72fcca58-742acd507b5mr6957276b3a.18.1747452066321; Fri, 16 May 2025 20:21:06 -0700 (PDT) Received: from fedora ([2601:646:8081:3770::eef5]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-742a970e1a3sm2226004b3a.71.2025.05.16.20.21.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 May 2025 20:21:05 -0700 (PDT) From: Collin Funk To: =?utf-8?Q?P=C3=A1draig?= Brady Subject: Re: bug#78377: Cross-Compile - "src/make-prime-list: cannot execute: required file not found" In-Reply-To: References: <163cff0e-79dc-4379-a6c1-ced7bac9dc12@draigBrady.com> <878qn0savo.fsf@gmail.com> <88f6ce51-5bc6-4746-ba6f-9168b3b25f3b@cs.ucla.edu> <87bjrtazhc.fsf@gmail.com> Date: Fri, 16 May 2025 20:21:04 -0700 Message-ID: <878qmvapnj.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 78377 Cc: 78377@debbugs.gnu.org, Paul Eggert X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Hi P=C3=A1draig, P=C3=A1draig Brady writes: > Well given we also need to call gl_BUILD_CC perhaps the > best way would be to have a separate build-cc gnulib module > and have the crc module depend on that. I'm fine just depending > on crc for now though, though I can see a build-cc gnulib module > being generally useful. Yeah, that sounds better. But since it seems Coreutils is the only one using it I am not in a rush to do it. :) > Talking about crc, given our crctab.c has expanded recently, > it probably makes sense to generate that at build time also. I can have a look at that. Seems fairly simple. > The patch looks good, and I tested with: > make BUILD_CC=3Dclang BUILD_CFLAGS=3D-m32 V=3D1 > > I'll apply later and squash the following in > to avoid `make syntax-check` failures, > and remove a stale entry from .gitignore. Thanks! I forgot to run 'make syntax-check'. Collin From debbugs-submit-bounces@debbugs.gnu.org Sat May 17 03:52:00 2025 Received: (at control) by debbugs.gnu.org; 17 May 2025 07:52:00 +0000 Received: from localhost ([127.0.0.1]:45017 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uGCKt-0008BQ-W7 for submit@debbugs.gnu.org; Sat, 17 May 2025 03:52:00 -0400 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]:46228) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uGCKr-0008B8-PB for control@debbugs.gnu.org; Sat, 17 May 2025 03:51:58 -0400 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-441d1ed82dbso27360255e9.0 for ; Sat, 17 May 2025 00:51:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1747468310; x=1748073110; darn=debbugs.gnu.org; h=content-transfer-encoding:from:to:content-language:user-agent :mime-version:date:message-id:sender:from:to:cc:subject:date :message-id:reply-to; bh=LUZin0fJSsenrHHVjgVrMvZ9e4jsF0VdEFPWsDK++SU=; b=X4RsOIJJ6cGkWMXQqBh+AVWIxhJf/fcm0NOsAp++GPtDqrId6gKPQMXysZLh949anT iZ2OTNlD4/CEiHjP5vA7bljLOnGfR896VmUIDq4GGOb98IbBqDCB+yMCQsjctPbZnvGF WJIsv7OCPnBQWoR4paXM+aBVETqDYfJdlArTuudMtxOu3dKMU+mdkz8mXAGLskCZ3jUk 6VDQ4FRwsMR5esAptqajJLG7ehYZOJ0x63VgiHMj8M17Kuyb7wJKzK5IULjklou6M2hQ EPgaipIqTJTOdRUcU2wyBf8g+UoyFVnDc3P52hEEu+5DZZI2dPCsq7Bw6GjMIAa8jAwr uQBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747468310; x=1748073110; h=content-transfer-encoding:from:to:content-language:user-agent :mime-version:date:message-id:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LUZin0fJSsenrHHVjgVrMvZ9e4jsF0VdEFPWsDK++SU=; b=nx924lrpP/usptKSN+HpYWT2c/jHppfnWYdR1dWQovmA9/40ouu1uahJ+kQfNqv/9c Jdpf92w9+0A6dcTMBdKbbwo3FV2ch1gCMFrQAuHr32hTthKnYYoP3mOXNsgdnMWUqvQz tg4e+sK0T4g9imzX6Ja3R0iuYt4912lFtiC2F/SG9bNYUpVV3hGN5jr0tmSBSWYgqyIa RymBzlS3ZGq6WPE2OvyPN6oMMrGthyZ2HLO7GaAe7mxHgktmncUFqzLoEJsRMxEKiduZ 8rV3dwrMAJzw6rrMwD8WZj3byTqcBUnxcZKvw8eboH4865VvvCUMTbGxAruS1FYQ2IWL sE0Q== X-Gm-Message-State: AOJu0Yw6Y4SGhQjn5N/6OsxG9XnNQS9D8kUSWFX51cg4928H9e7/zron CXFs4n2s6HvQyLdianQdB4gOq2ebEYUJLomsKWXxNLnr4MWtYNVuNVNE0XyUzg== X-Gm-Gg: ASbGnctCSxcJRfoqO7H5gg46cpWrAtYUOEmZK3H1AbSJV9K0l19x3mYwPTRiWx2CmIG uxOrYSt9kyZAxF2Y72om/dbSaqvGz2UmeTGaVrtRmBiVXqYUYLP9cCqrLd2ryrg7ODUxfAebxn7 OuWDCYAqQkqDdTOTRlUCNwu4iYntthtv3JjRpMVwT1p2L7hycBhRY5cka5z2jSn12y7ftK6/FMT MeXPLm5kkUASwEVTa5opXNHqbhJ95bqxMjWq49UIls3C4SRG6CjF2jVC2Z2G1DHANI9+F9ipeqq lMAUQt4XZFuXgg+NSWxyj4Ke+kdJ8fXR8oQbbERJUgeFqCvI8surgvxGJLjzAv9yZkcPANofJvS zPMbaOLoyzKhTKdKXsR6AahkMETaUu5xuF901JPH8Xw== X-Google-Smtp-Source: AGHT+IFhF9npXmlInevJuKj6eP/f/99UNIfeqmLh/pufEgyfOKk3Ttnj8ttjOnJcB/NmxH9jIw8EqQ== X-Received: by 2002:a05:6000:1846:b0:38f:4d20:4a17 with SMTP id ffacd0b85a97d-3a35c8218b5mr5440517f8f.13.1747468310105; Sat, 17 May 2025 00:51:50 -0700 (PDT) Received: from [192.168.1.31] (86-44-211-146-dynamic.agg2.lod.rsl-rtd.eircom.net. [86.44.211.146]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-442fd59ab3esm62605915e9.40.2025.05.17.00.51.48 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 17 May 2025 00:51:49 -0700 (PDT) Message-ID: <1cf4942f-4cdf-431b-8430-3cf6160d7467@draigBrady.com> Date: Sat, 17 May 2025 08:51:48 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Beta Content-Language: en-US To: GNU bug tracker automated control server From: =?UTF-8?Q?P=C3=A1draig_Brady?= Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: unarchive 12741 forcemerge 12741 78377 close 12741 stop Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (pixelbeat[at]gmail.com) -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:32e listed in] [list.dnswl.org] 0.0 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) unarchive 12741 forcemerge 12741 78377 close 12741 stop From debbugs-submit-bounces@debbugs.gnu.org Sat May 17 04:24:18 2025 Received: (at 78377) by debbugs.gnu.org; 17 May 2025 08:24:18 +0000 Received: from localhost ([127.0.0.1]:45328 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uGCq9-00086X-JT for submit@debbugs.gnu.org; Sat, 17 May 2025 04:24:18 -0400 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]:44213) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uGCq7-000869-6P for 78377@debbugs.gnu.org; Sat, 17 May 2025 04:24:15 -0400 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-442ec3ce724so22638755e9.0 for <78377@debbugs.gnu.org>; Sat, 17 May 2025 01:24:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1747470249; x=1748075049; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=RqrUfh4+psJ5IWIpJB5hhjmE1Mhe3gRbawi8/Gfuq0E=; b=BFgQcTva/qv+TJH/zfavQTkepue+2B7xmedJQWSg8EjiQNOMkzcbj6vlOBN78/lmmt wWmuAyY/u+h8jKfvwl79BH2fxilbjDllBPPvLs/4lbv7A942fFCfr3KO1gaa4LR6jN6m LHkCyOfobbu8ICUQMUDQxv9FjL8H9QgR/1lQVM0tm+0L0xoVISamsw8XZ1N/2G3YIfP9 emRwJTSA6A/Byvl5dUcMUJUhhgbw7at/opxyA4jYjCTXW2MjhZdDuwOS37RKQngOzb0A uY3eOILGOI65H29HXh53eG++ELuKG4DsDQu/DbIjXdLqN61yYt1GahUlEznQy00J5bbn OOQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747470249; x=1748075049; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=RqrUfh4+psJ5IWIpJB5hhjmE1Mhe3gRbawi8/Gfuq0E=; b=mg7/q4yfxXZf2hxQhunHg2isO6Geu8ujpLevjJiLMHsESU8DF83iDfl22DegKZqIBo pDH/+oV8dSJn02FUnmn5B1RoS7PcFCT5WeXwbWadonq3D9QOpkMjfiPTsc46UfOF/AOd RL+I+qzn5Qd6YygbIGEdkdKTmaCFW5gEcab3JNaCdnI87eX6nL3YA10NI3MVg8i1QGFD mxxZrpspipKO/iQtap1djslUejIvd/tFU3Ovx15mFlpctogSCWsKZ6S31Jezszpkz4kX EJRSwYo3sKWqqY4FP+6n5OwXK890fnjj0WzBo70r72Jq5uL82gJ3wTJlspMRa4Q1P6Uc hi2Q== X-Gm-Message-State: AOJu0YzigAS5XGUN8EcdT4ETl5x+9m+8hNkwldzVbQWhgHWWq2jx+EbF 2nLlzBQZuFjW1gjL0ouHBreaYzvtQ0xJvHQyEOYZaIJya15zr/nd9AH+ggJlsw== X-Gm-Gg: ASbGncuzbdc8BqTR/tq02zvxnyB8+d/G3DBazwQP+XVtDn316r3uo70D2I4oPmUdOxB zosoLLWhCDy9uH+GeNRL343wyRhBRcHXb7E6GBiV11JG9mmYh137i2DSGIPPf2eqRogjlGXMEqG PJ+ZXMAUwOV/bTRtD/xIvM8zze5PcDQCJSPq9UOTm0dFAKQznfu1H+IW4pSM11IvhDn07HGR1dV 6xKcgDooXIVBEmHyGQIJcmb3sKK7wKHNqojbmdRX4EPFMCyHciuhDJiAWwy9aE8q3aidj7MVrqn DPJF1SYvvcOnypuPSjrhHM8rf+89zgeX6vv1L938JxkxwyAvYlui0bnuQ3OPenDUd2Dl5Ewrm6Z 7SW4+i9aFoLnvlTqFkw9fPU0irXKwoKw= X-Google-Smtp-Source: AGHT+IGj5PGs5bgs2ZnF+uHFPRsPz4ewpikJyti4hFqze4DNHP1pUWrxT/ShbdE6i35zQs2aMXx4ig== X-Received: by 2002:a05:600c:1d8d:b0:43c:fa0e:4713 with SMTP id 5b1f17b1804b1-442fd60b489mr70053995e9.2.1747470248675; Sat, 17 May 2025 01:24:08 -0700 (PDT) Received: from [192.168.1.31] (86-44-211-146-dynamic.agg2.lod.rsl-rtd.eircom.net. [86.44.211.146]) by smtp.googlemail.com with ESMTPSA id ffacd0b85a97d-3a35ca62b10sm5428279f8f.45.2025.05.17.01.24.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 17 May 2025 01:24:08 -0700 (PDT) Message-ID: <61fd99ee-0840-4864-89bb-43e5c94dd1dd@draigBrady.com> Date: Sat, 17 May 2025 09:24:07 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Beta Subject: Re: bug#78377: Cross-Compile - "src/make-prime-list: cannot execute: required file not found" To: Collin Funk References: <163cff0e-79dc-4379-a6c1-ced7bac9dc12@draigBrady.com> <878qn0savo.fsf@gmail.com> <88f6ce51-5bc6-4746-ba6f-9168b3b25f3b@cs.ucla.edu> <87bjrtazhc.fsf@gmail.com> <878qmvapnj.fsf@gmail.com> Content-Language: en-US From: =?UTF-8?Q?P=C3=A1draig_Brady?= In-Reply-To: <878qmvapnj.fsf@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 78377 Cc: 78377@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On 17/05/2025 04:21, Collin Funk wrote: > Hi Pádraig, > > Pádraig Brady writes: > >> Well given we also need to call gl_BUILD_CC perhaps the >> best way would be to have a separate build-cc gnulib module >> and have the crc module depend on that. I'm fine just depending >> on crc for now though, though I can see a build-cc gnulib module >> being generally useful. > > Yeah, that sounds better. But since it seems Coreutils is the only one > using it I am not in a rush to do it. :) > >> Talking about crc, given our crctab.c has expanded recently, >> it probably makes sense to generate that at build time also. > > I can have a look at that. Seems fairly simple. Great, much appreciated. I adjusted the commit message to mention this was only an issue when building from git, as we distribute primes.h in tarballs. I also mentioned this bug number in the commit message. Pushed. Marking as done. thanks! Pádraig. From unknown Sun Jun 15 08:42:50 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 14 Jun 2025 11:24:14 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator