Linux Test Project
 help / color / mirror / Atom feed
From: Jan Stancek <jstancek@redhat.com>
To: ltp@lists.linux.it
Subject: [LTP] {get|set}_thread_area issue on ARM
Date: Fri, 4 Dec 2015 04:20:37 -0500 (EST)	[thread overview]
Message-ID: <1947123407.23593898.1449220837874.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <20151204034711.GA27222@yury-N73SV>





----- Original Message -----
> From: "Yury Norov" <ynorov@caviumnetworks.com>
> To: ltp@lists.linux.it
> Cc: "David Howells" <dhowells@redhat.com>
> Sent: Friday, 4 December, 2015 4:47:11 AM
> Subject: [LTP] {get|set}_thread_area issue on ARM
> 
> Hi all,
> 
> I just tried build ltp for arm, and one (maybe, first of) test failed
> build. Namely, set_thread_area01.c
> 
> The reason is that __NR_set_thread_area and __NR_get_thread_area are
> not declared. They should come from
> /usr/arm-linux-gnueabi/include/asm/unistd.h
> But there's only:
> [...]
> #define __NR_remap_file_pages           (__NR_SYSCALL_BASE+253)
>                                          /* for set_thread_area */
>                                          /* for get_thread_area */
> #define __NR_set_tid_address            (__NR_SYSCALL_BASE+256)
> [...]
> 
> In kernel, there are stubs for corresponding syscall numbers. So it
> looks like this pair is deprecated and unsupported. I can build ltp
> for aarch64 and x84_64 just fine.

Looking at history, it appears it was never supported.

> 
> Could someone explain me what am I doing wrong?

Can you try to add:
  #include "linux_syscall_numbers.h"
to testcases/kernel/syscalls/set_thread_area/set_thread_area01.c
and see if it compiles. And when you run it, it should end with TCONF.

Regards,
Jan

> 
> BR,
> Yury.
> 
> ltp config:
> CCC=arm-linux-gnueabi
> ./configure --target=arm --host=arm --prefix=$PWD/aarch32 \
>                      CC=$CCC-gcc \
>                      AR=$CCC-ar \
>                      RANLIB=$CCC-ranlib \
>                      STRIP=$CCC-strip \
>                      LDFLAGS="-Wl,--rpath=/root/lib32
>                      -Wl,--dynamic-linker=/root/lib32/ld-2.21.so"
> 
> 
> yury@yury-N73SV:~/work/ltp$ arm-linux-gnueabi-gcc -v
> Using built-in specs.
> COLLECT_GCC=arm-linux-gnueabi-gcc
> COLLECT_LTO_WRAPPER=/usr/lib/gcc-cross/arm-linux-gnueabi/5/lto-wrapper
> Target: arm-linux-gnueabi
> Configured with: ../src/configure -v --with-pkgversion='Ubuntu
> 5.2.1-22ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs
> --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++
> --prefix=/usr --program-suffix=-5 --enable-shared
> --enable-linker-build-id --libexecdir=/usr/lib
> --without-included-gettext --enable-threads=posix --libdir=/usr/lib
> --enable-nls --with-sysroot=/ --enable-clocale=gnu
> --enable-libstdcxx-debug --enable-libstdcxx-time=yes
> --with-default-libstdcxx-abi=new --enable-gnu-unique-object
> --disable-libitm --disable-libquadmath --enable-plugin
> --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk
> --enable-gtk-cairo
> --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-armel-cross/jre
> --enable-java-home
> --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-armel-cross
> --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-armel-cross
> --with-arch-directory=arm
> --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libgcj
> --enable-objc-gc --enable-multiarch --enable-multilib
> --disable-sjlj-exceptions --with-arch=armv5t --with-float=soft
> --disable-werror --enable-multilib --enable-checking=release
> --build=x86_64-linux-gnu --host=x86_64-linux-gnu
> --target=arm-linux-gnueabi --program-prefix=arm-linux-gnueabi-
> --includedir=/usr/arm-linux-gnueabi/include
> Thread model: posix
> gcc version 5.2.1 20151010 (Ubuntu 5.2.1-22ubuntu1)
> 
> 
> --
> Mailing list info: http://lists.linux.it/listinfo/ltp
> 

  reply	other threads:[~2015-12-04  9:20 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-04  3:47 [LTP] {get|set}_thread_area issue on ARM Yury Norov
2015-12-04  9:20 ` Jan Stancek [this message]
2015-12-04 13:02   ` Yury Norov
2015-12-04 13:19     ` Jan Stancek
2015-12-04 15:20       ` Yury Norov
2015-12-07  9:25 ` Cyril Hrubis
2015-12-07  9:54   ` Cyril Hrubis

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=1947123407.23593898.1449220837874.JavaMail.zimbra@redhat.com \
    --to=jstancek@redhat.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