Cobalt core install linker problem
Hello everybody,
I'm trying to compile xenomai tools --with-core=cobalt but I keep ha ving issues on latency tool, seems on linking.
If I try to build --with-core=mercury switch it works flawlessly:
root@debian9:/usr/src/xenomai-3.0.5# ./configure --with-core=mercury --prefix=/usr/local/xenomai/mercury --disable-debug --enable-pshared --enable-smp >/dev/null root@debian9:/usr/src/xenomai-3.0.5# time make -j8 >/dev/null ar: `u' modifier ignored since `D' is the default (see `U') ar: `u' modifier ignored since `D' is the default (see `U') ar: `u' modifier ignored since `D' is the default (see `U') ar: `u' modifier ignored since `D' is the default (see `U') ar: `u' modifier ignored since `D' is the default (see `U') ar: `u' modifier ignored since `D' is the default (see `U') ar: `u' modifier ignored since `D' is the default (see `U') ar: `u' modifier ignored since `D' is the default (see `U') ar: `u' modifier ignored since `D' is the default (see `U') ar: `u' modifier ignored since `D' is the default (see `U') ar: `u' modifier ignored since `D' is the default (see `U') ar: `u' modifier ignored since `D' is the default (see `U')
real 0m6.810s
user 0m17.872s
sys 0m1.152s
root@debian9:/usr/src/xenomai-3.0.5# time make -j8 install >/dev/null /usr/bin/install: omitting directory 'search' /usr/bin/install: omitting directory 'callouts'
real 0m2.911s
user 0m0.772s
sys 0m0.184s
root@debian9:/usr/src/xenomai-3.0.5#
root@debian9:/usr/src/xenomai-3.0.5# make -j8 clean >/dev/null
Then I try to build --with-core=cobalt and something goes wrong:
root@debian9:/usr/src/xenomai-3.0.5# ./configure --with-core=cobalt --prefix=/usr/local/xenomai/cobalt --disable-debug --enable-pshared --enable-smp >/dev/null root@debian9:/usr/src/xenomai-3.0.5# time make -j8 >/dev/null ar: `u' modifier ignored since `D' is the default (see `U') ar: `u' modifier ignored since `D' is the default (see `U') ar: `u' modifier ignored since `D' is the default (see `U') ar: `u' modifier ignored since `D' is the default (see `U') ar: `u' modifier ignored since `D' is the default (see `U') ar: `u' modifier ignored since `D' is the default (see `U') libtool: warning: '-version-info/-version-number' is ignored for convenience libraries ar: `u' modifier ignored since `D' is the default (see `U') ar: `u' modifier ignored since `D' is the default (see `U') ar: `u' modifier ignored since `D' is the default (see `U') ar: `u' modifier ignored since `D' is the default (see `U') ar: `u' modifier ignored since `D' is the default (see `U') ar: `u' modifier ignored since `D' is the default (see `U') ar: `u' modifier ignored since `D' is the default (see `U') ar: `u' modifier ignored since `D' is the default (see `U') ar: `u' modifier ignored since `D' is the default (see `U') ar: `u' modifier ignored since `D' is the default (see `U') /usr/bin/ld: -r and -pie may not be used together collect2: error: ld returned 1 exit status make[2]: *** [latency] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all-recursive] Error 1
real 0m8.055s
user 0m26.924s
sys 0m1.928s
ld fails at this:
Making all in testsuite
make[1]: Entering directory '/usr/src/xenomai-3.0.5/testsuite' Making all in latency
make[2]: Entering directory
'/usr/src/xenomai-3.0.5/testsuite/latency'
CC latency-latency.o
CCLD latency
/usr/bin/ld: -r and -pie may not be used together
collect2: error: ld returned 1 exit status Makefile:451: recipe for target 'latency' failed make[2]: *** [latency] Error 1
make[2]: Leaving directory
'/usr/src/xenomai-3.0.5/testsuite/latency'
Makefile:423: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/usr/src/xenomai-3.0.5/testsuite' Makefile:460: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
No matter which options I include or not, it never goes over this. Make plain (without -j8) doesn't help either.
I'm working on a Debian 9 which I just compiled with Cobalt Core - but even with standard Debian kernel it doesn't go through.
Odd enough, if I build Xenomai tools with a Fedora 25 machine, it works. *HINT* on Fedora I got a different ld version (OLDER), which doesn't warns out about " ar: u' modifier ignored since D' is the default (see `U')":
FEDORA VERSION:
ld -v
GNU ld version 2.26.1-1.fc25Here's some versioning on my Debian box:
root@debian9:/usr/src/xenomai-3.0.5# gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/6/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 6.3.0-18' --with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-6 --program-prefix=x86_64-linux-gnu- --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-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 6.3.0 20170516 (Debian 6.3.0-18) root@debian9:/usr/src/xenomai-3.0.5# ld -version GNU ld (GNU Binutils for Debian) 2.28 Copyright (C) 2017 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License version 3 or (at your option) a later version. This program has absolutely no warranty.
root@debian9:/usr/src/xenomai-3.0.5# make -v GNU Make 4.1 Built for x86_64-pc-linux-gnu Copyright (C) 1988-2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
root@debian9:/usr/src/xenomai-3.0.5# dpkg -l|grep libtool ii libltdl-dev:amd64 2.4.6-2 amd64 System independent dlopen wrapper for GNU libtool ii libltdl7:amd64 2.4.6-2 amd64 System independent dlopen wrapper for GNU libtool ii libtool 2.4.6-2 all Generic library support script
root@debian9:/usr/src/xenomai-3.0.5# uname -a Linux debian9 4.9.24-xenomai-3.0.5-cobalt #1 SMP PREEMPT Tue Jul 11 13:16:47 UTC 2017 x86_64 GNU/Linux
Hope somebody will help me to sort this out :)
Simone
Am Tue, 11 Jul 2017 14:22:02 +0000
schrieb Simone Zucchi <[email protected]>:
Quoted 4 lines
Hello everybody,
I'm trying to compile xenomai tools --with-core=cobalt but I keep ha ving issues on latency tool, seems on linking.
If I try to build --with-core=mercury switch it works flawlessly:
...
Quoted 6 lines
Then I try to build --with-core=cobalt and something goes wrong:
root@debian9:/usr/src/xenomai-3.0.5# ./configure --with-core=cobalt --prefix=/usr/local/xenomai/cobalt --disable-debug --enable-pshared --enable-smp >/dev/null root@debian9:/usr/src/xenomai-3.0.5# time make -j8 >/dev/null
...
Quoted 5 lines
/usr/bin/ld: -r and -pie may not be used together
collect2: error: ld returned 1 exit status
make[2]: *** [latency] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
Recent compilers default to generating position independant binaries. That problem should get fixed in xenomai. For the time being you can run make CFLAGS="-no-pie" -j nproc
to work around the problem.
Henning
Quoted 109 lines
real 0m8.055s
user 0m26.924s
sys 0m1.928sld fails at this:
Making all in testsuite
make[1]: Entering directory '/usr/src/xenomai-3.0.5/testsuite' Making all in latency
make[2]: Entering directory
'/usr/src/xenomai-3.0.5/testsuite/latency'
CC latency-latency.o
CCLD latency
/usr/bin/ld: -r and -pie may not be used together
collect2: error: ld returned 1 exit status Makefile:451: recipe for target 'latency' failed make[2]: *** [latency] Error 1
make[2]: Leaving directory
'/usr/src/xenomai-3.0.5/testsuite/latency'
Makefile:423: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/usr/src/xenomai-3.0.5/testsuite' Makefile:460: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1No matter which options I include or not, it never goes over this. Make plain (without -j8) doesn't help either.
I'm working on a Debian 9 which I just compiled with Cobalt Core - but even with standard Debian kernel it doesn't go through.
Odd enough, if I build Xenomai tools with a Fedora 25 machine, it works. *HINT* on Fedora I got a different ld version (OLDER), which doesn't warns out about " ar:u' modifier ignored sinceD' is the default (see `U')":FEDORA VERSION:
ld -v GNU ld version 2.26.1-1.fc25Here's some versioning on my Debian box:
root@debian9:/usr/src/xenomai-3.0.5# gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/6/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 6.3.0-18' --with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-6 --program-prefix=x86_64-linux-gnu- --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-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 6.3.0 20170516 (Debian 6.3.0-18) root@debian9:/usr/src/xenomai-3.0.5# ld -version GNU ld (GNU Binutils for Debian) 2.28 Copyright (C) 2017 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License version 3 or (at your option) a later version. This program has absolutely no warranty.root@debian9:/usr/src/xenomai-3.0.5# make -v GNU Make 4.1 Built for x86_64-pc-linux-gnu Copyright (C) 1988-2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.root@debian9:/usr/src/xenomai-3.0.5# dpkg -l|grep libtool ii libltdl-dev:amd64 2.4.6-2 amd64 System independent dlopen wrapper for GNU libtool ii libltdl7:amd64 2.4.6-2 amd64 System independent dlopen wrapper for GNU libtool ii libtool 2.4.6-2 all Generic library support scriptroot@debian9:/usr/src/xenomai-3.0.5# uname -a Linux debian9 4.9.24-xenomai-3.0.5-cobalt #1 SMP PREEMPT Tue Jul 11 13:16:47 UTC 2017 x86_64 GNU/LinuxHope somebody will help me to sort this out :)
Simone
_______________________________________________
Xenomai mailing list
[email protected]
https://xenomai.org/mailman/listinfo/xenomai
Quoted 4 lines
Recent compilers default to generating position independant binaries. That problem should get fixed in xenomai. For the time being you can run make CFLAGS="-no-pie" -j
nproc
to work around the problem.
That was the case! Built without a problem.Thanks a lot! By the way, Is it correct that xeno-test won't be built?
Simone
Quoted 135 lines · Henning Schild
Am Tue, 11 Jul 2017 14:22:02 +0000
schrieb Simone Zucchi <[email protected]>:Quoted 4 lines
Hello everybody,
I'm trying to compile xenomai tools --with-core=cobalt but I keep ha ving issues on latency tool, seems on linking.
If I try to build --with-core=mercury switch it works flawlessly:...
Quoted 6 lines
Then I try to build --with-core=cobalt and something goes wrong:
root@debian9:/usr/src/xenomai-3.0.5# ./configure --with-core=cobalt --prefix=/usr/local/xenomai/cobalt --disable-debug --enable-pshared --enable-smp >/dev/null root@debian9:/usr/src/xenomai-3.0.5# time make -j8 >/dev/null...
Quoted 5 lines
/usr/bin/ld: -r and -pie may not be used together
collect2: error: ld returned 1 exit status
make[2]: *** [latency] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1Recent compilers default to generating position independant binaries. That problem should get fixed in xenomai. For the time being you can run make CFLAGS="-no-pie" -j
nproc
to work around the problem.Henning
Quoted 108 lines
real 0m8.055s
user 0m26.924s
sys 0m1.928sld fails at this:
Making all in testsuite
make[1]: Entering directory '/usr/src/xenomai-3.0.5/testsuite' Making all in latency
make[2]: Entering directory
'/usr/src/xenomai-3.0.5/testsuite/latency'
CC latency-latency.o
CCLD latency
/usr/bin/ld: -r and -pie may not be used together
collect2: error: ld returned 1 exit status Makefile:451: recipe for target 'latency' failed make[2]: *** [latency] Error 1
make[2]: Leaving directory
'/usr/src/xenomai-3.0.5/testsuite/latency'
Makefile:423: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/usr/src/xenomai-3.0.5/testsuite' Makefile:460: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1No matter which options I include or not, it never goes over this. Make plain (without -j8) doesn't help either.
I'm working on a Debian 9 which I just compiled with Cobalt Core - but even with standard Debian kernel it doesn't go through.
Odd enough, if I build Xenomai tools with a Fedora 25 machine, it works. *HINT* on Fedora I got a different ld version (OLDER), which doesn't warns out about " ar:u' modifier ignored sinceD' is the default (see `U')":FEDORA VERSION:
ld -v GNU ld version 2.26.1-1.fc25Here's some versioning on my Debian box:
root@debian9:/usr/src/xenomai-3.0.5# gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/6/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 6.3.0-18' --with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-6 --program-prefix=x86_64-linux-gnu- --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-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 6.3.0 20170516 (Debian 6.3.0-18) root@debian9:/usr/src/xenomai-3.0.5# ld -version GNU ld (GNU Binutils for Debian) 2.28 Copyright (C) 2017 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License version 3 or (at your option) a later version. This program has absolutely no warranty.root@debian9:/usr/src/xenomai-3.0.5# make -v GNU Make 4.1 Built for x86_64-pc-linux-gnu Copyright (C) 1988-2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.root@debian9:/usr/src/xenomai-3.0.5# dpkg -l|grep libtool ii libltdl-dev:amd64 2.4.6-2 amd64 System independent dlopen wrapper for GNU libtool ii libltdl7:amd64 2.4.6-2 amd64 System independent dlopen wrapper for GNU libtool ii libtool 2.4.6-2 all Generic library support scriptroot@debian9:/usr/src/xenomai-3.0.5# uname -a Linux debian9 4.9.24-xenomai-3.0.5-cobalt #1 SMP PREEMPT Tue Jul 11 13:16:47 UTC 2017 x86_64 GNU/LinuxHope somebody will help me to sort this out :)
Simone
_______________________________________________
Xenomai mailing list
[email protected]
https://xenomai.org/mailman/listinfo/xenomai
Am Wed, 12 Jul 2017 07:16:45 +0000
schrieb Simone Zucchi <[email protected]>:
Quoted 7 lines
Quoted 4 lines
Recent compilers default to generating position independant binaries. That problem should get fixed in xenomai. For the time being you can run make CFLAGS="-no-pie" -j
nproc
to work around the problem.That was the case! Built without a problem.Thanks a lot! By the way, Is it correct that xeno-test won't be built?
It should be. If you
touch testsuite/xeno-test/xeno-test-run.c; make
it will rebuild something. After a "make install" you should be able to run something like this:
xeno-test -l "dohell -m /tmp 300" -p 1000
Our CI does "dh_autoreconf; dpkg-buildpackage -j$(JOBS) -uc -us" and the packages contain a runnable xeno-test
Henning
Quoted 140 lines
Simone
Quoted 137 lines · Henning Schild
Am Tue, 11 Jul 2017 14:22:02 +0000
schrieb Simone Zucchi <[email protected]>:Quoted 4 lines
Hello everybody,
I'm trying to compile xenomai tools --with-core=cobalt but I keep ha ving issues on latency tool, seems on linking.
If I try to build --with-core=mercury switch it works flawlessly:...
Quoted 6 lines
Then I try to build --with-core=cobalt and something goes wrong:
root@debian9:/usr/src/xenomai-3.0.5# ./configure --with-core=cobalt --prefix=/usr/local/xenomai/cobalt --disable-debug --enable-pshared --enable-smp >/dev/null root@debian9:/usr/src/xenomai-3.0.5# time make -j8 >/dev/null...
Quoted 5 lines
/usr/bin/ld: -r and -pie may not be used together
collect2: error: ld returned 1 exit status
make[2]: *** [latency] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1Recent compilers default to generating position independant binaries. That problem should get fixed in xenomai. For the time being you can run make CFLAGS="-no-pie" -j
nproc
to work around the problem.Henning
Quoted 110 lines
real 0m8.055s
user 0m26.924s
sys 0m1.928sld fails at this:
Making all in testsuite
make[1]: Entering directory
'/usr/src/xenomai-3.0.5/testsuite' Making all in latency
make[2]: Entering directory
'/usr/src/xenomai-3.0.5/testsuite/latency'
CC latency-latency.o
CCLD latency
/usr/bin/ld: -r and -pie may not be used together
collect2: error: ld returned 1 exit status Makefile:451: recipe for target 'latency' failed make[2]: *** [latency] Error 1
make[2]: Leaving directory
'/usr/src/xenomai-3.0.5/testsuite/latency'
Makefile:423: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/usr/src/xenomai-3.0.5/testsuite' Makefile:460: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1No matter which options I include or not, it never goes over this. Make plain (without -j8) doesn't help either.
I'm working on a Debian 9 which I just compiled with Cobalt Core - but even with standard Debian kernel it doesn't go through. Odd enough, if I build Xenomai tools with a Fedora 25 machine, it works. *HINT* on Fedora I got a different ld version (OLDER), which doesn't warns out about " ar:
u' modifier ignored sinceD' is the default (see `U')":FEDORA VERSION:
ld -v GNU ld version 2.26.1-1.fc25Here's some versioning on my Debian box:
root@debian9:/usr/src/xenomai-3.0.5# gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/6/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 6.3.0-18' --with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-6 --program-prefix=x86_64-linux-gnu- --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-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 6.3.0 20170516 (Debian 6.3.0-18) root@debian9:/usr/src/xenomai-3.0.5# ld -version GNU ld (GNU Binutils for Debian) 2.28 Copyright (C) 2017 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License version 3 or (at your option) a later version. This program has absolutely no warranty.root@debian9:/usr/src/xenomai-3.0.5# make -v GNU Make 4.1 Built for x86_64-pc-linux-gnu Copyright (C) 1988-2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.root@debian9:/usr/src/xenomai-3.0.5# dpkg -l|grep libtool ii libltdl-dev:amd64 2.4.6-2 amd64 System independent dlopen wrapper for GNU libtool ii libltdl7:amd64 2.4.6-2 amd64 System independent dlopen wrapper for GNU libtool ii libtool 2.4.6-2 all Generic library support scriptroot@debian9:/usr/src/xenomai-3.0.5# uname -a Linux debian9 4.9.24-xenomai-3.0.5-cobalt #1 SMP PREEMPT Tue Jul 11 13:16:47 UTC 2017 x86_64 GNU/LinuxHope somebody will help me to sort this out :)
Simone
_______________________________________________
Xenomai mailing list
[email protected]
https://xenomai.org/mailman/listinfo/xenomai
Hi,
I want to patch xenomai on raspberry pi 3 , I have tried it but after compilation the xenomai kernel is not booting.
kindly help me to patch xenomai on raspberry pi 3.
Installation steps to install xenomai on raspberry pi 3 directly without cross compilation.
Thank you
Ashok
Quoted 169 lines · Henning Schild
Am Wed, 12 Jul 2017 07:16:45 +0000
schrieb Simone Zucchi <[email protected]>:Quoted 7 lines
Quoted 4 lines
Recent compilers default to generating position independant binaries. That problem should get fixed in xenomai. For the time being you can run make CFLAGS="-no-pie" -j
nproc
to work around the problem.That was the case! Built without a problem.Thanks a lot! By the way, Is it correct that xeno-test won't be built?
It should be. If you
touchtestsuite/xeno-test/xeno-test-run.c; make
it will rebuild something. After a "make install" you should be able to run something like this:
xeno-test -l "dohell -m /tmp 300" -p 1000Our CI does "
dh_autoreconf; dpkg-buildpackage -j$(JOBS) -uc -us" and the packages contain a runnable xeno-testHenning
Quoted 140 lines
Simone
Quoted 137 lines · Henning Schild
Am Tue, 11 Jul 2017 14:22:02 +0000
schrieb Simone Zucchi <[email protected]>:Quoted 4 lines
Hello everybody,
I'm trying to compile xenomai tools --with-core=cobalt but I keep ha ving issues on latency tool, seems on linking.
If I try to build --with-core=mercury switch it works flawlessly:...
Quoted 6 lines
Then I try to build --with-core=cobalt and something goes wrong:
root@debian9:/usr/src/xenomai-3.0.5# ./configure --with-core=cobalt --prefix=/usr/local/xenomai/cobalt --disable-debug --enable-pshared --enable-smp >/dev/null root@debian9:/usr/src/xenomai-3.0.5# time make -j8 >/dev/null...
Quoted 5 lines
/usr/bin/ld: -r and -pie may not be used together
collect2: error: ld returned 1 exit status
make[2]: *** [latency] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1Recent compilers default to generating position independant binaries. That problem should get fixed in xenomai. For the time being you can run make CFLAGS="-no-pie" -j
nproc
to work around the problem.Henning
Quoted 110 lines
real 0m8.055s
user 0m26.924s
sys 0m1.928sld fails at this:
Making all in testsuite
make[1]: Entering directory
'/usr/src/xenomai-3.0.5/testsuite' Making all in latency
make[2]: Entering directory
'/usr/src/xenomai-3.0.5/testsuite/latency'
CC latency-latency.o
CCLD latency
/usr/bin/ld: -r and -pie may not be used together
collect2: error: ld returned 1 exit status Makefile:451: recipe for target 'latency' failed make[2]: *** [latency] Error 1
make[2]: Leaving directory
'/usr/src/xenomai-3.0.5/testsuite/latency'
Makefile:423: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/usr/src/xenomai-3.0.5/testsuite' Makefile:460: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1No matter which options I include or not, it never goes over this. Make plain (without -j8) doesn't help either.
I'm working on a Debian 9 which I just compiled with Cobalt Core - but even with standard Debian kernel it doesn't go through. Odd enough, if I build Xenomai tools with a Fedora 25 machine, it works. *HINT* on Fedora I got a different ld version (OLDER), which doesn't warns out about " ar:
u' modifier ignored sinceD' is the default (see `U')":FEDORA VERSION:
ld -v GNU ld version 2.26.1-1.fc25Here's some versioning on my Debian box:
root@debian9:/usr/src/xenomai-3.0.5# gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/6/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 6.3.0-18' --with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-6 --program-prefix=x86_64-linux-gnu- --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-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 6.3.0 20170516 (Debian 6.3.0-18) root@debian9:/usr/src/xenomai-3.0.5# ld -version GNU ld (GNU Binutils for Debian) 2.28 Copyright (C) 2017 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License version 3 or (at your option) a later version. This program has absolutely no warranty.root@debian9:/usr/src/xenomai-3.0.5# make -v GNU Make 4.1 Built for x86_64-pc-linux-gnu Copyright (C) 1988-2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.root@debian9:/usr/src/xenomai-3.0.5# dpkg -l|grep libtool ii libltdl-dev:amd64 2.4.6-2 amd64 System independent dlopen wrapper for GNU libtool ii libltdl7:amd64 2.4.6-2 amd64 System independent dlopen wrapper for GNU libtool ii libtool 2.4.6-2 all Generic library support scriptroot@debian9:/usr/src/xenomai-3.0.5# uname -a Linux debian9 4.9.24-xenomai-3.0.5-cobalt #1 SMP PREEMPT Tue Jul 11 13:16:47 UTC 2017 x86_64 GNU/LinuxHope somebody will help me to sort this out :)
Simone
_______________________________________________
Xenomai mailing list
[email protected]
https://xenomai.org/mailman/listinfo/xenomai_______________________________________________
Xenomai mailing list
[email protected]
https://xenomai.org/mailman/listinfo/xenomai
At the moment I'm benchmarking both cores, Mercury and Cobalt. Building Xenomai for Mercury core usage doesn't build xeno-test, among other things.
If I understand correctly documentation at chapter Testing the real-time system
(both cores), it should get built for Mercury, shouldn't it?
Thanks,
Simone
Quoted 160 lines · Henning Schild
Am Wed, 12 Jul 2017 07:16:45 +0000
schrieb Simone Zucchi <[email protected]>:Quoted 6 lines
Quoted 4 lines
Recent compilers default to generating position independant binaries. That problem should get fixed in xenomai. For the time being you can run make CFLAGS="-no-pie" -j
nproc
to work around the problem.That was the case! Built without a problem.Thanks a lot! By the way, Is it correct that xeno-test won't be built?
It should be. If you
touchtestsuite/xeno-test/xeno-test-run.c; make
it will rebuild something. After a "make install" you should be able to run something like this:
xeno-test -l "dohell -m /tmp 300" -p 1000Our CI does "
dh_autoreconf; dpkg-buildpackage -j$(JOBS) -uc -us" and the packages contain a runnable xeno-testHenning
Quoted 140 lines
Simone
Quoted 137 lines · Henning Schild
Am Tue, 11 Jul 2017 14:22:02 +0000
schrieb Simone Zucchi <[email protected]>:Quoted 4 lines
Hello everybody,
I'm trying to compile xenomai tools --with-core=cobalt but I keep ha ving issues on latency tool, seems on linking.
If I try to build --with-core=mercury switch it works flawlessly:...
Quoted 6 lines
Then I try to build --with-core=cobalt and something goes wrong:
root@debian9:/usr/src/xenomai-3.0.5# ./configure --with-core=cobalt --prefix=/usr/local/xenomai/cobalt --disable-debug --enable-pshared --enable-smp >/dev/null root@debian9:/usr/src/xenomai-3.0.5# time make -j8 >/dev/null...
Quoted 5 lines
/usr/bin/ld: -r and -pie may not be used together
collect2: error: ld returned 1 exit status
make[2]: *** [latency] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1Recent compilers default to generating position independant binaries. That problem should get fixed in xenomai. For the time being you can run make CFLAGS="-no-pie" -j
nproc
to work around the problem.Henning
Quoted 110 lines
real 0m8.055s
user 0m26.924s
sys 0m1.928sld fails at this:
Making all in testsuite
make[1]: Entering directory
'/usr/src/xenomai-3.0.5/testsuite' Making all in latency
make[2]: Entering directory
'/usr/src/xenomai-3.0.5/testsuite/latency'
CC latency-latency.o
CCLD latency
/usr/bin/ld: -r and -pie may not be used together
collect2: error: ld returned 1 exit status Makefile:451: recipe for target 'latency' failed make[2]: *** [latency] Error 1
make[2]: Leaving directory
'/usr/src/xenomai-3.0.5/testsuite/latency'
Makefile:423: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/usr/src/xenomai-3.0.5/testsuite' Makefile:460: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1No matter which options I include or not, it never goes over this. Make plain (without -j8) doesn't help either.
I'm working on a Debian 9 which I just compiled with Cobalt Core - but even with standard Debian kernel it doesn't go through. Odd enough, if I build Xenomai tools with a Fedora 25 machine, it works. *HINT* on Fedora I got a different ld version (OLDER), which doesn't warns out about " ar:
u' modifier ignored sinceD' is the default (see `U')":FEDORA VERSION:
ld -v GNU ld version 2.26.1-1.fc25Here's some versioning on my Debian box:
root@debian9:/usr/src/xenomai-3.0.5# gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/6/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Debian 6.3.0-18' --with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-6 --program-prefix=x86_64-linux-gnu- --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-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 6.3.0 20170516 (Debian 6.3.0-18) root@debian9:/usr/src/xenomai-3.0.5# ld -version GNU ld (GNU Binutils for Debian) 2.28 Copyright (C) 2017 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License version 3 or (at your option) a later version. This program has absolutely no warranty.root@debian9:/usr/src/xenomai-3.0.5# make -v GNU Make 4.1 Built for x86_64-pc-linux-gnu Copyright (C) 1988-2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.root@debian9:/usr/src/xenomai-3.0.5# dpkg -l|grep libtool ii libltdl-dev:amd64 2.4.6-2 amd64 System independent dlopen wrapper for GNU libtool ii libltdl7:amd64 2.4.6-2 amd64 System independent dlopen wrapper for GNU libtool ii libtool 2.4.6-2 all Generic library support scriptroot@debian9:/usr/src/xenomai-3.0.5# uname -a Linux debian9 4.9.24-xenomai-3.0.5-cobalt #1 SMP PREEMPT Tue Jul 11 13:16:47 UTC 2017 x86_64 GNU/LinuxHope somebody will help me to sort this out :)
Simone
_______________________________________________
Xenomai mailing list
[email protected]
https://xenomai.org/mailman/listinfo/xenomai