From: Richard Palethorpe <rpalethorpe@suse.com>
To: ltp@lists.linux.it
Subject: [LTP] [RFC] [PATCH] lib32: Add support for linking 32bit programs on 64bit
Date: Wed, 29 Mar 2017 14:48:00 +0200 [thread overview]
Message-ID: <20170329144800.3258e1a5@linux-v3j5> (raw)
In-Reply-To: <20170328100114.29730-1-chrubis@suse.cz>
Hi Metan,
On Tue, 28 Mar 2017 12:01:14 +0200
"Cyril Hrubis" <chrubis@suse.cz> wrote:
> This is proof of concept for building 32bit testcases on 64bit platform.
>
> What we do is:
>
> * Configure test if compiler supports -m32
> TODO: Does 32bit compiler accept -m32?
> If so, we should fail the test on 32bit
> platforms by default.
>
Yes it does accept -m32. I think the best thing to do is call
tst_kernelbits(), as you suggested, at runtime anyway, as someone might be
running a 32bit compiler on a 64bit kernel and/or cross compiling.
Also it turns out that I am using some C syntax which is not accepted by GCC
4.3.4. This is annoying considering the tests compile fine with -std=C99 on
GCC 6.
Thank you,
Richard.
next prev parent reply other threads:[~2017-03-29 12:48 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-28 10:01 [LTP] [RFC] [PATCH] lib32: Add support for linking 32bit programs on 64bit Cyril Hrubis
2017-03-28 14:55 ` Richard Palethorpe
2017-03-28 15:33 ` Cyril Hrubis
2017-03-28 15:46 ` Cyril Hrubis
2017-03-29 9:37 ` Richard Palethorpe
2017-03-29 8:36 ` Jan Stancek
2017-03-29 9:12 ` Cyril Hrubis
2017-03-29 12:48 ` Richard Palethorpe [this message]
2017-03-29 14:56 ` Richard Palethorpe
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=20170329144800.3258e1a5@linux-v3j5 \
--to=rpalethorpe@suse.com \
--cc=ltp@lists.linux.it \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox