[etherlab-users] install on non-PC

Jeff Krasky jeff.krasky at dspcg.com
Thu Nov 17 17:30:08 CET 2011


Before trying Ralf's suggestion, I did one more 'make'attempt (I added the
'-' sign to the end of the compiler name):

 

make ARCH=arm CROSS_COMPILE=arm-unknown-linux-uclibcgnueabi-

 

This is the output.  Looks about the same.

 

user1 at dhcppc15:~/Desktop/EtherCAT4Atmel/etherlabmaster-4adb56c4198d> make
ARCH=arm CROSS_COMPILE=arm-unknown-linux-uclibcgnueabi-

make  all-recursive

make[1]: Entering directory
`/home/user1/Desktop/EtherCAT4Atmel/etherlabmaster-4adb56c4198d'

Making all in devices

make[2]: Entering directory
`/home/user1/Desktop/EtherCAT4Atmel/etherlabmaster-4adb56c4198d/devices'

make  all-recursive

make[3]: Entering directory
`/home/user1/Desktop/EtherCAT4Atmel/etherlabmaster-4adb56c4198d/devices'

Making all in e1000

make[4]: Entering directory
`/home/user1/Desktop/EtherCAT4Atmel/etherlabmaster-4adb56c4198d/devices/e100
0'

make  all-am

make[5]: Entering directory
`/home/user1/Desktop/EtherCAT4Atmel/etherlabmaster-4adb56c4198d/devices/e100
0'

make[5]: Nothing to be done for `all-am'.

make[5]: Leaving directory
`/home/user1/Desktop/EtherCAT4Atmel/etherlabmaster-4adb56c4198d/devices/e100
0'

make[4]: Leaving directory
`/home/user1/Desktop/EtherCAT4Atmel/etherlabmaster-4adb56c4198d/devices/e100
0'

make[4]: Entering directory
`/home/user1/Desktop/EtherCAT4Atmel/etherlabmaster-4adb56c4198d/devices'

make[4]: Nothing to be done for `all-am'.

make[4]: Leaving directory
`/home/user1/Desktop/EtherCAT4Atmel/etherlabmaster-4adb56c4198d/devices'

make[3]: Leaving directory
`/home/user1/Desktop/EtherCAT4Atmel/etherlabmaster-4adb56c4198d/devices'

make[2]: Leaving directory
`/home/user1/Desktop/EtherCAT4Atmel/etherlabmaster-4adb56c4198d/devices'

Making all in include

make[2]: Entering directory
`/home/user1/Desktop/EtherCAT4Atmel/etherlabmaster-4adb56c4198d/include'

make[2]: Nothing to be done for `all'.

make[2]: Leaving directory
`/home/user1/Desktop/EtherCAT4Atmel/etherlabmaster-4adb56c4198d/include'

Making all in master

make[2]: Entering directory
`/home/user1/Desktop/EtherCAT4Atmel/etherlabmaster-4adb56c4198d/master'

make  all-am

make[3]: Entering directory
`/home/user1/Desktop/EtherCAT4Atmel/etherlabmaster-4adb56c4198d/master'

make[3]: Nothing to be done for `all-am'.

make[3]: Leaving directory
`/home/user1/Desktop/EtherCAT4Atmel/etherlabmaster-4adb56c4198d/master'

make[2]: Leaving directory
`/home/user1/Desktop/EtherCAT4Atmel/etherlabmaster-4adb56c4198d/master'

Making all in script

make[2]: Entering directory
`/home/user1/Desktop/EtherCAT4Atmel/etherlabmaster-4adb56c4198d/script'

Making all in init.d

make[3]: Entering directory
`/home/user1/Desktop/EtherCAT4Atmel/etherlabmaster-4adb56c4198d/script/init.
d'

make  all-am

make[4]: Entering directory
`/home/user1/Desktop/EtherCAT4Atmel/etherlabmaster-4adb56c4198d/script/init.
d'

make[4]: Nothing to be done for `all-am'.

make[4]: Leaving directory
`/home/user1/Desktop/EtherCAT4Atmel/etherlabmaster-4adb56c4198d/script/init.
d'

make[3]: Leaving directory
`/home/user1/Desktop/EtherCAT4Atmel/etherlabmaster-4adb56c4198d/script/init.
d'

Making all in sysconfig

make[3]: Entering directory
`/home/user1/Desktop/EtherCAT4Atmel/etherlabmaster-4adb56c4198d/script/sysco
nfig'

make[3]: Nothing to be done for `all'.

make[3]: Leaving directory
`/home/user1/Desktop/EtherCAT4Atmel/etherlabmaster-4adb56c4198d/script/sysco
nfig'

make[3]: Entering directory
`/home/user1/Desktop/EtherCAT4Atmel/etherlabmaster-4adb56c4198d/script'

make[3]: Nothing to be done for `all-am'.

make[3]: Leaving directory
`/home/user1/Desktop/EtherCAT4Atmel/etherlabmaster-4adb56c4198d/script'

make[2]: Leaving directory
`/home/user1/Desktop/EtherCAT4Atmel/etherlabmaster-4adb56c4198d/script'

Making all in tool

make[2]: Entering directory
`/home/user1/Desktop/EtherCAT4Atmel/etherlabmaster-4adb56c4198d/tool'

/bin/sh ../libtool --tag=CXX   --mode=link g++ -I../include -I../master
-Wall -DREV=`if test -s ../revision; then cat ../revision; else hg id -i ..
2>/dev/null || echo "unknown"; fi` -fno-strict-aliasing -g -O2   -o ethercat
soe_errors.o ethercat-Command.o ethercat-CommandAlias.o
ethercat-CommandCStruct.o ethercat-CommandConfig.o ethercat-CommandData.o
ethercat-CommandDebug.o ethercat-CommandDomains.o ethercat-CommandDownload.o
ethercat-CommandFoeRead.o ethercat-CommandFoeWrite.o ethercat-CommandGraph.o
ethercat-CommandMaster.o ethercat-CommandPdos.o ethercat-CommandRegRead.o
ethercat-CommandRegWrite.o ethercat-CommandRescan.o ethercat-CommandSdos.o
ethercat-CommandSiiRead.o ethercat-CommandSiiWrite.o
ethercat-CommandSlaves.o ethercat-CommandSoeRead.o
ethercat-CommandSoeWrite.o ethercat-CommandStates.o ethercat-CommandUpload.o
ethercat-CommandVersion.o ethercat-CommandXml.o ethercat-DataTypeHandler.o
ethercat-FoeCommand.o ethercat-MasterDevice.o ethercat-NumberListParser.o
ethercat-SdoCommand.o ethercat-SoeCommand.o ethercat-main.o
ethercat-sii_crc.o ethercat-CommandEoe.o  

libtool: link: g++ -I../include -I../master -Wall -DREV=unknown
-fno-strict-aliasing -g -O2 -o ethercat soe_errors.o ethercat-Command.o
ethercat-CommandAlias.o ethercat-CommandCStruct.o ethercat-CommandConfig.o
ethercat-CommandData.o ethercat-CommandDebug.o ethercat-CommandDomains.o
ethercat-CommandDownload.o ethercat-CommandFoeRead.o
ethercat-CommandFoeWrite.o ethercat-CommandGraph.o ethercat-CommandMaster.o
ethercat-CommandPdos.o ethercat-CommandRegRead.o ethercat-CommandRegWrite.o
ethercat-CommandRescan.o ethercat-CommandSdos.o ethercat-CommandSiiRead.o
ethercat-CommandSiiWrite.o ethercat-CommandSlaves.o
ethercat-CommandSoeRead.o ethercat-CommandSoeWrite.o
ethercat-CommandStates.o ethercat-CommandUpload.o ethercat-CommandVersion.o
ethercat-CommandXml.o ethercat-DataTypeHandler.o ethercat-FoeCommand.o
ethercat-MasterDevice.o ethercat-NumberListParser.o ethercat-SdoCommand.o
ethercat-SoeCommand.o ethercat-main.o ethercat-sii_crc.o
ethercat-CommandEoe.o 

/usr/lib/gcc/i586-suse-linux/4.5/../../../../i586-suse-linux/bin/ld: arm
architecture of input file `soe_errors.o' is incompatible with i386 output

