Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build is broken for PPC #12

Open
barracuda156 opened this issue May 9, 2023 · 7 comments
Open

Build is broken for PPC #12

barracuda156 opened this issue May 9, 2023 · 7 comments

Comments

@barracuda156
Copy link

With gcc-4.2 (both natively and in Rosetta):

mkdir -p ../../../bin
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_audio_BoCA/BoCA/work/compwrap/cc/usr/bin/gcc-4.2 -dynamiclib -o ../../../bin/boca_encoder_speex.1.0.dylib config.o dllinterface.o speex.o worker.o -L../../../lib -L"/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_audio_BoCA/BoCA/work/boca-1.0.7/components/encoder/speex"/../../../lib  -lstdc++ -L/opt/local/lib -lsmooth-0.9 -lboca-1.0 -Wl,-headerpad,80,-dylib_install_name,/opt/local/lib/boca/boca_encoder_speex.1.0.dylib -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc
make[3]: Leaving directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_audio_BoCA/BoCA/work/boca-1.0.7/components/encoder/speex'
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_audio_BoCA/BoCA/work/boca-1.0.7/components/encoder'
make[1]: *** [encoder] Error 2
make[1]: *** Waiting for unfinished jobs....

With gcc-12 it fails differently (this is native):

/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_audio_BoCA/BoCA/work/compwrap/cc/opt/local/bin/gcc-mp-12 -dynamiclib -o ../bin/boca.1.0.dylib application/external/configlayer.o application/external/decodercomponent.o application/external/encodercomponent.o application/component.o application/componentspecs.o application/decodercomponent.o application/deviceinfocomponent.o application/dspcomponent.o application/encodercomponent.o application/extensioncomponent.o application/outputcomponent.o application/playlistcomponent.o application/registry.o application/streamcomponent.o application/taggercomponent.o application/verifiercomponent.o common/communication/application.o common/communication/engine.o common/communication/joblist.o common/communication/menu.o common/communication/settings.o common/metadata/device.o common/metadata/format.o common/metadata/info.o common/metadata/mcdi.o common/metadata/picture.o common/metadata/picturedata.o common/metadata/track.o common/config.o common/configlayer.o common/formatconverter.o common/i18n.o common/protocol.o common/utilities.o component/component.o component/decodercomponent.o component/deviceinfocomponent.o component/dspcomponent.o component/encodercomponent.o component/extensioncomponent.o component/outputcomponent.o component/playlistcomponent.o component/streamcomponent.o component/taggercomponent.o component/verifiercomponent.o core/core.o core/main.o application/external/posix/decodercomponentfile.o application/external/posix/decodercomponentstdio.o application/external/posix/encodercomponentfile.o application/external/posix/encodercomponentstdio.o -L"/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_audio_BoCA/BoCA/work/boca-1.0.7/runtime"/../lib -lstdc++  -L/opt/local/lib -lsmooth-0.9 -Wl,-dylib_install_name,/opt/local/lib/libboca-1.0.3.dylib -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc
Undefined symbols:
  "__Unwind_Resume", referenced from:
      __ZN6smooth12ArrayBackendIPvE3AddERKS1_.isra.0 in configlayer.o
      __ZN6smooth7Signal0IvE7ConnectIN4BoCA2AS19ConfigLayerExternalES5_vEEiMT_FT1_vEPT0_.isra.0 in configlayer.o
      __ZN6smooth7Signal1IviE7ConnectIN4BoCA2AS19ConfigLayerExternalES5_vEEiMT_FT1_vEPT0_.isra.0 in configlayer.o
      __ZN4BoCA2AS19ConfigLayerExternal19OnSliderValueChangeEv in configlayer.o
      __ZN4BoCA2AS19ConfigLayerExternal18GetArgumentsStringEv in configlayer.o
      __ZN4BoCA2AS19ConfigLayerExternal12SaveSettingsEv in configlayer.o
      __ZN4BoCA2AS19ConfigLayerExternal26CheckParameterDependenciesEv in configlayer.o
      __ZN4BoCA2AS19ConfigLayerExternal22OnUpdateParameterValueEv in configlayer.o
      __ZN4BoCA2AS19ConfigLayerExternalC4EPNS0_14ComponentSpecsE in configlayer.o
      __ZN6smooth12ArrayBackendIPvE9RemoveAllEv in configlayer.o
      __ZN6smooth12ArrayBackendIbE9RemoveAllEv in configlayer.o
      __ZN6smooth12ArrayBackendINS_6StringEE9RemoveAllEv in configlayer.o
      __ZN6smooth12ArrayBackendIPvE9RemoveNthEi in configlayer.o
      __ZN6smooth12ArrayBackendIbE9RemoveNthEi in configlayer.o
      __ZN6smooth12ArrayBackendINS_6StringEE9RemoveNthEi in configlayer.o
      __ZN6smooth12ArrayBackendIPvE7MoveNthEii in configlayer.o
      __ZN6smooth12ArrayBackendIbE7MoveNthEii in configlayer.o
      __ZN6smooth12ArrayBackendINS_6StringEE7MoveNthEii in configlayer.o
      __GLOBAL__sub_I_configlayer.cpp in configlayer.o
      __ZN4BoCA2AS24DecoderComponentExternal21GetConfigurationLayerEv in decodercomponent.o
      __ZN4BoCA2AS24DecoderComponentExternal13CanOpenStreamERKN6smooth6StringE in decodercomponent.o
      __ZNK4BoCA2AS24DecoderComponentExternal16GetCompanionFileERKN6smooth6StringE in decodercomponent.o
      __ZNK4BoCA2AS24DecoderComponentExternal9QueryTagsERKN6smooth6StringERNS_5TrackE in decodercomponent.o
      __ZN4BoCA2AS24DecoderComponentExternal11ProcessDataERN6smooth6BufferIhEE in decodercomponent.o
      __GLOBAL__sub_I_decodercomponent.cpp in decodercomponent.o
      __ZN4BoCA2AS24EncoderComponentExternal21GetConfigurationLayerEv in encodercomponent.o
      __ZN4BoCA2AS24EncoderComponentExternal10DeactivateEv in encodercomponent.o
      __ZN6smooth6BufferIhE6ResizeEi.isra.0 in encodercomponent.o
      __ZN4BoCA2AS24EncoderComponentExternal10RenderTagsERKN6smooth6StringERKNS_5TrackERNS2_6BufferIhEESB_ in encodercomponent.o
      __ZN4BoCA2AS24EncoderComponentExternal8ActivateEv in encodercomponent.o
      __ZN4BoCA2AS24EncoderComponentExternalC2EPNS0_14ComponentSpecsE in encodercomponent.o
      __ZN4BoCA2AS24EncoderComponentExternalC1EPNS0_14ComponentSpecsE in encodercomponent.o
      __ZNK4BoCA2AS24EncoderComponentExternal16GetCompanionFileERKN6smooth6StringE in encodercomponent.o
      __GLOBAL__sub_I_encodercomponent.cpp in encodercomponent.o
      __ZN6smooth12ArrayBackendIPN4BoCA2AS6OptionEE3AddERKS4_.isra.0 in componentspecs.o
      __ZNK4BoCA2AS10FileFormat22GetCompanionExtensionsEv in componentspecs.o
      __ZNK4BoCA2AS9Parameter15GetDependenciesEv in componentspecs.o
      __ZN4BoCA2AS14ComponentSpecs26GetExternalArgumentsStringEv in componentspecs.o
      __ZN6smooth5ArrayINS_6StringES1_E3AddERKS1_.isra.0 in componentspecs.o
      __ZN4BoCA2AS10FileFormat21AddCompanionExtensionERKN6smooth6StringE in componentspecs.o
      __ZN4BoCA2AS9Parameter13AddDependencyERKNS_19ParameterDependencyE in componentspecs.o
      __ZN4BoCA2AS14ComponentSpecs26ParseParameterDependenciesEPNS0_9ParameterEPN6smooth3XML4NodeE in componentspecs.o
      __ZN4BoCA2AS14ComponentSpecs15ParseParametersEPN6smooth3XML4NodeE in componentspecs.o
      __ZN4BoCA2AS14ComponentSpecs12ParseXMLSpecERKN6smooth6StringE in componentspecs.o
      __ZN4BoCA2AS14ComponentSpecs11LoadFromDLLERKN6smooth6StringE in componentspecs.o
      __ZN4BoCA2AS14ComponentSpecsC4Ev in componentspecs.o
      __ZN4BoCA2AS14ComponentSpecs11LoadFromXMLERKN6smooth6StringE in componentspecs.o
      __ZN6smooth6String11InputFormatC4EPKc in componentspecs.o
      __ZN4BoCA2AS6OptionC4Ev in componentspecs.o
      __ZN4BoCA19ParameterDependencyC4Ev in componentspecs.o
      __ZN6smooth12ArrayBackendINS_6StringEE3AddERKS1_i in componentspecs.o
      __ZN6smooth12ArrayBackendIN4BoCA2AS9TagFormatEE3AddERKS3_i in componentspecs.o
      __ZN6smooth12ArrayBackendIN4BoCA19ParameterDependencyEE3AddERKS2_i in componentspecs.o
      __ZN6smooth12ArrayBackendINS_6StringEE9RemoveAllEv in componentspecs.o
      __ZN6smooth12ArrayBackendIN4BoCA19ParameterDependencyEE9RemoveAllEv in componentspecs.o
      __ZN6smooth12ArrayBackendIPN4BoCA2AS9InputSpecEE9RemoveAllEv in componentspecs.o
      __ZN6smooth12ArrayBackendIPN4BoCA2AS9ParameterEE9RemoveAllEv in componentspecs.o
      __ZN6smooth12ArrayBackendIPN4BoCA2AS10FileFormatEE9RemoveAllEv in componentspecs.o
      __ZN6smooth12ArrayBackendIPN4BoCA2AS7TagSpecEE9RemoveAllEv in componentspecs.o
      __ZN6smooth12ArrayBackendIN4BoCA2AS9TagFormatEE9RemoveAllEv in componentspecs.o
      __ZN6smooth12ArrayBackendIPN4BoCA2AS6OptionEE9RemoveAllEv in componentspecs.o
      __ZN6smooth12ArrayBackendINS_5ArrayIN4BoCA19ParameterDependencyES3_EEE9RemoveAllEv in componentspecs.o
      __ZN6smooth12ArrayBackendINS_5ArrayINS_6StringES2_EEE9RemoveAllEv in componentspecs.o
      __ZN6smooth12ArrayBackendINS_6StringEE9RemoveNthEi in componentspecs.o
      __ZN6smooth12ArrayBackendIN4BoCA19ParameterDependencyEE9RemoveNthEi in componentspecs.o
      __ZN6smooth12ArrayBackendIPN4BoCA2AS9InputSpecEE9RemoveNthEi in componentspecs.o
      __ZN6smooth12ArrayBackendIPN4BoCA2AS9ParameterEE9RemoveNthEi in componentspecs.o
      __ZN6smooth12ArrayBackendIPN4BoCA2AS10FileFormatEE9RemoveNthEi in componentspecs.o
      __ZN6smooth12ArrayBackendIPN4BoCA2AS7TagSpecEE9RemoveNthEi in componentspecs.o
      __ZN6smooth12ArrayBackendIN4BoCA2AS9TagFormatEE9RemoveNthEi in componentspecs.o
      __ZN6smooth12ArrayBackendIPN4BoCA2AS6OptionEE9RemoveNthEi in componentspecs.o
      __ZN6smooth12ArrayBackendINS_5ArrayIN4BoCA19ParameterDependencyES3_EEE9RemoveNthEi in componentspecs.o
      __ZN6smooth12ArrayBackendINS_5ArrayINS_6StringES2_EEE9RemoveNthEi in componentspecs.o
      __ZN6smooth12ArrayBackendINS_6StringEE7MoveNthEii in componentspecs.o
      __ZN6smooth12ArrayBackendIN4BoCA19ParameterDependencyEE7MoveNthEii in componentspecs.o
      __ZN6smooth12ArrayBackendIPN4BoCA2AS9InputSpecEE7MoveNthEii in componentspecs.o
      __ZN6smooth12ArrayBackendIPN4BoCA2AS9ParameterEE7MoveNthEii in componentspecs.o
      __ZN6smooth12ArrayBackendIPN4BoCA2AS10FileFormatEE7MoveNthEii in componentspecs.o
      __ZN6smooth12ArrayBackendIPN4BoCA2AS7TagSpecEE7MoveNthEii in componentspecs.o
      __ZN6smooth12ArrayBackendIN4BoCA2AS9TagFormatEE7MoveNthEii in componentspecs.o
      __ZN6smooth12ArrayBackendIPN4BoCA2AS6OptionEE7MoveNthEii in componentspecs.o
      __ZN6smooth12ArrayBackendINS_5ArrayIN4BoCA19ParameterDependencyES3_EEE7MoveNthEii in componentspecs.o
      __ZN6smooth12ArrayBackendINS_5ArrayINS_6StringES2_EEE7MoveNthEii in componentspecs.o
      __ZN4BoCA2AS16DecoderComponent8ReadDataERN6smooth6BufferIhEE in decodercomponent.o
      __ZN4BoCA2AS12DSPComponent5FlushERN6smooth6BufferIhEE in dspcomponent.o
      __ZN4BoCA2AS16EncoderComponent8NextPassEv in encodercomponent.o
      __ZNK4BoCA2AS16EncoderComponent22GetOutputFileExtensionEv in encodercomponent.o
      __ZN4BoCA2AS16EncoderComponent10DeactivateEv in encodercomponent.o
      __ZN6smooth8SignalR0IPNS_3GUI5LayerEE7ConnectIN4BoCA2AS18ExtensionComponentES8_EEiMT_FS3_vEPT0_.isra.0 in extensioncomponent.o
      __ZN4BoCA2AS18ExtensionComponentC4EPNS0_14ComponentSpecsE in extensioncomponent.o
      __ZN6smooth12ArrayBackendIPvE9RemoveAllEv in extensioncomponent.o
      __ZN6smooth12ArrayBackendIPvE9RemoveNthEi in extensioncomponent.o
      __ZN6smooth12ArrayBackendIPvE7MoveNthEii in extensioncomponent.o
      __ZN4BoCA2AS15OutputComponent6FinishEv in outputcomponent.o
      __ZN6smooth6BufferIPNS_10ArrayEntryIPvEEE6ResizeEi.isra.0 in registry.o
      __ZN4BoCA2AS8Registry19CreateComponentByIDERKN6smooth6StringE in registry.o
      __ZN4BoCA2AS8Registry22CreateDecoderForStreamERKN6smooth6StringEPKNS_6ConfigE in registry.o
      __ZN6smooth5ArrayIPN4BoCA2AS14ComponentSpecsEPvE11InsertAtPosEiRKS4_.isra.0 in registry.o
      __ZN4BoCA2AS8Registry15InsertComponentEPNS0_14ComponentSpecsE in registry.o
      __ZN4BoCA2AS8Registry14LoadComponentsERKN6smooth9DirectoryERKNS2_6StringE in registry.o
      __ZN4BoCA2AS8Registry15CheckComponentsEv in registry.o
      __ZN4BoCA2AS8Registry15OrderComponentsEv in registry.o
      __ZN4BoCA2AS8RegistryC4Ev in registry.o
      __ZN4BoCA2AS8Registry3GetEv in registry.o
      __ZN6smooth12ArrayBackendIPvE11InsertAtPosEiRKS1_i in registry.o
      __ZN6smooth12ArrayBackendIPvE9RemoveAllEv in registry.o
      __ZN6smooth12ArrayBackendIPvE9RemoveNthEi in registry.o
      __ZN6smooth12ArrayBackendIPvE7MoveNthEii in registry.o
      __ZN4BoCA2AS15StreamComponentC4EPNS0_14ComponentSpecsE in streamcomponent.o
      __ZN4BoCA2AS15StreamComponent8ActivateEv in streamcomponent.o
      __ZN4BoCA6DeviceC4Ev in device.o
      __ZNK4BoCA6Device7GetNameEv in device.o
      __ZNK4BoCA6Device5GetIDEv in device.o
      __ZN4BoCA4InfoC4Ev in info.o
      __ZN6smooth12ArrayBackendINS_6StringEE3AddERKS1_.isra.0 in info.o
      __ZN4BoCA4Info6IsISRCERKN6smooth6StringE in info.o
      __ZNK4BoCA4Info12HasOtherInfoERKN6smooth6StringE in info.o
      __ZNK4BoCA4Info12GetOtherInfoERKN6smooth6StringE in info.o
      __ZN4BoCA4InfoC4ERKS0_ in info.o
      __ZN4BoCA4Info12SetOtherInfoERKN6smooth6StringES4_ in info.o
      __ZN6smooth12ArrayBackendINS_6StringEE9RemoveAllEv in info.o
      __ZN6smooth12ArrayBackendINS_6StringEE9RemoveNthEi in info.o
      __ZN6smooth12ArrayBackendINS_6StringEE7MoveNthEii in info.o
      __ZNK4BoCA4MCDI15GetOffsetStringEv in mcdi.o
      __ZN4BoCA4MCDI7SetDataERKN6smooth6BufferIhEE in mcdi.o
      __ZN4BoCA4MCDIC1ERKS0_ in mcdi.o
      __ZN4BoCA4MCDIC2ERKS0_ in mcdi.o
      __ZN4BoCA4MCDIC1ERKN6smooth6BufferIhEE in mcdi.o
      __ZN4BoCA4MCDIC2ERKN6smooth6BufferIhEE in mcdi.o
      __ZN4BoCA7PictureC4Ev in picture.o
      __ZN4BoCA7PictureC4ERKS0_ in picture.o
      __ZN4BoCA7Picture12LoadFromFileERKN6smooth6StringE in picture.o
      __ZNK4BoCA7Picture10SaveToFileERKN6smooth6StringE in picture.o
      __ZNK4BoCA11PictureData4SizeEv in picturedata.o
      __ZNK4BoCA11PictureDatacvRKN6smooth6BufferIhEEEv in picturedata.o
      __ZNK4BoCA11PictureDatacvPKhEv in picturedata.o
      __ZN4BoCA11PictureData5CleanEv in picturedata.o
      __ZN4BoCA11PictureDataaSERKS0_ in picturedata.o
      __ZN4BoCA11PictureData3SetEPvi in picturedata.o
      __ZNK6smooth12ArrayBackendIPvE3GetEi in picturedata.o
      __ZN6smooth12ArrayBackendIsE12GetReferenceEi in picturedata.o
      __ZN6smooth12ArrayBackendIsE9RemoveAllEv in picturedata.o
      __ZN6smooth12ArrayBackendIPvE9RemoveAllEv in picturedata.o
      __ZN6smooth12ArrayBackendIsE9RemoveNthEi in picturedata.o
      __ZN6smooth12ArrayBackendIPvE9RemoveNthEi in picturedata.o
      __ZN6smooth12ArrayBackendIsE7MoveNthEii in picturedata.o
      __ZN6smooth12ArrayBackendIPvE7MoveNthEii in picturedata.o
      __ZN6smooth6BufferIPNS_10ArrayEntryIN4BoCA7PictureEEEE6ResizeEi.isra.0 in track.o
      __ZN6smooth12ArrayBackendIN4BoCA7PictureEE3AddERKS2_.isra.0 in track.o
      __ZNK4BoCA5TrackeqEi in track.o
      __ZNK4BoCA5TrackneEi in track.o
      __ZNK4BoCA5Track15GetLengthStringEv in track.o
      __ZN4BoCA5Track17SaveCoverArtFilesERKN6smooth6StringE in track.o
      __ZN4BoCA5Track16LoadCoverArtFileERKN6smooth6StringE in track.o
      __ZN4BoCA5TrackaSEi in track.o
      __ZN4BoCA5TrackC4ERKS0_ in track.o
      __ZN4BoCA5TrackaSERKS0_ in track.o
      __ZN4BoCA5TrackC4Ei.constprop.0 in track.o
      __ZN4BoCA5Track17LoadCoverArtFilesEv in track.o
      __ZN4BoCA5Track17LoadCoverArtFilesEv in track.o
      __ZN4BoCA5Track17LoadCoverArtFilesEv in track.o
      __ZN6smooth12ArrayBackendIN4BoCA7PictureEE9RemoveAllEv in track.o
      __ZN6smooth12ArrayBackendIN4BoCA5TrackEE9RemoveAllEv in track.o
      __ZN6smooth12ArrayBackendIN4BoCA5TrackEE3AddERKS2_i in track.o
      __ZN6smooth12ArrayBackendINS_6StringEE9RemoveAllEv in track.o
      __ZN6smooth12ArrayBackendIN4BoCA7PictureEE9RemoveNthEi in track.o
      __ZN6smooth12ArrayBackendIN4BoCA5TrackEE9RemoveNthEi in track.o
      __ZN6smooth12ArrayBackendINS_6StringEE9RemoveNthEi in track.o
      __ZN6smooth12ArrayBackendIN4BoCA7PictureEE7MoveNthEii in track.o
      __ZN6smooth12ArrayBackendIN4BoCA5TrackEE7MoveNthEii in track.o
      __ZN6smooth12ArrayBackendINS_6StringEE7MoveNthEii in track.o
      __ZN6smooth12ArrayBackendIPvE3AddERKS1_.isra.0 in config.o
      __ZN4BoCA6Config12LoadSettingsEv in config.o
      __ZNK4BoCA6Config23GetNthConfigurationNameEi in config.o
      __ZN4BoCA6Config16AddConfigurationERKN6smooth6StringE in config.o
      __ZN4BoCA6Config19RemoveConfigurationERKN6smooth6StringE in config.o
      __ZNK4BoCA6Config20GetConfigurationNameEv in config.o
      __ZN4BoCA6Config20SetConfigurationNameERKN6smooth6StringE in config.o
      __ZNK4BoCA6Config27FindPersistentIntValueIndexERKN6smooth6StringES4_ in config.o
      __ZN4BoCA6Config21GetPersistentIntValueERKN6smooth6StringES4_i in config.o
      __ZN4BoCA6Config12SaveSettingsEv in config.o
      __ZN4BoCA6Config22SetActiveConfigurationERKN6smooth6StringE in config.o
      __ZN4BoCA6ConfigC4Ev in config.o
      __ZN4BoCA6ConfigC4ERKS0_ in config.o
      __ZN4BoCA17ApplicationConfigC4Ev in config.o
      __ZN4BoCA6Config3GetEv in config.o
      __ZN4BoCA6Config4CopyEPKS0_ in config.o
      __ZN4BoCA6Config4FreeEPS0_ in config.o
      __ZN6smooth12ArrayBackendINS_6StringEE9RemoveAllEv in config.o
      __ZN6smooth12ArrayBackendIPvE9RemoveAllEv in config.o
      __ZN6smooth12ArrayBackendINS_6StringEE9RemoveNthEi in config.o
      __ZN6smooth12ArrayBackendIPvE9RemoveNthEi in config.o
      __ZN6smooth12ArrayBackendINS_6StringEE7MoveNthEii in config.o
      __ZN6smooth12ArrayBackendIPvE7MoveNthEii in config.o
      __ZN4BoCA11ConfigLayerC4Ev in configlayer.o
      __ZN6smooth6BufferIhE6ResizeEi.isra.0 in formatconverter.o
      __ZN6smooth12ArrayBackendIPvE3AddERKS1_.isra.0 in formatconverter.o
      __ZN4BoCA15FormatConverter6FinishERN6smooth6BufferIhEE in formatconverter.o
      __ZN4BoCA15FormatConverterC4ERKNS_6FormatES3_ in formatconverter.o
      __ZN4BoCA15FormatConverter13FindBestValueEiRKN6smooth6StringE in formatconverter.o
      __ZN4BoCA15FormatConverter19GetBestTargetFormatERKNS_6FormatEPKNS_2AS9ComponentE in formatconverter.o
      __ZN6smooth12ArrayBackendIPvE9RemoveAllEv in formatconverter.o
      __ZN6smooth12ArrayBackendIiE9RemoveAllEv in formatconverter.o
      __ZN6smooth12ArrayBackendINS_6StringEE9RemoveAllEv in formatconverter.o
      __ZN6smooth12ArrayBackendIPvE9RemoveNthEi in formatconverter.o
      __ZN6smooth12ArrayBackendIiE9RemoveNthEi in formatconverter.o
      __ZN6smooth12ArrayBackendINS_6StringEE9RemoveNthEi in formatconverter.o
      __ZN6smooth12ArrayBackendIPvE7MoveNthEii in formatconverter.o
      __ZN6smooth12ArrayBackendIiE7MoveNthEii in formatconverter.o
      __ZN6smooth12ArrayBackendINS_6StringEE7MoveNthEii in formatconverter.o
      __ZN4BoCA4I18nC4Ev in i18n.o
      __ZN4BoCA4I18n3GetEv in i18n.o
      __ZN4BoCA4I18n8AddColonERKN6smooth6StringE in i18n.o
      __ZN4BoCA4I18n11AddEllipsisERKN6smooth6StringE in i18n.o
      __ZN4BoCA4I18n11AddBracketsERKN6smooth6StringES4_ in i18n.o
      __ZN6smooth5ArrayINS_6StringES1_E3AddERKS1_.isra.0 in protocol.o
      __ZN4BoCA8Protocol12WriteMessageEPS0_RKN6smooth6StringENS_11MessageTypeEx in protocol.o
      __ZNK4BoCA8Protocol15GetProtocolTextEv in protocol.o
      __ZN4BoCA8ProtocolC4ERKN6smooth6StringE in protocol.o
      __ZN4BoCA8Protocol3GetERKN6smooth6StringE in protocol.o
      __ZN4BoCA8Protocol5WriteERKN6smooth6StringENS_11MessageTypeE in protocol.o
      __ZN6smooth12ArrayBackendIPN4BoCA12CallbackInfoEE3AddERKS3_ in protocol.o
      __ZN6smooth12ArrayBackendINS_6StringEE9RemoveAllEv in protocol.o
      __ZN6smooth12ArrayBackendIPN4BoCA12CallbackInfoEE9RemoveAllEv in protocol.o
      __ZN6smooth12ArrayBackendIN4BoCA11MessageTypeEE9RemoveAllEv in protocol.o
      __ZN6smooth12ArrayBackendIxE9RemoveAllEv in protocol.o
      __ZN6smooth12ArrayBackendIPN4BoCA8ProtocolEE9RemoveAllEv in protocol.o
      __ZN6smooth12ArrayBackendINS_6StringEE9RemoveNthEi in protocol.o
      __ZN6smooth12ArrayBackendIPN4BoCA12CallbackInfoEE9RemoveNthEi in protocol.o
      __ZN6smooth12ArrayBackendIN4BoCA11MessageTypeEE9RemoveNthEi in protocol.o
      __ZN6smooth12ArrayBackendIxE9RemoveNthEi in protocol.o
      __ZN6smooth12ArrayBackendIPN4BoCA8ProtocolEE9RemoveNthEi in protocol.o
      __ZN6smooth12ArrayBackendINS_6StringEE7MoveNthEii in protocol.o
      __ZN6smooth12ArrayBackendIPN4BoCA12CallbackInfoEE7MoveNthEii in protocol.o
      __ZN6smooth12ArrayBackendIN4BoCA11MessageTypeEE7MoveNthEii in protocol.o
      __ZN6smooth12ArrayBackendIxE7MoveNthEii in protocol.o
      __ZN6smooth12ArrayBackendIPN4BoCA8ProtocolEE7MoveNthEii in protocol.o
      __ZN4BoCA9Utilities11InfoMessageERKN6smooth6StringES4_S4_ in utilities.o
      __ZN4BoCA9Utilities14WarningMessageERKN6smooth6StringES4_S4_ in utilities.o
      __ZN4BoCA9Utilities12ErrorMessageERKN6smooth6StringES4_S4_ in utilities.o
      __ZN4BoCA9Utilities16GetBoCADirectoryEv in utilities.o
      __ZN4BoCA9Utilities12LoadCodecDLLERKN6smooth6StringE in utilities.o
      __ZN4BoCA9Utilities25GetNonUnicodeTempFileNameERKN6smooth6StringE in utilities.o
      __ZN4BoCA9Utilities29ReplaceIncompatibleCharactersERKN6smooth6StringEbbb in utilities.o
      __ZN4BoCA9Utilities14IsRelativePathERKN6smooth6StringE in utilities.o
      __ZN4BoCA9Utilities19GetAbsolutePathNameERKN6smooth6StringE in utilities.o
      __ZN4BoCA9Utilities22CreateDirectoryForFileERKN6smooth6StringE in utilities.o
      __ZN4BoCA9Utilities19GetRelativeFileNameERKN6smooth6StringES4_ in utilities.o
      __ZN4BoCA9Utilities18GetCDTrackFileNameERKNS_5TrackE in utilities.o
      __ZN4BoCA9Utilities20StringMatchesPatternERKN6smooth6StringES4_ in utilities.o
      __ZN4BoCA9Utilities16IsFolderWritableERKN6smooth6StringE in utilities.o
      __ZN4BoCA9Utilities17NormalizeFileNameERKN6smooth6StringE in utilities.o
      __ZN6smooth12ArrayBackendINS_6StringEE9RemoveAllEv in utilities.o
      __ZN6smooth12ArrayBackendINS_6StringEE9RemoveNthEi in utilities.o
      __ZN6smooth12ArrayBackendINS_6StringEE7MoveNthEii in utilities.o
      __ZN4BoCA2CS9ComponentC4Ev in component.o
      __ZN4BoCA2CS19DeviceInfoComponent16GetNthDeviceMCDIEi in deviceinfocomponent.o
      __ZN6smooth12ArrayBackendIN4BoCA6DeviceEE9RemoveAllEv in deviceinfocomponent.o
      __ZN6smooth12ArrayBackendIN4BoCA6DeviceEE9RemoveNthEi in deviceinfocomponent.o
      __ZN6smooth12ArrayBackendIN4BoCA6DeviceEE7MoveNthEii in deviceinfocomponent.o
      __ZN4BoCA2CS12DSPComponentC4Ev in dspcomponent.o
      __ZN4BoCA2CS17PlaylistComponentC4Ev in playlistcomponent.o
      __ZN4BoCA2CS17PlaylistComponent12SetTrackListERKN6smooth5ArrayINS_5TrackES4_EE in playlistcomponent.o
      __ZN6smooth12ArrayBackendIN4BoCA5TrackEE9RemoveAllEv in playlistcomponent.o
      __ZN6smooth12ArrayBackendIN4BoCA5TrackEE9RemoveNthEi in playlistcomponent.o
      __ZN6smooth12ArrayBackendIN4BoCA5TrackEE7MoveNthEii in playlistcomponent.o
      __ZN4BoCA2CS15StreamComponentC4Ev in streamcomponent.o
      __ZN4BoCA2CS15TaggerComponentC4Ev in taggercomponent.o
      __ZN4BoCA4InitERKN6smooth6StringE in core.o
      __sub_I_65535_1 in main.o
      __ZN4BoCA2AS28DecoderComponentExternalFileC4EPNS0_14ComponentSpecsE in decodercomponentfile.o
      __ZN4BoCA2AS28DecoderComponentExternalFile10DeactivateEv in decodercomponentfile.o
      __ZN4BoCA2AS28DecoderComponentExternalFile8ReadDataERN6smooth6BufferIhEE in decodercomponentfile.o
      __ZN4BoCA2AS28DecoderComponentExternalFile6GetMD5ERKN6smooth6StringE in decodercomponentfile.o
      __ZN4BoCA2AS28DecoderComponentExternalFile13GetStreamInfoERKN6smooth6StringERNS_5TrackE in decodercomponentfile.o
      __ZN4BoCA2AS28DecoderComponentExternalFile8ActivateEv in decodercomponentfile.o
      __ZN4BoCA2AS29DecoderComponentExternalStdIOC4EPNS0_14ComponentSpecsE in decodercomponentstdio.o
      __ZN4BoCA2AS29DecoderComponentExternalStdIO10DeactivateEv in decodercomponentstdio.o
      __ZN6smooth6BufferIhE6ResizeEi.isra.0 in decodercomponentstdio.o
      __ZN4BoCA2AS29DecoderComponentExternalStdIO6GetMD5ERKN6smooth6StringE in decodercomponentstdio.o
      __ZN4BoCA2AS29DecoderComponentExternalStdIO4SeekEx in decodercomponentstdio.o
      __ZN4BoCA2AS29DecoderComponentExternalStdIO8ActivateEv in decodercomponentstdio.o
      __ZN4BoCA2AS29DecoderComponentExternalStdIO22GetApproximateDurationERKN6smooth6StringE in decodercomponentstdio.o
      __ZN4BoCA2AS29DecoderComponentExternalStdIO13GetStreamInfoERKN6smooth6StringERNS_5TrackE in decodercomponentstdio.o
      __ZN6smooth6BufferIcEC4Ei in decodercomponentstdio.o
      __ZN6smooth6BufferIhEC4Ei in decodercomponentstdio.o
      __ZN6smooth12ArrayBackendINS_6StringEE9RemoveAllEv in decodercomponentstdio.o
      __ZN6smooth12ArrayBackendINS_6StringEE9RemoveNthEi in decodercomponentstdio.o
      __ZN6smooth12ArrayBackendINS_6StringEE7MoveNthEii in decodercomponentstdio.o
      __ZN4BoCA2AS28EncoderComponentExternalFileC4EPNS0_14ComponentSpecsE in encodercomponentfile.o
      __ZN4BoCA2AS28EncoderComponentExternalFile9WriteDataERKN6smooth6BufferIhEE in encodercomponentfile.o
      __ZN4BoCA2AS28EncoderComponentExternalFile8ActivateEv in encodercomponentfile.o
      __ZN4BoCA2AS28EncoderComponentExternalFile10DeactivateEv in encodercomponentfile.o
      __ZN4BoCA2AS29EncoderComponentExternalStdIOC4EPNS0_14ComponentSpecsE in encodercomponentstdio.o
      __ZN4BoCA2AS29EncoderComponentExternalStdIO9WriteDataERKN6smooth6BufferIhEE in encodercomponentstdio.o
      __ZN4BoCA2AS29EncoderComponentExternalStdIO8ActivateEv in encodercomponentstdio.o
      __ZN4BoCA2AS29EncoderComponentExternalStdIO10DeactivateEv in encodercomponentstdio.o
ld: symbol(s) not found
collect2: error: ld returned 1 exit status
make[1]: *** [../bin/boca.1.0.dylib] Error 1

This is Rosetta:

make[3]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_BoCA/BoCA/work/boca-1.0.5/components/tagger/apev2'
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_BoCA/BoCA/work/compwrap/cxx/opt/local/bin/g++-mp-12 -fvisibility=hidden -DBOCA_COMPONENT_BUILD  -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_audio_BoCA/BoCA/work/boca-1.0.5/components/tagger/apev2"/../../../include -fPIC -pthread -Os -arch ppc -c apev2.cpp -o apev2.o
In file included from /opt/local/include/gcc12/c++/stdlib.h:36,
                 from /usr/include/assert.h:44,
                 from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:13,
                 from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:20,
                 from /System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AE.h:20,
                 from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:21,
                 from coreaudio.cpp:18:
/opt/local/include/gcc12/c++/cstdlib:240:22: error: 'lldiv_t' has not been declared in '__gnu_cxx'
  240 |   using ::__gnu_cxx::lldiv_t;
      |                      ^~~~~~~
/opt/local/include/gcc12/c++/cstdlib:242:22: error: '_Exit' has not been declared in '__gnu_cxx'
  242 |   using ::__gnu_cxx::_Exit;
      |                      ^~~~~
/opt/local/include/gcc12/c++/cstdlib:244:22: error: 'llabs' has not been declared in '__gnu_cxx'
  244 |   using ::__gnu_cxx::llabs;
      |                      ^~~~~
/opt/local/include/gcc12/c++/cstdlib:245:22: error: 'div' has not been declared in '__gnu_cxx'
  245 |   using ::__gnu_cxx::div;
      |                      ^~~
/opt/local/include/gcc12/c++/cstdlib:246:22: error: 'lldiv' has not been declared in '__gnu_cxx'
  246 |   using ::__gnu_cxx::lldiv;
      |                      ^~~~~
/opt/local/include/gcc12/c++/cstdlib:248:22: error: 'atoll' has not been declared in '__gnu_cxx'
  248 |   using ::__gnu_cxx::atoll;
      |                      ^~~~~
/opt/local/include/gcc12/c++/cstdlib:249:22: error: 'strtof' has not been declared in '__gnu_cxx'
  249 |   using ::__gnu_cxx::strtof;
      |                      ^~~~~~
/opt/local/include/gcc12/c++/cstdlib:250:22: error: 'strtoll' has not been declared in '__gnu_cxx'
  250 |   using ::__gnu_cxx::strtoll;
      |                      ^~~~~~~
/opt/local/include/gcc12/c++/cstdlib:251:22: error: 'strtoull' has not been declared in '__gnu_cxx'
  251 |   using ::__gnu_cxx::strtoull;
      |                      ^~~~~~~~
