Opened 8 years ago

Closed 7 years ago

Last modified 7 years ago

#53438 closed defect (fixed)

Audacity can't find ffmpeg

Reported by: rpspringuel (Fr. Samuel Springuel) Owned by: RJVB (René Bertin)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: EnekoGotzon, mojca (Mojca Miklavec)
Port: audacity

Description

I've installed the latest audacity and ffmpeg ports (along with their dependencies) and Audacity is complaining that it can't find the ffmpeg libraries (and thus can't open m4a files). When I try to manually point to the library (/opt/local/lib/libavformat.57.56.100.dylib) the dialog just goes back to the preferences pane and the same library not found error shows up.

Attachments (6)

main.log (4.1 MB) - added by rpspringuel (Fr. Samuel Springuel) 8 years ago.
patch-python.diff (879 bytes) - added by RJVB (René Bertin) 8 years ago.
main.2.log (4.1 MB) - added by rpspringuel (Fr. Samuel Springuel) 8 years ago.
patch-python.2.diff (1.2 KB) - added by RJVB (René Bertin) 8 years ago.
truly, really, completely verbose lv2 build …
patch-python.3.diff (1.6 KB) - added by RJVB (René Bertin) 8 years ago.
patch that restores building with cctools v895 (on OS X 10.9)
main.3.log (6.9 MB) - added by rpspringuel (Fr. Samuel Springuel) 7 years ago.

Change History (33)

comment:1 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: ffmpeg removed
Owner: set to RJVB
Status: newassigned

comment:2 Changed 8 years ago by RJVB (René Bertin)

What OS version are you seeing this on?

I updated my port:ffmpeg to the current 3.2.2 and audacity immediately saw the new ffmpeg libraries. m4a import still works.

FWIW, I have a personal ffmpeg-2 port that's active. When I open the Audacity log (under the Help menu), I see this:

17:38:19: Trying to load FFmpeg libraries...
17:38:19: mLibAVFormatPath ('/opt/local/lib/libavformat-2.56.40.101.dylib') is not empty. Loading from it.
17:38:19: Checking for monolithic avformat from '/opt/local/lib/libavformat-2.56.40.101.dylib'.
17:38:19: avformat not monolithic
17:38:19: Loading avutil from '/opt/local/lib/libavutil-2.54.31.100.dylib'.
17:38:19: Loading avcodec from '/opt/local/lib/libavcodec-2.56.60.100.dylib'.
17:38:19: Loading avformat from '/opt/local/lib/libavformat-2.56.40.101.dylib'.
17:38:19: Actual avutil path /opt/local/lib/libavutil-2.54.31.100.dylib
17:38:19: Actual avcodec path /opt/local/lib/libavcodec-2.56.60.100.dylib
17:38:19: Actual avformat path /opt/local/lib/libavformat-2.56.40.101.dylib
17:38:19: Importing symbols...
17:38:19: All symbols loaded successfully. Initializing the library.
17:38:19: Retrieving FFmpeg library version numbers:
17:38:19:    AVCodec version 0x383c64 - 56.60.100 (built against 0x393065 - 57.48.101)
17:38:19:    AVFormat version 0x382865 - 56.40.101 (built against 0x392964 - 57.41.100)
17:38:19:    AVUtil version 0x361f64 - 54.31.100 (built against 0x371c64 - 55.28.100)
17:38:19: Error: AVCodec version mismatch = -1
17:38:19: Error: AVFormat version mismatch = -1
17:38:19: Error: AVUtil version mismatch = -1
17:38:19: Error: Version mismatch. FFmpeg libraries are unusable.
17:38:19: Trying to load FFmpeg libraries from default path, '/opt/local/lib/libavformat.57.dylib'.
17:38:19: Checking for monolithic avformat from '/opt/local/lib/libavformat.57.dylib'.
17:38:19: avformat not monolithic
17:38:19: Loading avutil from '/opt/local/lib/libavutil.55.34.100.dylib'.
17:38:19: Loading avcodec from '/opt/local/lib/libavcodec.57.64.101.dylib'.
17:38:19: Loading avformat from '/opt/local/lib/libavformat.57.dylib'.
17:38:19: Actual avutil path /opt/local/lib/libavutil.55.34.100.dylib
17:38:19: Actual avcodec path /opt/local/lib/libavcodec.57.64.101.dylib
17:38:19: Actual avformat path /opt/local/lib/libavformat.57.56.100.dylib
17:38:19: Importing symbols...
17:38:19: All symbols loaded successfully. Initializing the library.
17:38:19: Retrieving FFmpeg library version numbers:
17:38:19:    AVCodec version 0x394065 - 57.64.101 (built against 0x393065 - 57.48.101)
17:38:19:    AVFormat version 0x393864 - 57.56.100 (built against 0x392964 - 57.41.100)
17:38:19:    AVUtil version 0x372264 - 55.34.100 (built against 0x371c64 - 55.28.100)
17:38:19: FFmpeg libraries loaded successfully.

If you continue to see your issue, please copy the audacity log here (inline if it's short or else as an attachment).

comment:3 Changed 8 years ago by rpspringuel (Fr. Samuel Springuel)

I'm on 10.11.6 and using ffmpeg @3.2.2_3+gpl2 and audacity @2.1.2_2.

13:15:12: Audacity 2.1.2
13:15:12: Trying to load FFmpeg libraries...
13:15:12: mLibAVFormatPath ('/opt/local/lib/libavformat.57.56.100.dylib') is not empty. Loading from it.
13:15:12: Checking for monolithic avformat from '/opt/local/lib/libavformat.57.56.100.dylib'.
13:15:14: avformat not monolithic
13:15:14: Loading avutil from '/opt/local/lib/libavutil.55.34.100.dylib'.
13:15:14: Loading avcodec from '/opt/local/lib/libavcodec.57.64.101.dylib'.
13:15:14: Loading avformat from '/opt/local/lib/libavformat.57.56.100.dylib'.
13:15:14: Actual avutil path /opt/local/lib/libavutil.55.34.100.dylib
13:15:14: Actual avcodec path /opt/local/lib/libavcodec.57.64.101.dylib
13:15:14: Actual avformat path /opt/local/lib/libavformat.57.56.100.dylib
13:15:14: Importing symbols...
13:15:14: All symbols loaded successfully. Initializing the library.
13:15:14: Retrieving FFmpeg library version numbers:
13:15:14:    AVCodec version 0x394065 - 57.64.101 (built against 0x383c64 - 56.60.100)
13:15:14:    AVFormat version 0x393864 - 57.56.100 (built against 0x382865 - 56.40.101)
13:15:14:    AVUtil version 0x372264 - 55.34.100 (built against 0x361f64 - 54.31.100)
13:15:14: Error: AVCodec version mismatch = 1
13:15:14: Error: AVFormat version mismatch = 1
13:15:14: Error: AVUtil version mismatch = 1
13:15:14: Error: Version mismatch. FFmpeg libraries are unusable.
13:15:14: Trying to load FFmpeg libraries from default path, '/opt/local/lib/libavformat.56.dylib'.
13:15:14: Checking for monolithic avformat from '/opt/local/lib/libavformat.56.dylib'.
13:15:14: Error: dlopen(/opt/local/lib/libavformat.56.dylib, 1): image not found
13:15:14: Loading avutil from ''.
13:15:14: Error: dlopen(.bundle, 1): image not found
13:15:14: Loading avcodec from ''.
13:15:14: Error: dlopen(.bundle, 1): image not found
13:15:14: Loading avformat from '/opt/local/lib/libavformat.56.dylib'.
13:15:14: Error: dlopen(/opt/local/lib/libavformat.56.dylib, 1): image not found
13:15:14: Error: Failed to load FFmpeg libraries.
13:15:14: Trying to load FFmpeg libraries from legacy path, '/usr/local/lib/audacity/libavformat.56.dylib'.
13:15:14: Checking for monolithic avformat from '/usr/local/lib/audacity/libavformat.56.dylib'.
13:15:14: Error: dlopen(/usr/local/lib/audacity/libavformat.56.dylib, 1): image not found
13:15:14: Loading avutil from ''.
13:15:14: Error: dlopen(.bundle, 1): image not found
13:15:14: Loading avcodec from ''.
13:15:14: Error: dlopen(.bundle, 1): image not found
13:15:14: Loading avformat from '/usr/local/lib/audacity/libavformat.56.dylib'.
13:15:14: Error: dlopen(/usr/local/lib/audacity/libavformat.56.dylib, 1): image not found
13:15:14: Error: Failed to load FFmpeg libraries.
13:15:14: Trying to load FFmpeg libraries from system paths. File name is 'libavformat.56.dylib'.
13:15:14: Checking for monolithic avformat from 'libavformat.56.dylib'.
13:15:14: Error: dlopen(libavformat.56.dylib, 1): image not found
13:15:14: Loading avutil from ''.
13:15:14: Error: dlopen(.bundle, 1): image not found
13:15:14: Loading avcodec from ''.
13:15:14: Error: dlopen(.bundle, 1): image not found
13:15:14: Loading avformat from 'libavformat.56.dylib'.
13:15:14: Error: dlopen(libavformat.56.dylib, 1): image not found
13:15:14: Error: Failed to load FFmpeg libraries.
13:15:14: Error: Failed to find compatible FFmpeg libraries.
13:15:35: File name is /Users/RPS/Documents/School/Theology/Canon Law & Sacraments/Lectures/RAW/17012609.m4a
13:15:35: Mime type is *
13:15:35: Opening with libav
13:15:35: Opening with libsndfile
13:15:35: Opening with liboggvorbis
13:15:36: Opening with libflac
13:15:36: Opening with lof
13:15:36: Error: Importer::Import: Opening failed.

comment:4 Changed 8 years ago by RJVB (René Bertin)

This looks like audacity was built against ffmpeg 2:

13:15:14: Retrieving FFmpeg library version numbers:
13:15:14:    AVCodec version 0x394065 - 57.64.101 (built against 0x383c64 - 56.60.100)
13:15:14:    AVFormat version 0x393864 - 57.56.100 (built against 0x382865 - 56.40.101)
13:15:14:    AVUtil version 0x372264 - 55.34.100 (built against 0x361f64 - 54.31.100)
13:15:14: Error: AVCodec version mismatch = 1
13:15:14: Error: AVFormat version mismatch = 1
13:15:14: Error: AVUtil version mismatch = 1
13:15:14: Error: Version mismatch. FFmpeg libraries are unusable.
13:15:14: Trying to load FFmpeg libraries from default path, '/opt/local/lib/libavformat.56.dylib'.

which in turn implies that I would have rebuilt my local copy after I finally upgraded to ffmpeg 3 (which I held off on for quite a while). That kind of surprise me, but anyway.

Could you try to reinstall audacity from source, please?

sudo port -ns upgrade --force audacity

and see if that solves your issue?

Changed 8 years ago by rpspringuel (Fr. Samuel Springuel)

Attachment: main.log added

comment:5 Changed 8 years ago by rpspringuel (Fr. Samuel Springuel)

The build fails with the following error:

Error: Failed to build audacity: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_audio_audacity/audacity/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.

I've attached the referenced log above.

comment:6 Changed 8 years ago by RJVB (René Bertin)

That build error has nothing to do with FFMpeg:

:info:build ld: warning: ignoring file ../lib-src/lv2/liblv2.a, file was built for archive which is not the architecture being linked (x86_64): ../lib-src/lv2/liblv2.a

Annoyingly the liblv2 build hides its details so I cannot infer what goes wrong there, so this may take some time to figure out :-/

Googling the "file was built for archive" error I find this most recent hit: https://github.com/MoarVM/MoarVM/issues/334

In that case the error was caused by the use of the wrong ar utility (GNU's instead of Apple's). Confirmed in another hit (https://github.com/tpoechtrager/osxcross/issues/11).

As far as I can see your build uses AppleClang. Can you check where in your path you have the ar program installed (tcsh has the where ar command for that, bash/sh surely have something similar), and what versions they are?

comment:7 Changed 8 years ago by mojca (Mojca Miklavec)

On the buildbot 10.11 seems to work (in some way, the build must have succeeded earlier), on 10.12 it fails with:

libtool: link: /usr/bin/clang++ -I../lib-src/portmixer/include -I../mac -pipe -Os -stdlib=libc++ -arch x86_64 -DwxDEBUG_LEVEL=0 -Wall -I../include -I../lib-src/FileDialog -rdynamic -Wl,-headerpad_max_install_names -arch x86_64 -o audacity audacity-BlockFile.o audacity-DirManager.o audacity-Dither.o audacity-FileFormats.o audacity-Internat.o audacity-Prefs.o audacity-SampleFormat.o audacity-Sequence.o blockfile/audacity-LegacyAliasBlockFile.o blockfile/audacity-LegacyBlockFile.o blockfile/audacity-ODDecodeBlockFile.o blockfile/audacity-ODPCMAliasBlockFile.o blockfile/audacity-PCMAliasBlockFile.o blockfile/audacity-SilentBlockFile.o blockfile/audacity-SimpleBlockFile.o xml/audacity-XMLTagHandler.o audacity-AboutDialog.o audacity-AColor.o audacity-AudacityApp.o audacity-AudacityLogger.o audacity-AudioIO.o audacity-AutoRecovery.o audacity-BatchCommandDialog.o audacity-BatchCommands.o audacity-BatchProcessDialog.o audacity-Benchmark.o audacity-Dependencies.o audacity-DeviceChange.o audacity-DeviceManager.o audacity-Diags.o audacity-Envelope.o audacity-FFmpeg.o audacity-FFT.o audacity-FileIO.o audacity-FileNames.o audacity-FreqWindow.o audacity-HelpText.o audacity-HistoryWindow.o audacity-ImageManipulation.o audacity-InterpolateAudio.o audacity-LabelDialog.o audacity-LabelTrack.o audacity-LangChoice.o audacity-Languages.o audacity-Legacy.o audacity-Lyrics.o audacity-LyricsWindow.o audacity-Matrix.o audacity-Menus.o audacity-Mix.o audacity-MixerBoard.o audacity-ModuleManager.o audacity-PitchName.o audacity-PlatformCompatibility.o audacity-PluginManager.o audacity-Printing.o audacity-Profiler.o audacity-Project.o audacity-RealFFTf.o audacity-RealFFTf48x.o audacity-Resample.o audacity-RingBuffer.o audacity-Screenshot.o audacity-SelectedRegion.o audacity-Shuttle.o audacity-ShuttleGui.o audacity-ShuttlePrefs.o audacity-Snap.o audacity-SoundActivatedRecord.o audacity-Spectrum.o audacity-SplashDialog.o audacity-SseMathFuncs.o audacity-Tags.o audacity-Theme.o audacity-TimeDialog.o audacity-TimerRecordDialog.o audacity-TimeTrack.o audacity-Track.o audacity-TrackArtist.o audacity-TrackPanel.o audacity-TrackPanelAx.o audacity-UndoManager.o audacity-ViewInfo.o audacity-VoiceKey.o audacity-WaveClip.o audacity-WaveTrack.o audacity-WrappedType.o commands/audacity-AppCommandEvent.o commands/audacity-BatchEvalCommand.o commands/audacity-Command.o commands/audacity-CommandBuilder.o commands/audacity-CommandDirectory.o commands/audacity-CommandHandler.o commands/audacity-CommandManager.o commands/audacity-CommandSignature.o commands/audacity-CommandType.o commands/audacity-CompareAudioCommand.o commands/audacity-ExecMenuCommand.o commands/audacity-GetAllMenuCommands.o commands/audacity-GetProjectInfoCommand.o commands/audacity-GetTrackInfoCommand.o commands/audacity-HelpCommand.o commands/audacity-ImportExportCommands.o commands/audacity-Keyboard.o commands/audacity-MessageCommand.o commands/audacity-OpenSaveCommands.o commands/audacity-PreferenceCommands.o commands/audacity-ResponseQueue.o commands/audacity-ScreenshotCommand.o commands/audacity-ScriptCommandRelay.o commands/audacity-SelectCommand.o commands/audacity-SetProjectInfoCommand.o commands/audacity-SetTrackInfoCommand.o effects/audacity-Amplify.o effects/audacity-AutoDuck.o effects/audacity-BassTreble.o effects/audacity-Biquad.o effects/audacity-ChangePitch.o effects/audacity-ChangeSpeed.o effects/audacity-ChangeTempo.o effects/audacity-ClickRemoval.o effects/audacity-Compressor.o effects/audacity-Contrast.o effects/audacity-DtmfGen.o effects/audacity-Echo.o effects/audacity-Effect.o effects/audacity-EffectManager.o effects/audacity-EffectRack.o effects/audacity-Equalization.o effects/audacity-Equalization48x.o effects/audacity-Fade.o effects/audacity-FindClipping.o effects/audacity-Generator.o effects/audacity-Invert.o effects/audacity-Leveller.o effects/audacity-LoadEffects.o effects/audacity-Noise.o effects/audacity-NoiseReduction.o effects/audacity-NoiseRemoval.o effects/audacity-Normalize.o effects/audacity-Paulstretch.o effects/audacity-Phaser.o effects/audacity-Repair.o effects/audacity-Repeat.o effects/audacity-Reverb.o effects/audacity-Reverse.o effects/audacity-SBSMSEffect.o effects/audacity-ScienFilter.o effects/audacity-Silence.o effects/audacity-SimpleMono.o effects/audacity-SoundTouchEffect.o effects/audacity-StereoToMono.o effects/audacity-TimeScale.o effects/audacity-TimeWarper.o effects/audacity-ToneGen.o effects/audacity-TruncSilence.o effects/audacity-TwoPassSimpleMono.o effects/audacity-Wahwah.o export/audacity-Export.o export/audacity-ExportCL.o export/audacity-ExportFLAC.o export/audacity-ExportMP2.o export/audacity-ExportMP3.o export/audacity-ExportMultiple.o export/audacity-ExportOGG.o export/audacity-ExportPCM.o import/audacity-Import.o import/audacity-ImportFLAC.o import/audacity-ImportLOF.o import/audacity-ImportMP3.o import/audacity-ImportOGG.o import/audacity-ImportPCM.o import/audacity-ImportRaw.o import/audacity-RawAudioGuess.o import/audacity-FormatClassifier.o import/audacity-MultiFormatReader.o import/audacity-SpecPowerMeter.o ondemand/audacity-ODComputeSummaryTask.o ondemand/audacity-ODDecodeFFmpegTask.o ondemand/audacity-ODDecodeTask.o ondemand/audacity-ODManager.o ondemand/audacity-ODTask.o ondemand/audacity-ODTaskThread.o ondemand/audacity-ODWaveTrackTaskQueue.o prefs/audacity-BatchPrefs.o prefs/audacity-DevicePrefs.o prefs/audacity-DirectoriesPrefs.o prefs/audacity-EffectsPrefs.o prefs/audacity-ExtImportPrefs.o prefs/audacity-GUIPrefs.o prefs/audacity-ImportExportPrefs.o prefs/audacity-KeyConfigPrefs.o prefs/audacity-LibraryPrefs.o prefs/audacity-MidiIOPrefs.o prefs/audacity-ModulePrefs.o prefs/audacity-MousePrefs.o prefs/audacity-PlaybackPrefs.o prefs/audacity-PrefsDialog.o prefs/audacity-ProjectsPrefs.o prefs/audacity-QualityPrefs.o prefs/audacity-RecordingPrefs.o prefs/audacity-SpectrogramSettings.o prefs/audacity-SpectrumPrefs.o prefs/audacity-ThemePrefs.o prefs/audacity-TracksPrefs.o prefs/audacity-WarningsPrefs.o prefs/audacity-WaveformPrefs.o prefs/audacity-WaveformSettings.o toolbars/audacity-ControlToolBar.o toolbars/audacity-DeviceToolBar.o toolbars/audacity-EditToolBar.o toolbars/audacity-MeterToolBar.o toolbars/audacity-MixerToolBar.o toolbars/audacity-SelectionBar.o toolbars/audacity-SpectralSelectionBar.o toolbars/audacity-ToolBar.o toolbars/audacity-ToolDock.o toolbars/audacity-ToolManager.o toolbars/audacity-ToolsToolBar.o toolbars/audacity-TranscriptionToolBar.o widgets/audacity-AButton.o widgets/audacity-ASlider.o widgets/audacity-AttachableScrollBar.o widgets/audacity-ErrorDialog.o widgets/audacity-ExpandingToolBar.o widgets/audacity-FileHistory.o widgets/audacity-Grabber.o widgets/audacity-Grid.o widgets/audacity-HelpSystem.o widgets/audacity-HtmlWindow.o widgets/audacity-ImageRoll.o widgets/audacity-KeyView.o widgets/audacity-LinkingHtmlWindow.o widgets/audacity-Meter.o widgets/audacity-MultiDialog.o widgets/audacity-NumericTextCtrl.o widgets/audacity-numformatter.o widgets/audacity-ProgressDialog.o widgets/audacity-Ruler.o widgets/audacity-valnum.o widgets/audacity-Warning.o xml/audacity-XMLFileReader.o xml/audacity-XMLWriter.o effects/audiounits/audacity-AudioUnitEffect.o effects/audiounits/audacity-AUControl.o export/audacity-ExportFFmpeg.o export/audacity-ExportFFmpegDialogs.o import/audacity-ImportFFmpeg.o effects/ladspa/audacity-LadspaEffect.o ondemand/audacity-ODDecodeFlacTask.o effects/nyquist/audacity-LoadNyquist.o effects/nyquist/audacity-Nyquist.o effects/lv2/audacity-LoadLV2.o effects/lv2/audacity-LV2Effect.o audacity-NoteTrack.o import/audacity-ImportMIDI.o effects/vamp/audacity-LoadVamp.o effects/vamp/audacity-VampEffect.o effects/VST/audacity-VSTEffect.o effects/VST/audacity-VSTControlGTK.o  -L/opt/local/lib -lexpat ../lib-src/FileDialog/.libs/libFileDialog.a -lportaudio -framework CoreAudio -framework AudioUnit ../lib-src/portmixer/src/.libs/libportmixer.a -lsndfile -lsoxr ../lib-src/lib-widget-extra/.libs/libwidgetextra.a -L/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/lib -lwx_osx_cocoau_xrc-3.0 -lwx_osx_cocoau_webview-3.0 -lwx_osx_cocoau_html-3.0 -lwx_osx_cocoau_qa-3.0 -lwx_osx_cocoau_adv-3.0 -lwx_osx_cocoau_core-3.0 -lwx_baseu_xml-3.0 -lwx_baseu_net-3.0 -lwx_baseu-3.0 -lFLAC++ -lFLAC -lid3tag -lmad -lm ../lib-src/libnyquist/libnyquist.a -lSoundTouch -ltwolame -lvorbisenc -lvorbisfile -lvorbis -logg ../lib-src/lv2/liblv2.a ../lib-src/portsmf/libportSMF.a ../lib-src/sbsms/src/.libs/libsbsms.a ../lib-src/libvamp/libvamp-hostsdk.a -framework CoreAudioKit -lz -framework OpenGL -framework System -framework AudioToolbox -framework Cocoa -framework Carbon -framework IOKit
ld: warning: ignoring file ../lib-src/lv2/liblv2.a, file was built for archive which is not the architecture being linked (x86_64): ../lib-src/lv2/liblv2.a
Undefined symbols for architecture x86_64:
  "_lilv_instance_free", referenced from:
      LV2Effect::ProcessFinalize() in audacity-LV2Effect.o
      LV2Effect::FreeInstance(LilvInstanceImpl*) in audacity-LV2Effect.o
      LV2Effect::RealtimeFinalize() in audacity-LV2Effect.o
      LV2Effect::CloseUI() in audacity-LV2Effect.o
  "_lilv_new_uri", referenced from:
      LV2EffectsModule::Initialize() in audacity-LoadLV2.o
      LV2EffectsModule::GetPlugin(wxString const&) in audacity-LoadLV2.o
      LV2Effect::BuildFancy() in audacity-LV2Effect.o
      LV2Effect::LoadFactoryPreset(int) in audacity-LV2Effect.o
  "_lilv_node_as_float", referenced from:
      LV2Effect::SetHost(EffectHostInterface*) in audacity-LV2Effect.o
[...]
  "_suil_host_free", referenced from:
      LV2Effect::BuildFancy() in audacity-LV2Effect.o
      LV2Effect::CloseUI() in audacity-LV2Effect.o
  "_suil_host_new", referenced from:
      LV2Effect::BuildFancy() in audacity-LV2Effect.o
  "_suil_instance_extension_data", referenced from:
      LV2Effect::BuildFancy() in audacity-LV2Effect.o
  "_suil_instance_free", referenced from:
      LV2Effect::CloseUI() in audacity-LV2Effect.o
  "_suil_instance_get_handle", referenced from:
      LV2Effect::OnIdle(wxIdleEvent&) in audacity-LV2Effect.o
  "_suil_instance_get_widget", referenced from:
      LV2Effect::BuildFancy() in audacity-LV2Effect.o
  "_suil_instance_new", referenced from:
      LV2Effect::BuildFancy() in audacity-LV2Effect.o
  "_suil_instance_port_event", referenced from:
      LV2Effect::TransferDataToWindow() in audacity-LV2Effect.o
  "_suil_ui_supported", referenced from:
      LV2Effect::BuildFancy() in audacity-LV2Effect.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

comment:8 in reply to:  7 Changed 8 years ago by RJVB (René Bertin)

Replying to mojca:

On the buildbot 10.11 seems to work (in some way, the build must have succeeded earlier)

Yeah, but (how) do the build bots handle updates to the OS and/or Xcode toolchain?

on 10.12 it fails with:

ld: warning: ignoring file ../lib-src/lv2/liblv2.a, file was built for archive which is not the architecture being linked (x86_64): ../lib-src/lv2/liblv2.a

...

ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) }}}

That's the same error the OP is getting. We should be able to assume that the build bots don't find the wrong 'ar' command, so something else must be going on which will probably be hard for me to test :-/

Changed 8 years ago by RJVB (René Bertin)

Attachment: patch-python.diff added

comment:9 Changed 8 years ago by RJVB (René Bertin)

@ rpspringuel : can you please replace the existing patch-python.diff in `port dir audacity`/files with the attached version, do port clean audacity and repeat the build? For ease of reading the logfile, please add build.jobs=1 to the install-from-source commandline.

The build should still fail, but liblv2 will have been built in verbose mode so hopefully we can get some insight how to fix this.

comment:10 Changed 8 years ago by RJVB (René Bertin)

If you're feeling adventurous you *may* try to install the latest audacity-devel port. Not that I'm expecting that they changed anything in how lv2 is being built but who knows. You'll need the Portfile and files directory from https://github.com/RJVB/macstrop/tree/master/audio/audacity

and replace the contents of port dir audacity with them.

comment:11 Changed 8 years ago by rpspringuel (Fr. Samuel Springuel)

The version of ar that I have is installed in /opt/local/bin/ar.

I've redone the build with the different patch-python.diff and am attaching the diff.

Changed 8 years ago by rpspringuel (Fr. Samuel Springuel)

Attachment: main.2.log added

comment:12 in reply to:  11 Changed 8 years ago by RJVB (René Bertin)

Replying to rpspringuel:

The version of ar that I have is installed in /opt/local/bin/ar.

Dang, of course, I have that one too.

After updating my cctools to the latest version I get the same error on 10.9 . That's some kind of progress ...

@ rpspringuel : In the meantime, to come back to the initial issue: with a bit of luck you'll be able to complete the build after deactivating cctools. A complete rebuild, of course. Audacity doesn't have any dependencies on cctools that I know of. So you should be able to do

> sudo port deactivate -f cctools
> sudo port -ns upgrade --force audacity
> sudo port activate cctools
Last edited 8 years ago by RJVB (René Bertin) (previous) (diff)

Changed 8 years ago by RJVB (René Bertin)

Attachment: patch-python.2.diff added

truly, really, completely verbose lv2 build ...

Changed 8 years ago by RJVB (René Bertin)

Attachment: patch-python.3.diff added

patch that restores building with cctools v895 (on OS X 10.9)

comment:13 Changed 8 years ago by RJVB (René Bertin)

See also ticket #53449

comment:14 Changed 8 years ago by rpspringuel (Fr. Samuel Springuel)

Do you want me to try building with both of those patch-python.diff files and if so with or without cctools active?

comment:15 Changed 8 years ago by RJVB (René Bertin)

I'd appreciate it if you could build with the latest version (and cctools active).
(I'd also understand if you want to move on and just get the stuff built, i.e. with cctools deactivated.)

comment:16 Changed 8 years ago by rpspringuel (Fr. Samuel Springuel)

I'm happy to try things out in order to get the bug solved, I'm just in the middle of some other dev stuff at the same time so I have to plan out what gets built when in order to avoid overtaxing my system (I'm running a fairly old machine).

comment:17 Changed 8 years ago by RJVB (René Bertin)

OK, in that case please try the latest version of the attached patch. Fortunately audacity isn't the most expensive port to build from source.

comment:18 Changed 8 years ago by rpspringuel (Fr. Samuel Springuel)

Building with patch-python.3.diff completed with no errors, Audacity is finding the ffmpeg libraries, and it can open m4a files now.

comment:19 Changed 8 years ago by EnekoGotzon

Cc: EnekoGotzon added

comment:20 Changed 8 years ago by mojca (Mojca Miklavec)

Cc: mojca added

comment:21 Changed 8 years ago by Iritscen

I haven't taken the time to try the patch yet, but it seems like this fix would be a high priority to implement, no? For some reason, the commands in comment:12 did not work for me. Deactivating cctools and then issuing "port clean" and "port install" commands for audacity resulted in the same archive-related error, as if cctools was still in effect. What *did* work for me was to re-activate cctools, at which point it gave me the option to restore an older build of cctools that I still had on my system (several, in fact, but I went with cctools @886_6+llvm38 based on having read ticket #53449). I was then able to clean and build audacity successfully.

comment:22 Changed 7 years ago by rpspringuel (Fr. Samuel Springuel)

This problem just cropped back up when I updated all my ports, which included an update of Audacity to 2.1.3. I don't have time right this minute to see if the fix from before (replacing python-patch.diff) works in this case, but I'll try that later in the week and report back (unless there's something else you want me to try this time).

comment:23 Changed 7 years ago by RJVB (René Bertin)

Keep me posted. I rely on others to commit changes to my ports so can only hope they're committed completely.

comment:24 Changed 7 years ago by rpspringuel (Fr. Samuel Springuel)

Well, this fell off my radar for a bit, but I finally got around to trying to rebuild the 2.1.3 version this morning using the python-patch.3.diff file from above. The build failed and I'm attaching the log.

Changed 7 years ago by rpspringuel (Fr. Samuel Springuel)

Attachment: main.3.log added

comment:25 Changed 7 years ago by RJVB (René Bertin)

Please see #55115 for this failure.

comment:26 Changed 7 years ago by RJVB (René Bertin)

Resolution: fixed
Status: assignedclosed

In f5617a1b95d53a40c20b7e912cd798d8dc886d3e/macports-ports:

audacity[-devel]: update to version 2.2.0/2.2.0.1

  • Update audacity to version 2.2.0.
  • Update audacity devel to version 2.2.0-1-gfd3813f from git.
  • Address incompatibility with wxWidgets 3.0.3. #55115
  • New (experimental) variant wx32 to test builds against wxWidgets 3.1.
  • Dependency portmidi is now taken from MacPorts. The built-in one seems to require ALSA.
  • Dependency portaudio is the built-in one. The one from MacPorts no longer works.
  • Fixes the failure to find ffmpeg. #53438

Closes: #53438
Closes: #55115

comment:27 Changed 7 years ago by rpspringuel (Fr. Samuel Springuel)

Just updated to 2.2 and this error goes away. Thanks.

Note: See TracTickets for help on using tickets.