Skip to content

Instantly share code, notes, and snippets.

@rektide
Last active August 29, 2015 14:05
Show Gist options
  • Save rektide/2b6799630b2f372f88e9 to your computer and use it in GitHub Desktop.
Save rektide/2b6799630b2f372f88e9 to your computer and use it in GitHub Desktop.
Compiling opus.js
./compileOpus.sh
+ cd libopus
+ [ ! -f configure ]
+ ./autogen.sh
Updating build configuration files, please wait....
libtoolize: putting auxiliary files in `.'.
libtoolize: linking file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: linking file `m4/libtool.m4'
libtoolize: linking file `m4/ltoptions.m4'
libtoolize: linking file `m4/ltsugar.m4'
libtoolize: linking file `m4/ltversion.m4'
libtoolize: linking file `m4/lt~obsolete.m4'
configure.ac:38: installing './compile'
configure.ac:36: installing './config.guess'
configure.ac:36: installing './config.sub'
configure.ac:33: installing './install-sh'
configure.ac:33: installing './missing'
Makefile.am:227: warning: '%'-style pattern rules are a GNU make extension
Makefile.am:230: warning: '%'-style pattern rules are a GNU make extension
Makefile.am: installing './INSTALL'
Makefile.am: installing './depcomp'
parallel-tests: installing './test-driver'
+ pwd
+ emconfigure ./configure --prefix=/usr/local/src/archive/opus.js/libopus --enable-fixed-point
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 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-unknown-linux-gnu
checking how to print strings... printf
checking for style of include used by make... GNU
checking for gcc... /usr/local/src/emscripten-git/emcc
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 /usr/local/src/emscripten-git/emcc accepts -g... yes
checking for /usr/local/src/emscripten-git/emcc option to accept ISO C89... none needed
checking whether /usr/local/src/emscripten-git/emcc understands -c and -o together... yes
checking dependency style of /usr/local/src/emscripten-git/emcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by /usr/local/src/emscripten-git/emcc... /usr/local/src/emscripten-git/emcc
checking if the linker (/usr/local/src/emscripten-git/emcc) 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 whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/local/src/emscripten-git/emcc 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 archiver @FILE support... no
checking for strip... strip
checking for ranlib... /usr/local/src/emscripten-git/emranlib
checking command to parse /usr/bin/nm -B output from /usr/local/src/emscripten-git/emcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... /usr/local/src/emscripten-git/emcc -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 dlfcn.h... yes
checking for objdir... .libs
checking if /usr/local/src/emscripten-git/emcc supports -fno-rtti -fno-exceptions... yes
checking for /usr/local/src/emscripten-git/emcc option to produce PIC... -fPIC -DPIC
checking if /usr/local/src/emscripten-git/emcc PIC flag -fPIC -DPIC works... yes
checking if /usr/local/src/emscripten-git/emcc static flag -static works... yes
checking if /usr/local/src/emscripten-git/emcc supports -c -o file.o... yes
checking if /usr/local/src/emscripten-git/emcc supports -c -o file.o... (cached) yes
checking whether the /usr/local/src/emscripten-git/emcc linker (/usr/local/src/emscripten-git/emcc -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 /usr/local/src/emscripten-git/emcc option to accept ISO C99... none needed
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking dependency style of /usr/local/src/emscripten-git/emcc... gcc3
checking for C/C++ restrict keyword... __restrict
checking for C99 variable-size arrays... yes
checking for cos in -lm... yes
checking for doxygen... no
checking if /usr/local/src/emscripten-git/emcc supports -fvisibility=hidden... yes
checking if /usr/local/src/emscripten-git/emcc supports -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes... yes
checking for lrintf... yes
checking for lrint... yes
checking for __malloc_hook... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating opus.pc
config.status: creating opus-uninstalled.pc
config.status: creating celt/arm/armopts.s
config.status: creating doc/Makefile
config.status: creating doc/Doxyfile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
configure:
------------------------------------------------------------------------
opus 1.1-142-gbb4b688: Automatic configuration OK.
Compiler support:
C99 var arrays: ................ yes
C99 lrintf: .................... yes
Use alloca: .................... no (using var arrays)
General configuration:
Floating point support: ........ no
Fast float approximations: ..... no
Fixed point debugging: ......... no
Inline Assembly Optimizations: . No ASM for your platform, please send patches
External Assembly Optimizations:
Run-time CPU detection: ........ no
Custom modes: .................. no
Assertion checking: ............ no
Fuzzing: ....................... no
API documentation: ............. yes
Extra programs: ................ yes
------------------------------------------------------------------------
Type "make; make install" to compile and install
Type "make check" to run the test suite
+ emmake make
make[1]: Entering directory '/usr/local/src/archive/opus.js/libopus'
make all-recursive
make[2]: Entering directory '/usr/local/src/archive/opus.js/libopus'
make[3]: Entering directory '/usr/local/src/archive/opus.js/libopus'
CC celt/bands.lo
CC celt/celt.lo
CC celt/celt_encoder.lo
CC celt/celt_decoder.lo
CC celt/cwrs.lo
CC celt/entcode.lo
CC celt/entdec.lo
CC celt/entenc.lo
CC celt/kiss_fft.lo
CC celt/laplace.lo
CC celt/mathops.lo
CC celt/mdct.lo
CC celt/modes.lo
CC celt/pitch.lo
CC celt/celt_lpc.lo
CC celt/quant_bands.lo
CC celt/rate.lo
CC celt/vq.lo
CC silk/CNG.lo
CC silk/code_signs.lo
CC silk/init_decoder.lo
CC silk/decode_core.lo
CC silk/decode_frame.lo
CC silk/decode_parameters.lo
CC silk/decode_indices.lo
CC silk/decode_pulses.lo
CC silk/decoder_set_fs.lo
CC silk/dec_API.lo
CC silk/enc_API.lo
CC silk/encode_indices.lo
CC silk/encode_pulses.lo
CC silk/gain_quant.lo
CC silk/interpolate.lo
CC silk/LP_variable_cutoff.lo
CC silk/NLSF_decode.lo
CC silk/NSQ.lo
CC silk/NSQ_del_dec.lo
CC silk/PLC.lo
CC silk/shell_coder.lo
CC silk/tables_gain.lo
CC silk/tables_LTP.lo
CC silk/tables_NLSF_CB_NB_MB.lo
CC silk/tables_NLSF_CB_WB.lo
CC silk/tables_other.lo
CC silk/tables_pitch_lag.lo
CC silk/tables_pulses_per_block.lo
CC silk/VAD.lo
CC silk/control_audio_bandwidth.lo
CC silk/quant_LTP_gains.lo
CC silk/VQ_WMat_EC.lo
CC silk/HP_variable_cutoff.lo
CC silk/NLSF_encode.lo
CC silk/NLSF_VQ.lo
CC silk/NLSF_unpack.lo
CC silk/NLSF_del_dec_quant.lo
CC silk/process_NLSFs.lo
CC silk/stereo_LR_to_MS.lo
CC silk/stereo_MS_to_LR.lo
CC silk/check_control_input.lo
CC silk/control_SNR.lo
CC silk/init_encoder.lo
CC silk/control_codec.lo
CC silk/A2NLSF.lo
CC silk/ana_filt_bank_1.lo
CC silk/biquad_alt.lo
CC silk/bwexpander_32.lo
CC silk/bwexpander.lo
CC silk/debug.lo
CC silk/decode_pitch.lo
CC silk/inner_prod_aligned.lo
CC silk/lin2log.lo
CC silk/log2lin.lo
CC silk/LPC_analysis_filter.lo
CC silk/LPC_inv_pred_gain.lo
CC silk/table_LSF_cos.lo
CC silk/NLSF2A.lo
CC silk/NLSF_stabilize.lo
CC silk/NLSF_VQ_weights_laroia.lo
CC silk/pitch_est_tables.lo
CC silk/resampler.lo
CC silk/resampler_down2_3.lo
CC silk/resampler_down2.lo
CC silk/resampler_private_AR2.lo
CC silk/resampler_private_down_FIR.lo
CC silk/resampler_private_IIR_FIR.lo
CC silk/resampler_private_up2_HQ.lo
CC silk/resampler_rom.lo
CC silk/sigm_Q15.lo
CC silk/sort.lo
CC silk/sum_sqr_shift.lo
CC silk/stereo_decode_pred.lo
CC silk/stereo_encode_pred.lo
CC silk/stereo_find_predictor.lo
CC silk/stereo_quant_pred.lo
CC silk/fixed/LTP_analysis_filter_FIX.lo
CC silk/fixed/LTP_scale_ctrl_FIX.lo
CC silk/fixed/corrMatrix_FIX.lo
CC silk/fixed/encode_frame_FIX.lo
CC silk/fixed/find_LPC_FIX.lo
CC silk/fixed/find_LTP_FIX.lo
CC silk/fixed/find_pitch_lags_FIX.lo
CC silk/fixed/find_pred_coefs_FIX.lo
CC silk/fixed/noise_shape_analysis_FIX.lo
CC silk/fixed/prefilter_FIX.lo
CC silk/fixed/process_gains_FIX.lo
CC silk/fixed/regularize_correlations_FIX.lo
CC silk/fixed/residual_energy16_FIX.lo
CC silk/fixed/residual_energy_FIX.lo
CC silk/fixed/solve_LS_FIX.lo
CC silk/fixed/warped_autocorrelation_FIX.lo
CC silk/fixed/apply_sine_window_FIX.lo
CC silk/fixed/autocorr_FIX.lo
CC silk/fixed/burg_modified_FIX.lo
CC silk/fixed/k2a_FIX.lo
CC silk/fixed/k2a_Q16_FIX.lo
CC silk/fixed/pitch_analysis_core_FIX.lo
CC silk/fixed/vector_ops_FIX.lo
CC silk/fixed/schur64_FIX.lo
CC silk/fixed/schur_FIX.lo
CC src/opus.lo
CC src/opus_decoder.lo
src/opus_decoder.c:37:10: warning: You appear to be compiling without optimization, if so opus will be very slow. [-W#pragma-messages]
# pragma message "You appear to be compiling without optimization, if so opus will be very slow."
^
1 warning generated.
CC src/opus_encoder.lo
CC src/opus_multistream.lo
CC src/opus_multistream_encoder.lo
src/opus_multistream_encoder.c:101:11: warning: cast from 'char *' to 'opus_val32 *' (aka 'int *') increases required alignment from 1 to 4 [-Wcast-align]
return (opus_val32*)(ptr+st->layout.nb_channels*120*sizeof(opus_val32));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/opus_multistream_encoder.c:120:11: warning: cast from 'char *' to 'opus_val32 *' (aka 'int *') increases required alignment from 1 to 4 [-Wcast-align]
return (opus_val32*)ptr;
^~~~~~~~~~~~~~~~
2 warnings generated.
CC src/opus_multistream_decoder.lo
CC src/repacketizer.lo
CC src/analysis.lo
CC src/mlp.lo
CC src/mlp_data.lo
CCLD libopus.la
WARNING root: emcc: cannot find library "m"
CC src/opus_demo.o
CCLD opus_demo
WARNING root: emcc: cannot find library "m"
WARNING root: ignoring dynamic library libopus.so because not compiling to JS or HTML, remember to link it when compiling to JS or HTML at the end
CC src/repacketizer_demo.o
CCLD repacketizer_demo
WARNING root: emcc: cannot find library "m"
WARNING root: ignoring dynamic library libopus.so because not compiling to JS or HTML, remember to link it when compiling to JS or HTML at the end
CC src/opus_compare.o
CCLD opus_compare
WARNING root: emcc: cannot find library "m"
CC tests/test_opus_api.o
tests/test_opus_api.c:1776:16: error: use of undeclared identifier '__malloc_hook'; did you mean 'malloc_hook'?
orig_malloc=__malloc_hook;
^~~~~~~~~~~~~
malloc_hook
tests/test_opus_api.c:74:7: note: 'malloc_hook' declared here
void *malloc_hook(__attribute__((unused)) size_t size,
^
tests/test_opus_api.c:1777:4: error: use of undeclared identifier '__malloc_hook'
__malloc_hook=malloc_hook;
^
tests/test_opus_api.c:1782:7: error: use of undeclared identifier '__malloc_hook'
__malloc_hook=orig_malloc;
^
tests/test_opus_api.c:1808:15: error: use of undeclared identifier '__malloc_hook'
__malloc_hook=orig_malloc;
^
tests/test_opus_api.c:1815:15: error: use of undeclared identifier '__malloc_hook'
__malloc_hook=orig_malloc;
^
tests/test_opus_api.c:1828:18: error: use of undeclared identifier '__malloc_hook'
__malloc_hook=orig_malloc;
^
tests/test_opus_api.c:1835:18: error: use of undeclared identifier '__malloc_hook'
__malloc_hook=orig_malloc;
^
tests/test_opus_api.c:1846:7: error: use of undeclared identifier '__malloc_hook'
__malloc_hook=orig_malloc;
^
tests/test_opus_api.c:1850:4: error: use of undeclared identifier '__malloc_hook'
__malloc_hook=orig_malloc;
^
9 errors generated.
ERROR root: compiler frontend failed to generate LLVM bitcode, halting
Makefile:1996: recipe for target 'tests/test_opus_api.o' failed
make[3]: *** [tests/test_opus_api.o] Error 1
make[3]: Leaving directory '/usr/local/src/archive/opus.js/libopus'
Makefile:2106: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/usr/local/src/archive/opus.js/libopus'
Makefile:1230: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/usr/local/src/archive/opus.js/libopus'
Makefile:2: recipe for target 'build/libopus.js' failed
make: *** [build/libopus.js] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment