man ports reports that the make variable. . . WITH_DEBUG (bool) If set, debugging symbols are installed for ports binaries. but when I use a make.conf with WITH_DEBUG= in it I get: ===> Building for raspberrypi-userland-20151105_2 Scanning dependencies of target vcfiled_check [ 0%] Building C object interface/vmcs_host/linux/vcfiled/CMakeFiles/vcfiled_check.dir/vcfiled_check.c.o clang: error: argument unused during compilation: '-rdynamic' clang: error: argument unused during compilation: '-rdynamic' --- interface/vmcs_host/linux/vcfiled/CMakeFiles/vcfiled_check.dir/vcfiled_check.c.o --- *** [interface/vmcs_host/linux/vcfiled/CMakeFiles/vcfiled_check.dir/vcfiled_check.c.o] Error code 1 make[4]: stopped in /usr/obj/portswork/usr/ports/misc/raspberrypi-userland/work/.build 1 error . . . Other context details: # freebsd-version -ku; uname -aKU 11.0-CURRENT 11.0-CURRENT FreeBSD rpi2 11.0-CURRENT FreeBSD 11.0-CURRENT #14 r295351M: Sun Feb 7 03:23:24 PST 2016 markmi@FreeBSDx64:/usr/obj/clang/arm.armv6/usr/src/sys/RPI2-NODBG arm 1100097 1100097 # svnlite info /usr/ports/misc/raspberrypi-userland Path: misc/raspberrypi-userland Working Copy Root Path: /usr/ports URL: https://svn0.us-west.freebsd.org/ports/head/misc/raspberrypi-userland Relative URL: ^/head/misc/raspberrypi-userland Repository Root: https://svn0.us-west.freebsd.org/ports Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5 Revision: 408464 Node Kind: directory Schedule: normal Last Changed Author: amdmi3 Last Changed Rev: 408041 Last Changed Date: 2016-02-04 15:13:32 +0000 (Thu, 04 Feb 2016) $ more /etc/make.conf DEFAULT_VERSIONS+=perl5=5.22 WRKDIRPREFIX=/usr/obj/portswork WITH_DEBUG= WITH_DEBUG_FILES= MALLOC_PRODUCTION= # TO_TYPE=armv6 VERSION_CONTEXT=11.0 CFLAGS+=-target ${TO_TYPE}--freebsd${VERSION_CONTEXT}-gnueabi -march=armv7-a -mcpu=cortex-a7 -mfloat-abi=softfp -mno-unaligned-access .if ${.MAKE.LEVEL} == 0 CC=/usr/bin/clang CXX=/usr/bin/clang++ CPP=/usr/bin/clang-cpp .export CC .export CXX .export CPP .endif This is in a projects/clang380-imports context rather than a direct 11.0-CURRENT one: so clang 3.8.0 .
Should be fixed by this commit: https://github.com/gonzoua/userland/commit/8360b45981294ce20e8eb3737bbbb73d09099f8b
A commit references this bug: Author: feld Date: Thu Mar 17 20:16:26 UTC 2016 New revision: 411305 URL: https://svnweb.freebsd.org/changeset/ports/411305 Log: misc/raspberrypi-userland: Update to 20160306 This update also adds a DEBUG option. PR: 207790, 207097, 207102 Changes: head/misc/raspberrypi-userland/Makefile head/misc/raspberrypi-userland/distinfo