/usr/lib/gcc/i586-suse-linux/4.5/../../../../i586-suse-linux/bin/ld: BFD
(GNU Binutils; openSUSE 11.4) 2.21 assertion fail
../../bfd/elf32-i386.c:2864

/usr/lib/gcc/i586-suse-linux/4.5/../../../../i586-suse-linux/bin/ld: BFD
(GNU Binutils; openSUSE 11.4) 2.21 assertion fail
../../bfd/elf32-i386.c:2864

/usr/lib/gcc/i586-suse-linux/4.5/../../../../i586-suse-linux/bin/ld: BFD
(GNU Binutils; openSUSE 11.4) 2.21 assertion fail
../../bfd/elf32-i386.c:2864

collect2: ld returned 1 exit status

make[2]: *** [ethercat] Error 1

make[2]: Leaving directory
`/home/user1/Desktop/EtherCAT4Atmel/etherlabmaster-4adb56c4198d/tool'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory
`/home/user1/Desktop/EtherCAT4Atmel/etherlabmaster-4adb56c4198d'

make: *** [all] Error 2

user1 at dhcppc15:~/Desktop/EtherCAT4Atmel/etherlabmaster-4adb56c4198d>

 

 

 

 

I then tried Ralf's suggestion:

>
>./configure \
>        .. your configure options here ... \
>        --host=i386 --target=arm \
>        CXX=arm-unknown-linux-uclibcgnueabi-g++ \
>        CC=arm-unknown-linux-uclibcgnueabi-gcc
>



user1 at dhcppc15:~/Desktop/EtherCAT4Atmel/etherlabmaster-4adb56c4198d>
./configure --prefix=/home/user1/buildroot-2011.05/output/target/opt
--with-linux-dir=/home/user1/buildroot-2011.05/output/build/linux-2.6.33
--enable-generic --host=i386 --target=arm
CXX=arm-unknown-linux-uclibcgnueabi-g++
CC=arm-unknown-linux-uclibcgnueabi-gcc

configure: WARNING: if you wanted to set the --build type, don't use --host.

    If a cross compiler is detected then cross compile mode will be used

checking for a BSD-compatible install... /usr/bin/install -c

checking whether build environment is sane... yes

checking for i386-strip... no

checking for strip... strip

checking for a thread-safe mkdir -p... /bin/mkdir -p

checking for gawk... gawk

checking whether make sets $(MAKE)... yes

checking whether the C++ compiler works... no

configure: error: in
`/home/user1/Desktop/EtherCAT4Atmel/etherlabmaster-4adb56c4198d':

configure: error: C++ compiler cannot create executables

See `config.log' for more details

user1 at dhcppc15:~/Desktop/EtherCAT4Atmel/etherlabmaster-4adb56c4198d>

 

 

Is the warning "WARNING: if you wanted to set the --build type, don't use
-host." something to be concerned about?  I notice it in both ./configure
commands that I have done.

 

Since it asks to see config.log for more details, here it is.  Thanks again
for all of the comments.  I am really appreciating this.

 

 

 

 

 

 

This file contains any messages produced by compilers while

running configure, to aid debugging if configure makes a mistake.

 

It was created by ethercat configure devel, which was

generated by GNU Autoconf 2.68.  Invocation command line was

 

  $ ./configure --prefix=/home/user1/buildroot-2011.05/output/target/opt
--with-linux-dir=/home/user1/buildroot-2011.05/output/build/linux-2.6.33
--enable-generic --host=i386 --target=arm
CXX=arm-unknown-linux-uclibcgnueabi-g++
CC=arm-unknown-linux-uclibcgnueabi-gcc

 

## --------- ##

## Platform. ##

## --------- ##

 

hostname = dhcppc15

uname -m = i686

uname -r = 2.6.37.1-1.2-desktop

uname -s = Linux

uname -v = #1 SMP PREEMPT 2011-02-21 10:34:10 +0100

 

/usr/bin/uname -p = unknown

