Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error on Ubuntu 22.04 #29

Open
terben opened this issue Nov 7, 2023 · 0 comments
Open

Compile error on Ubuntu 22.04 #29

terben opened this issue Nov 7, 2023 · 0 comments

Comments

@terben
Copy link

terben commented Nov 7, 2023

I try to compile the latest git-code on Ubuntu 22.04. The configure step runs fine but make stops with the error:

poly.c: In function ‘poly_solve’:
poly.c:594:24: error: type of formal parameter 1 is incomplete
  594 |   return clapack_dposv(CblasRowMajor, CblasUpper, n, 1, a, n, b, n);
      |                        ^~~~~~~~~~~~~

The same issue appears again later in the file poly.c:

poly.c: In function ‘poly_initortho’:
poly.c:807:18: error: type of formal parameter 1 is incomplete
  807 |   clapack_dtrtri(CblasRowMajor, CblasLower, CblasNonUnit, ncoeff,
      |                  ^~~~~~~~~~~~~

As there is a scamp 2.10 as an Ubuntu 22.04 package, this issue must have been solved already and I ask before digging into it myself. Does anybody know the solution?

Here the output of the configure script:

 checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
******** Configuring:  SCAMP 2.10.0 - 1 (2023-11-07) ********
checking if compilation flags are set automatically... no
checking whether the INTEL compiler is enabled... no
checking whether INTEL's MKL is enabled... no
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for library containing strerror... none required
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for sys/param.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for sin in -lm... yes
checking for egrep... (cached) /usr/bin/grep -E
checking for dlfcn.h... (cached) yes
checking for fcntl.h... yes
checking for limits.h... yes
checking for malloc.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for sys/mman.h... yes
checking for sys/types.h... (cached) yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for off_t... yes
checking for size_t... yes
checking for unsigned long long int... yes
checking for long long int... yes
checking for unsigned long long int... (cached) yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking how to run the C preprocessor... gcc -E
checking for uid_t in sys/types.h... yes
checking for error_at_line... yes
checking for getpagesize... yes
checking for working mmap... yes
checking whether lstat correctly handles trailing slash... yes
checking whether stat accepts an empty string... no
checking for strftime... yes
checking for atexit... yes
checking for getenv... yes
checking for mallopt... yes
checking for memcpy... yes
checking for memmove... yes
checking for memset... yes
checking for mkdir... yes
checking for munmap... yes
checking for setlinebuf... yes
checking for strstr... yes
checking for sysconf... yes
checking for isnan... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for _LARGEFILE_SOURCE value needed for large files... no
checking whether OpenBLAS is enabled... no
checking whether PLPlot is enabled... no
checking for profiler mode... checking best linking option... no
checking for multithreading... maximum of 1024 thread(s)
checking for pthread.h... yes
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for cc_r... gcc
checking for fftw3.h... yes
checking for fftwf_execute in -lfftw3f... yes
checking for fftwf_init_threads in -lfftw3f... no
checking for fftwf_init_threads in -lfftw3f_threads... yes
checking for cblas.h... yes
checking for clapack.h... yes
checking for library containing clapack_dpotrf... no
checking for library containing clapack_dpotrf... no
checking for library containing clapack_dpotrf... no
checking for library containing clapack_dpotrf... -llapack_atlas
configure: WARNING: Parallel ATLAS not found, reverting to serial!
checking for curl-config... no
checking for curl/curl.h... yes
checking for library containing curl_easy_init... -lcurl
checking for PLPlot pkg-config info... yes
***************************************************************
Compile cmdline:  gcc   -I/usr/include/plplot    -D_REENTRANT -g -O2
Link    cmdline:  gcc   -lcurl  -llapack_atlas -lfftw3f_threads -lfftw3f -lm   -lplplot
Default XSLT URL: 
***************************************************************
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating scamp.spec
config.status: creating debian/Makefile
config.status: creating debian/changelog
config.status: creating doc/Makefile
config.status: creating doc/src/conf.py
config.status: creating man/Makefile
config.status: creating man/scamp.1
config.status: creating src/Makefile
config.status: creating src/fits/Makefile
config.status: creating src/wcs/Makefile
config.status: creating tests/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant