av500 / vcvrackplugins_av500

my plugins for the VCV Rack virtual modular synthesizer
MIT License
28 stars 8 forks source link

Mac 0.5.0 Build Fails with Errors - Complete output below #8

Open ghost opened 6 years ago

ghost commented 6 years ago

c++ -fshort-enums -DTEST -I./eurorack -Wno-unused-local-typedefs -fPIC -I../../include -I../../dep/include -MMD -g -O3 -march=nocona -ffast-math -fno-finite-math-only -Wall -Wextra -Wno-unused-parameter -DARCH_MAC -mmacosx-version-min=10.7 -std=c++11 -stdlib=libc++ -c -o build/src/Blank8hp.cpp.o src/Blank8hp.cpp src/Blank8hp.cpp:20:11: warning: 'Module' is deprecated [-Wdeprecated-declarations] Blank8hp::Blank8hp() ^ ../../include/engine.hpp:54:11: note: 'Module' has been explicitly marked deprecated here Module() DEPRECATED {} ^ ../../include/util.hpp:34:36: note: expanded from macro 'DEPRECATED'

define DEPRECATED attribute ((deprecated))

                               ^

1 warning generated. c++ -fshort-enums -DTEST -I./eurorack -Wno-unused-local-typedefs -fPIC -I../../include -I../../dep/include -MMD -g -O3 -march=nocona -ffast-math -fno-finite-math-only -Wall -Wextra -Wno-unused-parameter -DARCH_MAC -mmacosx-version-min=10.7 -std=c++11 -stdlib=libc++ -c -o build/src/Multiple.cpp.o src/Multiple.cpp c++ -fshort-enums -DTEST -I./eurorack -Wno-unused-local-typedefs -fPIC -I../../include -I../../dep/include -MMD -g -O3 -march=nocona -ffast-math -fno-finite-math-only -Wall -Wextra -Wno-unused-parameter -DARCH_MAC -mmacosx-version-min=10.7 -std=c++11 -stdlib=libc++ -c -o build/src/TR808Cowbell.cpp.o src/TR808Cowbell.cpp c++ -fshort-enums -DTEST -I./eurorack -Wno-unused-local-typedefs -fPIC -I../../include -I../../dep/include -MMD -g -O3 -march=nocona -ffast-math -fno-finite-math-only -Wall -Wextra -Wno-unused-parameter -DARCH_MAC -mmacosx-version-min=10.7 -std=c++11 -stdlib=libc++ -c -o build/src/av500.cpp.o src/av500.cpp In file included from src/av500.cpp:1: In file included from src/av500.hpp:1: ../../include/rack.hpp:34:14: error: no viable overloaded '=' model->tags = {tags...};


src/av500.cpp:11:14: note: in instantiation of function template specialization 'rack::createModel<MultipleWidget, const char *>' requested here
        p->addModel(createModel<MultipleWidget>    ("av500", "av500", "Multiple", "Multiple"));
                    ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/list:862:11: note: candidate function not viable: cannot convert initializer list argument to 'const
      std::__1::list<rack::ModelTag, std::__1::allocator<rack::ModelTag> >'
    list& operator=(const list& __c);
          ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/list:874:11: note: candidate function not viable: cannot convert initializer list argument to
      'std::__1::list<rack::ModelTag, std::__1::allocator<rack::ModelTag> >'
    list& operator=(list&& __c)
          ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/list:881:11: note: candidate function not viable: no known conversion from 'const char *' to
      'rack::ModelTag' for 1st argument
    list& operator=(initializer_list<value_type> __il)
          ^
In file included from src/av500.cpp:1:
In file included from src/av500.hpp:1:
../../include/rack.hpp:34:14: error: no viable overloaded '='
        model->tags = {tags...};
        ~~~~~~~~~~~ ^ ~~~~~~~~~
src/av500.cpp:12:14: note: in instantiation of function template specialization 'rack::createModel<Blank8hpWidget, const char *>' requested here
        p->addModel(createModel<Blank8hpWidget>    ("av500", "av500", "Blank", "8hp Blank"));
                    ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/list:862:11: note: candidate function not viable: cannot convert initializer list argument to 'const
      std::__1::list<rack::ModelTag, std::__1::allocator<rack::ModelTag> >'
    list& operator=(const list& __c);
          ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/list:874:11: note: candidate function not viable: cannot convert initializer list argument to
      'std::__1::list<rack::ModelTag, std::__1::allocator<rack::ModelTag> >'
    list& operator=(list&& __c)
          ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/list:881:11: note: candidate function not viable: no known conversion from 'const char *' to
      'rack::ModelTag' for 1st argument
    list& operator=(initializer_list<value_type> __il)
          ^