/bin/uname -X     = unknown

 

/bin/arch              = i686

/usr/bin/arch -k       = unknown

/usr/convex/getsysinfo = unknown

/usr/bin/hostinfo      = unknown

/bin/machine           = unknown

/usr/bin/oslevel       = unknown

/bin/universe          = unknown

 

PATH: /home/user1/CodeSourcery/Sourcery_G++_Lite/bin

PATH: /usr/lib/mpi/gcc/openmpi/bin

PATH: /home/user1/bin

PATH: /usr/local/bin

PATH: /usr/bin

PATH: /bin

PATH: /usr/bin/X11

PATH: /usr/X11R6/bin

PATH: /usr/games

PATH: /opt/kde3/bin

PATH: /usr/lib/mit/bin

PATH: /usr/lib/mit/sbin

PATH: /home/user1/buildroot-2011.05/output/host/usr/bin/

 

 

## ----------- ##

## Core tests. ##

## ----------- ##

 

configure:2501: checking for a BSD-compatible install

configure:2569: result: /usr/bin/install -c

configure:2580: checking whether build environment is sane

configure:2630: result: yes

configure:2679: checking for i386-strip

configure:2709: result: no

configure:2719: checking for strip

configure:2735: found /usr/bin/strip

configure:2746: result: strip

configure:2771: checking for a thread-safe mkdir -p

configure:2810: result: /bin/mkdir -p

configure:2823: checking for gawk

configure:2839: found /usr/bin/gawk

configure:2850: result: gawk

configure:2861: checking whether make sets $(MAKE)

configure:2883: result: yes

configure:3085: checking for C++ compiler version

configure:3094: arm-unknown-linux-uclibcgnueabi-g++ --version >&5

./configure: line 3096: arm-unknown-linux-uclibcgnueabi-g++: command not
found

configure:3105: $? = 127

configure:3094: arm-unknown-linux-uclibcgnueabi-g++ -v >&5

./configure: line 3096: arm-unknown-linux-uclibcgnueabi-g++: command not
found

configure:3105: $? = 127

configure:3094: arm-unknown-linux-uclibcgnueabi-g++ -V >&5

./configure: line 3096: arm-unknown-linux-uclibcgnueabi-g++: command not
found

configure:3105: $? = 127

configure:3094: arm-unknown-linux-uclibcgnueabi-g++ -qversion >&5

./configure: line 3096: arm-unknown-linux-uclibcgnueabi-g++: command not
found

configure:3105: $? = 127

configure:3125: checking whether the C++ compiler works

configure:3147: arm-unknown-linux-uclibcgnueabi-g++    conftest.cpp  >&5

./configure: line 3149: arm-unknown-linux-uclibcgnueabi-g++: command not
found

configure:3151: $? = 127

configure:3189: result: no

configure: failed program was:

| /* confdefs.h */

| #define PACKAGE_NAME "ethercat"

| #define PACKAGE_TARNAME "ethercat"

| #define PACKAGE_VERSION "devel"

| #define PACKAGE_STRING "ethercat devel"

| #define PACKAGE_BUGREPORT "fp at igh-essen.com"

| #define PACKAGE_URL ""

| #define PACKAGE "ethercat"

| #define VERSION "devel"

| /* end confdefs.h.  */

| 

| int

| main ()

| {

| 

|   ;

|   return 0;

| }

configure:3194: error: in
`/home/user1/Desktop/EtherCAT4Atmel/etherlabmaster-4adb56c4198d':

configure:3196: error: C++ compiler cannot create executables

See `config.log' for more details

 

## ---------------- ##

## Cache variables. ##

## ---------------- ##

 

ac_cv_env_CCC_set=

ac_cv_env_CCC_value=

ac_cv_env_CC_set=set

ac_cv_env_CC_value=arm-unknown-linux-uclibcgnueabi-gcc

ac_cv_env_CFLAGS_set=

ac_cv_env_CFLAGS_value=

ac_cv_env_CPPFLAGS_set=

ac_cv_env_CPPFLAGS_value=

ac_cv_env_CPP_set=

ac_cv_env_CPP_value=

