xiph / opus-tools

A set of tools to encode, inspect, and decode audio in the Opus format.
https://opus-codec.org/
Other
214 stars 78 forks source link

compilation failed against libopus 1.2.1 static #17

Closed spvkgn closed 3 years ago

spvkgn commented 7 years ago

opus-tools-0.1.10 compilation failed against static libopus 1.2.1 Ubuntu 17.04 x64, gcc 6.3.0

Making distclean in .
make[1]: Entering directory '/tmp/_packages/opus/opus-tools-0.1.10'
Making uninstall in .
test -z "opusenc opusdec opusinfo" || rm -f opusenc opusdec opusinfo
test -z "opusrtp" || rm -f opusrtp
rm -f *.o
rm -f src/*.o
rm -f win32/*.o
rm -f *.tab.c
make[1]: Entering directory '/tmp/_packages/opus/opus-tools-0.1.10'
test -z "" || rm -f 
test . = "." || test -z "" || rm -f 
rm -f src/.deps/.dirstamp
rm -f src/.dirstamp
 ( cd '/tmp/_packages/opus/build/bin' && rm -f opusenc opusdec opusinfo )
rm -f win32/.deps/.dirstamp
rm -f win32/.dirstamp
rm -f config.h stamp-h1
 ( cd '/tmp/_packages/opus/build/share/man/man1' && rm -f opusenc.1 opusdec.1 opusinfo.1 )
rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
make[1]: Leaving directory '/tmp/_packages/opus/opus-tools-0.1.10'
rm -f cscope.out cscope.in.out cscope.po.out cscope.files
make[1]: Leaving directory '/tmp/_packages/opus/opus-tools-0.1.10'
rm -f config.status config.cache config.log configure.lineno config.status.lineno
rm -rf src/.deps win32/.deps
rm -f Makefile
checking whether make supports nested variables... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for x86_64-linux-gnu-strip... x86_64-linux-gnu-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for style of include used by make... GNU
checking for x86_64-linux-gnu-gcc... x86_64-linux-gnu-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 we are using the GNU C compiler... yes
checking whether x86_64-linux-gnu-gcc accepts -g... yes
checking for x86_64-linux-gnu-gcc option to accept ISO C89... none needed
checking whether x86_64-linux-gnu-gcc understands -c and -o together... yes
checking dependency style of x86_64-linux-gnu-gcc... gcc3
checking for x86_64-linux-gnu-gcc option to accept ISO C99... none needed
checking how to run the C preprocessor... x86_64-linux-gnu-gcc -E
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 whether byte ordering is bigendian... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for C/C++ restrict keyword... __restrict
checking for C99 variable-size arrays... yes
checking for cos in -lm... yes
checking for main in -lwinmm... no
checking for pkg-config... yes
checking for x86_64-linux-gnu-pkg-config... /usr/bin/x86_64-linux-gnu-pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for OGG... yes
checking for OPUS... yes
checking sys/soundcard.h usability... yes
checking sys/soundcard.h presence... yes
checking for sys/soundcard.h... yes
checking for sio_open in -lsndio... no
checking for FLAC... yes
checking for pcap_open_live in -lpcap... no
checking if x86_64-linux-gnu-gcc supports -fstack-protector-all... yes
checking for PIE support... no
checking if x86_64-linux-gnu-gcc supports -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes... yes
checking for _LARGEFILE_SOURCE value needed for large files... no
checking for lrintf... yes
checking for fminf... yes
checking for fmaxf... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
configure:
------------------------------------------------------------------------
  opus-tools 0.1.10:  Automatic configuration OK.

    Compiler support:

      C99 var arrays: ................ yes
      C99 lrintf: .................... yes
      Stack protector: ............... yes
      PIE: ........................... no

    General configuration:

      Assertion checking: ............ no
      FLAC input: .................... yes

------------------------------------------------------------------------

 Type "make; make install" to compile and install

Making clean in .
make[1]: Entering directory '/tmp/_packages/opus/opus-tools-0.1.10'
test -z "opusenc opusdec opusinfo" || rm -f opusenc opusdec opusinfo
test -z "opusrtp" || rm -f opusrtp
rm -f *.o
rm -f src/*.o
rm -f win32/*.o
make[1]: Leaving directory '/tmp/_packages/opus/opus-tools-0.1.10'
Making install in .
make[1]: Entering directory '/tmp/_packages/opus/opus-tools-0.1.10'
  CC       src/opusdec-opus_header.o
  CC       src/opusdec-wav_io.o
  CC       src/opusdec-wave_out.o
  CC       src/opusdec-opusdec.o
  CC       src/opusdec-resample.o
In file included from src/resample.c:101:0:
src/resample_sse.h: In function 'inner_product_single':
src/resample_sse.h:47:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       for (i=0;i<len;i+=8)
                 ^
src/resample_sse.h:59:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       for (i=0;i<len;i++) ret += a[i] * b[i];
                 ^
In file included from src/resample.c:101:0:
src/resample_sse.h: In function 'interpolate_product_single':
src/resample_sse.h:72:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(i=0;i<len;i+=2)
              ^
src/resample_sse.h:85:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(i=0;i<len;i++)
              ^
src/resample_sse.h: In function 'inner_product_double':
src/resample_sse.h:108:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for (i=0;i<len;i+=8)
              ^
src/resample_sse.h: In function 'interpolate_product_double':
src/resample_sse.h:134:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(i=0;i<len;i+=2)
            ^
src/resample.c: In function 'update_filter':
src/resample.c:607:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
          for (j=0;j<st->filt_len;j++)
                    ^
src/resample.c:688:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for (j=0;j<st->magic_samples[i];j++)
                       ^
src/resample.c:696:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for (j=0;j<olen-1;j++)
                       ^
src/resample.c:699:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for (;j<st->filt_len-1;j++)
                    ^
src/resample.c:706:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for (j=0;j<st->filt_len-1+st->magic_samples[i];j++)
                       ^
src/resample.c: In function 'opustools_resampler_process_float':
src/resample.c:872:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
            for(j=0;j<ichunk;++j)
                     ^
src/resample.c:875:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
           for(j=0;j<ichunk;++j)
                    ^
src/resample.c: In function 'opustools_resampler_process_int':
src/resample.c:928:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
          for(j=0;j<ichunk;++j)
                   ^
src/resample.c:935:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
          for(j=0;j<ichunk;++j)
                   ^
src/resample.c:945:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      for (j=0;j<ochunk+omagic;++j)
                ^
  CC       src/opusdec-diag_range.o
  CC       win32/opusdec-unicode_support.o
  CC       src/opusinfo-opus_header.o
  CC       src/opusinfo-opusinfo.o
  CC       src/opusinfo-info_opus.o
  CC       src/opusinfo-picture.o
  CC       win32/opusinfo-unicode_support.o
  CC       src/opusrtp.o
  CC       src/opusenc-opus_header.o
  CC       src/opusenc-opusenc.o
  CC       src/opusenc-picture.o
  CC       src/opusenc-resample.o
In file included from src/resample.c:101:0:
src/resample_sse.h: In function 'inner_product_single':
src/resample_sse.h:47:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       for (i=0;i<len;i+=8)
                 ^
src/resample_sse.h:59:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       for (i=0;i<len;i++) ret += a[i] * b[i];
                 ^
In file included from src/resample.c:101:0:
src/resample_sse.h: In function 'interpolate_product_single':
src/resample_sse.h:72:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(i=0;i<len;i+=2)
              ^
src/resample_sse.h:85:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(i=0;i<len;i++)
              ^
src/resample_sse.h: In function 'inner_product_double':
src/resample_sse.h:108:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for (i=0;i<len;i+=8)
              ^
src/resample_sse.h: In function 'interpolate_product_double':
src/resample_sse.h:134:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(i=0;i<len;i+=2)
            ^
src/resample.c: In function 'update_filter':
src/resample.c:607:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
          for (j=0;j<st->filt_len;j++)
                    ^
src/resample.c:688:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for (j=0;j<st->magic_samples[i];j++)
                       ^
src/resample.c:696:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for (j=0;j<olen-1;j++)
                       ^
src/resample.c:699:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for (;j<st->filt_len-1;j++)
                    ^
src/resample.c:706:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for (j=0;j<st->filt_len-1+st->magic_samples[i];j++)
                       ^
src/resample.c: In function 'opustools_resampler_process_float':
src/resample.c:872:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
            for(j=0;j<ichunk;++j)
                     ^
src/resample.c:875:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
           for(j=0;j<ichunk;++j)
                    ^
src/resample.c: In function 'opustools_resampler_process_int':
src/resample.c:928:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
          for(j=0;j<ichunk;++j)
                   ^
src/resample.c:935:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
          for(j=0;j<ichunk;++j)
                   ^
src/resample.c:945:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      for (j=0;j<ochunk+omagic;++j)
                ^
  CC       src/opusenc-audio-in.o
  CC       src/opusenc-diag_range.o
  CC       src/opusenc-flac.o
  CC       src/opusenc-lpc.o
  CC       win32/opusenc-unicode_support.o
  CCLD     opusdec
  CCLD     opusinfo
  CCLD     opusrtp
  CCLD     opusenc
/tmp/_packages/opus/build/lib/libopus.a(bands.o): In function `compute_theta':
bands.c:(.text+0x11cb): undefined reference to `sqrtf'
bands.c:(.text+0x1219): undefined reference to `sqrtf'
/tmp/_packages/opus/build/lib/libopus.a(bands.o): In function `quant_band':
bands.c:(.text+0x2541): undefined reference to `sqrt'
/tmp/_packages/opus/build/lib/libopus.a(bands.o): In function `quant_band_stereo':
bands.c:(.text+0x31e0): undefined reference to `sqrtf'
bands.c:(.text+0x3211): undefined reference to `sqrtf'
/tmp/_packages/opus/build/lib/libopus.a(bands.o): In function `compute_band_energies':
bands.c:(.text+0x349e): undefined reference to `sqrtf'
/tmp/_packages/opus/build/lib/libopus.a(bands.o): In function `denormalise_bands':
bands.c:(.text+0x36de): undefined reference to `exp'
/tmp/_packages/opus/build/lib/libopus.a(bands.o): In function `anti_collapse':
bands.c:(.text+0x384e): undefined reference to `exp'
bands.c:(.text+0x392f): undefined reference to `exp'
bands.c:(.text+0x3ae1): undefined reference to `sqrt'
/tmp/_packages/opus/build/lib/libopus.a(opus_decoder.o): In function `opus_decode_frame':
opus_decoder.c:(.text+0xdfe): undefined reference to `exp'
/tmp/_packages/opus/build/lib/libopus.a(celt_decoder.o): In function `celt_decode_lost':
celt_decoder.c:(.text+0x2747): undefined reference to `sqrtf'
celt_decoder.c:(.text+0x2782): undefined reference to `sqrtf'
/tmp/_packages/opus/build/lib/libopus.a(pitch.o): In function `remove_doubling':
pitch.c:(.text+0x1073): undefined reference to `sqrtf'
pitch.c:(.text+0x10a1): undefined reference to `sqrtf'
/tmp/_packages/opus/build/lib/libopus.a(quant_bands.o): In function `quant_coarse_energy_impl.isra.3':
quant_bands.c:(.text+0x1ea): undefined reference to `floorf'
/tmp/_packages/opus/build/lib/libopus.a(quant_bands.o): In function `quant_fine_energy':
quant_bands.c:(.text+0xce2): undefined reference to `floorf'
/tmp/_packages/opus/build/lib/libopus.a(quant_bands.o): In function `amp2Log2':
quant_bands.c:(.text+0x152d): undefined reference to `log'
/tmp/_packages/opus/build/lib/libopus.a(vq.o): In function `exp_rotation.part.0.constprop.2':
vq.c:(.text+0x64): undefined reference to `cos'
vq.c:(.text+0x95): undefined reference to `cos'
/tmp/_packages/opus/build/lib/libopus.a(vq.o): In function `exp_rotation':
vq.c:(.text+0x9e0): undefined reference to `cos'
vq.c:(.text+0xa11): undefined reference to `cos'
/tmp/_packages/opus/build/lib/libopus.a(vq.o): In function `op_pvq_search_c':
vq.c:(.text+0x1eb6): undefined reference to `floorf'
/tmp/_packages/opus/build/lib/libopus.a(vq.o): In function `alg_quant':
vq.c:(.text+0x27b6): undefined reference to `cos'
vq.c:(.text+0x27e5): undefined reference to `cos'
vq.c:(.text+0x3234): undefined reference to `sqrtf'
/tmp/_packages/opus/build/lib/libopus.a(vq.o): In function `alg_unquant':
vq.c:(.text+0x36ff): undefined reference to `sqrtf'
/tmp/_packages/opus/build/lib/libopus.a(vq.o): In function `renormalise_vector':
vq.c:(.text+0x38a9): undefined reference to `sqrtf'
/tmp/_packages/opus/build/lib/libopus.a(vq.o): In function `stereo_itheta':
vq.c:(.text+0x39de): undefined reference to `floorf'
vq.c:(.text+0x3a7b): undefined reference to `floorf'
vq.c:(.text+0x3afe): undefined reference to `sqrtf'
vq.c:(.text+0x3b29): undefined reference to `sqrtf'
collect2: error: ld returned 1 exit status
Makefile:615: recipe for target 'opusrtp' failed
make[1]: *** [opusrtp] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/tmp/_packages/opus/opus-tools-0.1.10'
Makefile:1009: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1