* [Xenomai] Compiling testsuite and utils
@ 2016-07-08 19:30 Eder Alves de Moura
2016-07-08 19:40 ` Philippe Gerum
2016-07-08 19:49 ` Gilles Chanteperdrix
0 siblings, 2 replies; 9+ messages in thread
From: Eder Alves de Moura @ 2016-07-08 19:30 UTC (permalink / raw)
To: xenomai
Dears,
I am starting with Xenomai and rt systems and I want to compile it for
a raspberry pi 2/3 and beaglebone black but first I compiled it to a
PC and, apparently it is working fine.
$ dmesg | grep -i xenomai
[ 3.224489] [Xenomai] scheduling class idle registered.
[ 3.224491] [Xenomai] scheduling class rt registered.
[ 3.224515] [Xenomai] disabling automatic C1E state promotion on
Intel processor
[ 3.224521] [Xenomai] SMI-enabled chipset found, but SMI workaround disabled
(see xenomai.smi parameter). You might encounter
[ 3.224592] I-pipe: head domain Xenomai registered.
[ 3.224916] [Xenomai] Cobalt v3.0.2 (Exact Zero)
But after install I could not compile the tools for xenomai, running
$ mkdir $build_root && cd $build_root
$ $xenomai_root/configure --with-core=cobalt --enable-smp --enable-pshared \
--host=i686-linux CFLAGS="-m32 -O2" LDFLAGS="-m32"
I am receiving the following message
checking whether we build for Cobalt or Mercury core... cobalt
checking build system type... x86_64-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for i686-linux-gcc... no
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/home/pc/tools/xenomai-3-3.0.2':
configure: error: C compiler cannot create executables
See `config.log' for more details
My machine is running an Ubuntu Mate
$ uname -a
Linux my-pc 4.1.18 #1 SMP PREEMPT Mon Jun 27 16:53:25 BRT 2016 x86_64
x86_64 x86_64 GNU/Linux
and its configuration is
lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 2
On-line CPU(s) list: 0,1
Thread(s) per core: 1
Core(s) per socket: 2
Socket(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 42
Model name: Intel(R) Core(TM) i3-2120 CPU @ 3.30GHz
Stepping: 7
CPU MHz: 3292.343
BogoMIPS: 6584.68
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 3072K
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep
mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht
tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts
rep_good nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64
monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2
popcnt tsc_deadline_timer xsave avx lahf_lm arat epb pln pts dtherm
tpr_shadow vnmi flexpriority ept vpid xsaveopt
--
--------------------------------------------------
Éder Moura
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Xenomai] Compiling testsuite and utils
2016-07-08 19:30 [Xenomai] Compiling testsuite and utils Eder Alves de Moura
@ 2016-07-08 19:40 ` Philippe Gerum
2016-07-08 19:49 ` Gilles Chanteperdrix
1 sibling, 0 replies; 9+ messages in thread
From: Philippe Gerum @ 2016-07-08 19:40 UTC (permalink / raw)
To: Eder Alves de Moura, xenomai
On 07/08/2016 09:30 PM, Eder Alves de Moura wrote:
> Dears,
>
> I am starting with Xenomai and rt systems and I want to compile it for
> a raspberry pi 2/3 and beaglebone black but first I compiled it to a
> PC and, apparently it is working fine.
>
> $ dmesg | grep -i xenomai
> [ 3.224489] [Xenomai] scheduling class idle registered.
> [ 3.224491] [Xenomai] scheduling class rt registered.
> [ 3.224515] [Xenomai] disabling automatic C1E state promotion on
> Intel processor
> [ 3.224521] [Xenomai] SMI-enabled chipset found, but SMI workaround disabled
> (see xenomai.smi parameter). You might encounter
> [ 3.224592] I-pipe: head domain Xenomai registered.
> [ 3.224916] [Xenomai] Cobalt v3.0.2 (Exact Zero)
>
>
>
> But after install I could not compile the tools for xenomai, running
>
> $ mkdir $build_root && cd $build_root
> $ $xenomai_root/configure --with-core=cobalt --enable-smp --enable-pshared \
> --host=i686-linux CFLAGS="-m32 -O2" LDFLAGS="-m32"
>
> I am receiving the following message
>
> checking whether we build for Cobalt or Mercury core... cobalt
> checking build system type... x86_64-pc-linux-gnu
> checking host system type... i686-pc-linux-gnu
> checking for a BSD-compatible install... /usr/bin/install -c
> checking for i686-linux-gcc... no
> checking for gcc... gcc
> checking whether the C compiler works... no
> configure: error: in `/home/pc/tools/xenomai-3-3.0.2':
> configure: error: C compiler cannot create executables
> See `config.log' for more details
Did you check config.log?
--
Philippe.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Xenomai] Compiling testsuite and utils
2016-07-08 19:30 [Xenomai] Compiling testsuite and utils Eder Alves de Moura
2016-07-08 19:40 ` Philippe Gerum
@ 2016-07-08 19:49 ` Gilles Chanteperdrix
[not found] ` <CAPXCTbYJ_rQnvdU7srw1oGL6R0c7vJmMF+u_T7d-zgkZ1yLCXg@mail.gmail.com>
1 sibling, 1 reply; 9+ messages in thread
From: Gilles Chanteperdrix @ 2016-07-08 19:49 UTC (permalink / raw)
To: Eder Alves de Moura; +Cc: xenomai
On Fri, Jul 08, 2016 at 04:30:17PM -0300, Eder Alves de Moura wrote:
> Dears,
>
> I am starting with Xenomai and rt systems and I want to compile it for
> a raspberry pi 2/3 and beaglebone black but first I compiled it to a
> PC and, apparently it is working fine.
>
> $ dmesg | grep -i xenomai
> [ 3.224489] [Xenomai] scheduling class idle registered.
> [ 3.224491] [Xenomai] scheduling class rt registered.
> [ 3.224515] [Xenomai] disabling automatic C1E state promotion on
> Intel processor
> [ 3.224521] [Xenomai] SMI-enabled chipset found, but SMI workaround disabled
> (see xenomai.smi parameter). You might encounter
> [ 3.224592] I-pipe: head domain Xenomai registered.
> [ 3.224916] [Xenomai] Cobalt v3.0.2 (Exact Zero)
>
>
>
> But after install I could not compile the tools for xenomai, running
>
> $ mkdir $build_root && cd $build_root
> $ $xenomai_root/configure --with-core=cobalt --enable-smp --enable-pshared \
> --host=i686-linux CFLAGS="-m32 -O2" LDFLAGS="-m32"
>
> I am receiving the following message
>
> checking whether we build for Cobalt or Mercury core... cobalt
> checking build system type... x86_64-pc-linux-gnu
> checking host system type... i686-pc-linux-gnu
> checking for a BSD-compatible install... /usr/bin/install -c
> checking for i686-linux-gcc... no
> checking for gcc... gcc
> checking whether the C compiler works... no
> configure: error: in `/home/pc/tools/xenomai-3-3.0.2':
> configure: error: C compiler cannot create executables
> See `config.log' for more details
Are you sure you have everything installed for gcc -m32 to work? I
mean, did you try to compile an "hello world" application with gcc
-m32 to see if the compilation works? Also, what is the point of
compiling in 32 bits mode, why not using a 64 bits kernel and
user-space?
--
Gilles.
https://click-hack.org
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Xenomai] Compiling testsuite and utils
[not found] ` <CAPXCTbYJ_rQnvdU7srw1oGL6R0c7vJmMF+u_T7d-zgkZ1yLCXg@mail.gmail.com>
@ 2016-07-08 20:34 ` Gilles Chanteperdrix
2016-07-08 20:47 ` Eder Alves de Moura
2016-07-08 20:48 ` Gilles Chanteperdrix
0 siblings, 2 replies; 9+ messages in thread
From: Gilles Chanteperdrix @ 2016-07-08 20:34 UTC (permalink / raw)
To: Eder Alves de Moura; +Cc: Xenomai
On Fri, Jul 08, 2016 at 05:28:48PM -0300, Eder Alves de Moura wrote:
> Dear Gilles,
Dear Eder,
next private mail will not be answered.
>
> I just trying to run it for the first time, I was just following the
> tutorial (https://xenomai.org/installing-xenomai-3-x/) on the section
> "Examples of building the Xenomai libraries and tools" and after some
> trials I unziped again the xenomai folder again and I ran the command
> "$ ../configure --with-core=cobalt --enable-smp --enable-pshared
> --host=i686" on build directory inside the xenomai and it returned to
> me:
Ok. This is a different issue. You are not answering my questions
though. So I am going to repeat them:
- do you really want to compile a 32 bits version of Xenomai?
- if yes, did you check that you have everything in place to do it,
by compiling a C language hello world command with gcc -m32?
Until you have answered these questions, any later attempt at
compiling xenomai is useless.
--
Gilles.
https://click-hack.org
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Xenomai] Compiling testsuite and utils
2016-07-08 20:34 ` Gilles Chanteperdrix
@ 2016-07-08 20:47 ` Eder Alves de Moura
2016-07-08 20:50 ` Gilles Chanteperdrix
2016-07-08 20:48 ` Gilles Chanteperdrix
1 sibling, 1 reply; 9+ messages in thread
From: Eder Alves de Moura @ 2016-07-08 20:47 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: Xenomai
- do you really want to compile a 32 bits version of Xenomai?
no. I am not want to compile it to a specific 32 bits.
I want to run this program on my machine
--
--------------------------------------------------
Éder Alves de Moura
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Xenomai] Compiling testsuite and utils
2016-07-08 20:34 ` Gilles Chanteperdrix
2016-07-08 20:47 ` Eder Alves de Moura
@ 2016-07-08 20:48 ` Gilles Chanteperdrix
1 sibling, 0 replies; 9+ messages in thread
From: Gilles Chanteperdrix @ 2016-07-08 20:48 UTC (permalink / raw)
To: Eder Alves de Moura; +Cc: Xenomai
On Fri, Jul 08, 2016 at 10:34:05PM +0200, Gilles Chanteperdrix wrote:
> On Fri, Jul 08, 2016 at 05:28:48PM -0300, Eder Alves de Moura wrote:
> > Dear Gilles,
>
> Dear Eder,
>
> next private mail will not be answered.
>
> >
> > I just trying to run it for the first time, I was just following the
> > tutorial (https://xenomai.org/installing-xenomai-3-x/) on the section
> > "Examples of building the Xenomai libraries and tools" and after some
> > trials I unziped again the xenomai folder again and I ran the command
> > "$ ../configure --with-core=cobalt --enable-smp --enable-pshared
> > --host=i686" on build directory inside the xenomai and it returned to
> > me:
>
> Ok. This is a different issue. You are not answering my questions
> though. So I am going to repeat them:
> - do you really want to compile a 32 bits version of Xenomai?
> - if yes, did you check that you have everything in place to do it,
> by compiling a C language hello world command with gcc -m32?
a C language hello world program, I mean.
>
> Until you have answered these questions, any later attempt at
> compiling xenomai is useless.
I mean, please answer these questions, the right arguments to pass
to configure depend on the answer.
--
Gilles.
https://click-hack.org
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Xenomai] Compiling testsuite and utils
2016-07-08 20:47 ` Eder Alves de Moura
@ 2016-07-08 20:50 ` Gilles Chanteperdrix
2016-07-09 0:04 ` Eder Alves de Moura
0 siblings, 1 reply; 9+ messages in thread
From: Gilles Chanteperdrix @ 2016-07-08 20:50 UTC (permalink / raw)
To: Eder Alves de Moura; +Cc: Xenomai
On Fri, Jul 08, 2016 at 05:47:40PM -0300, Eder Alves de Moura wrote:
> - do you really want to compile a 32 bits version of Xenomai?
>
> no. I am not want to compile it to a specific 32 bits.
The run configure without a --host or CFLAGS, or LDFLAGS. The
defaults should be fine.
--
Gilles.
https://click-hack.org
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Xenomai] Compiling testsuite and utils
2016-07-08 20:50 ` Gilles Chanteperdrix
@ 2016-07-09 0:04 ` Eder Alves de Moura
2016-07-09 2:09 ` Gilles Chanteperdrix
0 siblings, 1 reply; 9+ messages in thread
From: Eder Alves de Moura @ 2016-07-09 0:04 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: Xenomai
Running:
xenomai-3-3.0.2/build$ ../configure --with-core=cobalt --enable-smp
--enable-pshared
configure: error: cannot find install-sh, install.sh, or shtool in
config ".."/config
checking whether we build for Cobalt or Mercury core... cobalt
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking target system type... x86_64-pc-linux-gnu
checking for gcc... gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
../configure: line 4500: LT_PATH_NM: command not found
../configure: line 4503: LT_SYS_SYMBOL_USCORE: command not found
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking whether make supports nested variables... yes
configure: error: source directory already configured; run "make
distclean" there first
But executing make distclean doesn't work also.
2016-07-08 17:50 GMT-03:00 Gilles Chanteperdrix
<gilles.chanteperdrix@xenomai.org>:
> On Fri, Jul 08, 2016 at 05:47:40PM -0300, Eder Alves de Moura wrote:
>> - do you really want to compile a 32 bits version of Xenomai?
>>
>> no. I am not want to compile it to a specific 32 bits.
>
> The run configure without a --host or CFLAGS, or LDFLAGS. The
> defaults should be fine.
>
> --
> Gilles.
> https://click-hack.org
--
--------------------------------------------------
Éder Alves de Moura
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [Xenomai] Compiling testsuite and utils
2016-07-09 0:04 ` Eder Alves de Moura
@ 2016-07-09 2:09 ` Gilles Chanteperdrix
0 siblings, 0 replies; 9+ messages in thread
From: Gilles Chanteperdrix @ 2016-07-09 2:09 UTC (permalink / raw)
To: Eder Alves de Moura; +Cc: Xenomai
On Fri, Jul 08, 2016 at 09:04:23PM -0300, Eder Alves de Moura wrote:
> Running:
>
> xenomai-3-3.0.2/
The sources may be found here:
https://xenomai.org//downloads/xenomai/stable/xenomai-3.0.2.tar.bz2
When you extract them, the directory should be named
"xenomai-3.0.2".
You do not need to run autoreconf.
--
Gilles.
https://click-hack.org
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2016-07-09 2:09 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-08 19:30 [Xenomai] Compiling testsuite and utils Eder Alves de Moura
2016-07-08 19:40 ` Philippe Gerum
2016-07-08 19:49 ` Gilles Chanteperdrix
[not found] ` <CAPXCTbYJ_rQnvdU7srw1oGL6R0c7vJmMF+u_T7d-zgkZ1yLCXg@mail.gmail.com>
2016-07-08 20:34 ` Gilles Chanteperdrix
2016-07-08 20:47 ` Eder Alves de Moura
2016-07-08 20:50 ` Gilles Chanteperdrix
2016-07-09 0:04 ` Eder Alves de Moura
2016-07-09 2:09 ` Gilles Chanteperdrix
2016-07-08 20:48 ` Gilles Chanteperdrix
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.