Opened 13 years ago
Closed 13 years ago
#112 closed defect (wontfix)
Build error
Reported by: | MatthewWhiting | Owned by: | MatthewWhiting |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Building/Installation | Version: | 1.1.10 |
Severity: | normal | Keywords: | |
Cc: | ianh@… |
Description
Hi Matthew,
I'm trying to build Duchamp so I can run it on some simulated radio cubes, but I'm getting an error which I can't fathom. If you get a minute could you please take a look?
The system is running Ubuntu 10.04 64-bit.
I have attached the output of 'make' below. From what I can gather the first time it invokes gcc results in a line break and then a mysterious lone 'o', immediately after pgplot_related.o.
Thanks in advance for your time
-Ian
ianh@nerv10:~/Duchamp-1.1.10$ ./configure checking for g++... g++ checking for C++ compiler default output file name... a.out checking whether the C++ compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for gcc... gcc checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking how to run the C preprocessor... gcc -E checking for g77... no checking for xlf... no checking for f77... no checking for frt... no checking for pgf77... no checking for cf77... no checking for fort77... no checking for fl32... no checking for af77... no checking for xlf90... no checking for f90... no checking for pgf90... no checking for pghpf... no checking for epcf90... no checking for gfortran... no checking for g95... no checking for xlf95... no checking for f95... no checking for fort... no checking for ifort... no checking for ifc... no checking for efc... no checking for pgf95... no checking for lf95... no checking for ftn... no checking whether we are using the GNU Fortran 77 compiler... no checking whether accepts -g... no checking whether ln -s works... yes checking for install... install checking for log in -lm... yes checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for unistd.h... (cached) yes checking time.h usability... yes checking time.h presence... yes checking for time.h... yes checking math.h usability... yes checking math.h presence... yes checking for math.h... yes checking values.h usability... yes checking values.h presence... yes checking for values.h... yes checking iostream usability... no checking iostream presence... no checking for iostream... no checking fstream usability... no checking fstream presence... no checking for fstream... no checking sstream usability... no checking sstream presence... no checking for sstream... no checking iomanip usability... no checking iomanip presence... no checking for iomanip... no checking vector usability... no checking vector presence... no checking for vector... no checking string usability... no checking string presence... no checking for string... no checking algorithm usability... no checking algorithm presence... no checking for algorithm... no checking functional usability... no checking functional presence... no checking for functional... no checking for stdbool.h that conforms to C99... yes checking for _Bool... yes checking for an ANSI C-conforming const... yes checking for inline... inline checking for ranlib... ranlib checking for working strtod... yes checking for floor... yes checking for pow... yes checking for sqrt... yes checking for strtol... yes checking for log... yes checking for atan... yes checking for fabs... yes configure: LIBDIRS checking for /usr/lib... yes checking for /usr/local/lib... yes checking for /usr/local/pgplot... no checking for /usr/local/cfitsio... no checking for /usr/local/wcslib... no checking for /local/lib... no checking for /local/pgplot... no checking for /local/cfitsio... no checking for /opt/SUNWspro/lib... no checking for /opt/local/lib... no configure: -- PGPLOT -- checking for /usr/include/cpgplot.h... yes checking for cosd in -lsunmath... no checking for iand_ in -lM77... no checking for f77_init in -lF77... no checking for X... libraries , headers checking for gethostbyname... yes checking for connect... yes checking for remove... yes checking for shmat... yes checking for IceConnectionNumber in -lICE... no configure: X-library search yielded X_CFLAGS=, X_LIBS=, X_EXTRA_LIBS=, X_PRE_LIBS= checking for deflate in -lz... no checking for png_error in -lpng... no checking for pgopen in -lpgplot... no checking for gerror_ in -lg2c... no checking for main in -lstdc++... yes checking for cpgopen in -lcpgplot... yes configure: PGPLOT appears to be available. checking for /usr/lib/libcpgplot.a... yes configure: -- CFITSIO -- checking for /usr/include/fitsio.h... yes checking for recv in -lsocket... no checking for ffopen in -lcfitsio... yes configure: CFITSIO appears to be available. checking for /usr/lib/libcfitsio.a... yes configure: -- WCSLIB -- checking for /usr/include/wcslib/wcs.h... yes checking for wcss2p in -lwcs... yes checking for cpgsbox in -lpgsbox... yes configure: WCSLIB appears to be available. checking for /usr/lib/libwcs.a... yes checking for /usr/lib/libpgsbox.a... yes checking for /usr/local/lib/libwcs.a... no checking for /usr/local/lib/wcs/libwcs.a... no checking for /usr/local/lib/wcslib/libwcs.a... no checking for /usr/local/pgplot/libwcs.a... no checking for /usr/local/pgplot/wcs/libwcs.a... no checking for /usr/local/pgplot/wcslib/libwcs.a... no checking for /usr/local/cfitsio/libwcs.a... no checking for /usr/local/cfitsio/wcs/libwcs.a... no checking for /usr/local/cfitsio/wcslib/libwcs.a... no checking for /usr/local/wcslib/libwcs.a... no checking for /usr/local/wcslib/wcs/libwcs.a... no checking for /usr/local/wcslib/wcslib/libwcs.a... no checking for /local/lib/libwcs.a... no checking for /local/lib/wcs/libwcs.a... no checking for /local/lib/wcslib/libwcs.a... no checking for /local/pgplot/libwcs.a... no checking for /local/pgplot/wcs/libwcs.a... no checking for /local/pgplot/wcslib/libwcs.a... no checking for /local/cfitsio/libwcs.a... no checking for /local/cfitsio/wcs/libwcs.a... no checking for /local/cfitsio/wcslib/libwcs.a... no checking for /opt/SUNWspro/lib/libwcs.a... no checking for /opt/SUNWspro/lib/wcs/libwcs.a... no checking for /opt/SUNWspro/lib/wcslib/libwcs.a... no checking for /opt/local/lib/libwcs.a... no checking for /opt/local/lib/wcs/libwcs.a... no checking for /opt/local/lib/wcslib/libwcs.a... no configure: creating ./config.status config.status: creating Makefile config.status: creating src/config.h ianh@nerv10:~/Duchamp-1.1.10$ make g++ -O2 -ftree-vectorize -c src/mainDuchamp.cc -I/usr/include -I/usr/ include -I/usr/include/wcslib -I/usr/include -I./src -o src/ mainDuchamp.o g++ -O2 -ftree-vectorize -c src/duchamp.cc -I/usr/include -I/usr/ include -I/usr/include/wcslib -I/usr/include -I./src -o src/duchamp.o g++ -O2 -ftree-vectorize -c src/param.cc -I/usr/include -I/usr/include -I/usr/include/wcslib -I/usr/include -I./src -o src/param.o g++ -O2 -ftree-vectorize -c src/fitsHeader.cc -I/usr/include -I/usr/ include -I/usr/include/wcslib -I/usr/include -I./src -o src/ fitsHeader.o g++ -O2 -ftree-vectorize -c src/PixelMap/Voxel.cc -I/usr/include -I/ usr/include -I/usr/include/wcslib -I/usr/include -I./src -o src/ PixelMap/Voxel.o g++ -O2 -ftree-vectorize -c src/PixelMap/Scan.cc -I/usr/include -I/usr/ include -I/usr/include/wcslib -I/usr/include -I./src -o src/PixelMap/ Scan.o g++ -O2 -ftree-vectorize -c src/PixelMap/Object2D.cc -I/usr/include -I/ usr/include -I/usr/include/wcslib -I/usr/include -I./src -o src/ PixelMap/Object2D.o g++ -O2 -ftree-vectorize -c src/PixelMap/Object3D.cc -I/usr/include -I/ usr/include -I/usr/include/wcslib -I/usr/include -I./src -o src/ PixelMap/Object3D.o g++ -O2 -ftree-vectorize -c src/ATrous/filter.cc -I/usr/include -I/usr/ include -I/usr/include/wcslib -I/usr/include -I./src -o src/ATrous/ filter.o g++ -O2 -ftree-vectorize -c src/ATrous/atrous_1d_reconstruct.cc -I/usr/ include -I/usr/include -I/usr/include/wcslib -I/usr/include -I./src - o src/ATrous/atrous_1d_reconstruct.o g++ -O2 -ftree-vectorize -c src/ATrous/atrous_2d_reconstruct.cc -I/usr/ include -I/usr/include -I/usr/include/wcslib -I/usr/include -I./src - o src/ATrous/atrous_2d_reconstruct.o g++ -O2 -ftree-vectorize -c src/ATrous/atrous_3d_reconstruct.cc -I/usr/ include -I/usr/include -I/usr/include/wcslib -I/usr/include -I./src - o src/ATrous/atrous_3d_reconstruct.o g++ -O2 -ftree-vectorize -c src/ATrous/baselineSubtract.cc -I/usr/ include -I/usr/include -I/usr/include/wcslib -I/usr/include -I./src - o src/ATrous/baselineSubtract.o g++ -O2 -ftree-vectorize -c src/ATrous/ReconSearch.cc -I/usr/include - I/usr/include -I/usr/include/wcslib -I/usr/include -I./src -o src/ ATrous/ReconSearch.o g++ -O2 -ftree-vectorize -c src/Detection/detection.cc -I/usr/include - I/usr/include -I/usr/include/wcslib -I/usr/include -I./src -o src/ Detection/detection.o g++ -O2 -ftree-vectorize -c src/Detection/columns.cc -I/usr/include -I/ usr/include -I/usr/include/wcslib -I/usr/include -I./src -o src/ Detection/columns.o g++ -O2 -ftree-vectorize -c src/Detection/ObjectGrower.cc -I/usr/ include -I/usr/include -I/usr/include/wcslib -I/usr/include -I./src - o src/Detection/ObjectGrower.o g++ -O2 -ftree-vectorize -c src/Detection/areClose.cc -I/usr/include - I/usr/include -I/usr/include/wcslib -I/usr/include -I./src -o src/ Detection/areClose.o g++ -O2 -ftree-vectorize -c src/Detection/growObject.cc -I/usr/include -I/usr/include -I/usr/include/wcslib -I/usr/include -I./src -o src/ Detection/growObject.o g++ -O2 -ftree-vectorize -c src/Detection/lutz_detect.cc -I/usr/ include -I/usr/include -I/usr/include/wcslib -I/usr/include -I./src - o src/Detection/lutz_detect.o g++ -O2 -ftree-vectorize -c src/Detection/mergeIntoList.cc -I/usr/ include -I/usr/include -I/usr/include/wcslib -I/usr/include -I./src - o src/Detection/mergeIntoList.o g++ -O2 -ftree-vectorize -c src/Detection/outputDetection.cc -I/usr/ include -I/usr/include -I/usr/include/wcslib -I/usr/include -I./src - o src/Detection/outputDetection.o g++ -O2 -ftree-vectorize -c src/Detection/sorting.cc -I/usr/include -I/ usr/include -I/usr/include/wcslib -I/usr/include -I./src -o src/ Detection/sorting.o g++ -O2 -ftree-vectorize -c src/Detection/spectrumDetect.cc -I/usr/ include -I/usr/include -I/usr/include/wcslib -I/usr/include -I./src - o src/Detection/spectrumDetect.o g++ -O2 -ftree-vectorize -c src/Cubes/cubes.cc -I/usr/include -I/usr/ include -I/usr/include/wcslib -I/usr/include -I./src -o src/Cubes/ cubes.o g++ -O2 -ftree-vectorize -c src/Cubes/cubes_extended.cc -I/usr/include -I/usr/include -I/usr/include/wcslib -I/usr/include -I./src -o src/ Cubes/cubes_extended.o g++ -O2 -ftree-vectorize -c src/Cubes/baseline.cc -I/usr/include -I/ usr/include -I/usr/include/wcslib -I/usr/include -I./src -o src/Cubes/ baseline.o g++ -O2 -ftree-vectorize -c src/Cubes/CubicSearch.cc -I/usr/include -I/ usr/include -I/usr/include/wcslib -I/usr/include -I./src -o src/Cubes/ CubicSearch.o g++ -O2 -ftree-vectorize -c src/Cubes/detectionIO.cc -I/usr/include -I/ usr/include -I/usr/include/wcslib -I/usr/include -I./src -o src/Cubes/ detectionIO.o g++ -O2 -ftree-vectorize -c src/Cubes/existingDetections.cc -I/usr/ include -I/usr/include -I/usr/include/wcslib -I/usr/include -I./src - o src/Cubes/existingDetections.o g++ -O2 -ftree-vectorize -c src/Cubes/getImage.cc -I/usr/include -I/ usr/include -I/usr/include/wcslib -I/usr/include -I./src -o src/Cubes/ getImage.o g++ -O2 -ftree-vectorize -c src/Cubes/invertCube.cc -I/usr/include -I/ usr/include -I/usr/include/wcslib -I/usr/include -I./src -o src/Cubes/ invertCube.o g++ -O2 -ftree-vectorize -c src/Cubes/Merger.cc -I/usr/include -I/usr/ include -I/usr/include/wcslib -I/usr/include -I./src -o src/Cubes/ Merger.o g++ -O2 -ftree-vectorize -c src/Cubes/momentMap.cc -I/usr/include -I/ usr/include -I/usr/include/wcslib -I/usr/include -I./src -o src/Cubes/ momentMap.o g++ -O2 -ftree-vectorize -c src/Cubes/readRecon.cc -I/usr/include -I/ usr/include -I/usr/include/wcslib -I/usr/include -I./src -o src/Cubes/ readRecon.o g++ -O2 -ftree-vectorize -c src/Cubes/readSmooth.cc -I/usr/include -I/ usr/include -I/usr/include/wcslib -I/usr/include -I./src -o src/Cubes/ readSmooth.o g++ -O2 -ftree-vectorize -c src/Cubes/saveImage.cc -I/usr/include -I/ usr/include -I/usr/include/wcslib -I/usr/include -I./src -o src/Cubes/ saveImage.o g++ -O2 -ftree-vectorize -c src/Cubes/smoothCube.cc -I/usr/include -I/ usr/include -I/usr/include/wcslib -I/usr/include -I./src -o src/Cubes/ smoothCube.o g++ -O2 -ftree-vectorize -c src/Cubes/spectraUtils.cc -I/usr/include - I/usr/include -I/usr/include/wcslib -I/usr/include -I./src -o src/ Cubes/spectraUtils.o g++ -O2 -ftree-vectorize -c src/Cubes/trimImage.cc -I/usr/include -I/ usr/include -I/usr/include/wcslib -I/usr/include -I./src -o src/Cubes/ trimImage.o g++ -O2 -ftree-vectorize -c src/Cubes/VOTable.cc -I/usr/include -I/usr/ include -I/usr/include/wcslib -I/usr/include -I./src -o src/Cubes/ VOTable.o g++ -O2 -ftree-vectorize -c src/FitsIO/dataIO.cc -I/usr/include -I/usr/ include -I/usr/include/wcslib -I/usr/include -I./src -o src/FitsIO/ dataIO.o g++ -O2 -ftree-vectorize -c src/FitsIO/headerIO.cc -I/usr/include -I/ usr/include -I/usr/include/wcslib -I/usr/include -I./src -o src/ FitsIO/headerIO.o g++ -O2 -ftree-vectorize -c src/FitsIO/subsection.cc -I/usr/include -I/ usr/include -I/usr/include/wcslib -I/usr/include -I./src -o src/ FitsIO/subsection.o g++ -O2 -ftree-vectorize -c src/FitsIO/wcsIO.cc -I/usr/include -I/usr/ include -I/usr/include/wcslib -I/usr/include -I./src -o src/FitsIO/ wcsIO.o g++ -O2 -ftree-vectorize -c src/Utils/Section.cc -I/usr/include -I/usr/ include -I/usr/include/wcslib -I/usr/include -I./src -o src/Utils/ Section.o g++ -O2 -ftree-vectorize -c src/Utils/Statistics.cc -I/usr/include -I/ usr/include -I/usr/include/wcslib -I/usr/include -I./src -o src/Utils/ Statistics.o g++ -O2 -ftree-vectorize -c src/Utils/feedback.cc -I/usr/include -I/ usr/include -I/usr/include/wcslib -I/usr/include -I./src -o src/Utils/ feedback.o g++ -O2 -ftree-vectorize -c src/Utils/GaussSmooth1D.cc -I/usr/include - I/usr/include -I/usr/include/wcslib -I/usr/include -I./src -o src/ Utils/GaussSmooth1D.o g++ -O2 -ftree-vectorize -c src/Utils/Hanning.cc -I/usr/include -I/usr/ include -I/usr/include/wcslib -I/usr/include -I./src -o src/Utils/ Hanning.o g++ -O2 -ftree-vectorize -c src/Utils/getStats.cc -I/usr/include -I/ usr/include -I/usr/include/wcslib -I/usr/include -I./src -o src/Utils/ getStats.o g++ -O2 -ftree-vectorize -c src/Utils/linear_regression.cc -I/usr/ include -I/usr/include -I/usr/include/wcslib -I/usr/include -I./src - o src/Utils/linear_regression.o g++ -O2 -ftree-vectorize -c src/Utils/position_related.cc -I/usr/ include -I/usr/include -I/usr/include/wcslib -I/usr/include -I./src - o src/Utils/position_related.o g++ -O2 -ftree-vectorize -c src/Utils/sort.cc -I/usr/include -I/usr/ include -I/usr/include/wcslib -I/usr/include -I./src -o src/Utils/ sort.o g++ -O2 -ftree-vectorize -c src/Utils/string_related.cc -I/usr/include -I/usr/include -I/usr/include/wcslib -I/usr/include -I./src -o src/ Utils/string_related.o g++ -O2 -ftree-vectorize -c src/Utils/wcsFunctions.cc -I/usr/include - I/usr/include -I/usr/include/wcslib -I/usr/include -I./src -o src/ Utils/wcsFunctions.o g++ -O2 -ftree-vectorize -c src/Utils/zscale.cc -I/usr/include -I/usr/ include -I/usr/include/wcslib -I/usr/include -I./src -o src/Utils/ zscale.o g++ -O2 -ftree-vectorize -c src/Cubes/drawBlankEdges.cc -I/usr/include -I/usr/include -I/usr/include/wcslib -I/usr/include -I./src -o src/ Cubes/drawBlankEdges.o g++ -O2 -ftree-vectorize -c src/Cubes/drawMomentCutout.cc -I/usr/ include -I/usr/include -I/usr/include/wcslib -I/usr/include -I./src - o src/Cubes/drawMomentCutout.o g++ -O2 -ftree-vectorize -c src/Cubes/outputSpectra.cc -I/usr/include - I/usr/include -I/usr/include/wcslib -I/usr/include -I./src -o src/ Cubes/outputSpectra.o g++ -O2 -ftree-vectorize -c src/Cubes/plotting.cc -I/usr/include -I/ usr/include -I/usr/include/wcslib -I/usr/include -I./src -o src/Cubes/ plotting.o g++ -O2 -ftree-vectorize -c src/Utils/mycpgplot.cc -I/usr/include -I/ usr/include -I/usr/include/wcslib -I/usr/include -I./src -o src/Utils/ mycpgplot.o g++ -O2 -ftree-vectorize -c src/Cubes/plots.cc -I/usr/include -I/usr/ include -I/usr/include/wcslib -I/usr/include -I./src -o src/Cubes/ plots.o gcc -O2 -ftree-vectorize -c src/Utils/pgplot_related.c -I/usr/include - I/usr/include -I/usr/include/wcslib -I/usr/include -I./src -o src/ Utils/pgplot_related.o o Duchamp-1.1.10 ./src/mainDuchamp.o ./src/duchamp.o ./src/param.o ./ src/fitsHeader.o ./src/PixelMap/Voxel.o ./src/PixelMap/Scan.o ./src/ PixelMap/Object2D.o ./src/PixelMap/Object3D.o ./src/ATrous/filter.o ./ src/ATrous/atrous_1d_reconstruct.o ./src/ATrous/ atrous_2d_reconstruct.o ./src/ATrous/atrous_3d_reconstruct.o ./src/ ATrous/baselineSubtract.o ./src/ATrous/ReconSearch.o ./src/Detection/ detection.o ./src/Detection/columns.o ./src/Detection/ObjectGrower.o ./ src/Detection/areClose.o ./src/Detection/growObject.o ./src/Detection/ lutz_detect.o ./src/Detection/mergeIntoList.o ./src/Detection/ outputDetection.o ./src/Detection/sorting.o ./src/Detection/ spectrumDetect.o ./src/Cubes/cubes.o ./src/Cubes/cubes_extended.o ./ src/Cubes/baseline.o ./src/Cubes/CubicSearch.o ./src/Cubes/ detectionIO.o ./src/Cubes/existingDetections.o ./src/Cubes/ getImage.o ./src/Cubes/invertCube.o ./src/Cubes/Merger.o ./src/Cubes/ momentMap.o ./src/Cubes/readRecon.o ./src/Cubes/readSmooth.o ./src/ Cubes/saveImage.o ./src/Cubes/smoothCube.o ./src/Cubes/ spectraUtils.o ./src/Cubes/trimImage.o ./src/Cubes/VOTable.o ./src/ FitsIO/dataIO.o ./src/FitsIO/headerIO.o ./src/FitsIO/subsection.o ./ src/FitsIO/wcsIO.o ./src/Utils/Section.o ./src/Utils/Statistics.o ./ src/Utils/feedback.o ./src/Utils/GaussSmooth1D.o ./src/Utils/ Hanning.o ./src/Utils/getStats.o ./src/Utils/linear_regression.o ./src/ Utils/position_related.o ./src/Utils/sort.o ./src/Utils/ string_related.o ./src/Utils/wcsFunctions.o ./src/Utils/zscale.o ./src/ Cubes/drawBlankEdges.o ./src/Cubes/drawMomentCutout.o ./src/Cubes/ outputSpectra.o ./src/Cubes/plotting.o ./src/Utils/mycpgplot.o ./src/ Cubes/plots.o ./src/Utils/pgplot_related.o -L/usr/lib -lwcs -lpgsbox - L/usr/lib -lcfitsio -L/usr/lib -lcpgplot -lstdc++ -lm make: o: Command not found make: [duchamp] Error 127 (ignored)
Change History (3)
comment:1 Changed 13 years ago by
Cc: | ianh@… added |
---|---|
Status: | new → assigned |
comment:2 Changed 13 years ago by
Gday Ian,
That is indeed a strange one that I haven't come across before. (I've added it as a ticket to my Trac system for future reference, and to make it easier to track these sort of problems)
What appears to be the problem is that the configure script has not found a fortran compiler - this is needed to do the linking when pgplot is included. If you like you can attach the config.log and Makefile to this ticket so I can have a look at what's going on.
If you know where the fortran compiler is (it appears it's in a somewhat non-standard location, else configure would have found it), you can run
./configure F77=<path-to-compiler>
Ideally this should be the same that was used to build pgplot (if you know what that was...)
Alternatively, you can do
./configure --with-pgplot=no
so that it won't include pgplot and so do the linking with g++. You'll of course lose all the nice graphical stuff, so the first option is better.
I'm a bit puzzled as to the lone 'o', but it may be just how the -o flag for the linker works out when there's no compiler given...
Cheers, Matt.
comment:3 Changed 13 years ago by
Resolution: | → wontfix |
---|---|
Status: | assigned → closed |
Update from Ian:
Hi Matt, Thanks for the quick response. It turns out that I didn't have f77 installed at all. > sudo apt-get install fort77 fixed this. It then grumbled about libf2c /usr/lib/libf2c.so: undefined reference to `MAIN__' collect2: ld returned 1 exit status but a quick Google search revealed this: > sudo rm /usr/lib/libf2c.so > sudo ln -s /usr/lib/libf2c.a /usr/lib/lib2c.so which I tried, as usual without considering whether that was sensible or not, and everything worked out fine. No errors! Everything is working fine. Just out of interest, what's the largest cube you've processed with Duchamp? Thanks for sharing your software. Cheers -Ian
Closing ticket.
Adding email from Ian Heywood as ticket.