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

make test fails on ubuntu 18.04. #100

Closed
Sameeranjoshi opened this issue Jul 26, 2021 · 1 comment
Closed

make test fails on ubuntu 18.04. #100

Sameeranjoshi opened this issue Jul 26, 2021 · 1 comment

Comments

@Sameeranjoshi
Copy link

System details;

 OS: Ubuntu 18.04.5 LTS x86_64
  CPU: AMD Ryzen 7 2700 (16) @ 3.200GHz
  
$ readelf -p .comment mold

String dump of section '.comment':
  [     0]  Linker: LLD 10.0.0
  [    13]  GCC: (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
  [    3d]  GCC: (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0
  [    68]  clang version 10.0.0-4ubuntu1

I am using ubuntu 18.04 locally and I used docker script which successfully builds mold, whereas tests fail with below errors:

Testing ifunc-dso ... /usr/bin/ld: /tmp/ccFYyv8X.o: relocation R_X86_64_PC32 against symbol `printf@@GLIBC_2.2.5' **can not be used when making a shared object; recompile with -fPIC**
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
Makefile:6: recipe for target 'ifunc-dso.sh' failed
make[1]: *** [ifunc-dso.sh] Error 1
Testing interpose ... OK

Using ubuntu 20.04 as base OS works.

@rui314 rui314 closed this as completed in 7978736 Jul 26, 2021
@rui314
Copy link
Owner

rui314 commented Jul 26, 2021

Thank you for reporting! There was a bug in the test, so I fixed that.

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

2 participants