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

Undefined reference to createPluginFilter() while building on GNU Guix. #455

Open
apoorv569 opened this issue Dec 10, 2023 · 0 comments
Open

Comments

@apoorv569
Copy link

apoorv569 commented Dec 10, 2023

Describe the bug
I am writing a GNU Guix package definition to build and install Odin2 synth plugin. I managed to compile it, but it fails during linking and throws a undefined reference to createPluginFilter(). I would have debugged this myself but I am not a audio developer neither am I familiar with the library.

To Reproduce
Steps to reproduce the behavior:

  1. Run guix build odin2-synth from the directory you have the file with definition
  2. Wait for it to fail eventually during linking
  3. See the linking error

Expected behavior
Should build and link successfully.

Screenshots
No screenshots, but I have logs here,

/tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_String.cpp: In member function ‘mouseUp’:
/tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_String.cpp:56:26: note: declared here
   56 | static const EmptyString emptyString { 0x3fffffff, sizeof (String::CharPointerType::CharType), 0 };
      |                          ^
In function ‘release’,
    inlined from ‘release’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_String.cpp:169:17,
    inlined from ‘__dt_base ’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_String.cpp:247:27,
    inlined from ‘setAllocatedSizeInternal’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/containers/juce_ArrayBase.h:442:37,
    inlined from ‘setAllocatedSize’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/containers/juce_ArrayBase.h:217:42,
    inlined from ‘ensureAllocatedSize’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/containers/juce_ArrayBase.h:228:30,
    inlined from ‘addImpl’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/containers/juce_ArrayBase.h:561:29,
    inlined from ‘add’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/containers/juce_ArrayBase.h:263:17,
    inlined from ‘add’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/containers/juce_Array.h:431:20,
    inlined from ‘add’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_StringArray.cpp:140:17,
    inlined from ‘operator()’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/native/juce_linux_Files.cpp:215:30,
    inlined from ‘openDocument’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/native/juce_linux_Files.cpp:222:7,
    inlined from ‘launchInDefaultBrowser’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/network/juce_URL.cpp:976:34,
    inlined from ‘mouseUp’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_gui_basics/misc/juce_JUCESplashScreen.cpp:192:39:
/tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_String.cpp:164:52: warning: ‘operator delete []’ called on unallocated object ‘emptyString’ [-Wfree-nonheap-object]
  164 |                 delete[] reinterpret_cast<char*> (b);
      |                                                    ^
/tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_String.cpp: In member function ‘mouseUp’:
/tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_String.cpp:56:26: note: declared here
   56 | static const EmptyString emptyString { 0x3fffffff, sizeof (String::CharPointerType::CharType), 0 };
      |                          ^
In function ‘release’,
    inlined from ‘release’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_String.cpp:169:17,
    inlined from ‘__dt_base ’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_String.cpp:247:27,
    inlined from ‘operator()’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/native/juce_linux_Files.cpp:215:58,
    inlined from ‘openDocument’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/native/juce_linux_Files.cpp:222:7,
    inlined from ‘launchInDefaultBrowser’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/network/juce_URL.cpp:976:34,
    inlined from ‘mouseUp’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_gui_basics/misc/juce_JUCESplashScreen.cpp:192:39:
/tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_String.cpp:164:52: warning: ‘operator delete []’ called on unallocated object ‘emptyString’ [-Wfree-nonheap-object]
  164 |                 delete[] reinterpret_cast<char*> (b);
      |                                                    ^
/tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_String.cpp: In member function ‘mouseUp’:
/tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_String.cpp:56:26: note: declared here
   56 | static const EmptyString emptyString { 0x3fffffff, sizeof (String::CharPointerType::CharType), 0 };
      |                          ^
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/Odin2_VST3.dir/build.make:489: Odin2_artefacts/Release/VST3/Odin2.vst3/Contents/x86_64-linux/Odin2.so] Error 1
make[2]: Leaving directory '/tmp/guix-build-odin2-synth-2.3.4.drv-0/build'
make[1]: *** [CMakeFiles/Makefile2:304: CMakeFiles/Odin2_VST3.dir/all] Error 2
In function ‘release’,
    inlined from ‘release’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_String.cpp:169:17,
    inlined from ‘__dt_base ’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_String.cpp:247:27,
    inlined from ‘setAllocatedSizeInternal’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/containers/juce_ArrayBase.h:442:37,
    inlined from ‘setAllocatedSize’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/containers/juce_ArrayBase.h:217:42,
    inlined from ‘ensureAllocatedSize’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/containers/juce_ArrayBase.h:228:30,
    inlined from ‘addImpl’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/containers/juce_ArrayBase.h:561:29,
    inlined from ‘add’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/containers/juce_ArrayBase.h:263:17,
    inlined from ‘add’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/containers/juce_Array.h:431:20,
    inlined from ‘add’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_StringArray.cpp:140:17,
    inlined from ‘addIfNotAlreadyThere’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_StringArray.cpp:155:9,
    inlined from ‘addIfNotAlreadyThere.constprop.isra’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_StringArray.cpp:150:6:
/tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_String.cpp:164:52: warning: ‘operator delete []’ called on unallocated object ‘emptyString’ [-Wfree-nonheap-object]
  164 |                 delete[] reinterpret_cast<char*> (b);
      |                                                    ^
/tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_String.cpp: In member function ‘addIfNotAlreadyThere.constprop.isra’:
/tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_String.cpp:56:26: note: declared here
   56 | static const EmptyString emptyString { 0x3fffffff, sizeof (String::CharPointerType::CharType), 0 };
      |                          ^
In function ‘release’,
    inlined from ‘release’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_String.cpp:169:17,
    inlined from ‘__dt_base ’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_String.cpp:247:27,
    inlined from ‘setAllocatedSizeInternal’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/containers/juce_ArrayBase.h:442:37,
    inlined from ‘setAllocatedSize’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/containers/juce_ArrayBase.h:217:42,
    inlined from ‘ensureAllocatedSize’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/containers/juce_ArrayBase.h:228:30,
    inlined from ‘addImpl’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/containers/juce_ArrayBase.h:561:29,
    inlined from ‘add’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/containers/juce_ArrayBase.h:263:17,
    inlined from ‘add’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/containers/juce_Array.h:431:20,
    inlined from ‘add’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_StringArray.cpp:140:17,
    inlined from ‘initialiseRatesAndChannels’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_audio_devices/native/juce_linux_ALSA.cpp:831:33,
    inlined from ‘__ct ’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_audio_devices/native/juce_linux_ALSA.cpp:494:35,
    inlined from ‘__ct ’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_audio_devices/native/juce_linux_ALSA.cpp:852:11,
    inlined from ‘createDevice’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_audio_devices/native/juce_linux_ALSA.cpp:1057:66:
/tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_String.cpp:164:52: warning: ‘operator delete []’ called on unallocated object ‘emptyString’ [-Wfree-nonheap-object]
  164 |                 delete[] reinterpret_cast<char*> (b);
      |                                                    ^
/tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_String.cpp: In member function ‘createDevice’:
/tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_String.cpp:56:26: note: declared here
   56 | static const EmptyString emptyString { 0x3fffffff, sizeof (String::CharPointerType::CharType), 0 };
      |                          ^
In function ‘release’,
    inlined from ‘release’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_String.cpp:169:17,
    inlined from ‘__dt_base ’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_String.cpp:247:27,
    inlined from ‘setAllocatedSizeInternal’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/containers/juce_ArrayBase.h:442:37,
    inlined from ‘setAllocatedSize’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/containers/juce_ArrayBase.h:217:42,
    inlined from ‘ensureAllocatedSize’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/containers/juce_ArrayBase.h:228:30,
    inlined from ‘addImpl’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/containers/juce_ArrayBase.h:561:29,
    inlined from ‘add’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/containers/juce_ArrayBase.h:263:17,
    inlined from ‘add’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/containers/juce_Array.h:431:20,
    inlined from ‘add’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_StringArray.cpp:140:17,
    inlined from ‘initialiseRatesAndChannels’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_audio_devices/native/juce_linux_ALSA.cpp:834:32,
    inlined from ‘__ct ’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_audio_devices/native/juce_linux_ALSA.cpp:494:35,
    inlined from ‘__ct ’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_audio_devices/native/juce_linux_ALSA.cpp:852:11,
    inlined from ‘createDevice’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_audio_devices/native/juce_linux_ALSA.cpp:1057:66:
/tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_String.cpp:164:52: warning: ‘operator delete []’ called on unallocated object ‘emptyString’ [-Wfree-nonheap-object]
  164 |                 delete[] reinterpret_cast<char*> (b);
      |                                                    ^
In function ‘release’,
    inlined from ‘release’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_String.cpp:169:17,
    inlined from ‘__dt_base ’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_String.cpp:247:27,
    inlined from ‘setAllocatedSizeInternal’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/containers/juce_ArrayBase.h:442:37,
    inlined from ‘setAllocatedSize’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/containers/juce_ArrayBase.h:217:42,
    inlined from ‘shrinkToNoMoreThan’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/containers/juce_ArrayBase.h:236:30,
    inlined from ‘minimiseStorageAfterRemoval’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/containers/juce_Array.h:1146:39,
    inlined from ‘removeInternal’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/containers/juce_Array.h:1140:36,
    inlined from ‘remove’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/containers/juce_Array.h:772:28,
    inlined from ‘removeDuplicates’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_StringArray.cpp:424:28,
    inlined from ‘getDefaultFontDirectories’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_graphics/native/juce_linux_Fonts.cpp:78:31:
/tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_String.cpp:164:52: warning: ‘operator delete []’ called on unallocated object ‘emptyString’ [-Wfree-nonheap-object]
  164 |                 delete[] reinterpret_cast<char*> (b);
      |                                                    ^
/tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_String.cpp: In function ‘getDefaultFontDirectories’:
/tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_String.cpp:56:26: note: declared here
   56 | static const EmptyString emptyString { 0x3fffffff, sizeof (String::CharPointerType::CharType), 0 };
      |                          ^
In function ‘release’,
    inlined from ‘release’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_String.cpp:169:17,
    inlined from ‘__dt_base ’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_String.cpp:247:27,
    inlined from ‘setAllocatedSizeInternal’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/containers/juce_ArrayBase.h:442:37,
    inlined from ‘setAllocatedSize’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/containers/juce_ArrayBase.h:217:42,
    inlined from ‘ensureAllocatedSize’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/containers/juce_ArrayBase.h:228:30,
    inlined from ‘addImpl’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/containers/juce_ArrayBase.h:561:29,
    inlined from ‘add’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/containers/juce_ArrayBase.h:263:17,
    inlined from ‘add’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/containers/juce_Array.h:431:20,
    inlined from ‘addLines.isra’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_StringArray.cpp:378:25:
/tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_String.cpp:164:52: warning: ‘operator delete []’ called on unallocated object ‘emptyString’ [-Wfree-nonheap-object]
  164 |                 delete[] reinterpret_cast<char*> (b);
      |                                                    ^
/tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_String.cpp: In member function ‘addLines.isra’:
/tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_String.cpp:56:26: note: declared here
   56 | static const EmptyString emptyString { 0x3fffffff, sizeof (String::CharPointerType::CharType), 0 };
      |                          ^
In function ‘release’,
    inlined from ‘release’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_String.cpp:169:17,
    inlined from ‘__dt_base ’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_String.cpp:247:27,
    inlined from ‘addLines.isra’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_StringArray.cpp:378:26:
/tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_String.cpp:164:52: warning: ‘operator delete []’ called on unallocated object ‘emptyString’ [-Wfree-nonheap-object]
  164 |                 delete[] reinterpret_cast<char*> (b);
      |                                                    ^
/tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_String.cpp: In member function ‘addLines.isra’:
/tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_String.cpp:56:26: note: declared here
   56 | static const EmptyString emptyString { 0x3fffffff, sizeof (String::CharPointerType::CharType), 0 };
      |                          ^
In function ‘release’,
    inlined from ‘release’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_String.cpp:169:17,
    inlined from ‘__dt_base ’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_String.cpp:247:27,
    inlined from ‘setAllocatedSizeInternal’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/containers/juce_ArrayBase.h:442:37,
    inlined from ‘setAllocatedSize’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/containers/juce_ArrayBase.h:217:42,
    inlined from ‘ensureAllocatedSize’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/containers/juce_ArrayBase.h:228:30,
    inlined from ‘addImpl’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/containers/juce_ArrayBase.h:561:29,
    inlined from ‘add’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/containers/juce_ArrayBase.h:263:17,
    inlined from ‘add’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/containers/juce_Array.h:431:20,
    inlined from ‘addTokens.isra’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_StringArray.cpp:345:25:
/tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_String.cpp:164:52: warning: ‘operator delete []’ called on unallocated object ‘emptyString’ [-Wfree-nonheap-object]
  164 |                 delete[] reinterpret_cast<char*> (b);
      |                                                    ^
/tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_String.cpp: In member function ‘addTokens.isra’:
/tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_String.cpp:56:26: note: declared here
   56 | static const EmptyString emptyString { 0x3fffffff, sizeof (String::CharPointerType::CharType), 0 };
      |                          ^
In function ‘release’,
    inlined from ‘release’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_String.cpp:169:17,
    inlined from ‘__dt_base ’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_String.cpp:247:27,
    inlined from ‘addTokens.isra’ at /tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_StringArray.cpp:345:26:
/tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_String.cpp:164:52: warning: ‘operator delete []’ called on unallocated object ‘emptyString’ [-Wfree-nonheap-object]
  164 |                 delete[] reinterpret_cast<char*> (b);
      |                                                    ^
/tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_String.cpp: In member function ‘addTokens.isra’:
/tmp/guix-build-odin2-synth-2.3.4.drv-0/source/libs/JUCELV2/modules/juce_core/text/juce_String.cpp:56:26: note: declared here
   56 | static const EmptyString emptyString { 0x3fffffff, sizeof (String::CharPointerType::CharType), 0 };
      |                          ^
ld: /tmp/guix-build-odin2-synth-2.3.4.drv-0/cclTLSW9.ltrans39.ltrans.o: in function `juce::StandalonePluginHolder::createPlugin()':
<artificial>:(.text+0x3bf2): undefined reference to `createPluginFilter()'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/Odin2_Standalone.dir/build.make:489: Odin2_artefacts/Release/Standalone/Odin2] Error 1
make[2]: Leaving directory '/tmp/guix-build-odin2-synth-2.3.4.drv-0/build'
make[1]: *** [CMakeFiles/Makefile2:276: CMakeFiles/Odin2_Standalone.dir/all] Error 2
make[1]: Leaving directory '/tmp/guix-build-odin2-synth-2.3.4.drv-0/build'
make: *** [Makefile:139: all] Error 2
error: in phase 'build': uncaught exception:
%exception #<&invoke-error program: "make" arguments: ("-j" "8") exit-status: 2 term-signal: #f stop-signal: #f> 
phase `build' failed after 300.4 seconds
command "make" "-j" "8" failed with status 2

Desktop (please complete the following information):

  • OS: GNU Guix
  • DAW not being used ATM
  • Trying to build Odin version 2.3.4
  • Plugin Format [VST3 / LV2]

Additional context
Here is the package definition I wrote,

(define-public odin2-synth
  (let ((commit "3f144258d0099f2acf83204ed61957870180c47a")
        (revision "0"))
    (package
      (name "odin2-synth")
      (version "2.3.4")
      (source
       (origin
         (method git-fetch)
         (uri (git-reference
               (url "https://github.com/TheWaveWarden/odin2")
               (recursive? #t)
               (commit commit)))
         (sha256
          (base32 "0zc7ll4cw6idjfd41m0x944mz1bhhb693vpm2466lkhh8rhr8q0d"))
         (file-name (git-file-name name version))))
      (build-system cmake-build-system)
      (arguments
       (list
        #:build-type "Release"
        #:phases #~(modify-phases %standard-phases
                     (add-after 'unpack 'pre-configure
                       (lambda _
                         (substitute* "CMakeLists.txt"
                           (("set\\(JUCE_FORMATS AU VST3 Standalone\\)")
                            "set(JUCE_FORMATS VST3 Standalone)")))))))
      (inputs (list libx11 webkitgtk mesa alsa-lib gnurl))
      (native-inputs (list lv2 pkg-config))
      (home-page "https://thewavewarden.com/pages/odin-2")
      (synopsis "Odin 2 Synthesizer Plugin")
      (description "Odin 2 is a synthesizer plugin from TheWaveWarden")
      (license license:gpl2))))

What am I missing here some dep or something?

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

No branches or pull requests

1 participant