https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246244

            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: [email protected]
          Reporter: [email protected]

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

# ld.lld --compress-debug-sections=zlib
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 1201515

ld.lld in LLVM8 is no problem.

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

Variable 'none' is recognized in LLVM10.

% /usr/local/llvm80/bin/ld.lld --compress-debug-sections=zlib 
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

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to