installing SDDS 2.8

Moderators: cyao, soliday

Post Reply
astecpete
Posts: 35
Joined: 24 Jul 2008, 04:01
Location: Daresbury Laboratory, UK

installing SDDS 2.8

Post by astecpete » 15 Apr 2010, 11:22

Hi,
I'm installing SDDS 2.8 from source on linux 2.6.18-164.10.1.el5

All is fine until i make SDDS. It gets up to making sddssortcolumn and then says

/usr/bin/g++ -o sddssortcolumn -L/opt/epics/extensions/lib/linux-x86 -Wl,-rpath,/opt/epics/extensions/lib/linux-x86 -lmdbcommon -lmatlib -lfftpack -lrpnlib -lSDDS1 -lmdbmth -lmdblib -lnnetwork -lcsa -lz -lncurses -lpthread -lreadline -lcurses -lm -lrt -lgcc
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status

is sddssortcolumn new? previously i had SDDS 2.7.

Ta

Pete

soliday
Posts: 390
Joined: 28 May 2008, 09:15

Re: installing SDDS 2.8

Post by soliday » 15 Apr 2010, 11:48

sddssortcolumn.c is not new but it is not used a lot either. I just tested building it on RHEL5 64bit and it worked.

rose> uname -a
Linux rose.aps.anl.gov 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

rose> make
make -C O.linux-x86_64 -f ../Makefile TOP=../../../.. T_A=linux-x86_64 install
make[1]: Entering directory `/home/helios1/SOLIDAY/epics/extensions/src/SDDS/SDDSaps/O.linux-x86_64'
/usr/bin/gcc -c -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS -D_XOPEN_SOURCE=500 -D_X86_64_ -DUNIX -D_BSD_SOURCE -Dlinux -D_REENTRANT -O3 -Wall -I. -I../../include -I../../gsl -DzLib -m64 -g -I. -I../O.Common -I. -I.. -I../../../../include/os/Linux -I../../../../include -I/home/helios2/oag/epics/base3.14.11/include/os/Linux -I/home/helios2/oag/epics/base3.14.11/include -I../../../../include -I../../../../../../oag/apps/include ../sddssortcolumn.c

/usr/bin/g++ -o sddssortcolumn -L/home/helios1/SOLIDAY/epics/extensions/lib/linux-x86_64 -Wl,-rpath,/home/helios1/SOLIDAY/epics/extensions/lib/linux-x86_64 -m64 sddssortcolumn.o -lmdbcommon -lmatlib -lfftpack -lrpnlib -lSDDS1 -lmdbmth -lmdblib -lnnetwork -lcsa -ltiff -ljpeg -lz -lncurses -lpthread -lreadline -lncurses -lm -lrt -ldl -lgcc

Installing created file ../../../../bin/linux-x86_64/sddssortcolumn
make[1]: Leaving directory `/home/helios1/SOLIDAY/epics/extensions/src/SDDS/SDDSaps/O.linux-x86_64'

There were a few warning messages I just cleaned up but it compiled before that too. What is really odd about your g++ link line is that it is missing sddssortcolumn.o entirely. You can try removing all references to sddssortcolumn from the epics/extensions/src/SDDS/SDDSaps/Makefile.OAG to avoid trying to build it.

astecpete
Posts: 35
Joined: 24 Jul 2008, 04:01
Location: Daresbury Laboratory, UK

Re: installing SDDS 2.8

Post by astecpete » 16 Apr 2010, 03:56

Thanks - i think i forgot to make in oag/apps/configure - would that explain why sddssortcolumn wasn't in the command line?

Anyhow - now i have installed the latest SDDS and elegant (23). But my files won't run! They hang after the twiss_output command. Here are the files

Pete
Attachments
test.tar.gz
(423.49 KiB) Downloaded 3846 times

soliday
Posts: 390
Joined: 28 May 2008, 09:15

Re: installing SDDS 2.8

Post by soliday » 16 Apr 2010, 09:54

sddssortcolumn depends on the rules in epics/extensions/configure, so you would have to do a 'make' there. elegant depends on the rules in oag/apps/configure. It is all a little hocus pocus to me since I don't quite understand how the rules work.

I took your files and ran them on RHEL5 with elegant 23.1.0 and it completed. What I would do is to download our pre-build elegant package and try that instead of building it yourself and see if that makes a difference.

--Bob

astecpete
Posts: 35
Joined: 24 Jul 2008, 04:01
Location: Daresbury Laboratory, UK

Re: installing SDDS 2.8

Post by astecpete » 19 Apr 2010, 04:20

Thanks - yes i've had a go at that. I don't see an rpm for SDDS 2.8 though - only 2.7.

I still get this problem. I've tested it on two machines from binaries and it behaves just the same. Works with version 22, but not 23 (SDDS 2.7 from binary)

I've tried changing the wake files to binary. and also tried making the .ele file as simple as i can. But still the same

Is there a way of getting some debug information?

Pete

soliday
Posts: 390
Joined: 28 May 2008, 09:15

Re: installing SDDS 2.8

Post by soliday » 19 Apr 2010, 09:13

I just tried the 32bit version and I see the same problem you see. I will look into it.

There probably will not be a binary release of SDDS 2.8 because the programs were not changed much. Just a few library calls that elegant uses.

soliday
Posts: 390
Joined: 28 May 2008, 09:15

Re: installing SDDS 2.8

Post by soliday » 20 Apr 2010, 10:52

There is now a new 32bit Linux RPM file for elegant which solves this problem.

astecpete
Posts: 35
Joined: 24 Jul 2008, 04:01
Location: Daresbury Laboratory, UK

Re: installing SDDS 2.8

Post by astecpete » 20 Apr 2010, 11:10

excellent - that works

Thanks a lot Bob

Post Reply