Package: g++-8 Version: 8.2.0-4 Severity: important One of the packages I maintain have been failing in its test suite on hppa ever since it was first uploaded. I was never able to investigate the reason for this because there until recently were no hppa porter box.
I recently discovered that there is now an hppa porter box and I have
been able to reproduce the issue. I managed to take the failing part of
the code and reduce it to a small test case that is attached to this
bug report.
The issue only happens on hppa, and only when linking using a shared
library. If the test case is linked statically the issue does not
appear.
On all architectures except hppa the output of the test case is the
following:
$ make
g++ -O2 -g -c -o main.o main.cpp
g++ -O2 -g -fPIC -c -o S.o S.cpp
g++ -shared -o libS.so S.o
g++ -o main main.o -L. -lS
g++ -o altmain main.o S.o
-- Running using shared library
LD_LIBRARY_PATH=. ./main
OK
-- Running using static build
./altmain
OK
On hppa the output is as follows:
$ make
g++ -O2 -g -c -o main.o main.cpp
g++ -O2 -g -fPIC -c -o S.o S.cpp
g++ -shared -o libS.so S.o
g++ -o main main.o -L. -lS
g++ -o altmain main.o S.o
-- Running using shared library
LD_LIBRARY_PATH=. ./main
not OK
-- Running using static build
./altmain
OK
Mattias
test.tar.gz
Description: application/compressed-tar
smime.p7s
Description: S/MIME cryptographic signature

