Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testsuite (master branch) build failure #23

Closed
ikitayama opened this issue Dec 20, 2016 · 7 comments
Closed

Testsuite (master branch) build failure #23

ikitayama opened this issue Dec 20, 2016 · 7 comments

Comments

@ikitayama
Copy link
Contributor

Anyone seen this or similar on Ubuntu?

[ 27%] Built target test_snip_remove.dyn_gcc_64_none_none
[ 27%] Built target test3_7.dyn_gcc_64_none_none
[ 27%] Built target dyninst_group_test.dyn_gcc_64_none_none
[ 27%] Built target test1_19.dyn_gcc_64_none_none
[ 27%] Linking C executable test_mem_1.dyn_gcc_64_none_none
/usr/bin/ld: CMakeFiles/test_mem_1.dyn_gcc_64_none_none.dir/__/__/__/__/__/__/__/src/dyninst/test6LS-x86_64.s.o: relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
x86_64-unknown-linux2.4/dyninst/gcc/64/dyn/none/none/CMakeFiles/test_mem_1.dyn_gcc_64_none_none.dir/build.make:190: recipe for target 'x86_64-unknown-linux2.4/dyninst/gcc/64/dyn/none/none/test_mem_1.dyn_gcc_64_none_none' failed
make[2]: *** [x86_64-unknown-linux2.4/dyninst/gcc/64/dyn/none/none/test_mem_1.dyn_gcc_64_none_none] Error 1
CMakeFiles/Makefile2:8928: recipe for target 'x86_64-unknown-linux2.4/dyninst/gcc/64/dyn/none/none/CMakeFiles/test_mem_1.dyn_gcc_64_none_none.dir/all' failed
make[1]: *** [x86_64-unknown-linux2.4/dyninst/gcc/64/dyn/none/none/CMakeFiles/test_mem_1.dyn_gcc_64_none_none.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2
@ikitayama
Copy link
Contributor Author

Skipping test_mem_* tests on x86_64 linux helps to build testsuite. Verified on Ubuntu, but think it's true on Fedora as well.

@wrwilliams
Copy link
Member

The test_mem_* tests rely on hand-rolled assembly; they should be revised to exclude PIC/PIE linking variants (and also to ignore optimization levels and different compilers) in the specification.

@ikitayama
Copy link
Contributor Author

@wrwilliams I'm not familiar enough to make the changes in the specification, do you have time to do it?

@wrwilliams
Copy link
Member

Not today, I don't, but I can take a shot next week. (And this is proving a bit more hairy than I'd initially thought, which is why I don't have time to implement.)

@ikitayama
Copy link
Contributor Author

@wrwilliams that's great!. In the mean time, I've verified this branch:

https://github.com/ikitayama/testsuite/commits/my9.3.0

can be built on the x86 Ubuntu 16.10. I didn't execute all, but the test_stack_1 test ran ok.

@hainest
Copy link
Contributor

hainest commented Mar 7, 2019

@mxz297 Necroing because it's related to #40.

@hainest
Copy link
Contributor

hainest commented Mar 12, 2019

Moved this discussion to #40.

@hainest hainest closed this as completed Mar 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants