Opened 7 years ago

Closed 7 years ago

#56197 closed defect (invalid)

chromaprint @1.4.2_1 does not build on macOS High Sierra, 10.13.4, with ffmpeg-devel @20180323_0 because linking fails

Reported by: ballapete (Peter "Pete" Dyballa) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: highsierra Cc: khindenburg@…
Port: chromaprint

Description

[100%] Linking CXX executable fpcalc
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_chromaprint/chromaprint/work/build/src/cmd && /opt/local/bin/cmake -E cmake_link_script CMakeFiles/fpcalc.dir/link.txt --verbose=ON
/usr/bin/clang++  -pipe -Os -stdlib=libc++ -std=c++11 -DNDEBUG -arch x86_64 -mmacosx-version-min=10.13 -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/opt/local/lib -Wl,-headerpad_max_install_names  -sectcreate __TEXT __info_plist /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_chromaprint/chromap\
rint/work/build/src/cmd/fpcalc.Info.plist CMakeFiles/fpcalc.dir/fpcalc.cpp.o  -o fpcalc -Wl,-rpath,/opt/local/lib -lm ../libchromaprint.1.4.2.dylib -lm -framework Accelerate /usr/local/lib/libavformat.a /usr/local/lib/libavcodec.a /usr/local/lib/libavutil.a /opt/local/lib/libswresample.dylib -lz
ld: warning: could not create compact unwind for _read_header: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _dash_write_header: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _mkv_write_ass_blocks: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _ff_sdp_parse: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _ff_rtsp_make_setup_request: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _ff_rtsp_connect: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _rtsp_read_packet: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _rtsp_listen: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _ff_rtsp_parse_streaming_commands: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _ff_rtsp_tcp_read_packet: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _ff_rtsp_setup_output_streams: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _sap_read_header: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _sap_write_header: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _write_manifest: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _ism_flush: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _srt_read_packet: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _wtvfile_open_sector: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _read_header: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _amrwb_decode_frame: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _dca_filter_channels: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _generate_joint_tables: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _encode_residual_ch: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _read_huffman_tables: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _fraps2_decode_plane: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _g723_1_encode_frame: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _encode_mb_hq.isra.6: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _encode_thread: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _hls_residual_coding: does not use RBP or RSP based frame
ld: warning: could not create compact unwind for _hls_prediction_unit: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _http_proxy_open: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _http_open_cnx_internal: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _ra144_encode_frame: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _rtp_open: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _ff_rtp_set_remote_url: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _srt_decode_frame: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _encode_block: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _svq1_encode_plane: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _build_huff: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _vorbis_decode_frame: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _vorbis_floor1_decode: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _synth_superframe: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _search_for_quantizers_anmr: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _encode_window_bands_info: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _codebook_trellis_rate: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _ff_atrac3p_generate_tones: does not use RBP or RSP based frame
ld: warning: could not create compact unwind for _ff_atrac3p_ipqf: register 3 saved somewhere other than in frame
ld: warning: could not create compact unwind for _celt_decode_bands: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _rtmp_http_close: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _rtmp_http_open: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _gopher_open: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _ff_h264_queue_decode_slice: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _icecast_open: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _ff_lpc_calc_coefs: does not use RBP or RSP based frame
ld: warning: could not create compact unwind for _mmsh_open: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _rtmp_open: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _silk_decode_frame: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _tcp_open: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _udp_open: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _ff_ps_apply: stack subq instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _avg_8tap_regular_64hv_avx2: register 3 saved somewhere other than in frame
ld: warning: could not create compact unwind for _avg_8tap_sharp_64hv_avx2: register 3 saved somewhere other than in frame
ld: warning: could not create compact unwind for _avg_8tap_smooth_64hv_avx2: register 3 saved somewhere other than in frame
ld: warning: could not create compact unwind for _avg_8tap_sharp_32hv_avx2: register 3 saved somewhere other than in frame
ld: warning: could not create compact unwind for _avg_8tap_regular_32hv_avx2: register 3 saved somewhere other than in frame
ld: warning: could not create compact unwind for _avg_8tap_smooth_32hv_avx2: register 3 saved somewhere other than in frame
ld: warning: could not create compact unwind for _put_8tap_regular_64hv_avx2: register 3 saved somewhere other than in frame
ld: warning: could not create compact unwind for _put_8tap_sharp_64hv_avx2: register 3 saved somewhere other than in frame
ld: warning: could not create compact unwind for _put_8tap_smooth_64hv_avx2: register 3 saved somewhere other than in frame
ld: warning: could not create compact unwind for _put_8tap_sharp_32hv_avx2: register 3 saved somewhere other than in frame
ld: warning: could not create compact unwind for _put_8tap_regular_32hv_avx2: register 3 saved somewhere other than in frame
ld: warning: could not create compact unwind for _put_8tap_smooth_32hv_avx2: register 3 saved somewhere other than in frame
Undefined symbols for architecture x86_64:
  "_BZ2_bzDecompress", referenced from:
      _matroska_decode_buffer.isra.5 in libavformat.a(matroskadec.o)
  "_BZ2_bzDecompressEnd", referenced from:
      _matroska_decode_buffer.isra.5 in libavformat.a(matroskadec.o)
  "_BZ2_bzDecompressInit", referenced from:
      _matroska_decode_buffer.isra.5 in libavformat.a(matroskadec.o)
  "_CFDataCreate", referenced from:
      _vda_h264_end_frame in libavcodec.a(vda_h264.o)
      _vda_old_h264_end_frame in libavcodec.a(vda_h264.o)
      _ff_vda_create_decoder in libavcodec.a(vda_h264.o)
      _ff_vda_default_init in libavcodec.a(vda_h264.o)
  "_CFDictionaryCreateMutable", referenced from:
      _ff_vda_create_decoder in libavcodec.a(vda_h264.o)
      _ff_vda_default_init in libavcodec.a(vda_h264.o)
  "_CFDictionarySetValue", referenced from:
      _ff_vda_create_decoder in libavcodec.a(vda_h264.o)
      _ff_vda_default_init in libavcodec.a(vda_h264.o)
  "_CFNumberCreate", referenced from:
      _ff_vda_create_decoder in libavcodec.a(vda_h264.o)
      _ff_vda_default_init in libavcodec.a(vda_h264.o)

and so on.

Attachments (1)

main.log (67.7 KB) - added by ballapete (Peter "Pete" Dyballa) 7 years ago.
Main.log from High Sierra, macOS 10.13.4

Download all attachments as: .zip

Change History (6)

Changed 7 years ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.log added

Main.log from High Sierra, macOS 10.13.4

comment:1 Changed 7 years ago by ballapete (Peter "Pete" Dyballa)

Yesterday chromaprint built with regular ffmpeg, the version without -devel.

comment:2 in reply to:  description ; Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to ballapete:

/usr/bin/clang++  -pipe -Os -stdlib=libc++ -std=c++11 -DNDEBUG -arch x86_64 -mmacosx-version-min=10.13 -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/opt/local/lib -Wl,-headerpad_max_install_names  -sectcreate __TEXT __info_plist /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_chromaprint/chromaprint/work/build/src/cmd/fpcalc.Info.plist CMakeFiles/fpcalc.dir/fpcalc.cpp.o  -o fpcalc -Wl,-rpath,/opt/local/lib -lm ../libchromaprint.1.4.2.dylib -lm -framework Accelerate /usr/local/lib/libavformat.a /usr/local/lib/libavcodec.a /usr/local/lib/libavutil.a /opt/local/lib/libswresample.dylib -lz

I see "/usr/local/lib/libavutil.a" there. Looks like you have a non-MacPorts copy of ffmpeg in /usr/local. Per wiki:FAQ#usrlocal we don't support that.

comment:3 in reply to:  2 Changed 7 years ago by ballapete (Peter "Pete" Dyballa)

Replying to ryandesign:

Replying to ballapete:

I see "/usr/local/lib/libavutil.a" there. Looks like you have a non-MacPorts copy of ffmpeg in /usr/local. Per wiki:FAQ#usrlocal we don't support that.

I missed that! These static archives were installed for some version of Audacity (2.0.x, I think). And there are some more:

-rw-r--r--  1 root  wheel  63545888 31 Jul  2017 libavcodec.a
-rw-r--r--  1 root  wheel    483536 31 Jul  2017 libavresample.a
-rw-r--r--  1 root  wheel   1102520 31 Jul  2017 libavutil.a
-rw-r--r--  1 root  wheel   1867848 31 Jul  2017 libswscale.a
-rw-r--r--  1 root  wheel  20217840 31 Jul  2017 libavformat.a
-rw-r--r--  1 root  wheel     40512 31 Jul  2017 libavdevice.a
-rw-r--r--  1 root  wheel   2250232 31 Jul  2017 libavfilter.a

I'll retry without these libraries!

comment:4 Changed 7 years ago by ballapete (Peter "Pete" Dyballa)

Without these libraries in /usr/local/lib the port builds!

Thank you!

comment:5 Changed 7 years ago by kencu (Ken)

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.