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

aur package build failed on zynaddsubfx #83

Closed
roberChen opened this issue Dec 11, 2021 · 5 comments
Closed

aur package build failed on zynaddsubfx #83

roberChen opened this issue Dec 11, 2021 · 5 comments

Comments

@roberChen
Copy link

In file included from external/zynaddsubfx-src.cpp:216:
external/zynaddsubfx/Params/Controller.cpp: In member function ‘zyncarla::Controller& zyncarla::Controller::operator=(const zyncarla::Controller&)’:
external/zynaddsubfx/Params/Controller.cpp:99:11: warning: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘class zyncarla::Controller’ with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
   99 |     memcpy(this, &c, sizeof(Controller));
      |     ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from external/zynaddsubfx/Misc/Part.h:20,
                 from external/zynaddsubfx/Misc/Bank.cpp:31,
                 from external/zynaddsubfx-src.cpp:114:
external/zynaddsubfx/Misc/../Params/Controller.h:24:7: note: ‘class zyncarla::Controller’ declared here
   24 | class Controller
      |       ^~~~~~~~~~
In file included from external/zynaddsubfx-src.cpp:292:
external/zynaddsubfx/Synth/OscilGen.cpp: In function ‘void zyncarla::clearAll(zyncarla::fft_t*, int)’:
external/zynaddsubfx/Synth/OscilGen.cpp:265:11: warning: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘zyncarla::fft_t’ {aka ‘class std::complex<double>’}; use assignment or value-initialization instead [-Wclass-memaccess]
  265 |     memset(freqs, 0, oscilsize / 2 * sizeof(fft_t));
      |     ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from external/zynaddsubfx/Misc/../DSP/FFTwrapper.h:17,
                 from external/zynaddsubfx/Misc/Master.cpp:24,
                 from external/zynaddsubfx-src.cpp:150:
/usr/include/c++/11.1.0/complex:1229:11: note: ‘zyncarla::fft_t’ {aka ‘class std::complex<double>’} declared here
 1229 |     class complex<double>
      |           ^~~~~~~~~~~~~~~
In file included from external/zynaddsubfx-src.cpp:292:
external/zynaddsubfx/Synth/OscilGen.cpp: In member function ‘void zyncarla::OscilGen::getspectrum(int, float*, int)’:
external/zynaddsubfx/Synth/OscilGen.cpp:1178:15: warning: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘zyncarla::fft_t’ {aka ‘class std::complex<double>’}; use assignment or value-initialization instead [-Wclass-memaccess]
 1178 |         memset(outoscilFFTfreqs + n, 0,
      |         ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
 1179 |                (synth.oscilsize / 2 - n) * sizeof(fft_t));
      |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from external/zynaddsubfx/Misc/../DSP/FFTwrapper.h:17,
                 from external/zynaddsubfx/Misc/Master.cpp:24,
                 from external/zynaddsubfx-src.cpp:150:
/usr/include/c++/11.1.0/complex:1229:11: note: ‘zyncarla::fft_t’ {aka ‘class std::complex<double>’} declared here
 1229 |     class complex<double>
      |           ^~~~~~~~~~~~~~~
In file included from external/zynaddsubfx-src.cpp:521:
external/zynaddsubfx/Misc/XMLwrapper.cpp: In function ‘const char* zyncarla::XMLwrapper_whitespace_callback(mxml_node_t*, int)’:
external/zynaddsubfx/Misc/XMLwrapper.cpp:37:28: error: invalid use of incomplete type ‘mxml_node_t’ {aka ‘struct _mxml_node_s’}
   37 |     const char *name = node->value.element.name;
      |                            ^~
In file included from external/zynaddsubfx/Misc/XMLwrapper.h:16,
                 from external/zynaddsubfx/Misc/BankDb.cpp:2,
                 from external/zynaddsubfx-src.cpp:125:
/usr/include/mxml.h:97:16: note: forward declaration of ‘mxml_node_t’ {aka ‘struct _mxml_node_s’}
   97 | typedef struct _mxml_node_s mxml_node_t;        /**** An XML node. ****/
      |                ^~~~~~~~~~~~
