[etherlab-users] installation issue on beaglebone black

George Broz brozgeo at gmail.com
Fri Oct 30 23:36:22 CET 2015


> From: etherlab-users [mailto:etherlab-users-bounces at etherlab.org] On Behalf Of Carlos David Rodriguez
> Sent: Wednesday, October 28, 2015 7:22 AM
> To: etherlab-users at etherlab.org
> Subject: [etherlab-users] installation issue on beaglebone black
>
> hi
> im trying to install etherlab master into a beaglebone black (arm).
> i passed the bootstrap, configure --enable-8139too=no, make, make modules without a problem however when i try make install with sudo it gives me the following:
> ubuntu at arm:~/ethercat-hg$ sudo make install
> make  install-recursive
> make[1]: Entering directory `/home/ubuntu/ethercat-hg'
> Making install in include
> make[2]: Entering directory `/home/ubuntu/ethercat-hg/include'
> make[3]: Entering directory `/home/ubuntu/ethercat-hg/include'
> make[3]: Nothing to be done for `install-exec-am'.
:
:
:
> Making install in tool
> make[2]: Entering directory `/home/ubuntu/ethercat-hg/tool'
> /bin/bash ../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 ../master/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=4b0b906df1b4 -fno-strict-aliasing -g -O2 -o ethercat ../master/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/bin/ld: error: ethercat uses VFP register arguments, ../master/soe_errors.o does not
> /usr/bin/ld: failed to merge target specific data of file ../master/soe_errors.o
> collect2: error: ld returned 1 exit status
> make[2]: *** [ethercat] Error 1
> make[2]: Leaving directory `/home/ubuntu/ethercat-hg/tool'
> make[1]: *** [install-recursive] Error 1
> make[1]: Leaving directory `/home/ubuntu/ethercat-hg'
> make: *** [install] Error 2
> any ideas on how to fix this? thanks a lot.
>

I had the same issue on another ARM SoC. Some research on the topic
indicated it was caused by some parts of the system being built with tools
configured for 'soft-float' while other parts were compiled with tools
configured
for 'hard-float'. The results would be incompatible (and would
generate this message).

I changed my ./configure to include the same options used to build the
rest of my BSP:

./configure --disable-8139too --enable-generic CFLAGS='-g -O2
-march=armv7-a -mthumb-interwork -mfloat-abi=hard -mfpu=neon
-mtune=cortex-a9'  CPPFLAGS='-g -O2 -march=armv7-a -mthumb-interwork
-mfloat-abi=hard -mfpu=neon -mtune=cortex-a9' CXXFLAGS='-g -O2
-march=armv7-a -mthumb-interwork -mfloat-abi=hard -mfpu=neon
-mtune=cortex-a9'

but I got the same error message. BTW - I'm building on the ARM target
to take any
cross-compilation issues out of the picture.

As a workaround, I discovered that if I "touch master/soe_errors.c"
when this happens
and "make install" again, then it works. Have not had time to go back to it.


Regards,

--George Broz
Moog Industrial Group



More information about the Etherlab-users mailing list