ac_cv_env_CXXCPP_set=

ac_cv_env_CXXCPP_value=

ac_cv_env_CXXFLAGS_set=

ac_cv_env_CXXFLAGS_value=

ac_cv_env_CXX_set=set

ac_cv_env_CXX_value=arm-unknown-linux-uclibcgnueabi-g++

ac_cv_env_LDFLAGS_set=

ac_cv_env_LDFLAGS_value=

ac_cv_env_LIBS_set=

ac_cv_env_LIBS_value=

ac_cv_env_build_alias_set=

ac_cv_env_build_alias_value=

ac_cv_env_host_alias_set=set

ac_cv_env_host_alias_value=i386

ac_cv_env_target_alias_set=set

ac_cv_env_target_alias_value=arm

ac_cv_path_install='/usr/bin/install -c'

ac_cv_path_mkdir=/bin/mkdir

ac_cv_prog_AWK=gawk

ac_cv_prog_ac_ct_STRIP=strip

ac_cv_prog_make_make_set=yes

 

## ----------------- ##

## Output variables. ##

## ----------------- ##

 

ACLOCAL='${SHELL}
/home/user1/Desktop/EtherCAT4Atmel/etherlabmaster-4adb56c4198d/autoconf/miss
ing --run aclocal-1.11'

AMDEPBACKSLASH=''

AMDEP_FALSE=''

AMDEP_TRUE=''

AMTAR='${SHELL}
/home/user1/Desktop/EtherCAT4Atmel/etherlabmaster-4adb56c4198d/autoconf/miss
ing --run tar'

AR=''

AUTOCONF='${SHELL}
/home/user1/Desktop/EtherCAT4Atmel/etherlabmaster-4adb56c4198d/autoconf/miss
ing --run autoconf'

AUTOHEADER='${SHELL}
/home/user1/Desktop/EtherCAT4Atmel/etherlabmaster-4adb56c4198d/autoconf/miss
ing --run autoheader'

AUTOMAKE='${SHELL}
/home/user1/Desktop/EtherCAT4Atmel/etherlabmaster-4adb56c4198d/autoconf/miss
ing --run automake-1.11'

AWK='gawk'

BUILD_TOOL_FALSE=''

BUILD_TOOL_TRUE=''

CC='arm-unknown-linux-uclibcgnueabi-gcc'

CCDEPMODE=''

CFLAGS=''

CPP=''

CPPFLAGS=''

CXX='arm-unknown-linux-uclibcgnueabi-g++'

CXXCPP=''

CXXDEPMODE=''

CXXFLAGS=''

CYGPATH_W='echo'

DEFS=''

DEPDIR=''

DSYMUTIL=''

DUMPBIN=''

ECHO_C=''

ECHO_N='-n'

ECHO_T=''

EGREP=''

ENABLE_8139TOO=''

ENABLE_8139TOO_FALSE=''

ENABLE_8139TOO_TRUE=''

ENABLE_DEBUG_IF=''

ENABLE_DEBUG_IF_FALSE=''

ENABLE_DEBUG_IF_TRUE=''

ENABLE_E1000=''

ENABLE_E1000_FALSE=''

ENABLE_E1000_TRUE=''

ENABLE_E100=''

ENABLE_E100_FALSE=''

ENABLE_E100_TRUE=''

ENABLE_EOE=''

ENABLE_EOE_FALSE=''

ENABLE_EOE_TRUE=''

ENABLE_GENERIC=''

ENABLE_GENERIC_FALSE=''

ENABLE_GENERIC_TRUE=''

ENABLE_R8169=''

ENABLE_R8169_FALSE=''

ENABLE_R8169_TRUE=''

ENABLE_RTAI=''

ENABLE_RTAI_FALSE=''

ENABLE_RTAI_TRUE=''

ENABLE_RTDM=''

ENABLE_RTDM_FALSE=''

ENABLE_RTDM_TRUE=''

ENABLE_TTY=''

ENABLE_TTY_FALSE=''

ENABLE_TTY_TRUE=''

ENABLE_USERLIB_FALSE=''

