Configuration in a raspberry (make unix)

212 views
Skip to first unread message

Mario Rodríguez Marín

unread,
Jul 28, 2018, 3:50:58 PM7/28/18
to Earthworm Community Forum
I have this error:
gcc: error: unrecognized command line  option '-m32'
Makefile: 73: failure in the instructions for the target 'libqlib2.a'
make [2]: *** [libqlib2.a] Error 1
make [2]: it leaves the directory '/home/pi/ew/earthworm_7.7/src/libsrc/qlib2'
makefile.unix: 31: failure in the instructions for the target 'qlib2'
make [1]: *** [qlib2] Error 2
make [1]: it leaves the directory '/home/pi/ew/earthworm_7.7/src/libsrc'
Makefile: 118: failure in the instructions for the target 'unix_libs'
make: *** [unix_libs] Error 2

Michele Bertoni

unread,
Jul 29, 2018, 9:01:36 AM7/29/18
to earthwo...@googlegroups.com
M32 is an option for PC processors. you have to manually remove it from make rules:

follow steps here http://crsengineering.altervista.org/eng/ew_installing_eng.htm and remove flags on makefile on libsrc (or utils), I don't remember.

If it's not urgent, I can place online EW sources for Raspberry.

--
--
You received this message because you are subscribed to the Google
Groups "Earthworm Community Forum" group.
 
To post to this group, send an email to earthworm_forum@googlegroups.com
 
To unsubscribe from this group, send an email to
earthworm_forum+unsubscribe@googlegroups.com
 
For more options, visit this group at
http://groups.google.com/group/earthworm_forum?hl=en

---
You received this message because you are subscribed to the Google Groups "Earthworm Community Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to earthworm_forum+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

El Berto

unread,
Jul 31, 2018, 5:00:25 AM7/31/18
to Earthworm Community Forum
You can download Raspberry-Pi ready to compile EW from here:


Mario Rodríguez Marín

unread,
Jul 31, 2018, 2:46:52 PM7/31/18
to Earthworm Community Forum
Thanks it works!!!
But I have another question, the configuration in the raspberry is different from that of ubuntu?
I tried the same file in ubuntu 14.04, the compilation is correct but when I tried the startstop comand can't find it.

Larry Baker

unread,
Aug 2, 2018, 12:40:03 AM8/2/18
to mario...@hotmail.com, Larry Baker, earthwo...@googlegroups.com, ra.crs....@gmail.com
Mario and others,

I just updated the Earthworm SVN to support ARM (and AARCH64) using gcc.  If you install gfortran, you will get the Hypo2000 modules as well.

There is a new environment/ew_linux_arm.bash script.  You do not specify the bits; it runs the compiler to determine the target architecture.

The version you obtained is 7.7, I believe.  There have been many bug fixes and enhancements since then.  I recommend you use the latest version.

I have a BeagleBone Black running Debian wheezy.  If you encounter any problems, please report them and I will have a look.

Cheers,

Larry Baker
US Geological Survey
650-329-5608
ba...@usgs.gov



--
--
You received this message because you are subscribed to the Google
Groups "Earthworm Community Forum" group.
 
To post to this group, send an email to earthwo...@googlegroups.com

 
To unsubscribe from this group, send an email to

 
For more options, visit this group at
http://groups.google.com/group/earthworm_forum?hl=en

---
You received this message because you are subscribed to the Google Groups "Earthworm Community Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to earthworm_for...@googlegroups.com.

Mario Rodríguez Marín

unread,
Aug 2, 2018, 5:19:08 PM8/2/18
to Earthworm Community Forum
Thanks, the turorial in this page http://love.isti.com/trac/ew/wiki/Linux works for the latest version?

Mario Rodríguez Marín

unread,
Aug 2, 2018, 5:19:08 PM8/2/18
to Earthworm Community Forum
Thanks, I still follow the instructions of this page http://love.isti.com/trac/ew/wiki/Linux ?


