From debbugs-submit-bounces@debbugs.gnu.org Fri May 17 09:44:15 2019 Received: (at submit) by debbugs.gnu.org; 17 May 2019 13:44:15 +0000 Received: from localhost ([127.0.0.1]:57804 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hRd9i-0004iK-QL for submit@debbugs.gnu.org; Fri, 17 May 2019 09:44:15 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48729) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hRd9h-0004i9-Oc for submit@debbugs.gnu.org; Fri, 17 May 2019 09:44:14 -0400 Received: from lists.gnu.org ([209.51.188.17]:44437) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hRd9c-0007R3-ID for submit@debbugs.gnu.org; Fri, 17 May 2019 09:44:08 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34877) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRd9b-0005vz-7e for bug-guix@gnu.org; Fri, 17 May 2019 09:44:08 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_40, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hRd9a-0007Mp-2i for bug-guix@gnu.org; Fri, 17 May 2019 09:44:07 -0400 Received: from mail-pf1-x42f.google.com ([2607:f8b0:4864:20::42f]:45220) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hRd9Z-0007Lt-Qi for bug-guix@gnu.org; Fri, 17 May 2019 09:44:06 -0400 Received: by mail-pf1-x42f.google.com with SMTP id s11so3702920pfm.12 for ; Fri, 17 May 2019 06:44:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:message-id:date:user-agent:mime-version :content-language; bh=s0crNfqzSTGSM9zVOcgUyUYyIsS3rcnCE70cQMYlJuQ=; b=nKsLULw6CGH3hK/mmsKuY2falSekkHg11UNy80h3Fvr6LdqvAWCvAc4KqEke44TRtB JuaY73sFcf5zvuuxH+JVBS4MNkeOhK9sBYCcoelrp7B0Q8zoYtSnmTWXk+2w5bGrv0/E 7GSFFNjbuQ9M+4ONXFqnE1lzYfbUfX/BKCPTr59F/TgjDNcxTQ6Bkvr0yh2wj81+bYnY 3yG3aaAEjUx8ym5Gb52Zci2W74yFgjm72gs6wEdfuDLTWzYjL3+K4+vX/if6B7P49ox2 usyaeIKMY0rrkr3hDm5KCma+tD3ykw6O+OgXloWi1L2OxVdsCKz4ZtiaE1ZwlB3aswQG vleQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:message-id:date:user-agent :mime-version:content-language; bh=s0crNfqzSTGSM9zVOcgUyUYyIsS3rcnCE70cQMYlJuQ=; b=r34/4i99MPW3Ya30SlSmXzO+RvMuZd5hL+qFJPrLVneZOtzK4lHodwSDjBY5epTNkB gayQUOXV1WyLWYdxh9N+stQ5jv+Tn+Z0QG5nSpvY8CH4nlkiX2dRkUMRcVZrE3WdvTF6 xiN77y+Xgw/jnyfv/1USuVN7GzBGtmemXEZnliQucRMBL1VCA4dl0GMOg75yZ6bvWgXt /tihjb9znuX7IgqUbflK8Fmf7WGMUZvLWAiDF17RhFWKVDqyifWKggKR+R9SoDiAesNY FwZycUNf9u5o51BMTE52OlH/yEIrmFrXpJyr562YqiNriKx8RX0fgJzmaBF52Zrhi50I 7n5Q== X-Gm-Message-State: APjAAAWP9/lkchEZGBiZStp1GbxgESZtZBfDWBvberEWboce8Vn9HLnp WDBT6qt8QFm6ydMiZ9mE/SbZ7EBM X-Google-Smtp-Source: APXvYqwiSN2qM80OkNK+9B28vk/1dlpm4E9aFJKqBRkyUvsETAEBUrYK7MSv8GN+dl3YdaZ9WM+M0w== X-Received: by 2002:a62:5b81:: with SMTP id p123mr62733323pfb.158.1558100644289; Fri, 17 May 2019 06:44:04 -0700 (PDT) Received: from wn.lant.com.tw ([106.104.151.171]) by smtp.gmail.com with ESMTPSA id t5sm9900079pgn.80.2019.05.17.06.44.02 for (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Fri, 17 May 2019 06:44:03 -0700 (PDT) From: Ting-Wei Lan Subject: Test gremlin.scm fails on foreign distributions To: bug-guix@gnu.org Message-ID: <3df718af-5469-4f1e-6e60-ef0d93673616@gmail.com> Date: Fri, 17 May 2019 21:44:01 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------1610438DD40A35E732B72825" Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::42f X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -1.1 (-) 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: -2.1 (--) This is a multi-part message in MIME format. --------------1610438DD40A35E732B72825 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit There are two failed tests in tests/gremlin.scm. The first one is 'elf-dynamic-info-needed, executable'. It seems that it assumes the guile executable always links to libguile-2.2, libgc, libunistring, libffi. However, on Fedora 30, /usr/bin/guile2.2 only links to libguile-2.2, causing the test to fail because it cannot find libgc, libunistring, libffi in NEEDED. $ readelf -d /usr/bin/guile2.2 Dynamic section at offset 0x2d78 contains 28 entries:   Tag        Type                         Name/Value  0x0000000000000001 (NEEDED)             Shared library: [libguile-2.2.so.1]  0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]  0x000000000000000c (INIT)               0x1000  0x000000000000000d (FINI)               0x13b8  0x0000000000000019 (INIT_ARRAY)         0x3d60  0x000000000000001b (INIT_ARRAYSZ)       8 (bytes)  0x000000000000001a (FINI_ARRAY)         0x3d68  0x000000000000001c (FINI_ARRAYSZ)       8 (bytes)  0x000000006ffffef5 (GNU_HASH)           0x368  0x0000000000000005 (STRTAB)             0x5a0  0x0000000000000006 (SYMTAB)             0x3a8  0x000000000000000a (STRSZ)              339 (bytes)  0x000000000000000b (SYMENT)             24 (bytes)  0x0000000000000015 (DEBUG)              0x0  0x0000000000000003 (PLTGOT)             0x3f78  0x0000000000000002 (PLTRELSZ)           216 (bytes)  0x0000000000000014 (PLTREL)             RELA  0x0000000000000017 (JMPREL)             0x870  0x0000000000000007 (RELA)               0x780  0x0000000000000008 (RELASZ)             240 (bytes)  0x0000000000000009 (RELAENT)            24 (bytes)  0x0000000000000018 (BIND_NOW)             0x000000006ffffffb (FLAGS_1)            Flags: NOW PIE  0x000000006ffffffe (VERNEED)            0x720  0x000000006fffffff (VERNEEDNUM)         2  0x000000006ffffff0 (VERSYM)             0x6f4  0x000000006ffffff9 (RELACOUNT)          3  0x0000000000000000 (NULL)               0x0 I guess it may be related to the use of -Wl,--as-needed. The default LDFLAGS for building packages includes -Wl,--as-needed since Fedora 30. The second one is 'strip-runpath'. It seems that the reason is that strip-runpath expects the executable to have RUNPATH because -Wl,-rpath is used during linking. However, on systems which don't configure ld to use --enable-new-dtags by default, RPATH is used instead of RUNPATH, causing strip-runpath to fail. If I add '-Wl,--enable-new-dtags' to the C compiler command line used by the test, the test passes. expected-value: "hello\n" actual-value: #f actual-error: + (wrong-type-arg +   "struct_vtable" +   "Wrong type argument in position ~A (expecting ~A): ~S" +   (1 "struct" #f) +   (#f)) result: FAIL I attached a patch which makes the tests pass on Fedora 30, but I am not sure whether it is the correct way to fix things. --------------1610438DD40A35E732B72825 Content-Type: text/x-patch; name="guix-1.0.0-tests-gremlin.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="guix-1.0.0-tests-gremlin.patch" diff --git a/tests/gremlin.scm b/tests/gremlin.scm index 77a5dc1998..b0bb7a8e49 100644 --- a/tests/gremlin.scm +++ b/tests/gremlin.scm @@ -52,7 +52,7 @@ (or (not dyninfo) ;static executable (lset<= string=? (list (string-append "libguile-" (effective-version)) - "libgc" "libunistring" "libffi") + "libc") (map (lambda (lib) (string-take lib (string-contains lib ".so"))) (elf-dynamic-info-needed dyninfo)))))) @@ -79,7 +79,7 @@ (lambda (port) (display "int main () { puts(\"hello\"); }" port))) (invoke c-compiler "t.c" - "-Wl,-rpath=/foo" "-Wl,-rpath=/bar") + "-Wl,--enable-new-dtags" "-Wl,-rpath=/foo" "-Wl,-rpath=/bar") (let* ((dyninfo (elf-dynamic-info (parse-elf (call-with-input-file "a.out" get-bytevector-all)))) --------------1610438DD40A35E732B72825-- From debbugs-submit-bounces@debbugs.gnu.org Sat May 18 06:28:41 2019 Received: (at 35775-done) by debbugs.gnu.org; 18 May 2019 10:28:42 +0000 Received: from localhost ([127.0.0.1]:59874 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hRwa1-00064Z-Jq for submit@debbugs.gnu.org; Sat, 18 May 2019 06:28:41 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35563) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hRwa0-00064M-JP for 35775-done@debbugs.gnu.org; Sat, 18 May 2019 06:28:40 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:44516) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRwZv-0002PG-F9; Sat, 18 May 2019 06:28:35 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=33850 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hRwZt-0000bd-Kb; Sat, 18 May 2019 06:28:34 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Ting-Wei Lan Subject: Re: bug#35775: Test gremlin.scm fails on foreign distributions References: <3df718af-5469-4f1e-6e60-ef0d93673616@gmail.com> Date: Sat, 18 May 2019 12:28:31 +0200 In-Reply-To: <3df718af-5469-4f1e-6e60-ef0d93673616@gmail.com> (Ting-Wei Lan's message of "Fri, 17 May 2019 21:44:01 +0800") Message-ID: <87y334vyy8.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 35775-done Cc: 35775-done@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: -3.3 (---) Ting-Wei Lan skribis: > I attached a patch which makes the tests pass on Fedora 30, but I am not > sure whether it is the correct way to fix things. Great analysis and perfect patch. :-) I pushed it on your behalf as 6b97415996583b15a97dad8254f610275353e913, thank you! Ludo=E2=80=99. From unknown Tue Sep 09 13:42:41 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, 15 Jun 2019 11:24:05 +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