problem compiling elegant 24.0.1

Moderators: cyao, soliday

Post Reply
Philippe Piot
Posts: 83
Joined: 20 Aug 2008, 13:18
Location: Northern Illinois University & Argonne National Laboratory
Contact:

problem compiling elegant 24.0.1

Post by Philippe Piot » 01 Mar 2011, 15:30

All,
I wanted to upgrade to elegant 24.0.1 from sources (I had 23.1.2 locally compiled and working). I simply renamed the current elegant directory oag/apps/src/elegant as oag/apps/src/elegant_23.2.1 and untar'ed the latest version of elegant. I then just cd in the new elegant directory and did a ./makeSelegant the compilation abort on the following error message. Also I noticed I keep getting some strange character wareking of the form "warning: â defined but not used". I am trying to compile on linux SL 5.5. Thanks for any help! -- Philippe.

PS: do I need to updgrade the sddstoolkits too?

---- error message obtained when compiling:

./ramp.h:70: warning: â defined but not used
./ramp.h:72: warning: â defined but not used
./ramp.h:76: warning: â defined but not used
./ramp.h:80: warning: â defined but not used
/usr/bin/g++ -o elegant -Wl,-Bstatic -static-libgcc -L/nfs/x1/opt_nicadd/contrib/piot/Argonne/epics/extensions/lib/linux-x86 -Wl,-rpath,/nfs/x1/opt_nicadd/contrib/piot/Argonne/epics/extensions/lib/linux-x86 alpha_data.o alpha_matrix.o amplif.o analyze.o aperture_search.o bend_matrix.o bunched_beam.o cfgets.o check_duplic.o chrom.o closed_orbit.o compose_fn.o compute_centroids.o compute_matrices.o concat_beamline.o concat_mat.o counter.o copy_particles.o cormon_stats_output.o correct.o corrector_output.o csbend.o do_tracking.o elegant.o error.o extend_list.o final_props.o find_elem.o floor.o generate_bunch.o get_beamline.o kicker.o kick_poly.o kick_sbend.o limit_amplitudes.o link_date.o link_elements.o load_parameters.o lorentz.o mad_parse.o malign_mat.o matrix_output.o matrix.o matter.o motion.o multipole.o orbtraj_output.o optimize.o output_magnets.o pepper_pot.o phase_reference.o print_line.o quad_matrix.o ramp_momentum.o ramped_rfca.o response.o rfmode.o run_rpnexpr.o sample.o sdds_beam.o sdds_support.o simple_rfca.o subprocess.o tune.o tilt_matrices.o trace.o track_data.o track_ramp.o track_rf.o trfmode.o ztransverse.o twiss.o vary.o zlongit.o SReffects.o mod_rfca.o ibs_tracking.o zibs.o wake.o taylorSeries.o trwake.o circles.o tubend.o sasefelmx.o sasefel.o alter.o sliceAnalysis.o divideElements.o transmuteElements.o frfmode.o ftrfmode.o tfeedback.o engeCoef.o lsc.o frequencyMap.o GWigSymplecticPass.o gwig.o noiseGroup.o insertSCeffects.o momentumAperture.o kahan.o coupled_twiss.o drand_oag.o lookupa.o recycle.o hashtab.o moments.o insert_elements.o touschekScatter.o chbook.o kickmap.o matrixOp.o replace_elements.o modulate.o ramp.o -lmdbcommon -lmatlib -lfftpack -lSDDS1 -lrpnlib -lmdbmth -lnamelist -lmdblib -lmeschach -lgsl -lz -llapack -lblas -lgfortran -lc -lpthread -lreadline -lcurses -lm -lrt -llapack -lblas -lgcc
bunched_beam.o: In function `new_bunched_beam':
bunched_beam.c:(.text+0x2531): undefined reference to `restartModHaltonSequence'
bunched_beam.c:(.text+0x256d): undefined reference to `restartHaltonSequence'
bunched_beam.c:(.text+0x25b9): undefined reference to `restartModHaltonSequence'
bunched_beam.c:(.text+0x25f2): undefined reference to `restartHaltonSequence'
do_tracking.o: In function `field_table_tracking':
do_tracking.c:(.text+0x6e8e): undefined reference to `gsl_poly_solve_cubic'
collect2: ld returned 1 exit status
make[2]: *** [elegant] Error 1
make[2]: Leaving directory `/nfs/x1/opt_nicadd/contrib/piot/Argonne/oag/apps/src/elegant/O.linux-x86_S'
make[1]: *** [install.linux-x86] Error 2
make[1]: Leaving directory `/nfs/x1/opt_nicadd/contrib/piot/Argonne/oag/apps/src/elegant'
make: *** [Selegant] Error 2

ywang25
Posts: 52
Joined: 10 Jun 2008, 19:48

Re: problem compiling elegant 24.0.1

Post by ywang25 » 01 Mar 2011, 15:36

Philippe,

I think you need update the SDDS library as well. There are several new functions added in this release.

Yusong

Philippe Piot
Posts: 83
Joined: 20 Aug 2008, 13:18
Location: Northern Illinois University & Argonne National Laboratory
Contact:

Re: problem compiling elegant 24.0.1

Post by Philippe Piot » 02 Mar 2011, 17:42

Yusong,
You were absolutely right; compiling SDDS2.9 first and then elagant solved my problems. Thanks! -- Philippe.

Post Reply