In file included from src/av500.cpp:1:
In file included from src/av500.hpp:1:
../../include/rack.hpp:34:14: error: no viable overloaded '='
        model->tags = {tags...};
        ~~~~~~~~~~~ ^ ~~~~~~~~~
src/av500.cpp:13:14: note: in instantiation of function template specialization 'rack::createModel<p0wrWidget, const char *>' requested here
        p->addModel(createModel<p0wrWidget>        ("av500", "av500", "Power", "p0wr"));
                    ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/list:862:11: note: candidate function not viable: cannot convert initializer list argument to 'const
      std::__1::list<rack::ModelTag, std::__1::allocator<rack::ModelTag> >'
    list& operator=(const list& __c);
          ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/list:874:11: note: candidate function not viable: cannot convert initializer list argument to
      'std::__1::list<rack::ModelTag, std::__1::allocator<rack::ModelTag> >'
    list& operator=(list&& __c)
          ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/list:881:11: note: candidate function not viable: no known conversion from 'const char *' to
      'rack::ModelTag' for 1st argument
    list& operator=(initializer_list<value_type> __il)
          ^
In file included from src/av500.cpp:1:
In file included from src/av500.hpp:1:
../../include/rack.hpp:34:14: error: no viable overloaded '='
        model->tags = {tags...};
        ~~~~~~~~~~~ ^ ~~~~~~~~~
src/av500.cpp:14:14: note: in instantiation of function template specialization 'rack::createModel<TR808CowbellWidget, const char *>' requested here
        p->addModel(createModel<TR808CowbellWidget>("av500", "av500", "Drum", "808Cowbell"));
                    ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/list:862:11: note: candidate function not viable: cannot convert initializer list argument to 'const
      std::__1::list<rack::ModelTag, std::__1::allocator<rack::ModelTag> >'
    list& operator=(const list& __c);
          ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/list:874:11: note: candidate function not viable: cannot convert initializer list argument to
      'std::__1::list<rack::ModelTag, std::__1::allocator<rack::ModelTag> >'
    list& operator=(list&& __c)
          ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/list:881:11: note: candidate function not viable: no known conversion from 'const char *' to
      'rack::ModelTag' for 1st argument
    list& operator=(initializer_list<value_type> __il)
          ^
4 errors generated.
make: *** [build/src/av500.cpp.o] Error 1
av500 commented 6 years ago

this should be fixed with c58b28a62da4c986433766e0259f90fa140ee88c no?

metaphorz commented 6 years ago

I just now cloned the source and built for Mac OSX. There were warnings but no errors.

There are 2 major problems I am having:

Process: Rack [78041] Path: /Applications/Rack.app/Contents/MacOS/Rack Identifier: com.vcvrack.rack Version: ??? (???) Code Type: X86-64 (Native) Parent Process: ??? [1] Responsible: Rack [78041] User ID: 501

Date/Time: 2017-11-22 10:53:44.153 -0600 OS Version: Mac OS X 10.13.1 (17B48) Report Version: 12 Anonymous UUID: D6D40B3C-0FAD-6B61-AE53-2A01468BB84E

Sleep/Wake UUID: EDCFCD31-0EB9-4A11-A01B-94C8F5990C8E

Time Awake Since Boot: 230000 seconds Time Since Wake: 2600 seconds

System Integrity Protection: enabled

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x0000000aef2aec00 Exception Note: EXC_CORPSE_NOTIFY

Termination Signal: Segmentation fault: 11 Termination Reason: Namespace SIGNAL, Code 0xb Terminating Process: exc handler [0]

VM Regions Near 0xaef2aec00: VM_ALLOCATE 0000000124fd7000-000000012504f000 [ 480K] rw-/rwx SM=PRV
--> MALLOC_NANO 0000600000000000-0000600000400000 [ 4096K] rw-/rwx SM=PRV

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libc++.1.dylib 0x00007fff5eeefeb7 std::1::basic_string<char, std::__1::char_traits, std::1::allocator >::basic_string(std::1::basic_string<char, std::__1::char_traits, std::1::allocator > const&) + 27 1 com.vcvrack.rack 0x000000010fe41528 rack::MetadataMenu::step() + 216 2 com.vcvrack.rack 0x000000010fe7e6da rack::Widget::step() + 42 3 com.vcvrack.rack 0x000000010fe7e6da rack::Widget::step() + 42 4 com.vcvrack.rack 0x000000010fe7e6da rack::Widget::step() + 42 5 com.vcvrack.rack 0x000000010fe7e6da rack::Widget::step() + 42 6 com.vcvrack.rack 0x000000010fe7acd8 virtual thunk to rack::MenuOverlay::step() + 40 7 com.vcvrack.rack 0x000000010fe7e6da rack::Widget::step() + 42 8 com.vcvrack.rack 0x000000010fe49ac8 rack::RackScene::step() + 184 9 com.vcvrack.rack 0x000000010fe324f0 rack::guiRun() + 1040 10 com.vcvrack.rack 0x000000010fe3a5aa main + 698 11 com.vcvrack.rack 0x000000010fe1c3e4 start + 52

Thread 1: 0 libsystem_kernel.dylib 0x00007fff60fcd6da __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x00007fff6110726f _pthread_wqthread + 1552 2 libsystem_pthread.dylib 0x00007fff61106c4d start_wqthread + 13

Thread 2:: com.apple.NSEventThread 0 libsystem_kernel.dylib 0x00007fff60fc3e76 mach_msg_trap + 10 1 libsystem_kernel.dylib 0x00007fff60fc3390 mach_msg + 60 2 com.apple.CoreFoundation 0x00007fff397fddd5 CFRunLoopServiceMachPort + 341 3 com.apple.CoreFoundation 0x00007fff397fd127 CFRunLoopRun + 1783 4 com.apple.CoreFoundation 0x00007fff397fc797 CFRunLoopRunSpecific + 487 5 com.apple.AppKit 0x00007fff36f4c2d1 _NSEventThread + 184 6 libsystem_pthread.dylib 0x00007fff611076c1 _pthread_body + 340 7 libsystem_pthread.dylib 0x00007fff6110756d _pthread_start + 377 8 libsystem_pthread.dylib 0x00007fff61106c5d thread_start + 13

Thread 3: 0 libsystem_kernel.dylib 0x00007fff60fcd6da __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x00007fff6110706a _pthread_wqthread + 1035 2 libsystem_pthread.dylib 0x00007fff61106c4d start_wqthread + 13

Thread 4: 0 libsystem_kernel.dylib 0x00007fff60fcd1d2 semwait_signal + 10 1 libsystem_c.dylib 0x00007fff60f48754 nanosleep + 199 2 libc++.1.dylib 0x00007fff5eefc934 std::1::this_thread::sleep_for(std::1::chrono::duration<long long, std::1::ratio<1l, 1000000000l> > const&) + 73 3 com.vcvrack.rack 0x000000010fe1d246 rack::engineRun() + 1126 4 com.vcvrack.rack 0x000000010fe1dcfd void std::1::thread_proxy<std::__1::tuple<void ()()> >(void*) + 93 5 libsystem_pthread.dylib 0x00007fff611076c1 _pthread_body + 340 6 libsystem_pthread.dylib 0x00007fff6110756d _pthread_start + 377 7 libsystem_pthread.dylib 0x00007fff61106c5d thread_start + 13

Thread 0 crashed with X86 Thread State (64-bit): rax: 0x0000000000000000 rbx: 0x00007ffedfde4798 rcx: 0x000000010feea898 rdx: 0x000000010fee6f20 rdi: 0x00007ffedfde4798 rsi: 0x0000000aef2aec00 rbp: 0x00007ffedfde4780 rsp: 0x00007ffedfde4760 r8: 0x00007fe6b00e1e00 r9: 0x0000000000000000 r10: 0x000000000000006d r11: 0x0000000000510afa r12: 0x0000604000091bd0 r13: 0x0000604000021840 r14: 0x00006040000d4a38 r15: 0x00007ffedfde4798 rip: 0x00007fff5eeefeb7 rfl: 0x0000000000010246 cr2: 0x0000000aef2aec00

Logical CPU: 6 Error Code: 0x00000004 Trap Number: 14

ghost commented 6 years ago

I think it's just the PNGs that are missing. Yes occasional crash when selecting plugins from the menu.