procdump 2.2-1ubuntu1 FTBFS on armhf

Bug #2067621 reported by Benjamin Drung
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
procdump (Ubuntu)
New
High
Unassigned

Bug Description

procdump 2.2-1ubuntu1 fails to build on armhf:

```
dh clean --no-parallel
   dh_auto_clean -O--no-parallel
 make -j1 distclean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
Makefile:31: *** recipe commences before first target. Stop.
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
```

This failure is caused by failing to detect the architecture:

```
$ uname -p
armv7l
```

When adding armv7l to the list of ARM architectures, the build will fail with:

```
clang++ -o obj/ProcDumpProfiler.so -DELPP_NO_DEFAULT_LOG_FILE -DELPP_THREAD_SAFE -g -pthread -shared --no-undefined -Wno-invalid-noreturn -Wno-pragma-pack -Wno-writable-strings -Wno-format-security -fPIC -fms-extensions -DHOST_ARM -DPAL_STDCPP_COMPAT -DPLATFORM_UNIX -std=c++11 -I profiler/inc -I include profiler/src/ClassFactory.cpp profiler/src/ProcDumpProfiler.cpp profiler/src/dllmain.cpp profiler/src/corprof_i.cpp profiler/src/easylogging++.cc
profiler/src/ProcDumpProfiler.cpp:406:33: warning: implicit conversion of NULL constant to 'ObjectID' (aka 'unsigned int') [-Wnull-conversion]
  406 | entry.exceptionID = NULL;
      | ~ ^~~~
      | 0
profiler/src/ProcDumpProfiler.cpp:1130:29: warning: implicit conversion of NULL constant to 'ClassID' (aka 'unsigned int') [-Wnull-conversion]
 1130 | ClassID parentClassId = NULL;
      | ~~~~~~~~~~~~~ ^~~~
      | 0
profiler/src/ProcDumpProfiler.cpp:1131:38: warning: implicit conversion of NULL constant to 'ClassID' (aka 'unsigned int') [-Wnull-conversion]
 1131 | ClassID systemExceptionClassId = NULL;
      | ~~~~~~~~~~~~~~~~~~~~~~ ^~~~
      | 0
profiler/src/ProcDumpProfiler.cpp:1192:26: warning: comparison between NULL and non-pointer ('ClassID' (aka 'unsigned int') and NULL) [-Wnull-arithmetic]
 1192 | }while(parentClassId != NULL);
      | ~~~~~~~~~~~~~ ^ ~~~~
profiler/src/ProcDumpProfiler.cpp:1194:31: warning: comparison between NULL and non-pointer ('ClassID' (aka 'unsigned int') and NULL) [-Wnull-arithmetic]
 1194 | if(systemExceptionClassId != NULL)
      | ~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~
profiler/src/ProcDumpProfiler.cpp:1255:30: error: use of undeclared identifier 'PLONG_PTR'
 1255 | msgField = *(PLONG_PTR)(((BYTE *)objectId) + pFieldOffsets[fieldIndex].ulOffset);
      | ^
profiler/src/ProcDumpProfiler.cpp:1256:29: warning: comparison between NULL and non-pointer ('LONG_PTR' (aka 'int') and NULL) [-Wnull-arithmetic]
 1256 | if(msgField != NULL)
      | ~~~~~~~~ ^ ~~~~
6 warnings and 1 error generated.
make[1]: *** [Makefile:87: obj/ProcDumpProfiler.so] Error 1
```

Full log: https://launchpadlibrarian.net/732723704/buildlog_ubuntu-oracular-armhf.procdump_2.2-1ubuntu2~ppa3_BUILDING.txt.gz

Benjamin Drung (bdrung)
Changed in procdump (Ubuntu):
importance: Undecided → High
Revision history for this message
Benjamin Drung (bdrung) wrote :
Revision history for this message
Benjamin Drung (bdrung) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.