/opt/local/include/gcc12/c++/cstdlib:252:22: error: 'strtold' has not been declared in '__gnu_cxx'
  252 |   using ::__gnu_cxx::strtold;
      |                      ^~~~~~~
/opt/local/include/gcc12/c++/stdlib.h:54:12: error: 'abs' has not been declared in 'CA::std'
   54 | using std::abs;
      |            ^~~
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:160:
/opt/local/include/gcc12/c++/fenv.h:58:11: error: 'fenv_t' has not been declared in '::'
   58 |   using ::fenv_t;
      |           ^~~~~~
/opt/local/include/gcc12/c++/fenv.h:59:11: error: 'fexcept_t' has not been declared in '::'
   59 |   using ::fexcept_t;
      |           ^~~~~~~~~
/opt/local/include/gcc12/c++/fenv.h:62:11: error: 'feclearexcept' has not been declared in '::'
   62 |   using ::feclearexcept;
      |           ^~~~~~~~~~~~~
/opt/local/include/gcc12/c++/fenv.h:63:11: error: 'fegetexceptflag' has not been declared in '::'
   63 |   using ::fegetexceptflag;
      |           ^~~~~~~~~~~~~~~
/opt/local/include/gcc12/c++/fenv.h:64:11: error: 'feraiseexcept' has not been declared in '::'
   64 |   using ::feraiseexcept;
      |           ^~~~~~~~~~~~~
