[LTP] [PATCH v4 00/14] Fix 32-bit cross compilation

Petr Vorel pvorel@suse.cz
Mon Oct 16 17:41:51 CEST 2017


Changes v3->v4:
Work even more on NUMA detection & cleanup dependencies. I simplified NUMA
related checks in C code.

I tried to test it well, but comments and build checks by others are welcome.

To test it, run both 32bit cross-compilation build:
./configure "CFLAGS=-m32" "CXXFLAGS=-m32" LDFLAGS="-m32" && make && make install
(Well, we don't really need CXXFLAGS)

And normal non-cross-compilation build:
./configure && make && make install

NOTE: you can see/clone this change-set in
https://github.com/pevik/ltp/tree/autotools/fix-32bit-build.v4

Kind regards,
Petr

Petr Vorel (14):
  lapi/keyctl.h: Add doc and reorder definitions
  syscalls/request_key: Port to use lapi/keyctl.h header
  m4: Fix libkeyutils detection on 32-bit cross build
  m4: Fix libaio detection on 32-bit cross build
  make: Remove workarounds for build without libnuma
  numa: Drop NUMA API v1 support
  numa: Drop NUMA_CPPFLAGS
  hotplug/memory_hotplug: Update TODO
  hotplug/memory_hotplug: Remove unused header
  hotplug/memory_hotplug: Exit with TCONF when NUMA headers not
    available
  m4,kernel/lib: Detect libnuma presence in kernel libs
  numa: Check for API >= v2 with autoconf
  numa: Remove HAVE_NUMA_ALLOC_ONNODE definition
  numa: Remove HAVE_NUMA_MOVE_PAGES definition

 configure.ac                                       |  1 +
 include/config.h.default                           |  3 -
 include/lapi/keyctl.h                              | 66 ++++++++++++---------
 include/mk/config.mk.default                       |  1 -
 include/mk/config.mk.in                            |  1 -
 m4/ltp-eventfd.m4                                  | 28 +++++----
 m4/ltp-keyutils.m4                                 |  9 ++-
 m4/ltp-numa.m4                                     | 42 ++++++-------
 .../controllers/cpuset/cpuset_lib/libcpuset.c      |  1 +
 .../cpuset/cpuset_syscall_test/Makefile            |  1 -
 .../cpuset_syscall_test/cpuset_syscall_test.c      |  5 +-
 testcases/kernel/hotplug/memory_hotplug/TODO       |  5 --
 testcases/kernel/hotplug/memory_hotplug/commands.c | 17 ++----
 testcases/kernel/hotplug/memory_hotplug/memtoy.c   | 18 ++++--
 testcases/kernel/hotplug/memory_hotplug/segment.c  |  7 ++-
 testcases/kernel/include/lib.mk                    |  2 +-
 testcases/kernel/include/numa_helper.h             |  2 +-
 testcases/kernel/io/aio/aio01/aio01.c              | 23 ++++----
 testcases/kernel/io/aio/aio02/aio_tio.c            |  3 +-
 testcases/kernel/io/aio/aio02/main.c               |  8 +--
 testcases/kernel/io/ltp-aiodio/aio-stress.c        | 15 ++++-
 testcases/kernel/io/ltp-aiodio/aiocp.c             |  7 +--
 testcases/kernel/io/ltp-aiodio/aiodio_append.c     | 14 ++++-
 testcases/kernel/io/ltp-aiodio/aiodio_sparse.c     | 18 ++++--
 testcases/kernel/lib/Makefile                      |  3 +-
 testcases/kernel/lib/numa_helper.c                 | 25 +++-----
 testcases/kernel/mem/cpuset/cpuset01.c             | 11 ++--
 testcases/kernel/mem/ksm/ksm02.c                   | 10 ++--
 testcases/kernel/mem/ksm/ksm04.c                   | 10 ++--
 testcases/kernel/mem/ksm/ksm06.c                   | 13 +++--
 testcases/kernel/mem/lib/mem.c                     | 13 ++---
 testcases/kernel/mem/oom/oom02.c                   | 11 ++--
 testcases/kernel/mem/oom/oom03.c                   | 10 +++-
 testcases/kernel/mem/oom/oom04.c                   | 11 ++--
 testcases/kernel/mem/oom/oom05.c                   | 11 ++--
 testcases/kernel/mem/vma/vma02.c                   | 16 ++---
 testcases/kernel/mem/vma/vma04.c                   | 15 ++---
 testcases/kernel/numa/Makefile                     |  2 +-
 testcases/kernel/syscalls/eventfd/eventfd01.c      | 16 +++--
 .../syscalls/get_mempolicy/get_mempolicy01.c       | 41 ++-----------
 testcases/kernel/syscalls/io_cancel/io_cancel01.c  | 12 ++--
 .../kernel/syscalls/io_destroy/io_destroy01.c      | 12 ++--
 .../kernel/syscalls/io_getevents/io_getevents01.c  | 13 +++--
 testcases/kernel/syscalls/io_setup/io_setup01.c    | 12 ++--
 testcases/kernel/syscalls/io_submit/io_submit01.c  | 11 ++--
 testcases/kernel/syscalls/mbind/Makefile           |  9 ---
 testcases/kernel/syscalls/mbind/mbind01.c          | 11 ++--
 testcases/kernel/syscalls/migrate_pages/Makefile   |  3 -
 .../syscalls/migrate_pages/migrate_pages01.c       |  9 +--
 .../syscalls/migrate_pages/migrate_pages02.c       | 10 ++--
 testcases/kernel/syscalls/move_pages/Makefile      |  5 --
 .../kernel/syscalls/move_pages/move_pages01.c      |  4 +-
 .../kernel/syscalls/move_pages/move_pages02.c      |  4 +-
 .../kernel/syscalls/move_pages/move_pages03.c      |  4 +-
 .../kernel/syscalls/move_pages/move_pages04.c      |  4 +-
 .../kernel/syscalls/move_pages/move_pages05.c      |  4 +-
 .../kernel/syscalls/move_pages/move_pages06.c      |  4 +-
 .../kernel/syscalls/move_pages/move_pages07.c      |  4 +-
 .../kernel/syscalls/move_pages/move_pages08.c      |  4 +-
 .../kernel/syscalls/move_pages/move_pages09.c      |  4 +-
 .../kernel/syscalls/move_pages/move_pages10.c      |  4 +-
 .../kernel/syscalls/move_pages/move_pages11.c      |  4 +-
 .../kernel/syscalls/move_pages/move_pages12.c      |  4 +-
 .../syscalls/move_pages/move_pages_support.c       | 18 +++---
 .../kernel/syscalls/request_key/request_key01.c    | 62 +++++++++-----------
 .../kernel/syscalls/request_key/request_key02.c    | 68 +++++++++-------------
 66 files changed, 396 insertions(+), 422 deletions(-)

-- 
2.14.2



More information about the ltp mailing list