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

Compile error in airbag.c #187

Open
jgregoire opened this issue Apr 4, 2024 · 1 comment
Open

Compile error in airbag.c #187

jgregoire opened this issue Apr 4, 2024 · 1 comment
Assignees

Comments

@jgregoire
Copy link

jgregoire commented Apr 4, 2024

Linux 6.6.20+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.20-1+rpt1 (2024-03-07) aarch64 GNU/Linux
gcc 12.2.0

All dependencies installed per build instructions (Debian)

Steps:

$ git clone --recursive git@github.com:Audio4Linux/JDSP4Linux
$ cd JDSP4Linux
$ git checkout 2.7.0
$ mkdir build && cd build
$ qmake6 ../JDSP4Linux.pro CONFIG+=HEADLESS
$ make -j4

Log:

../../src/crash/airbag.c: In function ‘sigHandler’:
../../src/crash/airbag.c:618:36: warning: implicit declaration of function ‘MCTX_PC’ [-Wimplicit-function-declaration]
  618 |     const uint8_t *pc = (uint8_t *)MCTX_PC(uc);
      |                                    ^~~~~~~
../../src/crash/airbag.c:618:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  618 |     const uint8_t *pc = (uint8_t *)MCTX_PC(uc);
      |                         ^
../../src/crash/airbag.c:773:21: error: ‘NMCTXREGS’ undeclared (first use in this function)
  773 |     for (i = 0; i < NMCTXREGS; ++i) {
      |                     ^~~~~~~~~
../../src/crash/airbag.c:773:21: note: each undeclared identifier is reported only once for each function it appears in
../../src/crash/airbag.c:774:14: error: ‘mctxRegNames’ undeclared (first use in this function)
  774 |         if (!mctxRegNames[i])   /* Can trim junk per-arch by NULL-ing name. */
      |              ^~~~~~~~~~~~
../../src/crash/airbag.c:783:60: warning: implicit declaration of function ‘MCTXREG’ [-Wimplicit-function-declaration]
  783 |         width += safe_printf(fd, "%s:%x", mctxRegNames[i], MCTXREG(uc, i));
      |                                                            ^~~~~~~
../../src/crash/airbag.c:804:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  804 |         pc = (uint8_t *)MCTX_PC(uc);
      |              ^
../../src/crash/airbag.c:818:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  818 |     pc = (uint8_t *)(((uint32_t)pc) & ~3);
      |                       ^
../../src/crash/airbag.c:818:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  818 |     pc = (uint8_t *)(((uint32_t)pc) & ~3);
      |          ^
make[1]: *** [Makefile:1576: airbag.o] Error 1
make[1]: *** Waiting for unfinished jobs....
../../src/utils/dbus/IpcHandler.cpp: In member function ‘void IpcHandler::setInternal(const QString&, const QDBusVariant&) const’:
../../src/utils/dbus/IpcHandler.cpp:184:22: warning: ‘bool QVariant::canConvert(int) const’ is deprecated [-Wdeprecated-declarations]
  184 |        var.canConvert(QMetaType::Int)) {
      |        ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
In file included from /usr/include/aarch64-linux-gnu/qt6/QtDBus/qtdbusglobal.h:9,
                 from /usr/include/aarch64-linux-gnu/qt6/QtDBus/qdbusconnection.h:8,
                 from /usr/include/aarch64-linux-gnu/qt6/QtDBus/QDBusConnection:1,
                 from ../../src/utils/dbus/IpcHandler.h:4,
                 from ../../src/utils/dbus/IpcHandler.cpp:1:
/usr/include/aarch64-linux-gnu/qt6/QtCore/qvariant.h:226:10: note: declared here
  226 |     bool canConvert(int targetTypeId) const
      |          ^~~~~~~~~~
make[1]: Leaving directory '/home/james/Code/JDSP4Linux/build/src'
make: *** [Makefile:73: sub-src-make_first] Error 2

I also tried building on latest commit and building without CONFIG+=HEADLESS

@theAeon
Copy link
Contributor

theAeon commented Apr 23, 2024

Confirming this-same error on copr's fc40 aarch64 builder

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

3 participants