/opt/local/include/gcc12/c++/fenv.h:65:11: error: 'fesetexceptflag' has not been declared in '::'
   65 |   using ::fesetexceptflag;
      |           ^~~~~~~~~~~~~~~
/opt/local/include/gcc12/c++/fenv.h:66:11: error: 'fetestexcept' has not been declared in '::'
   66 |   using ::fetestexcept;
      |           ^~~~~~~~~~~~
/opt/local/include/gcc12/c++/fenv.h:68:11: error: 'fegetround' has not been declared in '::'
   68 |   using ::fegetround;
      |           ^~~~~~~~~~
/opt/local/include/gcc12/c++/fenv.h:69:11: error: 'fesetround' has not been declared in '::'
   69 |   using ::fesetround;
      |           ^~~~~~~~~~
/opt/local/include/gcc12/c++/fenv.h:71:11: error: 'fegetenv' has not been declared in '::'
   71 |   using ::fegetenv;
      |           ^~~~~~~~
/opt/local/include/gcc12/c++/fenv.h:72:11: error: 'feholdexcept' has not been declared in '::'
   72 |   using ::feholdexcept;
      |           ^~~~~~~~~~~~
/opt/local/include/gcc12/c++/fenv.h:73:11: error: 'fesetenv' has not been declared in '::'
   73 |   using ::fesetenv;
      |           ^~~~~~~~
/opt/local/include/gcc12/c++/fenv.h:74:11: error: 'feupdateenv' has not been declared in '::'
   74 |   using ::feupdateenv;
      |           ^~~~~~~~~~~
make[3]: *** [coreaudio.o] Error 1
@barracuda156
Copy link
Author

Ok, one thing is wrong is this:

ifeq ($(LD),ld)
	LD	= $(CC)
endif

When changed to CXX, linking is fixed. However libm symbols are not recognized still.

@enzo1982
Copy link
Owner

enzo1982 commented May 9, 2023

That is MacPorts, so should probably be reported there.

Building for PPC without MacPorts is working fine for me using the official Apple toolchain.

You're right that using g++ for linking would be better, though. I'll change that for the next release. But it's not causing issues when using the native toolchain.

@barracuda156
Copy link
Author

But it's not causing issues when using the native toolchain.

This is true, but I cannot get around config.cpp: error: ‘kAudioFormatMPEG4AAC_ELD’ is not a member of ‘CA’.
(It also shows up with gcc12 eventually, once linking is fixed.)

so should probably be reported there

I did: https://trac.macports.org/ticket/67399

But I actually wanna update the port, and for that I need it fixed on my system to begin with (I test ppc locally, buildbots will tests x86+clang). Any idea what that may fail?
I can modify the portfile following your suggestions to have it fixed.

@enzo1982
Copy link
Owner

enzo1982 commented May 9, 2023

kAudioFormatMPEG4AAC_ELD is defined in dllinterface.h, line 29 when building for Leopard or earlier.

You earlier error output contains PPCSnowLeopardPorts, so you're probably trying to build for Snow Leopard and have MAC_OS_X_VERSION_10_6 defined. I assume changing the target to Leopard would fix that issue. As Snow Leopard was never released for PPC, any builds should target Leopard. I don't have experience with MacPorts, though, so I'm not sure how to change that.

I guess you can fix the other linker issues by setting LD=g++ in the portfile if necessary.

But I have no idea what causes the compile issues with standard C headers on GCC 12, so cannot help you with that one. Do you need it to build with GCC 12 for PPC?

@barracuda156
Copy link
Author

kAudioFormatMPEG4AAC_ELD is defined in dllinterface.h, line 29 when building for Leopard or earlier.

Thank you!

You earlier error output contains PPCSnowLeopardPorts, so you're probably trying to build for Snow Leopard and have MAC_OS_X_VERSION_10_6 defined. I assume changing the target to Leopard would fix that issue. As Snow Leopard was never released for PPC, any builds should target Leopard. I don't have experience with MacPorts, though, so I'm not sure how to change that.

Mostly everything ppc (32-bit) builds fine against 10.6 SDK, but yeah, we had a few cases where 10.5 (or even 10.4) SDK was a must. Easy to try, Macports implements this.