In file included from external/zynaddsubfx-src.cpp:521:
external/zynaddsubfx/Misc/XMLwrapper.cpp: In member function ‘void zyncarla::XMLwrapper::endbranch()’:
external/zynaddsubfx/Misc/XMLwrapper.cpp:294:53: error: invalid use of incomplete type ‘mxml_node_t’ {aka ‘struct _mxml_node_s’}
  294 |         cout << "endbranch()" << node << "-" << node->value.element.name
      |                                                     ^~
In file included from external/zynaddsubfx/Misc/XMLwrapper.h:16,
                 from external/zynaddsubfx/Misc/BankDb.cpp:2,
                 from external/zynaddsubfx-src.cpp:125:
/usr/include/mxml.h:97:16: note: forward declaration of ‘mxml_node_t’ {aka ‘struct _mxml_node_s’}
   97 | typedef struct _mxml_node_s mxml_node_t;        /**** An XML node. ****/
      |                ^~~~~~~~~~~~
In file included from external/zynaddsubfx-src.cpp:521:
external/zynaddsubfx/Misc/XMLwrapper.cpp:296:21: error: invalid use of incomplete type ‘mxml_node_t’ {aka ‘struct _mxml_node_s’}
  296 |              << node->parent << "-" << node->parent->value.element.name << endl;
      |                     ^~
In file included from external/zynaddsubfx/Misc/XMLwrapper.h:16,
                 from external/zynaddsubfx/Misc/BankDb.cpp:2,
                 from external/zynaddsubfx-src.cpp:125:
/usr/include/mxml.h:97:16: note: forward declaration of ‘mxml_node_t’ {aka ‘struct _mxml_node_s’}
   97 | typedef struct _mxml_node_s mxml_node_t;        /**** An XML node. ****/
      |                ^~~~~~~~~~~~
In file included from external/zynaddsubfx-src.cpp:521:
external/zynaddsubfx/Misc/XMLwrapper.cpp:296:44: error: invalid use of incomplete type ‘mxml_node_t’ {aka ‘struct _mxml_node_s’}
  296 |              << node->parent << "-" << node->parent->value.element.name << endl;
      |                                            ^~
In file included from external/zynaddsubfx/Misc/XMLwrapper.h:16,
                 from external/zynaddsubfx/Misc/BankDb.cpp:2,
                 from external/zynaddsubfx-src.cpp:125:
/usr/include/mxml.h:97:16: note: forward declaration of ‘mxml_node_t’ {aka ‘struct _mxml_node_s’}
   97 | typedef struct _mxml_node_s mxml_node_t;        /**** An XML node. ****/
      |                ^~~~~~~~~~~~
In file included from external/zynaddsubfx-src.cpp:521:
external/zynaddsubfx/Misc/XMLwrapper.cpp:297:16: error: invalid use of incomplete type ‘mxml_node_t’ {aka ‘struct _mxml_node_s’}
  297 |     node = node->parent;
      |                ^~
In file included from external/zynaddsubfx/Misc/XMLwrapper.h:16,
                 from external/zynaddsubfx/Misc/BankDb.cpp:2,
                 from external/zynaddsubfx-src.cpp:125:
/usr/include/mxml.h:97:16: note: forward declaration of ‘mxml_node_t’ {aka ‘struct _mxml_node_s’}
   97 | typedef struct _mxml_node_s mxml_node_t;        /**** An XML node. ****/
      |                ^~~~~~~~~~~~
In file included from external/zynaddsubfx-src.cpp:521:
external/zynaddsubfx/Misc/XMLwrapper.cpp: In member function ‘void zyncarla::XMLwrapper::exitbranch()’:
external/zynaddsubfx/Misc/XMLwrapper.cpp:443:54: error: invalid use of incomplete type ‘mxml_node_t’ {aka ‘struct _mxml_node_s’}
  443 |         cout << "exitbranch()" << node << "-" << node->value.element.name
      |                                                      ^~
In file included from external/zynaddsubfx/Misc/XMLwrapper.h:16,
                 from external/zynaddsubfx/Misc/BankDb.cpp:2,
                 from external/zynaddsubfx-src.cpp:125:
