Bug 232742 - DTrace test fails to build in 12 STABLE
Summary: DTrace test fails to build in 12 STABLE
Status: Closed Not A Bug
Alias: None
Product: Base System
Classification: Unclassified
Component: tests (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-testing (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-27 11:41 UTC by Dries Michiels
Modified: 2018-10-28 07:54 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dries Michiels freebsd_committer freebsd_triage 2018-10-27 11:41:22 UTC
I have in src.conf WITH_DTRACE_TESTS and when building world I get error below:

-- all_subdir_rescue ---
--- dumprmt.o ---
cc -target x86_64-unknown-freebsd12.0 --sysroot=/usr/obj/usr/src/amd64.amd64/tmp -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin  -O2 -pipe -DRDUMP   -DRESCUE -MD  -MF.depend.dumprmt.o -MTdumprmt.o -std=gnu99 -fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef -Wno-address-of-packed-member -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter  -Qunused-arguments  -c /usr/src/sbin/dump/dumprmt.c -o dumprmt.o
--- all_subdir_cddl ---
--- tst.usdt.exe.full ---
cc -target x86_64-unknown-freebsd12.0 --sysroot=/usr/obj/usr/src/amd64.amd64/tmp -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin -O2 -pipe -O0 -g -I/usr/obj/usr/src/amd64.amd64/cddl/usr.sbin/dtrace/tests/common/json -std=gnu99 -fstack-protector-strong -Qunused-arguments   -o tst.usdt.exe.full tst.usdt.o usdt.o
/usr/obj/usr/src/amd64.amd64/tmp/usr/bin/ld: error: drti.c:(.SUNW_dof+0x160): unrecognized reloc 8
--- all_subdir_lib ---
--- all_subdir_lib/libc ---
--- ldpart.po ---
cc -target x86_64-unknown-freebsd12.0 --sysroot=/usr/obj/usr/src/amd64.amd64/tmp -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin -pg  -O2 -pipe   -DNO__SCCSID -DNO__RCSID -I/usr/src/lib/libc/include -I/usr/src/include -I/usr/src/lib/libc/amd64 -DNLS  -D__DBINTERFACE_PRIVATE -I/usr/src/contrib/gdtoa -I/usr/src/contrib/libc-vis -DINET6 -I/usr/obj/usr/src/amd64.amd64/lib/libc -I/usr/src/lib/libc/resolv -D_ACL_PRIVATE -DPOSIX_MISTAKE -I/usr/src/lib/libmd -I/usr/src/contrib/jemalloc/include -I/usr/src/contrib/tzcode/stdtime -I/usr/src/lib/libc/stdtime -I/usr/src/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/usr/src/lib/libc/rpc -DSYMBOL_VERSIONING -g -MD  -MF.depend.ldpart.po -MTldpart.po -std=gnu99 -fstack-protector-strong -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef -Wno-address-of-packed-member -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter  -Qunused-arguments  -I/usr/src/lib/libutil -I/usr/src/lib/msun/amd64 -I/usr/src/lib/msun/x86 -I/usr/src/lib/msun/src -c /usr/src/lib/libc/locale/ldpart.c -o ldpart.po
--- all_subdir_cddl ---
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** [tst.usdt.exe.full] Error code 1

make[9]: stopped in /usr/src/cddl/usr.sbin/dtrace/tests/common/json
1 error

make[9]: stopped in /usr/src/cddl/usr.sbin/dtrace/tests/common/json
*** [tst.usdt.exe] Error code 2
Comment 1 Mark Johnston freebsd_committer freebsd_triage 2018-10-27 16:23:29 UTC
Was this a clean build, or were you using -DNO_CLEAN or something similar?
Comment 2 Dries Michiels freebsd_committer freebsd_triage 2018-10-27 19:35:54 UTC
I can try again but I'm sure I did "make clean" before "make buildworld".
Comment 3 Dries Michiels freebsd_committer freebsd_triage 2018-10-28 07:54:42 UTC
OK tried again and error is gone. Altough I'm not sure if it was becuase I was running 12-stable now (11-stable before when I got the error) or if I ddin't clean properly before the build. Anyway I'll close this. Thanks.