I guess you can fix the other linker issues by setting LD=g++ in the portfile if necessary.

(Initially I wanted to make a PR to fix that in Makefile-options, but GitHub is weird today, I could not clone the repo, it kept freezing in the process. We can patch it, until fixed in the next release.)

But I have no idea what causes the compile issues with standard C headers on GCC 12, so cannot help you with that one. Do you need it to build with GCC 12 for PPC?

No, gcc-4.2 is the default, unless a port requires C11/C++11 or higher (or if gcc-4.2 fails to build it – I went to try gcc-12 after gcc-4.2 failed).

@enzo1982
Copy link
Owner

With commit 199375d $(CXX) is now used for linking instead of $(CC).

@barracuda156
Copy link
Author

With commit 199375d $(CXX) is now used for linking instead of $(CC).

@enzo1982 Thank you! I opened a PR which together with your commit fixes the PPC build.

enzo1982 added a commit that referenced this issue May 15, 2023
Xcode 3.2.6 comes with a MacOS X 10.6 SDK that doesn't define the kAudioFormatMPEG4AAC_ELD enum value while newer versions of the SDK shipped with Xcode 4.x define it.

To avoid breakage when building with Xcode 3.2.6 (which is the last version that supported PPC builds), rename the fallback definitions so they work regardless of the SDK defining the enum values or not.

See issue #12 and PR #13 on GitHub.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants