[Reproducible-builds] Bug#832014: libclc: FTBFS with -fdebug-prefix-map

Mattia Rizzolo mattia at debian.org
Thu Jul 21 10:56:12 UTC 2016


Source: libclc
Version: 0.2.0+git20150813-2
Severity: important
User: reproducible-builds at lists.alioth.debian.org
Usertags: ftbfs
X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org
Control: block -1 by 819185

Dear maintainer, your package FTBFS when dpkg enables the build flag
-fdebug-prefix-map from the reproducible/fixdebugpath feature area:

dh binary --parallel
   dh_testdir -O--parallel
   dh_update_autotools_config -O--parallel
   debian/rules override_dh_auto_configure
make[1]: Entering directory '/build/libclc-0.2.0+git20150813'
./configure.py --prefix=/usr --with-llvm-config=/usr/bin/llvm-config-3.7 
make[1]: Leaving directory '/build/libclc-0.2.0+git20150813'
   dh_auto_build -O--parallel
	make -j18
make[1]: Entering directory '/build/libclc-0.2.0+git20150813'
/usr/lib/llvm-3.7/bin/llvm-as -o generic--/lib/subnormal_disable.bc generic/lib/subnormal_disable.ll
/usr/lib/llvm-3.7/bin/llvm-as -o generic--/lib/subnormal_use_default.bc generic/lib/subnormal_use_default.ll
/usr/lib/llvm-3.7/bin/clang -MMD -MF nvptx--nvidiacl/lib/synchronization/barrier.cl.bc.d -target nvptx--nvidiacl -I`dirname ./ptx-nvidiacl/lib/synchronization/barrier.cl` -I./generic/include -fno-builtin -Dcl_clang_storage_class_specifiers -Dcl_khr_fp64 -Dcles_khr_int64 -D__CLC_INTERNAL -emit-llvm -g -O2 -fdebug-prefix-map=/build/libclc-0.2.0+git20150813=. -fPIE -fstack-protector-strong -Wformat -Werror=format-security -c -o nvptx--nvidiacl/lib/synchronization/barrier.cl.bc ./ptx-nvidiacl/lib/synchronization/barrier.cl
/usr/lib/llvm-3.7/bin/clang -MMD -MF nvptx--nvidiacl/lib/workitem/get_group_id.cl.bc.d -target nvptx--nvidiacl -I`dirname ./ptx-nvidiacl/lib/workitem/get_group_id.cl` -I./generic/include -fno-builtin -Dcl_clang_storage_class_specifiers -Dcl_khr_fp64 -Dcles_khr_int64 -D__CLC_INTERNAL -emit-llvm -g -O2 -fdebug-prefix-map=/build/libclc-0.2.0+git20150813=. -fPIE -fstack-protector-strong -Wformat -Werror=format-security -c -o nvptx--nvidiacl/lib/workitem/get_group_id.cl.bc ./ptx-nvidiacl/lib/workitem/get_group_id.cl
/usr/lib/llvm-3.7/bin/clang -MMD -MF nvptx--nvidiacl/lib/workitem/get_local_id.cl.bc.d -target nvptx--nvidiacl -I`dirname ./ptx-nvidiacl/lib/workitem/get_local_id.cl` -I./generic/include -fno-builtin -Dcl_clang_storage_class_specifiers -Dcl_khr_fp64 -Dcles_khr_int64 -D__CLC_INTERNAL -emit-llvm -g -O2 -fdebug-prefix-map=/build/libclc-0.2.0+git20150813=. -fPIE -fstack-protector-strong -Wformat -Werror=format-security -c -o nvptx--nvidiacl/lib/workitem/get_local_id.cl.bc ./ptx-nvidiacl/lib/workitem/get_local_id.cl
/usr/lib/llvm-3.7/bin/clang -MMD -MF nvptx--nvidiacl/lib/workitem/get_local_size.cl.bc.d -target nvptx--nvidiacl -I`dirname ./ptx-nvidiacl/lib/workitem/get_local_size.cl` -I./generic/include -fno-builtin -Dcl_clang_storage_class_specifiers -Dcl_khr_fp64 -Dcles_khr_int64 -D__CLC_INTERNAL -emit-llvm -g -O2 -fdebug-prefix-map=/build/libclc-0.2.0+git20150813=. -fPIE -fstack-protector-strong -Wformat -Werror=format-security -c -o nvptx--nvidiacl/lib/workitem/get_local_size.cl.bc ./ptx-nvidiacl/lib/workitem/get_local_size.cl
/usr/lib/llvm-3.7/bin/clang -MMD -MF nvptx--nvidiacl/lib/workitem/get_num_groups.cl.bc.d -target nvptx--nvidiacl -I`dirname ./ptx-nvidiacl/lib/workitem/get_num_groups.cl` -I./generic/include -fno-builtin -Dcl_clang_storage_class_specifiers -Dcl_khr_fp64 -Dcles_khr_int64 -D__CLC_INTERNAL -emit-llvm -g -O2 -fdebug-prefix-map=/build/libclc-0.2.0+git20150813=. -fPIE -fstack-protector-strong -Wformat -Werror=format-security -c -o nvptx--nvidiacl/lib/workitem/get_num_groups.cl.bc ./ptx-nvidiacl/lib/workitem/get_num_groups.cl
/usr/lib/llvm-3.7/bin/llvm-as -o nvptx--nvidiacl/lib/integer/add_sat.ll.bc ./ptx/lib/integer/add_sat.ll
/usr/lib/llvm-3.7/bin/llvm-as -o nvptx--nvidiacl/lib/integer/sub_sat.ll.bc ./ptx/lib/integer/sub_sat.ll
/usr/lib/llvm-3.7/bin/clang -MMD -MF nvptx--nvidiacl/lib/subnormal_config.cl.bc.d -target nvptx--nvidiacl -I`dirname ./generic/lib/subnormal_config.cl` -I./generic/include -fno-builtin -Dcl_clang_storage_class_specifiers -Dcl_khr_fp64 -Dcles_khr_int64 -D__CLC_INTERNAL -emit-llvm -g -O2 -fdebug-prefix-map=/build/libclc-0.2.0+git20150813=. -fPIE -fstack-protector-strong -Wformat -Werror=format-security -c -o nvptx--nvidiacl/lib/subnormal_config.cl.bc ./generic/lib/subnormal_config.cl
clang: error: unknown argument: '-fdebug-prefix-map=/build/libclc-0.2.0+git20150813=.'
/usr/lib/llvm-3.7/bin/llvm-as -o nvptx--nvidiacl/lib/subnormal_helper_func.ll.bc ./generic/lib/subnormal_helper_func.ll
clang: error: unknown argument: '-fdebug-prefix-map=/build/libclc-0.2.0+git20150813=.'
clang: error: unknown argument: '-fdebug-prefix-map=/build/libclc-0.2.0+git20150813=.'
clang: error: unknown argument: '-fdebug-prefix-map=/build/libclc-0.2.0+git20150813=.'
clang: error: unknown argument: '-fdebug-prefix-map=/build/libclc-0.2.0+git20150813=.'
/usr/lib/llvm-3.7/bin/clang -MMD -MF nvptx--nvidiacl/lib/async/async_work_group_copy.cl.bc.d -target nvptx--nvidiacl -I`dirname ./generic/lib/async/async_work_group_copy.cl` -I./generic/include -fno-builtin -Dcl_clang_storage_class_specifiers -Dcl_khr_fp64 -Dcles_khr_int64 -D__CLC_INTERNAL -emit-llvm -g -O2 -fdebug-prefix-map=/build/libclc-0.2.0+git20150813=. -fPIE -fstack-protector-strong -Wformat -Werror=format-security -c -o nvptx--nvidiacl/lib/async/async_work_group_copy.cl.bc ./generic/lib/async/async_work_group_copy.cl
Makefile:24: recipe for target 'nvptx--nvidiacl/lib/synchronization/barrier.cl.bc' failed
make[1]: *** [nvptx--nvidiacl/lib/synchronization/barrier.cl.bc] Error 1
make[1]: *** Waiting for unfinished jobs....
Makefile:28: recipe for target 'nvptx--nvidiacl/lib/workitem/get_group_id.cl.bc' failed
make[1]: *** [nvptx--nvidiacl/lib/workitem/get_group_id.cl.bc] Error 1
Makefile:32: recipe for target 'nvptx--nvidiacl/lib/workitem/get_local_id.cl.bc' failed
make[1]: *** [nvptx--nvidiacl/lib/workitem/get_local_id.cl.bc] Error 1
Makefile:36: recipe for target 'nvptx--nvidiacl/lib/workitem/get_local_size.cl.bc' failed
make[1]: *** [nvptx--nvidiacl/lib/workitem/get_local_size.cl.bc] Error 1
clang: error: unknown argument: '-fdebug-prefix-map=/build/libclc-0.2.0+git20150813=.'
Makefile:40: recipe for target 'nvptx--nvidiacl/lib/workitem/get_num_groups.cl.bc' failed
make[1]: *** [nvptx--nvidiacl/lib/workitem/get_num_groups.cl.bc] Error 1
Makefile:50: recipe for target 'nvptx--nvidiacl/lib/subnormal_config.cl.bc' failed
make[1]: *** [nvptx--nvidiacl/lib/subnormal_config.cl.bc] Error 1
clang: error: unknown argument: '-fdebug-prefix-map=/build/libclc-0.2.0+git20150813=.'
Makefile:57: recipe for target 'nvptx--nvidiacl/lib/async/async_work_group_copy.cl.bc' failed
make[1]: *** [nvptx--nvidiacl/lib/async/async_work_group_copy.cl.bc] Error 1
make[1]: Leaving directory '/build/libclc-0.2.0+git20150813'
dh_auto_build: make -j18 returned exit code 2
debian/rules:15: recipe for target 'binary' failed
make: *** [binary] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2



Please note that the intention is to enable this build flag RSN
https://lists.debian.org/msgid-search/20160718085659.GI7462@chase.mapreri.org


A quick workaround would be to disable the reproducible/fixdebugpath
buildflags with
    export DEB_BUILD_MAINT_OPTIONS=reproducible=-fixdebugpath

The real problem here is that clang 3.7 doesn't support
-fdebug-prefix-map, whilst 3.8 does.  See the blocking bug for more
information.  You might either want to wait for clang to either switch
to 3.8 or backport the patch, or to workaround it by disabling the
buildflag.

-- 
regards,
                        Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540      .''`.
more about me:  https://mapreri.org                             : :'  :
Launchpad user: https://launchpad.net/~mapreri                  `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20160721/aea98a0a/attachment.sig>


More information about the Reproducible-builds mailing list