From: Marius Bakke <mbakke@fastmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: 26294@debbugs.gnu.org
Subject: bug#26294: [PATCH] gnu: rocksdb: Disable tests on 32-bit systems.
Date: Mon, 17 Apr 2017 23:34:56 +0200 [thread overview]
Message-ID: <871ssqlnun.fsf@fastmail.com> (raw)
In-Reply-To: <87zifeoh8x.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 2499 bytes --]
Ludovic Courtès <ludo@gnu.org> writes:
> Hello,
>
> Marius Bakke <mbakke@fastmail.com> skribis:
>
>> * gnu/packages/databases.scm (rocksdb)[arguments]: Make #:tests? conditional.
>> Delete unnecessary 'build' phase.
>> ---
>> gnu/packages/databases.scm | 12 +++++++++++-
>> 1 file changed, 11 insertions(+), 1 deletion(-)
>>
>> diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
>> index b87e8a210..e73635910 100644
>> --- a/gnu/packages/databases.scm
>> +++ b/gnu/packages/databases.scm
>> @@ -533,12 +533,20 @@ types are supported, as is encryption.")
>> #t))))
>> (build-system gnu-build-system)
>> (arguments
>> - '(#:make-flags (list "CC=gcc"
>> + `(#:make-flags (list "CC=gcc"
>> ;; Make the resulting library position-independent so the
>> ;; static version can be included in shared objects.
>> "EXTRA_CXXFLAGS=-fPIC"
>> (string-append "INSTALL_PATH="
>> (assoc-ref %outputs "out")))
>> + ;; Many tests fail on 32-bit platforms. There are multiple reports about
>> + ;; this upstream, but it's not going to be supported any time soon.
>> + #:tests? (let ((system ,(or (%current-target-system)
>> + (%current-system)))
>> + (supported-systems '("x86_64-linux" "aarch64-linux")))
>> + (if (member system supported-systems)
>> + #t
>> + #f))
>
> This doesn’t work because (%current-target-system) is a GNU triplet,
> like “arm-linux-gnueabihf”, whereas (%current-system) is a “system
> type”, like “armhf-linux”.
>
> Instead you should use ‘string-prefix?’ or similar.
>
> Other than that, I think it should go in!
Well, I actually tried this recently (also disabling the individual
tests, which was a rabbit hole that ultimately gave an inexplicable
error).
Anyway, when building for i686-linux on x86_64, the compiler appears to
hit a never-ending loop at the linking stage! I'm pretty sure this was
not the case before the core-updates merge (when I tested this), so I
wonder if it's a case of
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=26497 .
To be continued, but now it would just cause the build to take up a CPU
core until it times out, rather than failing early..
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
next prev parent reply other threads:[~2017-04-17 21:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-29 9:42 bug#26294: [PATCH] gnu: rocksdb: Disable tests on 32-bit systems Marius Bakke
2017-03-31 19:00 ` Kei Kebreau
2017-04-17 21:29 ` Ludovic Courtès
2017-04-17 21:34 ` Marius Bakke [this message]
2017-05-12 13:27 ` Marius Bakke
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=871ssqlnun.fsf@fastmail.com \
--to=mbakke@fastmail.com \
--cc=26294@debbugs.gnu.org \
--cc=ludo@gnu.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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.