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: 
Subject: Re: port-hppa/56876: hppa: "cc -pg" fails with "undefined reference to `mprotect'"
Date: Sat, 25 Feb 2023 16:19:28 -0500

 (GNATS is still bugging me about this report being in "feedback" state,
 hopefully this will shut it up.)
 
 I just ran the ATF tests against 10.0_BETA snapshot 202302240730Z,
 and I am still seeing substantially the same failures as with
 202206150250Z:
 
 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
 
 tc-start: 1677309513.739028, 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: 1677309529.346494, call_once_pic_profile, failed, atf-check failed=
 ; see the output of the test for details
 
 tc-start: 1677309544.11978, 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: 1677309559.626921, call_once_profile, failed, atf-check failed; se=
 e the output of the test for details
 
 tc-start: 1677309730.580325, 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: 1677309745.668451, cxxruntime_pic_profile, failed, atf-check faile=
 d; see the output of the test for details
 
 tc-start: 1677309795.861917, 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: 1677309799.661230, hello_pic_profile, failed, atf-check failed; se=
 e the output of the test for details
 
 tc-start: 1677309907.624063, 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: 1677309922.897904, static_destructor_pic_profile, failed, atf-chec=
 k failed; see the output of the test for details
 
 			regards, tom lane
 


Home | Main Index | Thread Index | Old Index