Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 04 Mar 2021 03:43:27 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 254001] llvm fails to link with -fprofile-instr-generate -fcoverage-mapping
Message-ID:  <bug-254001-227@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 254001
           Summary: llvm fails to link with -fprofile-instr-generate
                    -fcoverage-mapping
           Product: Base System
           Version: 13.0-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: ota@j.email.ne.jp

Created attachment 222959
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D222959&action=
=3Dedit
source code and its error output

LLVM on 13-BETA fails to link with -fprofile-instr-generate -fcoverage-mapp=
ing
option:

% cc -fprofile-instr-generate -fcoverage-mapping coverage.c
ld: error: undefined hidden symbol: __llvm_profile_counter_bias
>>> referenced by InstrProfilingFile.c:966 (/usr/src/contrib/llvm-project/c=
ompil
er-rt/lib/profile/InstrProfilingFile.c:966)
>>>               InstrProfilingFile.o:(__llvm_profile_initialize_file) in =
archi
ve /usr/lib/clang/11.0.1/lib/freebsd/libclang_rt.profile-i386.a
>>> referenced by InstrProfilingFile.c:966 (/usr/src/contrib/llvm-project/c=
ompil
er-rt/lib/profile/InstrProfilingFile.c:966)

These options had been sufficient on 12.x-RELEASES.

--=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-254001-227>