Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 06 May 2020 03:40:19 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 246244] ld.lld in LLVM10 cannot recognize zlib in "compress-debug-sections"
Message-ID:  <bug-246244-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D246244

            Bug ID: 246244
           Summary: ld.lld in LLVM10 cannot recognize zlib in
                    "compress-debug-sections"
           Product: Base System
           Version: 12.1-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: hyama99@gmail.com

I encountered this problem when I tried to build Redmine 4.1.1 on FreeBSD 1=
2.1
STABLE. ld.lld in LLVM10 cannot recognize zlib but ld.lld in LLVM8 can
recognize it as follows:

# ld.lld --compress-debug-sections=3Dzlib
ld.lld: error: --compress-debug-sections: zlib is not available

My environment is as follows:

% ld.lld -version
LLD 10.0.0 (FreeBSD llvmorg-10.0.0-0-gd32170dbd5b-1200011) (compatible with=
 GNU
linkers)
% uname -aK
FreeBSD XXXXXX 12.1-STABLE FreeBSD 12.1-STABLE r360560 GENERIC  amd64 12015=
15

ld.lld in LLVM8 is no problem.

% /usr/local/llvm80/bin/ld.lld --compress-debug-sections=3Dzlib=20
ld.lld: error: no input files

Variable 'none' is recognized in LLVM10.

% /usr/local/llvm80/bin/ld.lld --compress-debug-sections=3Dzlib=20
ld.lld: error: no input files

In order to escape this problem, I temporally make a symbolic link from
/usr/local/llvm80/bin/ld.lld to /usr/bin/ld.

Hideki Yamamoto

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-246244-227>