libdspl-2.0 icon indicating copy to clipboard operation
libdspl-2.0 copied to clipboard

Build error: `fft_cmplx.c:192:12: error: call to undeclared function 'fft_krn'; ISO C99 and later do not support implicit function declarations`

Open barracuda156 opened this issue 1 year ago • 1 comments

  /opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_science_dspl/dspl/work/compwrap/cc/usr/bin/clang -c -fPIC -Wall -O3 -I../include -Isrc -DBUILD_LIB -DLINUX_OS  src/dft/fft_free.c -o obj/fft_free.o -lm 
  clang: warning: -lm: 'linker' input unused [-Wunused-command-line-argument]
  clang: warning: -lm: 'linker' input unused [-Wunused-command-line-argument]
  src/dft/fft_cmplx.c:192:12: error: call to undeclared function 'fft_krn'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
      return fft_krn(pfft->t1, y, pfft, n, 0);
             ^
  1 error generated.
  make[1]: *** [obj/fft_cmplx.o] Error 1
  make[1]: *** Waiting for unfinished jobs....

Is there some header missing?

gcc-13 still builds it, spitting out a warning; clang just fails.

barracuda156 avatar Jun 10 '24 04:06 barracuda156

Specifically, Apple clang 12 and later and llvm.org clang 16 and later consider this to be an error.

ryandesign avatar Jun 12 '24 05:06 ryandesign