[Bug 228308] [NEW PORT] devel/kcov: ptrace-based coverage analyzer

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu May 24 09:09:12 UTC 2018


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

Tobias Kortkamp <tobik at freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|ports-bugs at FreeBSD.org      |asomers at FreeBSD.org
             Status|New                         |Open

--- Comment #4 from Tobias Kortkamp <tobik at freebsd.org> ---
(In reply to Alan Somers from comment #3)

Looks better, but OPTIONS_DEFINE=DOCS should be before post-stage or
PORTDOCS (see [1]) and SHEBANG_GLOB doesn't need the quotes.

While this builds fine on 11.1/amd64, it doesn't build on 11.1/i386:

/wrkdirs/usr/ports/devel/kcov/work/kcov-35-57-g69dfa9c/src/engines/ptrace_freebsd.cc:22:3:
error: Unsupported architecture
# error Unsupported architecture
  ^
/wrkdirs/usr/ports/devel/kcov/work/kcov-35-57-g69dfa9c/src/engines/ptrace_freebsd.cc:31:3:
error: Unsupported architecture
# error Unsupported architecture
  ^
2 errors generated.

And not on 10.4/i386:

FAILED: src/CMakeFiles/kcov.dir/parsers/elf.cc.o 
/usr/bin/c++  -DPACKAGE -DPACKAGE_VERSION
-I/wrkdirs/usr/ports/devel/kcov/work/kcov-35-57-g69dfa9c/src/include
-I/wrkdirs/usr/ports/devel/kcov/work/kcov-35-57-g69dfa9c/src/../external/lldb/include
-I/usr/local/include -O2 -pipe -fstack-protector -fno-strict-aliasing
-std=c++0x -g -Wall -D_GLIBCXX_USE_NANOSLEEP -DKCOV_LIBRARY_PREFIX=/tmp
-DKCOV_HAS_LIBBFD=0 -O2 -pipe -fstack-protector -fno-strict-aliasing -MD -MT
src/CMakeFiles/kcov.dir/parsers/elf.cc.o -MF
src/CMakeFiles/kcov.dir/parsers/elf.cc.o.d -o
src/CMakeFiles/kcov.dir/parsers/elf.cc.o -c
/wrkdirs/usr/ports/devel/kcov/work/kcov-35-57-g69dfa9c/src/parsers/elf.cc
In file included from
/wrkdirs/usr/ports/devel/kcov/work/kcov-35-57-g69dfa9c/src/parsers/elf.cc:5:
In file included from /usr/local/include/elfutils/libdw.h:32:
In file included from /usr/local/include/gelf.h:32:
/usr/local/include/libelf.h:332:8: error: unknown type name 'Elf32_Chdr'
extern Elf32_Chdr *elf32_getchdr (Elf_Scn *__scn);
       ^
/usr/local/include/libelf.h:333:8: error: unknown type name 'Elf64_Chdr'
extern Elf64_Chdr *elf64_getchdr (Elf_Scn *__scn);
       ^
In file included from
/wrkdirs/usr/ports/devel/kcov/work/kcov-35-57-g69dfa9c/src/parsers/elf.cc:5:
In file included from /usr/local/include/elfutils/libdw.h:32:
/usr/local/include/gelf.h:93:9: error: unknown type name 'Elf64_Chdr'
typedef Elf64_Chdr GElf_Chdr;
        ^
3 errors generated.

If this is expected set either NOT_FOR_ARCHS{,_REASON} or
ONLY_FOR_ARCHS{,_REASON}.

[1] https://www.freebsd.org/doc/en/books/porters-handbook/porting-order.html

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


More information about the freebsd-ports-bugs mailing list