mold icon indicating copy to clipboard operation
mold copied to clipboard

Unable to link with log4cxx static library, and there was also something wrong with protobuffer lib

Open wangxiaobai-dd opened this issue 3 years ago • 3 comments

My environment is (RHEL release 6.5, Linux Version 2.6.32-431.el6.x86_64) and I try to use mold to link my project with log4cxx.a, there was a crash when running this project, the core file information was put below: image

However, it can run successfully when linking with log4cxx dynamic library.

Another question with libprotobuf.a
image

I have no idea how to solve them.

wangxiaobai-dd avatar Jan 17 '22 03:01 wangxiaobai-dd

Thank you for your report. RHEL6.5 is honestly a bit too old (it was released in November 2013) which is no longer supported by the vendor, but I'll take a look.

rui314 avatar Jan 17 '22 14:01 rui314

@wangxiaobai-dd can you please share how you managed to build mold on RHEL6?

I tried doing that but ran into assembler errors as well as problems with stdlib headers

petr-tik avatar Jun 30 '22 20:06 petr-tik

@petr-tik I built gcc11 before building mold, because building mold needs compiler which supports c++20. Maybe this cause your problem .

wangxiaobai-dd avatar Jul 05 '22 13:07 wangxiaobai-dd