/usr/include/mxml.h:97:16: note: forward declaration of ‘mxml_node_t’ {aka ‘struct _mxml_node_s’}
   97 | typedef struct _mxml_node_s mxml_node_t;        /**** An XML node. ****/
      |                ^~~~~~~~~~~~
In file included from external/zynaddsubfx-src.cpp:521:
external/zynaddsubfx/Misc/XMLwrapper.cpp:445:21: error: invalid use of incomplete type ‘mxml_node_t’ {aka ‘struct _mxml_node_s’}
  445 |              << node->parent << "-" << node->parent->value.element.name << endl;
      |                     ^~
In file included from external/zynaddsubfx/Misc/XMLwrapper.h:16,
                 from external/zynaddsubfx/Misc/BankDb.cpp:2,
                 from external/zynaddsubfx-src.cpp:125:
/usr/include/mxml.h:97:16: note: forward declaration of ‘mxml_node_t’ {aka ‘struct _mxml_node_s’}
   97 | typedef struct _mxml_node_s mxml_node_t;        /**** An XML node. ****/
      |                ^~~~~~~~~~~~
In file included from external/zynaddsubfx-src.cpp:521:
external/zynaddsubfx/Misc/XMLwrapper.cpp:445:44: error: invalid use of incomplete type ‘mxml_node_t’ {aka ‘struct _mxml_node_s’}
  445 |              << node->parent << "-" << node->parent->value.element.name << endl;
      |                                            ^~
In file included from external/zynaddsubfx/Misc/XMLwrapper.h:16,
                 from external/zynaddsubfx/Misc/BankDb.cpp:2,
                 from external/zynaddsubfx-src.cpp:125:
/usr/include/mxml.h:97:16: note: forward declaration of ‘mxml_node_t’ {aka ‘struct _mxml_node_s’}
   97 | typedef struct _mxml_node_s mxml_node_t;        /**** An XML node. ****/
      |                ^~~~~~~~~~~~
In file included from external/zynaddsubfx-src.cpp:521:
external/zynaddsubfx/Misc/XMLwrapper.cpp:446:16: error: invalid use of incomplete type ‘mxml_node_t’ {aka ‘struct _mxml_node_s’}
  446 |     node = node->parent;
      |                ^~
In file included from external/zynaddsubfx/Misc/XMLwrapper.h:16,
                 from external/zynaddsubfx/Misc/BankDb.cpp:2,
                 from external/zynaddsubfx-src.cpp:125:
/usr/include/mxml.h:97:16: note: forward declaration of ‘mxml_node_t’ {aka ‘struct _mxml_node_s’}
   97 | typedef struct _mxml_node_s mxml_node_t;        /**** An XML node. ****/
      |                ^~~~~~~~~~~~
In file included from external/zynaddsubfx-src.cpp:521:
external/zynaddsubfx/Misc/XMLwrapper.cpp: In member function ‘void zyncarla::XMLwrapper::getparstr(const string&, char*, int) const’:
external/zynaddsubfx/Misc/XMLwrapper.cpp:531:11: error: invalid use of incomplete type ‘const mxml_node_t’ {aka ‘const struct _mxml_node_s’}
  531 |     if(tmp->child == NULL)
      |           ^~
In file included from external/zynaddsubfx/Misc/XMLwrapper.h:16,
                 from external/zynaddsubfx/Misc/BankDb.cpp:2,
                 from external/zynaddsubfx-src.cpp:125:
/usr/include/mxml.h:97:16: note: forward declaration of ‘mxml_node_t’ {aka ‘struct _mxml_node_s’}
   97 | typedef struct _mxml_node_s mxml_node_t;        /**** An XML node. ****/
      |                ^~~~~~~~~~~~
In file included from external/zynaddsubfx-src.cpp:521:
external/zynaddsubfx/Misc/XMLwrapper.cpp:533:11: error: invalid use of incomplete type ‘const mxml_node_t’ {aka ‘const struct _mxml_node_s’}
  533 |     if(tmp->child->type == MXML_OPAQUE) {
      |           ^~
In file included from external/zynaddsubfx/Misc/XMLwrapper.h:16,
                 from external/zynaddsubfx/Misc/BankDb.cpp:2,
                 from external/zynaddsubfx-src.cpp:125:
/usr/include/mxml.h:97:16: note: forward declaration of ‘mxml_node_t’ {aka ‘struct _mxml_node_s’}
   97 | typedef struct _mxml_node_s mxml_node_t;        /**** An XML node. ****/
      |                ^~~~~~~~~~~~
In file included from external/zynaddsubfx-src.cpp:521:
external/zynaddsubfx/Misc/XMLwrapper.cpp:534:43: error: invalid use of incomplete type ‘const mxml_node_t’ {aka ‘const struct _mxml_node_s’}
  534 |         snprintf(par, maxstrlen, "%s", tmp->child->value.element.name);
      |                                           ^~
In file included from external/zynaddsubfx/Misc/XMLwrapper.h:16,
                 from external/zynaddsubfx/Misc/BankDb.cpp:2,
                 from external/zynaddsubfx-src.cpp:125:
/usr/include/mxml.h:97:16: note: forward declaration of ‘mxml_node_t’ {aka ‘struct _mxml_node_s’}
   97 | typedef struct _mxml_node_s mxml_node_t;        /**** An XML node. ****/
      |                ^~~~~~~~~~~~
In file included from external/zynaddsubfx-src.cpp:521:
external/zynaddsubfx/Misc/XMLwrapper.cpp:537:12: error: invalid use of incomplete type ‘const mxml_node_t’ {aka ‘const struct _mxml_node_s’}
  537 |     if((tmp->child->type == MXML_TEXT)
      |            ^~
In file included from external/zynaddsubfx/Misc/XMLwrapper.h:16,
                 from external/zynaddsubfx/Misc/BankDb.cpp:2,
                 from external/zynaddsubfx-src.cpp:125:
/usr/include/mxml.h:97:16: note: forward declaration of ‘mxml_node_t’ {aka ‘struct _mxml_node_s’}
   97 | typedef struct _mxml_node_s mxml_node_t;        /**** An XML node. ****/
      |                ^~~~~~~~~~~~
In file included from external/zynaddsubfx-src.cpp:521:
external/zynaddsubfx/Misc/XMLwrapper.cpp:538:15: error: invalid use of incomplete type ‘const mxml_node_t’ {aka ‘const struct _mxml_node_s’}
  538 |        && (tmp->child->value.text.string != NULL)) {
      |               ^~
In file included from external/zynaddsubfx/Misc/XMLwrapper.h:16,
                 from external/zynaddsubfx/Misc/BankDb.cpp:2,
                 from external/zynaddsubfx-src.cpp:125:
/usr/include/mxml.h:97:16: note: forward declaration of ‘mxml_node_t’ {aka ‘struct _mxml_node_s’}
   97 | typedef struct _mxml_node_s mxml_node_t;        /**** An XML node. ****/
      |                ^~~~~~~~~~~~
In file included from external/zynaddsubfx-src.cpp:521:
external/zynaddsubfx/Misc/XMLwrapper.cpp:539:43: error: invalid use of incomplete type ‘const mxml_node_t’ {aka ‘const struct _mxml_node_s’}
  539 |         snprintf(par, maxstrlen, "%s", tmp->child->value.text.string);
      |                                           ^~
In file included from external/zynaddsubfx/Misc/XMLwrapper.h:16,
                 from external/zynaddsubfx/Misc/BankDb.cpp:2,
                 from external/zynaddsubfx-src.cpp:125:
/usr/include/mxml.h:97:16: note: forward declaration of ‘mxml_node_t’ {aka ‘struct _mxml_node_s’}
   97 | typedef struct _mxml_node_s mxml_node_t;        /**** An XML node. ****/
      |                ^~~~~~~~~~~~
In file included from external/zynaddsubfx-src.cpp:521:
external/zynaddsubfx/Misc/XMLwrapper.cpp: In member function ‘std::string zyncarla::XMLwrapper::getparstr(const string&, const string&) const’:
external/zynaddsubfx/Misc/XMLwrapper.cpp:554:29: error: invalid use of incomplete type ‘const mxml_node_t’ {aka ‘const struct _mxml_node_s’}
  554 |     if((tmp == NULL) || (tmp->child == NULL))
      |                             ^~
In file included from external/zynaddsubfx/Misc/XMLwrapper.h:16,
                 from external/zynaddsubfx/Misc/BankDb.cpp:2,
                 from external/zynaddsubfx-src.cpp:125:
/usr/include/mxml.h:97:16: note: forward declaration of ‘mxml_node_t’ {aka ‘struct _mxml_node_s’}
   97 | typedef struct _mxml_node_s mxml_node_t;        /**** An XML node. ****/
      |                ^~~~~~~~~~~~
In file included from external/zynaddsubfx-src.cpp:521:
external/zynaddsubfx/Misc/XMLwrapper.cpp:557:12: error: invalid use of incomplete type ‘const mxml_node_t’ {aka ‘const struct _mxml_node_s’}
  557 |     if((tmp->child->type == MXML_OPAQUE)
      |            ^~
In file included from external/zynaddsubfx/Misc/XMLwrapper.h:16,
                 from external/zynaddsubfx/Misc/BankDb.cpp:2,
                 from external/zynaddsubfx-src.cpp:125:
/usr/include/mxml.h:97:16: note: forward declaration of ‘mxml_node_t’ {aka ‘struct _mxml_node_s’}
   97 | typedef struct _mxml_node_s mxml_node_t;        /**** An XML node. ****/
      |                ^~~~~~~~~~~~
In file included from external/zynaddsubfx-src.cpp:521:
external/zynaddsubfx/Misc/XMLwrapper.cpp:558:15: error: invalid use of incomplete type ‘const mxml_node_t’ {aka ‘const struct _mxml_node_s’}
  558 |        && (tmp->child->value.element.name != NULL))
      |               ^~
In file included from external/zynaddsubfx/Misc/XMLwrapper.h:16,
                 from external/zynaddsubfx/Misc/BankDb.cpp:2,
                 from external/zynaddsubfx-src.cpp:125:
/usr/include/mxml.h:97:16: note: forward declaration of ‘mxml_node_t’ {aka ‘struct _mxml_node_s’}
   97 | typedef struct _mxml_node_s mxml_node_t;        /**** An XML node. ****/
      |                ^~~~~~~~~~~~
In file included from external/zynaddsubfx-src.cpp:521:
external/zynaddsubfx/Misc/XMLwrapper.cpp:559:19: error: invalid use of incomplete type ‘const mxml_node_t’ {aka ‘const struct _mxml_node_s’}
  559 |         return tmp->child->value.element.name;
      |                   ^~
In file included from external/zynaddsubfx/Misc/XMLwrapper.h:16,
                 from external/zynaddsubfx/Misc/BankDb.cpp:2,
                 from external/zynaddsubfx-src.cpp:125:
/usr/include/mxml.h:97:16: note: forward declaration of ‘mxml_node_t’ {aka ‘struct _mxml_node_s’}
   97 | typedef struct _mxml_node_s mxml_node_t;        /**** An XML node. ****/
      |                ^~~~~~~~~~~~
In file included from external/zynaddsubfx-src.cpp:521:
external/zynaddsubfx/Misc/XMLwrapper.cpp:561:12: error: invalid use of incomplete type ‘const mxml_node_t’ {aka ‘const struct _mxml_node_s’}
  561 |     if((tmp->child->type == MXML_TEXT)
      |            ^~
In file included from external/zynaddsubfx/Misc/XMLwrapper.h:16,
                 from external/zynaddsubfx/Misc/BankDb.cpp:2,
                 from external/zynaddsubfx-src.cpp:125:
/usr/include/mxml.h:97:16: note: forward declaration of ‘mxml_node_t’ {aka ‘struct _mxml_node_s’}
   97 | typedef struct _mxml_node_s mxml_node_t;        /**** An XML node. ****/
      |                ^~~~~~~~~~~~
In file included from external/zynaddsubfx-src.cpp:521:
external/zynaddsubfx/Misc/XMLwrapper.cpp:562:15: error: invalid use of incomplete type ‘const mxml_node_t’ {aka ‘const struct _mxml_node_s’}
  562 |        && (tmp->child->value.text.string != NULL))
      |               ^~
In file included from external/zynaddsubfx/Misc/XMLwrapper.h:16,
                 from external/zynaddsubfx/Misc/BankDb.cpp:2,
                 from external/zynaddsubfx-src.cpp:125:
/usr/include/mxml.h:97:16: note: forward declaration of ‘mxml_node_t’ {aka ‘struct _mxml_node_s’}
   97 | typedef struct _mxml_node_s mxml_node_t;        /**** An XML node. ****/
      |                ^~~~~~~~~~~~
In file included from external/zynaddsubfx-src.cpp:521:
external/zynaddsubfx/Misc/XMLwrapper.cpp:563:19: error: invalid use of incomplete type ‘const mxml_node_t’ {aka ‘const struct _mxml_node_s’}
  563 |         return tmp->child->value.text.string;
      |                   ^~
In file included from external/zynaddsubfx/Misc/XMLwrapper.h:16,
                 from external/zynaddsubfx/Misc/BankDb.cpp:2,
                 from external/zynaddsubfx-src.cpp:125:
/usr/include/mxml.h:97:16: note: forward declaration of ‘mxml_node_t’ {aka ‘struct _mxml_node_s’}
   97 | typedef struct _mxml_node_s mxml_node_t;        /**** An XML node. ****/
      |                ^~~~~~~~~~~~
In file included from external/zynaddsubfx-src.cpp:521:
external/zynaddsubfx/Misc/XMLwrapper.cpp: In member function ‘std::vector<zyncarla::XmlNode> zyncarla::XMLwrapper::getBranch() const’:
external/zynaddsubfx/Misc/XMLwrapper.cpp:673:32: error: invalid use of incomplete type ‘mxml_node_t’ {aka ‘struct _mxml_node_s’}
  673 |     mxml_node_t *current = node->child;
      |                                ^~
In file included from external/zynaddsubfx/Misc/XMLwrapper.h:16,
                 from external/zynaddsubfx/Misc/BankDb.cpp:2,
                 from external/zynaddsubfx-src.cpp:125:
/usr/include/mxml.h:97:16: note: forward declaration of ‘mxml_node_t’ {aka ‘struct _mxml_node_s’}
   97 | typedef struct _mxml_node_s mxml_node_t;        /**** An XML node. ****/
      |                ^~~~~~~~~~~~
In file included from external/zynaddsubfx-src.cpp:521:
external/zynaddsubfx/Misc/XMLwrapper.cpp:675:19: error: invalid use of incomplete type ‘mxml_node_t’ {aka ‘struct _mxml_node_s’}
  675 |         if(current->type == MXML_ELEMENT) {
      |                   ^~
In file included from external/zynaddsubfx/Misc/XMLwrapper.h:16,
                 from external/zynaddsubfx/Misc/BankDb.cpp:2,
                 from external/zynaddsubfx-src.cpp:125:
/usr/include/mxml.h:97:16: note: forward declaration of ‘mxml_node_t’ {aka ‘struct _mxml_node_s’}
   97 | typedef struct _mxml_node_s mxml_node_t;        /**** An XML node. ****/
      |                ^~~~~~~~~~~~
In file included from external/zynaddsubfx-src.cpp:521:
external/zynaddsubfx/Misc/XMLwrapper.cpp:676:31: error: invalid use of incomplete type ‘mxml_node_t’ {aka ‘struct _mxml_node_s’}
  676 |             auto elm = current->value.element;
      |                               ^~
In file included from external/zynaddsubfx/Misc/XMLwrapper.h:16,
                 from external/zynaddsubfx/Misc/BankDb.cpp:2,
                 from external/zynaddsubfx-src.cpp:125:
/usr/include/mxml.h:97:16: note: forward declaration of ‘mxml_node_t’ {aka ‘struct _mxml_node_s’}
   97 | typedef struct _mxml_node_s mxml_node_t;        /**** An XML node. ****/
      |                ^~~~~~~~~~~~
In file included from external/zynaddsubfx-src.cpp:529:
external/zynaddsubfx/Params/FilterParams.cpp: In lambda function:
external/zynaddsubfx/Params/FilterParams.cpp:60:19: warning: macro expands to multiple statements [-Wmultistatement-macros]
   60 | #define rChangeCb obj->changed = true; if ( obj->time) {      \
      |                   ^~~
external/zynaddsubfx/Params/FilterParams.cpp:131:17: note: in expansion of macro ‘rChangeCb’
  131 |                 rChangeCb;
      |                 ^~~~~~~~~
external/zynaddsubfx/Params/FilterParams.cpp:130:13: note: some parts of macro expansion are not guarded by this ‘if’ clause
  130 |             if(rtosc_narguments(msg))
      |             ^~
In file included from external/zynaddsubfx/rtosc/cpp/midimapper.cpp:11,
                 from external/zynaddsubfx-src.cpp:75:
external/zynaddsubfx/rtosc/miditable.h: In instantiation of ‘rtosc::MidiMapperStorage::TinyVector<T> rtosc::MidiMapperStorage::TinyVector<T>::sized_clone() [with T = int]’:
external/zynaddsubfx/rtosc/cpp/midimapper.cpp:105:45:   required from here
external/zynaddsubfx/rtosc/miditable.h:67:90: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
   67 |             {TinyVector next(n); for(int i=0;i<n; ++i) next.t[i]=0; return std::move(next);}
      |                                                                                          ^
external/zynaddsubfx/rtosc/miditable.h:67:90: note: remove ‘std::move’ call
external/zynaddsubfx/rtosc/miditable.h: In instantiation of ‘rtosc::MidiMapperStorage::TinyVector<T> rtosc::MidiMapperStorage::TinyVector<T>::clone() [with T = std::tuple<int, bool, int>]’:
external/zynaddsubfx/rtosc/cpp/midimapper.cpp:106:40:   required from here
external/zynaddsubfx/rtosc/miditable.h:69:93: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
   69 |             {TinyVector next(n); for(int i=0;i<n; ++i) next.t[i]=t[i]; return std::move(next);}
      |                                                                                             ^
external/zynaddsubfx/rtosc/miditable.h:69:93: note: remove ‘std::move’ call
external/zynaddsubfx/rtosc/miditable.h: In instantiation of ‘rtosc::MidiMapperStorage::TinyVector<T> rtosc::MidiMapperStorage::TinyVector<T>::clone() [with T = std::function<void(short int, std::function<void(const char*)>)>]’:
external/zynaddsubfx/rtosc/cpp/midimapper.cpp:107:42:   required from here
external/zynaddsubfx/rtosc/miditable.h:69:93: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
external/zynaddsubfx/rtosc/miditable.h:69:93: note: remove ‘std::move’ call
external/zynaddsubfx/rtosc/miditable.h: In instantiation of ‘rtosc::MidiMapperStorage::TinyVector<T> rtosc::MidiMapperStorage::TinyVector<T>::one_larger() [with T = int]’:
external/zynaddsubfx/rtosc/cpp/midimapper.cpp:184:57:   required from here
external/zynaddsubfx/rtosc/miditable.h:65:96: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
   65 |             {TinyVector next(n+1); for(int i=0;i<n + 1; ++i) next.t[i]=0; return std::move(next);}
      |                                                                                                ^
external/zynaddsubfx/rtosc/miditable.h:65:96: note: remove ‘std::move’ call
external/zynaddsubfx/rtosc/miditable.h: In instantiation of ‘rtosc::MidiMapperStorage::TinyVector<T> rtosc::MidiMapperStorage::TinyVector<T>::insert(const T&) [with T = std::function<void(short int, std::function<void(const char*)>)>]’:
external/zynaddsubfx/rtosc/cpp/midimapper.cpp:186:56:   required from here
external/zynaddsubfx/rtosc/miditable.h:63:110: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
   63 |             {TinyVector next(n+1); for(int i=0;i<n; ++i) next.t[i]=t[i]; next.t[n] = t_;return std::move(next);}
      |                                                                                                              ^
external/zynaddsubfx/rtosc/miditable.h:63:110: note: remove ‘std::move’ call
external/zynaddsubfx/rtosc/miditable.h: In instantiation of ‘rtosc::MidiMapperStorage::TinyVector<T> rtosc::MidiMapperStorage::TinyVector<T>::insert(const T&) [with T = int]’:
external/zynaddsubfx/rtosc/cpp/midimapper.cpp:188:54:   required from here
external/zynaddsubfx/rtosc/miditable.h:63:110: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
external/zynaddsubfx/rtosc/miditable.h:63:110: note: remove ‘std::move’ call
external/zynaddsubfx/rtosc/miditable.h: In instantiation of ‘rtosc::MidiMapperStorage::TinyVector<T> rtosc::MidiMapperStorage::TinyVector<T>::insert(const T&) [with T = std::tuple<int, bool, int>]’:
external/zynaddsubfx/rtosc/cpp/midimapper.cpp:222:54:   required from here
external/zynaddsubfx/rtosc/miditable.h:63:110: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
external/zynaddsubfx/rtosc/miditable.h:63:110: note: remove ‘std::move’ call
make[2]: *** [external/Makefile.mk2:158: ../../build/native-plugins/Release/zynaddsubfx-src.cpp.o] Error 1
make[2]: Leaving directory '/home/robertchen/.cache/yay/cardinal-git/src/cardinal/carla/source/native-plugins'
make[1]: *** [Makefile:117: /home/robertchen/.cache/yay/cardinal-git/src/cardinal/carla/build/modules/Release/native-plugins.a] Error 2
make[1]: Leaving directory '/home/robertchen/.cache/yay/cardinal-git/src/cardinal/carla'
make: *** [Makefile:95: carla] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: cardinal-git
@falkTX
Copy link
Contributor

falkTX commented Dec 11, 2021

Right, this comes from carla, still need to update that part.
Adding HAVE_ZYN_DEPS=false to the make commands should workaround this for now.

@roberChen
Copy link
Author

when I add the HAVE_ZYN_DEFS=false in make command, like this:

build() {
    cd "${srcdir}/${_pkgname}"
    make PREFIX=/usr SYSDEPS=true HAVE_ZYN_DEPS=false
}

then I got build error like:

/usr/bin/ld: ../../carla/build/modules/Release/native-plugins.a(_all.c.o): in function `carla_register_all_native_plugins':
_all.c:(.text.carla_register_all_native_plugins+0x8e): undefined reference to `carla_register_native_plugin_zynaddsubfx_fx'
/usr/bin/ld: _all.c:(.text.carla_register_all_native_plugins+0x98): undefined reference to `carla_register_native_plugin_zynaddsubfx_synth'
collect2: error: ld returned 1 exit status
make[2]: *** [../../dpf/Makefile.plugins.mk:363: ../../bin/CardinalFX] Error 1
make[2]: Leaving directory '/home/robertchen/.cache/yay/cardinal-git/src/cardinal/src/CardinalFX'
make[1]: *** [Makefile:141: all] Error 2
make[1]: Leaving directory '/home/robertchen/.cache/yay/cardinal-git/src/cardinal/src'
make: *** [Makefile:92: cardinal] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

apparently, there are still some errors related to zyn. So where should I put the HAVE_ZYN_DEPS=false?

@falkTX
Copy link
Contributor

falkTX commented Dec 11, 2021

Did you do a clean build after changing the flags?
at least "make clean" inside the carla dir is required.

@roberChen
Copy link
Author

sorry for that, I didn't clean before build(because the PKGBUILD file didn't have it), I've modified the PKGBUILD file with make clean added before build command and try to run makepkg again.

@roberChen
Copy link
Author

@falkTX thanks you for your help, I've build it successfully, the build part of PKGBUILD is:

  25   │ build() {
  26   │     cd "${srcdir}/${_pkgname}"
  27 ~ │     make clean
  28 ~ │     make PREFIX=/usr SYSDEPS=true HAVE_ZYN_DEPS=false
  29   │ }

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

2 participants