El miércoles, 1 de agosto de 2018, 23:40:03 (UTC-5), Larry Baker escribió:

Larry Baker

unread,
Aug 2, 2018, 5:37:09 PM8/2/18
to earthwo...@googlegroups.com, Larry Baker
Thanks, the turorial in this page http://love.isti.com/trac/ew/wiki/Linux works for the latest version?

I am not sure.  I do not use that tutorial.

Here are the steps I use on my BeagleBone Black.  I only have a root account.  I build Earthworm in /opt/earthworm.  That is where I keep the source and binaries.  I use /home/earthworm to run Earthworm.  When I do the svn download, I note the version (rev) number.  That is what I use to set the EW_REV variable.

You should follow the tutorial to install the compilers and subversion that you will need, including gfortran.  The Debian wheezy I use came with gcc installed.  I only had to install gfortran and subversion, as I recall.

Download the latest Earthworm SVN sources and create a tar file snapshot

# cd /opt/earthworm
# rm -f -r earthworm-svn
# svn checkout svn://svn.isti.com/earthworm/trunk earthworm-svn
# EW_REV=rev
# rm -f -r earthworm-7.10-${EW_REV}
# svn export -r ${EW_REV} earthworm-svn earthworm-7.10-${EW_REV}
# tar -cjf earthworm-7.10-${EW_REV}-src.tar.bz2 earthworm-7.10-${EW_REV}

The next two lines are only when you want to start over from the tar file snapshot

# rm -r earthworm-7.10-${EW_REV}
# tar -xjf earthworm-7.10-${EW_REV}-src.tar.bz2

Build the Earthworm binaries from the tar file snapshot

# EW_INSTALL_HOME="`pwd`" \
  EW_INSTALL_VERSION=earthworm-7.10-${EW_REV} \
  source earthworm-7.10-${EW_REV}/environment/ew_linux_arm.bash
# cd earthworm-7.10-${EW_REV}/src
# make clean_unix
# make clean_bin_unix
# make unix &>../../make-linux-arm-${EW_BITS}.log

Look for errors (there should not be any)

# tail ../../make-linux-arm-${EW_BITS}.log
# grep -i ': err' ../../make-linux-arm-${EW_BITS}.log
# grep '[*][*][*]' ../../make-linux-arm-${EW_BITS}.log

The binaries are in /opt/earthworm/earthworm-7.10-${EW_REV}/bin

Larry Baker
US Geological Survey
650-329-5608
ba...@usgs.gov



Mario Rodríguez Marín

unread,
Aug 3, 2018, 12:27:37 PM8/3/18
to Earthworm Community Forum
I don't know where I see the version number (rev).

Larry Baker

unread,
Aug 3, 2018, 1:31:19 PM8/3/18
to mario...@hotmail.com, Larry Baker, earthwo...@googlegroups.com
When you do the svn checkout, it tells you the Rev.

After you have checkout out the Earthworm trunk, svn info will also tell you (Last Changed Rev):

$ cd earthworm-svn
$ svn info
Path: .
Working Copy Root Path: /Users/baker/Desktop/Software/Earthworm/earthworm-svn
Relative URL: ^/trunk
Repository UUID: 41308c8d-7685-0410-9017-acdc39f475a8
Revision: 7554
Node Kind: directory
Schedule: normal
Last Changed Author: baker
Last Changed Rev: 7554
Last Changed Date: 2018-08-02 17:30:41 -0700 (Thu, 02 Aug 2018)

Larry Baker
US Geological Survey
650-329-5608
ba...@usgs.gov



Mario Rodríguez Marín

unread,
Aug 7, 2018, 12:14:28 PM8/7/18
to Earthworm Community Forum
Thanks! But when I set the comand "tail ../../make-linux-arm-${EW_BITS}.log" send me this error.
root@user-HP-Pavilion-dv6500-Notebook-PC:/opt/earthworm/earthworm-7.10-7555/src# tail ../../make-linux-arm-${EW_BITS}.log
  ^
