Date: Fri, 13 Jan 2017 10:39:16 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 216021] lang/gcc* all symbols for libgcov.a should likely be exposed Message-ID: <bug-216021-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216021 Bug ID: 216021 Summary: lang/gcc* all symbols for libgcov.a should likely be exposed Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: ngie@FreeBSD.org For reasons similar to what I explained in https://reviews.freebsd.org/D9168 (which includes a repro), more of the gcov symbols should be exposed in ord= er for --coverage to "just work" with gcc like suggested in the toolchain manp= age. Otherwise I have to explicitly use -lgcov when linking binaries, which is broken per the docs... From man 1 gcc: --coverage This option is used to compile and link code instrumented for coverage analysis. The option is a synonym for -fprofile-arcs -ftest-coverage (when compiling) and -lgcov (when linking). See the documentation for those options for more details. /usr/local/bin/ld: foo.full: hidden symbol `__gcov_merge_add' in /usr/local/lib/gcc49/gcc/x86_64-portbld-freebsd12.0/4.9.4/libgcov.a(_gcov_m= erge_add.o) is referenced by DSO /usr/local/bin/ld: final link failed: Bad value collect2: error: ld returned 1 exit status *** Error code 1 --=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-216021-13>