ENABLE_USERLIB_TRUE=''

ENABLE_XENOMAI=''

ENABLE_XENOMAI_FALSE=''

ENABLE_XENOMAI_TRUE=''

EXEEXT=''

FGREP=''

GREP=''

INSTALL_DATA='${INSTALL} -m 644'

INSTALL_MOD_DIR=''

INSTALL_PROGRAM='${INSTALL}'

INSTALL_SCRIPT='${INSTALL}'

INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'

KERNEL_8139TOO=''

KERNEL_E1000=''

KERNEL_E100=''

KERNEL_R8169=''

LD=''

LDFLAGS=''

LIBOBJS=''

LIBS=''

LIBTOOL=''

LINUX_SOURCE_DIR=''

LIPO=''

LN_S=''

LTLIBOBJS=''

MAKEINFO='${SHELL}
/home/user1/Desktop/EtherCAT4Atmel/etherlabmaster-4adb56c4198d/autoconf/miss
ing --run makeinfo'

MKDIR_P='/bin/mkdir -p'

NM=''

NMEDIT=''

OBJDUMP=''

OBJEXT=''

OTOOL64=''

OTOOL=''

PACKAGE='ethercat'

PACKAGE_BUGREPORT='fp at igh-essen.com'

PACKAGE_NAME='ethercat'

PACKAGE_STRING='ethercat devel'

PACKAGE_TARNAME='ethercat'

PACKAGE_URL=''

PACKAGE_VERSION='devel'

PATH_SEPARATOR=':'

RANLIB=''

RTAI_DIR=''

SED=''

SET_MAKE=''

SHELL='/bin/sh'

STRIP='strip'

VERSION='devel'

XENOMAI_DIR=''

ac_ct_CC=''

ac_ct_CXX=''

ac_ct_DUMPBIN=''

am__EXEEXT_FALSE=''

am__EXEEXT_TRUE=''

am__fastdepCC_FALSE=''

am__fastdepCC_TRUE=''

am__fastdepCXX_FALSE=''

am__fastdepCXX_TRUE=''

am__include=''

am__isrc=''

am__leading_dot='.'

am__quote=''

am__tar='${AMTAR} chof - "$$tardir"'

am__untar='${AMTAR} xf -'

bindir='${exec_prefix}/bin'

build=''

build_alias=''

build_cpu=''

build_os=''

build_vendor=''

datadir='${datarootdir}'

datarootdir='${prefix}/share'

docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'

dvidir='${docdir}'

exec_prefix='NONE'

host='i386'

host_alias='i386'

host_cpu=''

host_os=''

host_vendor=''

htmldir='${docdir}'

includedir='${prefix}/include'

infodir='${datarootdir}/info'

install_sh='${SHELL}
/home/user1/Desktop/EtherCAT4Atmel/etherlabmaster-4adb56c4198d/autoconf/inst
all-sh'

libdir='${exec_prefix}/lib'

libexecdir='${exec_prefix}/libexec'

localedir='${datarootdir}/locale'

localstatedir='${prefix}/var'

lt_ECHO='echo'

mandir='${datarootdir}/man'

mkdir_p='/bin/mkdir -p'

oldincludedir='/usr/include'

pdfdir='${docdir}'

prefix='/home/user1/buildroot-2011.05/output/target/opt'

program_transform_name='s,x,x,'

psdir='${docdir}'

sbindir='${exec_prefix}/sbin'

sharedstatedir='${prefix}/com'

sysconfdir='${prefix}/etc'

target_alias='arm'

 

## ----------- ##

## confdefs.h. ##

## ----------- ##

 

/* confdefs.h */

#define PACKAGE_NAME "ethercat"

#define PACKAGE_TARNAME "ethercat"

#define PACKAGE_VERSION "devel"

#define PACKAGE_STRING "ethercat devel"

#define PACKAGE_BUGREPORT "fp at igh-essen.com"

#define PACKAGE_URL ""

#define PACKAGE "ethercat"

#define VERSION "devel"

 

configure: exit 77

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20111117/a24c2a1a/attachment-0004.htm>


More information about the Etherlab-users mailing list