Public bug reported:

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

** Affects: procdump (Ubuntu)
     Importance: High
         Status: New


** Tags: ftbfs update-excuse

** Changed in: procdump (Ubuntu)
   Importance: Undecided => High

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2067621

Title:
  procdump 2.2-1ubuntu1 FTBFS on armhf

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/procdump/+bug/2067621/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to