From: "Rosenow, Jim" <jim.rosenow@mts.com>
To: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Xenomai-3.1 make fails when configured -mx32 on 64bit kernel
Date: Fri, 29 May 2020 14:49:57 +0000 [thread overview]
Message-ID: <90c644a07db5444384a22e8d26c075e1@mts.com> (raw)
Kernel version:
Linux debian-10-64bit 4.4.218-xenomai-3.1 #1 SMP PREEMPT Fri May 29 04:49:06 CDT 2020 x86_64 GNU/Linux
Ipipe version:
ipipe-core-4.4.218-cip44-x86-23.patch
32bit configured -m32 builds and runs as does the default 64bit version:
../configure --enable-pshared --enable-smp CFLAGS="-m32" LDFLAGS="-m32"
32bit configured -mx32 does not build, see below.
Thanks,
Jim
../configure --enable-pshared --enable-smp CFLAGS="-mx32" LDFLAGS="-mx32"
root@debian-10-64bit:~/Xenomai/xenomai-3.1/build# make
Making all in doc
make[1]: Entering directory '/root/Xenomai/xenomai-3.1/build/doc'
Making all in gitdoc
make[2]: Entering directory '/root/Xenomai/xenomai-3.1/build/doc/gitdoc'
make[2]: Leaving directory '/root/Xenomai/xenomai-3.1/build/doc/gitdoc'
Making all in doxygen
make[2]: Entering directory '/root/Xenomai/xenomai-3.1/build/doc/doxygen'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/root/Xenomai/xenomai-3.1/build/doc/doxygen'
Making all in asciidoc
make[2]: Entering directory '/root/Xenomai/xenomai-3.1/build/doc/asciidoc'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/root/Xenomai/xenomai-3.1/build/doc/asciidoc'
make[2]: Entering directory '/root/Xenomai/xenomai-3.1/build/doc'
make[2]: Nothing to be done for 'all-am'.
make[2]: Leaving directory '/root/Xenomai/xenomai-3.1/build/doc'
make[1]: Leaving directory '/root/Xenomai/xenomai-3.1/build/doc'
Making all in lib
make[1]: Entering directory '/root/Xenomai/xenomai-3.1/build/lib'
Making all in boilerplate
make[2]: Entering directory '/root/Xenomai/xenomai-3.1/build/lib/boilerplate'
make all-recursive
make[3]: Entering directory '/root/Xenomai/xenomai-3.1/build/lib/boilerplate'
Making all in init
make[4]: Entering directory '/root/Xenomai/xenomai-3.1/build/lib/boilerplate/init'
CC libbootstrap_a-bootstrap.o
AR libbootstrap.a
ar: `u' modifier ignored since `D' is the default (see `U')
CC libbootstrap_pic_la-bootstrap.lo
CCLD libbootstrap-pic.la
ar: `u' modifier ignored since `D' is the default (see `U')
make[4]: Leaving directory '/root/Xenomai/xenomai-3.1/build/lib/boilerplate/init'
make[4]: Entering directory '/root/Xenomai/xenomai-3.1/build/lib/boilerplate'
CC libavl_la-avl.lo
CCLD libavl.la
ar: `u' modifier ignored since `D' is the default (see `U')
CC libversion_la-version.lo
CCLD libversion.la
ar: `u' modifier ignored since `D' is the default (see `U')
CC iniparser/libiniparser_la-dictionary.lo
CC iniparser/libiniparser_la-iniparser.lo
CCLD libiniparser.la
ar: `u' modifier ignored since `D' is the default (see `U')
CC libboilerplate_la-ancillaries.lo
CC libboilerplate_la-heapmem.lo
CC libboilerplate_la-hash.lo
CC libboilerplate_la-setup.lo
CC libboilerplate_la-time.lo
CC libshavl_la-avl.lo
CCLD libshavl.la
ar: `u' modifier ignored since `D' is the default (see `U')
CC tlsf/libtlsf_la-tlsf.lo
CCLD libtlsf.la
ar: `u' modifier ignored since `D' is the default (see `U')
CCLD libboilerplate.la
ar: `u' modifier ignored since `D' is the default (see `U')
CC version-version.o
CCLD version
make[4]: Leaving directory '/root/Xenomai/xenomai-3.1/build/lib/boilerplate'
make[3]: Leaving directory '/root/Xenomai/xenomai-3.1/build/lib/boilerplate'
make[2]: Leaving directory '/root/Xenomai/xenomai-3.1/build/lib/boilerplate'
Making all in cobalt
make[2]: Entering directory '/root/Xenomai/xenomai-3.1/build/lib/cobalt'
Making all in arch
make[3]: Entering directory '/root/Xenomai/xenomai-3.1/build/lib/cobalt/arch'
Making all in x86
make[4]: Entering directory '/root/Xenomai/xenomai-3.1/build/lib/cobalt/arch/x86'
Making all in include
make[5]: Entering directory '/root/Xenomai/xenomai-3.1/build/lib/cobalt/arch/x86/include'
Making all in asm
make[6]: Entering directory '/root/Xenomai/xenomai-3.1/build/lib/cobalt/arch/x86/include/asm'
Making all in xenomai
make[7]: Entering directory '/root/Xenomai/xenomai-3.1/build/lib/cobalt/arch/x86/include/asm/xenomai'
make[7]: Nothing to be done for 'all'.
make[7]: Leaving directory '/root/Xenomai/xenomai-3.1/build/lib/cobalt/arch/x86/include/asm/xenomai'
make[7]: Entering directory '/root/Xenomai/xenomai-3.1/build/lib/cobalt/arch/x86/include/asm'
make[7]: Nothing to be done for 'all-am'.
make[7]: Leaving directory '/root/Xenomai/xenomai-3.1/build/lib/cobalt/arch/x86/include/asm'
make[6]: Leaving directory '/root/Xenomai/xenomai-3.1/build/lib/cobalt/arch/x86/include/asm'
make[6]: Entering directory '/root/Xenomai/xenomai-3.1/build/lib/cobalt/arch/x86/include'
make[6]: Nothing to be done for 'all-am'.
make[6]: Leaving directory '/root/Xenomai/xenomai-3.1/build/lib/cobalt/arch/x86/include'
make[5]: Leaving directory '/root/Xenomai/xenomai-3.1/build/lib/cobalt/arch/x86/include'
make[5]: Entering directory '/root/Xenomai/xenomai-3.1/build/lib/cobalt/arch/x86'
CC libarch_la-features.lo
CCLD libarch.la
ar: `u' modifier ignored since `D' is the default (see `U')
make[5]: Leaving directory '/root/Xenomai/xenomai-3.1/build/lib/cobalt/arch/x86'
make[4]: Leaving directory '/root/Xenomai/xenomai-3.1/build/lib/cobalt/arch/x86'
make[4]: Entering directory '/root/Xenomai/xenomai-3.1/build/lib/cobalt/arch'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/root/Xenomai/xenomai-3.1/build/lib/cobalt/arch'
make[3]: Leaving directory '/root/Xenomai/xenomai-3.1/build/lib/cobalt/arch'
make[3]: Entering directory '/root/Xenomai/xenomai-3.1/build/lib/cobalt'
CC libcobalt_la-attr.lo
CC libcobalt_la-clock.lo
In file included from ../../../lib/cobalt/clock.c:32:
/root/Xenomai/xenomai-3.1/lib/cobalt/arch/x86/include/asm/xenomai/tsc.h: In function ‘cobalt_read_tsc’:
/root/Xenomai/xenomai-3.1/lib/cobalt/arch/x86/include/asm/xenomai/tsc.h:34:54: error: left shift count >= width of type [-Werror=shift-count-overflow]
return ((unsigned long)__a) | (((unsigned long)__d) << 32);
^~
In file included from ../../../lib/cobalt/clock.c:31:
../../../lib/cobalt/clock.c: In function ‘__cobalt_clock_getres’:
/root/Xenomai/xenomai-3.1/kernel/cobalt/arch/x86/include/asm/xenomai/uapi/syscall.h:22:28: error: ‘__COBALT_X32_BASE’ undeclared (first use in this function)
#define __xn_syscall_base __COBALT_X32_BASE
^~~~~~~~~~~~~~~~~
/root/Xenomai/xenomai-3.1/lib/cobalt/arch/x86/include/asm/xenomai/syscall.h:196:10: note: in definition of macro ‘DO_SYSCALL’
: "0" (name) ASM_ARGS_##nr \
^~~~
/root/Xenomai/xenomai-3.1/kernel/cobalt/arch/x86/include/asm/xenomai/uapi/syscall.h:27:60: note: in expansion of macro ‘__xn_syscall_base’
#define __xn_syscode(__nr) (__COBALT_SYSCALL_BIT | (__nr + __xn_syscall_base))
^~~~~~~~~~~~~~~~~
/root/Xenomai/xenomai-3.1/lib/cobalt/arch/x86/include/asm/xenomai/syscall.h:202:13: note: in expansion of macro ‘__xn_syscode’
DO_SYSCALL(__xn_syscode(op), nr, args)
^~~~~~~~~~~~
/root/Xenomai/xenomai-3.1/lib/cobalt/arch/x86/include/asm/xenomai/syscall.h:211:37: note: in expansion of macro ‘XENOMAI_DO_SYSCALL’
#define XENOMAI_SYSCALL2(op,a1,a2) XENOMAI_DO_SYSCALL(2,op,a1,a2)
^~~~~~~~~~~~~~~~~~
../../../lib/cobalt/clock.c:104:9: note: in expansion of macro ‘XENOMAI_SYSCALL2’
ret = -XENOMAI_SYSCALL2(sc_cobalt_clock_getres, clock_id, tp);
^~~~~~~~~~~~~~~~
/root/Xenomai/xenomai-3.1/kernel/cobalt/arch/x86/include/asm/xenomai/uapi/syscall.h:22:28: note: each undeclared identifier is reported only once for each function it appears in
#define __xn_syscall_base __COBALT_X32_BASE
^~~~~~~~~~~~~~~~~
/root/Xenomai/xenomai-3.1/lib/cobalt/arch/x86/include/asm/xenomai/syscall.h:196:10: note: in definition of macro ‘DO_SYSCALL’
: "0" (name) ASM_ARGS_##nr \
^~~~
/root/Xenomai/xenomai-3.1/kernel/cobalt/arch/x86/include/asm/xenomai/uapi/syscall.h:27:60: note: in expansion of macro ‘__xn_syscall_base’
#define __xn_syscode(__nr) (__COBALT_SYSCALL_BIT | (__nr + __xn_syscall_base))
^~~~~~~~~~~~~~~~~
/root/Xenomai/xenomai-3.1/lib/cobalt/arch/x86/include/asm/xenomai/syscall.h:202:13: note: in expansion of macro ‘__xn_syscode’
DO_SYSCALL(__xn_syscode(op), nr, args)
^~~~~~~~~~~~
/root/Xenomai/xenomai-3.1/lib/cobalt/arch/x86/include/asm/xenomai/syscall.h:211:37: note: in expansion of macro ‘XENOMAI_DO_SYSCALL’
#define XENOMAI_SYSCALL2(op,a1,a2) XENOMAI_DO_SYSCALL(2,op,a1,a2)
^~~~~~~~~~~~~~~~~~
../../../lib/cobalt/clock.c:104:9: note: in expansion of macro ‘XENOMAI_SYSCALL2’
ret = -XENOMAI_SYSCALL2(sc_cobalt_clock_getres, clock_id, tp);
^~~~~~~~~~~~~~~~
../../../lib/cobalt/clock.c: In function ‘__cobalt_clock_gettime’:
/root/Xenomai/xenomai-3.1/kernel/cobalt/arch/x86/include/asm/xenomai/uapi/syscall.h:22:28: error: ‘__COBALT_X32_BASE’ undeclared (first use in this function)
#define __xn_syscall_base __COBALT_X32_BASE
^~~~~~~~~~~~~~~~~
/root/Xenomai/xenomai-3.1/lib/cobalt/arch/x86/include/asm/xenomai/syscall.h:196:10: note: in definition of macro ‘DO_SYSCALL’
: "0" (name) ASM_ARGS_##nr \
^~~~
/root/Xenomai/xenomai-3.1/kernel/cobalt/arch/x86/include/asm/xenomai/uapi/syscall.h:27:60: note: in expansion of macro ‘__xn_syscall_base’
#define __xn_syscode(__nr) (__COBALT_SYSCALL_BIT | (__nr + __xn_syscall_base))
^~~~~~~~~~~~~~~~~
/root/Xenomai/xenomai-3.1/lib/cobalt/arch/x86/include/asm/xenomai/syscall.h:202:13: note: in expansion of macro ‘__xn_syscode’
DO_SYSCALL(__xn_syscode(op), nr, args)
^~~~~~~~~~~~
/root/Xenomai/xenomai-3.1/lib/cobalt/arch/x86/include/asm/xenomai/syscall.h:211:37: note: in expansion of macro ‘XENOMAI_DO_SYSCALL’
#define XENOMAI_SYSCALL2(op,a1,a2) XENOMAI_DO_SYSCALL(2,op,a1,a2)
^~~~~~~~~~~~~~~~~~
../../../lib/cobalt/clock.c:204:10: note: in expansion of macro ‘XENOMAI_SYSCALL2’
ret = -XENOMAI_SYSCALL2(sc_cobalt_clock_gettime, clock_id, tp);
^~~~~~~~~~~~~~~~
../../../lib/cobalt/clock.c: In function ‘__cobalt_clock_settime’:
/root/Xenomai/xenomai-3.1/kernel/cobalt/arch/x86/include/asm/xenomai/uapi/syscall.h:22:28: error: ‘__COBALT_X32_BASE’ undeclared (first use in this function)
#define __xn_syscall_base __COBALT_X32_BASE
^~~~~~~~~~~~~~~~~
/root/Xenomai/xenomai-3.1/lib/cobalt/arch/x86/include/asm/xenomai/syscall.h:196:10: note: in definition of macro ‘DO_SYSCALL’
: "0" (name) ASM_ARGS_##nr \
^~~~
/root/Xenomai/xenomai-3.1/kernel/cobalt/arch/x86/include/asm/xenomai/uapi/syscall.h:27:60: note: in expansion of macro ‘__xn_syscall_base’
#define __xn_syscode(__nr) (__COBALT_SYSCALL_BIT | (__nr + __xn_syscall_base))
^~~~~~~~~~~~~~~~~
/root/Xenomai/xenomai-3.1/lib/cobalt/arch/x86/include/asm/xenomai/syscall.h:202:13: note: in expansion of macro ‘__xn_syscode’
DO_SYSCALL(__xn_syscode(op), nr, args)
^~~~~~~~~~~~
/root/Xenomai/xenomai-3.1/lib/cobalt/arch/x86/include/asm/xenomai/syscall.h:211:37: note: in expansion of macro ‘XENOMAI_DO_SYSCALL’
#define XENOMAI_SYSCALL2(op,a1,a2) XENOMAI_DO_SYSCALL(2,op,a1,a2)
^~~~~~~~~~~~~~~~~~
../../../lib/cobalt/clock.c:240:9: note: in expansion of macro ‘XENOMAI_SYSCALL2’
ret = -XENOMAI_SYSCALL2(sc_cobalt_clock_settime, clock_id, tp);
^~~~~~~~~~~~~~~~
../../../lib/cobalt/clock.c: In function ‘__cobalt_clock_adjtime’:
/root/Xenomai/xenomai-3.1/kernel/cobalt/arch/x86/include/asm/xenomai/uapi/syscall.h:22:28: error: ‘__COBALT_X32_BASE’ undeclared (first use in this function)
#define __xn_syscall_base __COBALT_X32_BASE
^~~~~~~~~~~~~~~~~
/root/Xenomai/xenomai-3.1/lib/cobalt/arch/x86/include/asm/xenomai/syscall.h:196:10: note: in definition of macro ‘DO_SYSCALL’
: "0" (name) ASM_ARGS_##nr \
^~~~
/root/Xenomai/xenomai-3.1/kernel/cobalt/arch/x86/include/asm/xenomai/uapi/syscall.h:27:60: note: in expansion of macro ‘__xn_syscall_base’
#define __xn_syscode(__nr) (__COBALT_SYSCALL_BIT | (__nr + __xn_syscall_base))
^~~~~~~~~~~~~~~~~
/root/Xenomai/xenomai-3.1/lib/cobalt/arch/x86/include/asm/xenomai/syscall.h:202:13: note: in expansion of macro ‘__xn_syscode’
DO_SYSCALL(__xn_syscode(op), nr, args)
^~~~~~~~~~~~
/root/Xenomai/xenomai-3.1/lib/cobalt/arch/x86/include/asm/xenomai/syscall.h:211:37: note: in expansion of macro ‘XENOMAI_DO_SYSCALL’
#define XENOMAI_SYSCALL2(op,a1,a2) XENOMAI_DO_SYSCALL(2,op,a1,a2)
^~~~~~~~~~~~~~~~~~
../../../lib/cobalt/clock.c:255:9: note: in expansion of macro ‘XENOMAI_SYSCALL2’
ret = -XENOMAI_SYSCALL2(sc_cobalt_clock_adjtime, clock_id, tx);
^~~~~~~~~~~~~~~~
../../../lib/cobalt/clock.c: In function ‘__cobalt_clock_nanosleep’:
/root/Xenomai/xenomai-3.1/kernel/cobalt/arch/x86/include/asm/xenomai/uapi/syscall.h:22:28: error: ‘__COBALT_X32_BASE’ undeclared (first use in this function)
#define __xn_syscall_base __COBALT_X32_BASE
^~~~~~~~~~~~~~~~~
/root/Xenomai/xenomai-3.1/lib/cobalt/arch/x86/include/asm/xenomai/syscall.h:196:10: note: in definition of macro ‘DO_SYSCALL’
: "0" (name) ASM_ARGS_##nr \
^~~~
/root/Xenomai/xenomai-3.1/kernel/cobalt/arch/x86/include/asm/xenomai/uapi/syscall.h:27:60: note: in expansion of macro ‘__xn_syscall_base’
#define __xn_syscode(__nr) (__COBALT_SYSCALL_BIT | (__nr + __xn_syscall_base))
^~~~~~~~~~~~~~~~~
/root/Xenomai/xenomai-3.1/lib/cobalt/arch/x86/include/asm/xenomai/syscall.h:202:13: note: in expansion of macro ‘__xn_syscode’
DO_SYSCALL(__xn_syscode(op), nr, args)
^~~~~~~~~~~~
/root/Xenomai/xenomai-3.1/lib/cobalt/arch/x86/include/asm/xenomai/syscall.h:213:42: note: in expansion of macro ‘XENOMAI_DO_SYSCALL’
#define XENOMAI_SYSCALL4(op,a1,a2,a3,a4) XENOMAI_DO_SYSCALL(4,op,a1,a2,a3,a4)
^~~~~~~~~~~~~~~~~~
../../../lib/cobalt/clock.c:312:9: note: in expansion of macro ‘XENOMAI_SYSCALL4’
ret = -XENOMAI_SYSCALL4(sc_cobalt_clock_nanosleep,
^~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[3]: *** [Makefile:632: libcobalt_la-clock.lo] Error 1
make[3]: Leaving directory '/root/Xenomai/xenomai-3.1/build/lib/cobalt'
make[2]: *** [Makefile:805: all-recursive] Error 1
make[2]: Leaving directory '/root/Xenomai/xenomai-3.1/build/lib/cobalt'
make[1]: *** [Makefile:426: all-recursive] Error 1
make[1]: Leaving directory '/root/Xenomai/xenomai-3.1/build/lib'
make: *** [Makefile:459: all-recursive] Error 1
next reply other threads:[~2020-05-29 14:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-29 14:49 Rosenow, Jim [this message]
2020-05-29 17:35 ` Xenomai-3.1 make fails when configured -mx32 on 64bit kernel Jan Kiszka
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=90c644a07db5444384a22e8d26c075e1@mts.com \
--to=jim.rosenow@mts.com \
--cc=xenomai@xenomai.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.
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.