NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: port-hppa/56876 (hppa: "cc -pg" fails with "undefined reference to `mprotect'")
The following reply was made to PR port-hppa/56876; it has been noted by GNATS.
From: Tom Lane <tgl%sss.pgh.pa.us@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: port-hppa-maintainer%netbsd.org@localhost
Subject: Re: port-hppa/56876 (hppa: "cc -pg" fails with "undefined reference to `mprotect'")
Date: Thu, 16 Jun 2022 09:36:20 -0400
skrll%NetBSD.org@localhost writes:
> Workaround applied. OK to close?
Hmm, I just did a full run from HEAD/202206150250Z, and I'm still
seeing failures in a lot of these tests:
usr.bin/c++/t_call_once:call_once_pic_profile
usr.bin/c++/t_call_once:call_once_profile
usr.bin/c++/t_cxxruntime:cxxruntime_pic_profile
usr.bin/c++/t_hello:hello_pic_profile
usr.bin/c++/t_pthread_once:pthread_once_pic_profile
usr.bin/c++/t_static_destructor:static_destructor_pic_profile
Some of them look like you missed adding -static there, but the
call_once_profile test does have that, and it's failing at runtime
instead of link time:
tc-start: 1655357349.87927, call_once_pic_profile
tc-so:Executing command [ c++ -pg -fPIC -shared -o libtest.so pic.cpp ]
tc-so:Executing command [ c++ -pg -o call_once test.cpp -L. -ltest -pthrea=
d ]
tc-so:Executing command [ ./call_once ]
tc-se:Fail: incorrect exit status: 1, expected: 0
tc-se:stdout:
tc-se:
tc-se:stderr:
tc-se:./libtest.so: text relocations
tc-se:./libtest.so: Unsupported relocation type 2 in non-PLT relocations
tc-se:
tc-end: 1655357364.713581, call_once_pic_profile, failed, atf-check failed=
; see\
the output of the test for details
tc-start: 1655357379.351896, call_once_profile
tc-so:Executing command [ c++ -static -pg -o call_once test.cpp -pthread ]
tc-so:Executing command [ ./call_once ]
tc-se:Fail: program did not exit cleanly
tc-se:stdout:
tc-se:
tc-se:stderr:
tc-se:
tc-end: 1655357394.885760, call_once_profile, failed, atf-check failed; se=
e the\
output of the test for details
tc-start: 1655357565.223298, cxxruntime_pic_profile
tc-so:Executing command [ c++ -pg -fPIC -shared -o libtest.so pic.cpp ]
tc-so:Executing command [ c++ -pg -o hello test.cpp -L. -ltest ]
tc-so:Executing command [ ./hello ]
tc-se:Fail: incorrect exit status: 1, expected: 0
tc-se:stdout:
tc-se:
tc-se:stderr:
tc-se:./libtest.so: text relocations
tc-se:./libtest.so: Unsupported relocation type 2 in non-PLT relocations
tc-se:
tc-end: 1655357580.373063, cxxruntime_pic_profile, failed, atf-check faile=
d; se\
e the output of the test for details
tc-start: 1655357630.972360, hello_pic_profile
tc-so:Executing command [ c++ -pg -fPIC -shared -o libtest.so pic.cpp ]
tc-so:Executing command [ c++ -pg -o hello test.cpp -L. -ltest ]
tc-se:Fail: incorrect exit status: 1, expected: 0
tc-se:stdout:
tc-se:
tc-se:stderr:
tc-se:ld: /usr/lib/libgcc_s.so: undefined reference to `mprotect'
tc-se:
tc-end: 1655357634.759712, hello_pic_profile, failed, atf-check failed; se=
e the\
output of the test for details
tc-start: 1655357670.940, pthread_once_pic_profile
tc-so:Executing command [ c++ -pg -fPIC -shared -o libtest.so pic.cpp ]
tc-so:Executing command [ c++ -pg -o pthread_once test.cpp -L. -ltest -pth=
read \
]
tc-se:Fail: incorrect exit status: 1, expected: 0
tc-se:stdout:
tc-se:
tc-se:stderr:
tc-se:ld: /usr/lib/libgcc_s.so: undefined reference to `mprotect'
tc-se:
tc-end: 1655357680.841495, pthread_once_pic_profile, failed, atf-check fai=
led; \
see the output of the test for details
tc-start: 1655357740.974899, static_destructor_pic_profile
tc-so:Executing command [ c++ -pg -fPIC -shared -o libtest.so pic.cpp ]
tc-so:Executing command [ c++ -pg -o hello test.cpp -L. -ltest ]
tc-so:Executing command [ ./hello ]
tc-se:Fail: incorrect exit status: 1, expected: 0
tc-se:stdout:
tc-se:
tc-se:stderr:
tc-se:./libtest.so: text relocations
tc-se:./libtest.so: Unsupported relocation type 2 in non-PLT relocations
tc-se:
tc-end: 1655357756.269253, static_destructor_pic_profile, failed, atf-chec=
k fai\
led; see the output of the test for details
regards, tom lane
Home |
Main Index |
Thread Index |
Old Index