[etherlab-users] problems making etherlab (+ other issues)
Richard Hacker (MSc Eng)
ha at igh-essen.com
Wed Jul 15 08:57:10 CEST 2009
Hello Dusty
As I read from your mail, the output of the make program states that there is
a problem in the file kernel-cflags.c
If you had attached this file to your mail, I might have been able to help you
by now.
Maybe you also want to tell me which kernel version you are using, as well as
describing your hardware platform (I see you are compiling an SMP kernel).
-Richard
On Tuesday 14 July 2009 23:59, dclark at mmto.org wrote:
> Hi all,
>
> I'm new to linux and etherlab, so I've had lots of issues getting going
> with ethercat and etherlab. The show-stopper for me today is getting an
> error when executing "make" on etherlab thus:
> <snip>
> make[3]: Leaving directory `/usr/local/src/etherlab-1.2-rc5/tools/buddy'
> Making all in rt_appcore
> make[3]: Entering directory
> `/usr/local/src/etherlab-1.2-rc5/tools/rt_appcore'
> make -C "/usr/src/linux"
> M="/usr/local/src/etherlab-1.2-rc5/tools/rt_appcore" \
> V="" DEFS="-DHAVE_CONFIG_H" \
> RTAI_DIR="/usr/realtime" \
> STAGING_DIR="" \
> RT_APPCORE_SRCS="rt_main.c app_chardev.c rt_vars.c
> etl_data_types.c"
> make[4]: Entering directory `/usr/src/linux-2.6.24.7'
> LD /usr/local/src/etherlab-1.2-rc5/tools/rt_appcore/built-in.o
> CC [M] /usr/local/src/etherlab-1.2-rc5/tools/rt_appcore/rt_main.o
> CC [M] /usr/local/src/etherlab-1.2-rc5/tools/rt_appcore/app_chardev.o
> CC [M] /usr/local/src/etherlab-1.2-rc5/tools/rt_appcore/rt_vars.o
> CC [M] /usr/local/src/etherlab-1.2-rc5/tools/rt_appcore/etl_data_types.o
> LD [M] /usr/local/src/etherlab-1.2-rc5/tools/rt_appcore/rt_appcore.o
> HOSTCC /usr/local/src/etherlab-1.2-rc5/tools/rt_appcore/kernel-cflags
> /usr/local/src/etherlab-1.2-rc5/tools/rt_appcore/kernel-cflags.c:1: error:
> expected identifier or ( before - token
> /usr/local/src/etherlab-1.2-rc5/tools/rt_appcore/kernel-cflags.c:1: error:
> stray # in program
> make[5]: ***
> [/usr/local/src/etherlab-1.2-rc5/tools/rt_appcore/kernel-cflags] Error 1
> make[4]: *** [_module_/usr/local/src/etherlab-1.2-rc5/tools/rt_appcore]
> Error 2
> make[4]: Leaving directory `/usr/src/linux-2.6.24.7'
> make[3]: *** [kernel-cflags] Error 2
> make[3]: Leaving directory
> `/usr/local/src/etherlab-1.2-rc5/tools/rt_appcore' make[2]: ***
> [all-recursive] Error 1
> make[2]: Leaving directory `/usr/local/src/etherlab-1.2-rc5/tools'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/local/src/etherlab-1.2-rc5'
> make: *** [all] Error 2
>
> I succeeded in installing rtai-3.7.1 earlier (before ethercat) and
> ethercat version returns:
>
> IgH EtherCAT master devel r1590
>
> since I found in the forum that -r1590 has the e100 driver in it for my
> kernel version, which uname -a:
> Linux bergenwald 2.6.24.7-rtai #1 SMP Fri Jul 10 14:14:52 MST 2009 i686
> GNU/Linux
> I'm running Ubuntu 8.04 (hardy) with a GNOME 2.22.3 desktop.
>
> I note that the 1.6 bundle has no ethercat configure support for e100
> (removed?) as far as I can tell and I got the same make error with the
> etherlab-1.2-rc4 version contained within it. I also found that
> #!/usr/bin/bash was necessary to get the ethercat command line tool to
> work (this really should have been better documented).
>
> The ethercat command line tool also hangs the system when attempting to
> execute ./ethercat stop or ./ethercat restart. Any insight on this? I can
> start it and do all the other usual things, e.g. ./ethercat slaves...
>
> Thanks for any help,
>
> Dusty Clark
> MMT Observatory
> University of Arizona
> Tucson, AZ
--
------------------------------------------------------------------------
Richard Hacker
Ingenieurgemeinschaft IgH
Gesellschaft für Ingenieurleistungen mbH
Heinz-Baecker-Str. 34
D-45356 Essen
Tel.: +49 201 / 360-14-16
Fax.: +49 201 / 360-14-14
Mobil: +49 175 6822089
E-mail: ha at igh-essen.com
------------------------------------------------------------------------
More information about the Etherlab-users
mailing list