In file included from srusb2ew.c:141:0:
/opt/earthworm/earthworm-7.10-7555/src/data_sources/srusb2ew/USBXCH/Include/SrUsbXch.h:1722:2: error: #error sizeof( long ) != sizeof( int )
 #error sizeof( long ) != sizeof( int )
  ^
make[2]: *** [srusb2ew.o] Error 1
make[2]: se sale del directorio «/opt/earthworm/earthworm-7.10-7555/src/data_sources/srusb2ew»
make[1]: *** [unix_modules] Error 2
make[1]: se sale del directorio «/opt/earthworm/earthworm-7.10-7555/src/data_sources»
make: *** [unix_modules] Error 2
root@user-HP-Pavilion-dv6500-Notebook-PC:/opt/earthworm/earthworm-7.10-7555/src# grep -i ': err' ../../make-linux-arm-${EW_BITS}.log
/opt/earthworm/earthworm-7.10-7555/src/data_sources/srusb2ew/USBXCH/Include/SrUsbXch.h:25:2: error: #error sizeof( long ) != sizeof( int )
/opt/earthworm/earthworm-7.10-7555/src/data_sources/srusb2ew/USBXCH/Include/SrUsbXch.h:1722:2: error: #error sizeof( long ) != sizeof( int )

Larry Baker

unread,
Aug 7, 2018, 2:09:18 PM8/7/18
to earthwo...@googlegroups.com, Larry Baker
Are you compiling on Raspberry Pi?  The prompt you show looks like it is from a PC.

You must use ew_linux_arm.bash on Raspberry Pi; you must use ew_linux.bash on PC.

I do not have a Raspberry Pi.  I have a BeagleBone Black.  If you are getting this error on a raspberry Pi, please describe completely the O/S and compiler you are using, and show the commands and the errors from the log file.

Larry Baker
US Geological Survey
650-329-5608
ba...@usgs.gov



Mario Rodríguez Marín

unread,
Aug 8, 2018, 3:39:00 PM8/8/18
to Earthworm Community Forum
PC

Larry Baker

unread,
Aug 8, 2018, 4:07:02 PM8/8/18
to earthwo...@googlegroups.com, Larry Baker
Your subject is "Configuration in a raspberry".  Why?  A PC will use ew_linux.bash, not ew_linux_arm.bash.

Please describe what you are trying to do and what O/S you use.

Larry Baker
US Geological Survey
650-329-5608
ba...@usgs.gov



Mario Rodríguez Marín

unread,
Aug 9, 2018, 7:05:20 PM8/9/18
to Earthworm Community Forum

In a comment above, I asked if the configuration of the raspberry works for ubuntu 14.04

Larry Baker

unread,
Aug 9, 2018, 7:31:13 PM8/9/18
to mario...@hotmail.com, Larry Baker, earthwo...@googlegroups.com
Mario,

You have been confusing the issue by mixing computers and operating systems.  Raspberry Pi is hardware—an ARM processor.  Ubuntu is an operating system.  For PCs certainly, I do not know if that is what runs on a Raspberry Pi.  I use neither a Raspberry Pi nor Ubuntu.

If you want to run on a PC, compile for a PC.  That means, use ew_linux.bash.

If you want to run on a Raspberry Pi, compile for ARM.  That means, use ew_linux_arm.bash.

In either case, you will have to install the software development tools you need.  That is gcc, g++, and gfortran.  Plus the 32-bit development libraries if you want to build 32-bit Earthworm on 64-bit Linux.  You don't have to do that if you don't want to.

As I said before, please describe what you are trying to do and what O/S you use if you want more help.

Larry Baker
US Geological Survey
650-329-5608
ba...@usgs.gov



Reply all
Reply to author
Forward
0 new messages