compiling q3302ew

3 views
Skip to first unread message

h...@chalmers.se

unread,
Mar 5, 2026, 7:05:12 PM (5 days ago) Mar 5
to Earthworm Community Forum
Hi,
we have a Q330HR connected to a GWR Superconducting gravimeter as a backup recorder. Since 10 years back, earthworm has been running without breaks to create a large archive of miniseed files. So far so good. 
A week ago we had a disk crash on the Shuttle minicomputer under Linux Mint 10.04
With a "new" Ubuntu Kernel 10.04 the /usr/lib's have stepped up to newer versions, so I re-installed EW from a backup using  make unix. Among the few that were not made is
~/earthworm/earthworm_7.8/src/data_sources/q3302ew/q3302ew/q3302ew
file command says:
/home/hgs/earthworm/earthworm_7.8/src/data_sources/q3302ew/q3302ew: 
ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.24, BuildID[sha1]=dcf256fcdc7b8fac93d9ecf0bd7a2dc57f1d2d8f, with debug_info, not stripped. It seems to have little chance to run. 

What's a C-compiler command line that would create an ELF complying with the architecture 
Linux snotra 5.4.0-150-generic #167~18.04.1-Ubuntu SMP Wed May 24 00:51:42 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

I have earthworm_7.10.1 in my sleeve but got stack in make. Appropriating the particlar makefile.unix for the q3302ew and quitting the upgrade to 7.10 would save me precious time to resume with the recoding. 
Thanks in advance /HGS


Larry Baker

unread,
Mar 5, 2026, 7:21:33 PM (4 days ago) Mar 5
to h...@chalmers.se, Larry Baker, earthwo...@googlegroups.com
HGS,

Please capture the output of the make unix command and post either the entire file as an attachment, or include the lines to make q3302ew.

I do not remember whether Earthworm 7.8 required a special setup to build 32-bit executables vs. 64-bit executables.  If so, there should be lines at the top of the make unix output that tell you what build make is doing.  You should see some lines saying whether it is a 32-bit or a 64-bit build.

Also, I do not know whether the Ubuntu Kernel 10.04 supports 32-bit builds or permits 32-bit executables.  This could cause you a bigger problem with Earthworm 7.8.

--
--
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
earthworm_for...@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_for...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/earthworm_forum/59cf0b07-6596-4b11-810b-10427221e409n%40googlegroups.com.

h...@chalmers.se

unread,
Mar 6, 2026, 4:01:45 AM (4 days ago) Mar 6
to Earthworm Community Forum
Larry Baker,
at this point I can comment the 32bit issue. Ubuntu 10.04 apt install multilib affords the build.  
In the output of make unix, there is nothing on q3302ew, and none of the files in the folder are touched. 
The makefiles differs a lot between EW 7.8 and 7.10. 
The transcript of make is attached. I observe:
  • lines 58ff : it creates object q330cvrt.o in lib330.a
  • lines 74ff : dito q330io.o  in lib330.a
  • line 116 : cleans the .o's
  • lines 1262ff : make finds there's nothing to do in earthworm_7.8/src/data_sources/q3302ew 
yet it's this very module that startstop says is loaded.   nm q3302ew  says it relies on a lib 

         U gettimeofday@@GLIBC_2.0
(and many more U-marked lines) 
and no gettimeofday is found anywhere in 32-bit libs. That's just one issue, often asked for in other contexts b.t.w.
Thanks so long
/HGS
ew-make-unix-n.log

h...@chalmers.se

unread,
Mar 6, 2026, 6:52:33 AM (4 days ago) Mar 6
to Earthworm Community Forum

Larry Baker et al., 
now that I've made EW 7.10 without complaints,  q3302ew is not of today's date:
-rwxr-xr-x 1 hgs hgs 1103808 2019-08-17 08:38:58 CEST /home/hgs/earthworm-v7.10.1/earthworm_7.10/bin/q3302ew

I cannot test it since startstop immediately fails with  
   startstop: Using config file startstop_unix.d
   ERROR: tport_create shmget (22; Invalid argument) Region: 2000

regardless of included lines "Process". How can I debug? 
Attached: earthworm-v7.10.1/run/params/startstop_unix.d
with the processes that were invoked when running EW 7.8. 
Same with the original startstop_unix.d in the distro. 

B.t.w. make unix didn't create the directory tree for running. Hand- and guess-work led me to create
drwxrwxr-x  3 hgs hgs  4096 Mar  6 12:10 ./run/tankfiles
drwxrwxr-x  2 hgs hgs  4096 Mar  6 12:10 ./run/tankfiles/mysave
drwxrwxr-x  5 hgs hgs  4096 Mar  6 12:09 ./run
drwxrwxr-x  2 hgs hgs  4096 Mar  6 11:42 ./run/log
drwxrwxr-x  2 hgs hgs  4096 Mar  6 11:29 ./run_working


What's your advice  - Release upgrade Ubuntu -> 20.x? Upgrade outdated or missing libs in 10.04?   Swap Ubuntu out for Mint? 
Or is  
   export LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib:/usr/lib32:/usr/libx32
too poor?
Helplessly but wtih best regards /HGS
Reply all
Reply to author
Forward
0 new messages