Re: Attempt to update ispc
Please if possible. I attempt to use gcc to build it but some dependecies are linked to clang which is beyond my skill. This compiler blocks both embree and luxcorerender. See https://src.fedoraproject.org/rpms/ispc Luya On 2019-01-25 9:02 a.m., Jonathan Wakely wrote: > On 25/01/19 08:36 -0800, Luya Tshimbalanga wrote: >> On 2019-01-22 8:17 a.m., > Serge Guelton wrote: >>> >>> Hi Luya, >>> >>> Clang does not support the -fstack-clash-protection flag. We used to silently ignore that flag but it's no longer the case. >>> Why are you using clang to compile the package? The safe step is to use gcc, ot if clang is needed, to strip -fstack-clash-protection >>> from the flags passed to clang, but that's not future-proof (clang may end up supporting that flag). >>> >>> Hope it helps, >>> >>> Serge >>> >> >> Upstream reason. Trying to build with gcc will fail. See the attacked >> CMakeLists.txt from ispc-1.10.0 > > That says it wants to build with clang, but doesn't say why building > with GCC will fail. Is it due to a GCC bug? Is it something we can > fix? > ___ > devel mailing list -- devel@lists.fedoraproject.org > To unsubscribe send an email to devel-le...@lists.fedoraproject.org > Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html > List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines > List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org 0x5E528174D8A2609A.asc Description: application/pgp-keys ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Re: Attempt to update ispc
On 2019-01-29 12:26 p.m., Luya Tshimbalanga wrote: > Contacting upstream about the issue, a suggestion is use the built-in > script alloy.py to manually build llvm instead of using the stock model > i.e. llvm-devel. > > https://github.com/ispc/ispc/issues/1413#issuecomment-458654316 > > Any feedback? > > > Luya > > ___ > devel mailing list -- devel@lists.fedoraproject.org > To unsubscribe send an email to devel-le...@lists.fedoraproject.org > Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html > List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines > List Archives: > https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org Added spec file with suggested alloy.py script. Luya %global with_snapshot 0 %global commit e338aaaebcf0193e194b13267bc69e7a0ec4fa4d %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: ispc Version: 1.10.0 %if %{with_snapshot} Release: 0.5.git.20190102.%{shortcommit}%{?dist} %else Release: 2%{?dist} %endif Summary: C-based SPMD programming language compiler License: BSD URL: https://ispc.github.io/ %if %{with_snapshot} Source0: https://github.com/%{name}/%{name}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz %else Source0: https://github.com/%{name}/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz %endif BuildRequires: bison BuildRequires: cmake BuildRequires: clang BuildRequires: doxygen BuildRequires: flex BuildRequires: gcc-c++ BuildRequires: llvm-devel BuildRequires: ncurses-devel Requires: python2 BuildRequires: /usr/bin/pathfix.py BuildRequires: /usr/bin/python2 ExclusiveArch: %{arm} %{ix86} x86_64 # Hardcoded path from 32-bit glibc-devel needed to build # See https://github.com/ispc/ispc/wiki/Building-ispc:-Linux-and-Mac-OS-X %ifarch x86_64 BuildRequires: /usr/lib/crt1.o %endif BuildRequires: zlib-devel # Set verbose compilation and remove -Werror on Makefile Patch: 0002-Remove-uses-of-LLVM-dump-functions-and-verbose-makefile.patch %description A compiler for a variant of the C programming language, with extensions for "single program, multiple data" (SPMD) programming. %prep %if %{with_snapshot} %autosetup -p1 -n %{name}-%{commit} %else %autosetup -p1 -n %{name}-%{version} %endif sed -i 's|set(CMAKE_C_COMPILER "clang")|set(CMAKE_C_COMPILER "gcc")|g' CMakeLists.txt sed -i 's|set(CMAKE_CXX_COMPILER "clang++")|set(CMAKE_CXX_COMPILER "g++")|g' CMakeLists.txt # Fix all Python shebangs recursively in . pathfix.py -pni "%{__python2} %{py2_shbang_opts}" . # Manual build llvm allow.py -b %build # Disable test otherwise build fails %cmake -DISPC_INCLUDE_TESTS=OFF \ -DCMAKE_BUILD_TYPE=release \ . %make_build gcc OPT="%{optflags} -fPIC" LDFLAGS="%{__global_ldflags} -fPIC" %install install -Dpm 0755 %{name} %{buildroot}%{_bindir}/%{name} %files %license LICENSE.txt %{_bindir}/%{name} %changelog * Sat Jan 19 2019 Luya Tshimbalanga - 1.10.0-2 - Patch for Makefile and remove llvm dump * Sat Jan 19 2019 Luya Tshimbalanga - 1.10.0-1 - Update to 1.10.0 * Wed Dec 26 2018 Luya Tshimbalanga - 1.9.3-0.5.git.20190102.e338aaa - Git snasphot 20190102 * Wed Dec 26 2018 Luya Tshimbalanga - 1.9.3-0.4.git.20181220.1e4bfb7 - Git snasphot 20181220 * Tue Nov 06 2018 Luya Tshimbalanga - 1.9.3-0.3.git.20181106.3d846b - Git snasphot 1.9.3 * Fri Jul 13 2018 Fedora Release Engineering - 1.9.3-0.3.git.20180222.07fe054 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Mar 15 2018 Iryna Shcherbina - 1.9.3-0.2.git.20180222.07fe054 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wikiComponents/FinalizingFedoraSwitchtoPython3) * Sat Mar 03 2018 Luya Tshimbalanga - 1.9.3-0.1.git.20180222.07fe054 - Update to 1.9.3 git snapshot - Use new guideline versioning semantique for snapshot * Fri Mar 02 2018 Luya Tshimbalanga - 1.9.2-1 - Update to 1.9.2 * Wed Feb 07 2018 Fedora Release Engineering - 1.9.1-18.git.20171023.6dc0ccc - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Tue Oct 24 2017 Tom Stellard - 1.9.1-17.git.20171023.6dc0ccc - Rebase to more current snapshot for LLVM 5.0 support. * Wed Aug 02 2017 Fedora Release Engineering - 1.9.1-16.git.20170324.a618ad4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 1.9.1-15.git.20170324.a618ad4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Thu May 25 2017 Peter Robinson 1.9.1-14.git.20170324.a618ad4 - Rebuild clang/llvm-4 * Mon May 15 2017 Fedora Release Engineering - 1.9.1-13.git.20170324.a618ad4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild * Fri Mar 24 2017 Igor Gnatenko - 1.9.1-12.git.20170324.a618ad4 - Update to git snapshot which support LLVM4 * Thu Mar 16 2017 Luya Tshimbalanga - 1.9.1-11 - Rebuild for llvm 3.9 * Fri Feb 10 2017 Fedora Release Engineering - 1.9.1-10 - Rebuilt for
Re: Attempt to update ispc
Contacting upstream about the issue, a suggestion is use the built-in script alloy.py to manually build llvm instead of using the stock model i.e. llvm-devel. https://github.com/ispc/ispc/issues/1413#issuecomment-458654316 Any feedback? Luya ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Re: Attempt to update ispc
Here is. Filed the bug to upstream: https://github.com/ispc/ispc/issues/1413 Luya ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Re: Attempt to update ispc
On Tue, Jan 29, 2019 at 6:03 PM Luya Tshimbalanga wrote: > > -BEGIN PGP MESSAGE- > Charset: UTF-8 I guess the encrypted garble garble below happened by accident - you might want to send your message again without encrypting it. Fabio > hQEMAyZZ5X4GTmHqAQgA3r4Bs+wCUHFsVqpIPN5v0tFnaioogOKYTrDgA9MTKzzV > GuEEdfFctzFOZw9eAiu7lIYZn41Ajpx7pGD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vFL4GHg2CQRpCLCuz7Qab0WUP4v6v0/FvOP+poDKxZdahVreed1DZ > LSiih/piAz1GG3imiIr20uxRgyBWo7Kt0jL6JthYszWGerkgwQeH8wAlfG5fQWZp > gUZzaywXQ7EWD9HpA69IeNhblBxrxpTJEya15WORLZtk/1qk47c0cQfgkS+1Rd1e > wSxs/IZyV+voAkTbHIWG7QCSHIP/ifg/Q/vHe6LBJN/ATqkvryqQDS/Lr32jbRP4 > 3sg2UroeWoYFjsb+2XjxyTWNXiFJ1RE2uQNnO7el5K58w+ROhJd120XQV6kAULaV > Dswb7M6l/9qbcOQyC1kGz4axc3QeNVdlFSUcyMTmNN8tMXHMNwgpeWeRqiNNc7/j > zVELKN42l3VP0bDFVEwK0elbU2IFqE8EMuOmVRlldDB8RmO0oqrtTwZVZb7CCLE8 > 7SHqLkIzAnXGASl9 > =a/zz > -END PGP MESSAGE- > ___ > devel mailing list -- devel@lists.fedoraproject.org > To unsubscribe send an email to devel-le...@lists.fedoraproject.org > Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html > List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines > List Archives: > https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Re: Attempt to update ispc
-BEGIN PGP MESSAGE- Charset: UTF-8 hQEMAyZZ5X4GTmHqAQgA3r4Bs+wCUHFsVqpIPN5v0tFnaioogOKYTrDgA9MTKzzV GuEEdfFctzFOZw9eAiu7lIYZn41Ajpx7pGDjgxXJYsnhBKmL/n5BLrQ+hlG4FYcM LcT/O5DQjwgndjwsx9QlsHoCrk12lMCcGZLPX+w0Gjc1d8uMofQ3F9iZpr71zq99 6FF/hmpEghytBTnqL/0BPMu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/1qk47c0cQfgkS+1Rd1e wSxs/IZyV+voAkTbHIWG7QCSHIP/ifg/Q/vHe6LBJN/ATqkvryqQDS/Lr32jbRP4 3sg2UroeWoYFjsb+2XjxyTWNXiFJ1RE2uQNnO7el5K58w+ROhJd120XQV6kAULaV Dswb7M6l/9qbcOQyC1kGz4axc3QeNVdlFSUcyMTmNN8tMXHMNwgpeWeRqiNNc7/j zVELKN42l3VP0bDFVEwK0elbU2IFqE8EMuOmVRlldDB8RmO0oqrtTwZVZb7CCLE8 7SHqLkIzAnXGASl9 =a/zz -END PGP MESSAGE- ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Re: Attempt to update ispc
* Dridi Boukelmoune: >> I've seen this errror before. It's uusally caused by upstream accidentally >> overriding CFLAGS instead appending to already set CFLAGS, which breaks >> fedora builds. Look for something like "set *CFLAGS* (foo bar)" in >> CMakeLists.txt files, and change it to *append* to the already existing >> value (coming from fedora settings), instead of overriding it. > > Actually, upstream should prepend its own CFLAGS et al to give > precedence to user-defined flags. The ispc compiler unfortunately has a completely different command line syntax from what we use in CFLAGS, so this is not going to work anyway. Thanks, Florian ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Re: Attempt to update ispc
> I've seen this errror before. It's uusally caused by upstream accidentally > overriding CFLAGS instead appending to already set CFLAGS, which breaks > fedora builds. Look for something like "set *CFLAGS* (foo bar)" in > CMakeLists.txt files, and change it to *append* to the already existing value > (coming from fedora settings), instead of overriding it. Actually, upstream should prepend its own CFLAGS et al to give precedence to user-defined flags. Dridi ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Re: Attempt to update ispc
* Luya Tshimbalanga: > I managed to resolve some issue but now the problem is related to the > hardened part: > > https://koji.fedoraproject.org/koji/taskinfo?taskID=32324093 > > Here is the following lines for the failure: > > BUILDSTDERR: /usr/bin/ld: kernels_ispc_sse2.o: relocation R_X86_64_32 > against symbol > `RenderTile___uniuniREFs_5B_unInputHeader_5D_REFs_5B_unInputDataArrays_5D_uniun_3C_unT_3E_un_3C_unT_3E_un_3C_unT_3E_sse2' > can not be used when making a PIE object; recompile with -fPIC > BUILDSTDERR: /usr/bin/ld: kernels_ispc_sse4.o: relocation R_X86_64_32S > against `.rodata.cst16' can not be used when making a PIE object; > recompile with -fPIC > BUILDSTDERR: /usr/bin/ld: kernels_ispc_avx.o: relocation R_X86_64_32 > against symbol > `RenderTile___uniuniREFs_5B_unInputHeader_5D_REFs_5B_unInputDataArrays_5D_uniun_3C_unT_3E_un_3C_unT_3E_un_3C_unT_3E_avx' > can not be used when making a PIE object; recompile with -fPIC > BUILDSTDERR: /usr/bin/ld: kernels_ispc_avx2.o: relocation R_X86_64_32S > against `.rodata.cst32' can not be used when making a PIE object; > recompile with -fPIC > BUILDSTDERR: /usr/bin/ld: kernels_ispc_avx512knl.o: relocation > R_X86_64_32 against symbol > `RenderTile___uniuniREFs_5B_unInputHeader_5D_REFs_5B_unInputDataArrays_5D_uniun_3C_unT_3E_un_3C_unT_3E_un_3C_unT_3E_avx512knl' > can not be used when making a PIE object; recompile with -fPIC > BUILDSTDERR: /usr/bin/ld: kernels_ispc_avx512skx.o: relocation > R_X86_64_32 against symbol > `RenderTile___uniuniREFs_5B_unInputHeader_5D_REFs_5B_unInputDataArrays_5D_uniun_3C_unT_3E_un_3C_unT_3E_un_3C_unT_3E_avx512skx' > can not be used when making a PIE object; recompile with -fPIC > BUILDSTDERR: /usr/bin/ld: final link failed: nonrepresentable section on > output > BUILDSTDERR: collect2: error: ld returned 1 exit status > BUILDSTDERR: make[2]: *** > [examples/deferred/CMakeFiles/deferred_shading.dir/build.make:204: > bin/deferred_shading] Error 1 > BUILDSTDERR: make[1]: *** [CMakeFiles/Makefile2:370: > examples/deferred/CMakeFiles/deferred_shading.dir/all] Error 2 > BUILDSTDERR: make: *** [Makefile:133: all] Error 2 I tried to build with --pic, using the attached patch, but got this: [ 68%] Generating perfbench_ispc.h, perfbench_ispc.o, perfbench_ispc_sse2.h, perfbench_ispc_sse2.o, perfbench_ispc_sse4.h, perfbench_ispc_sse4.o, perfbench_ispc_avx.h, perfbench_ispc_avx.o, perfbench_ispc_avx2.h, perfbench_ispc_avx2.o, perfbench_ispc_avx512knl.h, perfbench_ispc_avx512knl.o, perfbench_ispc_avx512skx.h, perfbench_ispc_avx512skx.o cd /builddir/build/BUILD/ispc-1.10.0/examples/perfbench && ../../bin/ispc /builddir/build/BUILD/ispc-1.10.0/examples/perfbench/perfbench.ispc --pic --target=sse2-i32x4,sse4-i32x4,avx1-i32x8,avx2-i32x8,avx512knl-i32x16,avx512skx-i32x16 --arch=x86-64 -h /builddir/build/BUILD/ispc-1.10.0/examples/perfbench/perfbench_ispc.h -o /builddir/build/BUILD/ispc-1.10.0/examples/perfbench/perfbench_ispc.o make[2]: Leaving directory '/builddir/build/BUILD/ispc-1.10.0' BUILDSTDERR: /builddir/build/BUILD/ispc-1.10.0/src/main.cpp(353): FATAL ERROR: Unhandled signal sent to process; terminating. BUILDSTDERR: *** BUILDSTDERR: *** Please file a bug report at https://github.com/ispc/ispc/issues BUILDSTDERR: *** (Including as much information as you can about how to reproduce this error). BUILDSTDERR: *** You have apparently encountered a bug in the compiler that we'd like to fix! BUILDSTDERR: *** BUILDSTDERR: make[2]: *** [examples/perfbench/CMakeFiles/perfbench.dir/build.make:65: examples/perfbench/perfbench_ispc.h] Aborted (core dumped) This looks like something upstream needs to investigate. 8-( Thanks, Florian The examples are linked as PIE, so position-independent code is needed. ispc only supports --pic, so use that. diff --git a/examples/cmake/AddISPCExample.cmake b/examples/cmake/AddISPCExample.cmake index dbd80e7643b9f803..a88d2e5279fad32a 100644 --- a/examples/cmake/AddISPCExample.cmake +++ b/examples/cmake/AddISPCExample.cmake @@ -93,7 +93,7 @@ function(add_ispc_example) endif() # ISPC command add_custom_command(OUTPUT ${ISPC_BUILD_OUTPUT} -COMMAND ${ISPC_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/${ISPC_SRC_NAME}.ispc ${example_ISPC_FLAGS} --target=${ISPC_TARGETS} --arch=${ISPC_ARCH} +COMMAND ${ISPC_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/${ISPC_SRC_NAME}.ispc ${example_ISPC_FLAGS} --pic --target=${ISPC_TARGETS} --arch=${ISPC_ARCH} -h ${ISPC_HEADER_NAME} -o ${ISPC_OBJ_NAME} VERBATIM DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/${ISPC_SRC_NAME}.ispc") ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives:
Re: Attempt to update ispc
On Tue, Jan 29, 2019, 05:21 Luya Tshimbalanga I managed to resolve some issue but now the problem is related to the > hardened part: > > https://koji.fedoraproject.org/koji/taskinfo?taskID=32324093 > > Here is the following lines for the failure: > > BUILDSTDERR: /usr/bin/ld: kernels_ispc_sse2.o: relocation R_X86_64_32 > against symbol > > `RenderTile___uniuniREFs_5B_unInputHeader_5D_REFs_5B_unInputDataArrays_5D_uniun_3C_unT_3E_un_3C_unT_3E_un_3C_unT_3E_sse2' > can not be used when making a PIE object; recompile with -fPIC > BUILDSTDERR: /usr/bin/ld: kernels_ispc_sse4.o: relocation R_X86_64_32S > against `.rodata.cst16' can not be used when making a PIE object; > recompile with -fPIC > I've seen this errror before. It's uusally caused by upstream accidentally overriding CFLAGS instead appending to already set CFLAGS, which breaks fedora builds. Look for something like "set *CFLAGS* (foo bar)" in CMakeLists.txt files, and change it to *append* to the already existing value (coming from fedora settings), instead of overriding it. Fabio BUILDSTDERR: /usr/bin/ld: kernels_ispc_avx.o: relocation R_X86_64_32 > against symbol > > `RenderTile___uniuniREFs_5B_unInputHeader_5D_REFs_5B_unInputDataArrays_5D_uniun_3C_unT_3E_un_3C_unT_3E_un_3C_unT_3E_avx' > can not be used when making a PIE object; recompile with -fPIC > BUILDSTDERR: /usr/bin/ld: kernels_ispc_avx2.o: relocation R_X86_64_32S > against `.rodata.cst32' can not be used when making a PIE object; > recompile with -fPIC > BUILDSTDERR: /usr/bin/ld: kernels_ispc_avx512knl.o: relocation > R_X86_64_32 against symbol > > `RenderTile___uniuniREFs_5B_unInputHeader_5D_REFs_5B_unInputDataArrays_5D_uniun_3C_unT_3E_un_3C_unT_3E_un_3C_unT_3E_avx512knl' > can not be used when making a PIE object; recompile with -fPIC > BUILDSTDERR: /usr/bin/ld: kernels_ispc_avx512skx.o: relocation > R_X86_64_32 against symbol > > `RenderTile___uniuniREFs_5B_unInputHeader_5D_REFs_5B_unInputDataArrays_5D_uniun_3C_unT_3E_un_3C_unT_3E_un_3C_unT_3E_avx512skx' > can not be used when making a PIE object; recompile with -fPIC > BUILDSTDERR: /usr/bin/ld: final link failed: nonrepresentable section on > output > BUILDSTDERR: collect2: error: ld returned 1 exit status > BUILDSTDERR: make[2]: *** > [examples/deferred/CMakeFiles/deferred_shading.dir/build.make:204: > bin/deferred_shading] Error 1 > BUILDSTDERR: make[1]: *** [CMakeFiles/Makefile2:370: > examples/deferred/CMakeFiles/deferred_shading.dir/all] Error 2 > BUILDSTDERR: make: *** [Makefile:133: all] Error 2 > > > > Luya > ___ > devel mailing list -- devel@lists.fedoraproject.org > To unsubscribe send an email to devel-le...@lists.fedoraproject.org > Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html > List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines > List Archives: > https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org > ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Re: Attempt to update ispc
I managed to resolve some issue but now the problem is related to the hardened part: https://koji.fedoraproject.org/koji/taskinfo?taskID=32324093 Here is the following lines for the failure: BUILDSTDERR: /usr/bin/ld: kernels_ispc_sse2.o: relocation R_X86_64_32 against symbol `RenderTile___uniuniREFs_5B_unInputHeader_5D_REFs_5B_unInputDataArrays_5D_uniun_3C_unT_3E_un_3C_unT_3E_un_3C_unT_3E_sse2' can not be used when making a PIE object; recompile with -fPIC BUILDSTDERR: /usr/bin/ld: kernels_ispc_sse4.o: relocation R_X86_64_32S against `.rodata.cst16' can not be used when making a PIE object; recompile with -fPIC BUILDSTDERR: /usr/bin/ld: kernels_ispc_avx.o: relocation R_X86_64_32 against symbol `RenderTile___uniuniREFs_5B_unInputHeader_5D_REFs_5B_unInputDataArrays_5D_uniun_3C_unT_3E_un_3C_unT_3E_un_3C_unT_3E_avx' can not be used when making a PIE object; recompile with -fPIC BUILDSTDERR: /usr/bin/ld: kernels_ispc_avx2.o: relocation R_X86_64_32S against `.rodata.cst32' can not be used when making a PIE object; recompile with -fPIC BUILDSTDERR: /usr/bin/ld: kernels_ispc_avx512knl.o: relocation R_X86_64_32 against symbol `RenderTile___uniuniREFs_5B_unInputHeader_5D_REFs_5B_unInputDataArrays_5D_uniun_3C_unT_3E_un_3C_unT_3E_un_3C_unT_3E_avx512knl' can not be used when making a PIE object; recompile with -fPIC BUILDSTDERR: /usr/bin/ld: kernels_ispc_avx512skx.o: relocation R_X86_64_32 against symbol `RenderTile___uniuniREFs_5B_unInputHeader_5D_REFs_5B_unInputDataArrays_5D_uniun_3C_unT_3E_un_3C_unT_3E_un_3C_unT_3E_avx512skx' can not be used when making a PIE object; recompile with -fPIC BUILDSTDERR: /usr/bin/ld: final link failed: nonrepresentable section on output BUILDSTDERR: collect2: error: ld returned 1 exit status BUILDSTDERR: make[2]: *** [examples/deferred/CMakeFiles/deferred_shading.dir/build.make:204: bin/deferred_shading] Error 1 BUILDSTDERR: make[1]: *** [CMakeFiles/Makefile2:370: examples/deferred/CMakeFiles/deferred_shading.dir/all] Error 2 BUILDSTDERR: make: *** [Makefile:133: all] Error 2 Luya ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Re: Attempt to update ispc
* Luya Tshimbalanga: > On 2019-01-27 2:00 p.m., Florian Weimer wrote: >> * Luya Tshimbalanga: >> >>> On 2019-01-26 12:24 a.m., Dominik 'Rathann' Mierzejewski wrote: I would try patching out the clang requirement from CMakeLists and building with system gcc. Regards, Dominik >>> Done. Unfortunately, the build failed as the compiler still remains >>> clang and finding the cause is beyond my knowledge. Here is the resulted >>> scratch build: >>> >>> >>> https://koji.fedoraproject.org/koji/taskinfo?taskID=32277096 >> Which sources are you building? Nothing like this is on the master >> branch on src.fedoraproject.org. >> >> Thanks, >> Florian > I avoided committing the update as I preferred to do a scratch-build > hence the link from koji. > Realizing the change can be seen on the master branch on > src.fedoraproject.org, I applied the update for view: > https://src.fedoraproject.org/rpms/ispc/blob/master/f/ispc.spec Sorry, the rawhide build now fails for me with: m4 -Ibuiltins/ -DLLVM_VERSION=LLVM_7_0 -DBUILD_OS=UNIX builtins/dispatch.ll | python bitcode2cpp.py builtins/dispatch.ll > objs/builtins-dispatch.cpp BUILDSTDERR: /bin/sh: python: command not found BUILDSTDERR: make: *** [Makefile:330: objs/builtins-dispatch.cpp] Error 127 This looks completely unrelated to clang. Thanks, Florian ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Re: Attempt to update ispc
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 2019-01-27 2:00 p.m., Florian Weimer wrote: > * Luya Tshimbalanga: > >> On 2019-01-26 12:24 a.m., Dominik 'Rathann' Mierzejewski wrote: >>> I would try patching out the clang requirement from CMakeLists >>> and building with system gcc. >>> >>> Regards, >>> Dominik >> Done. Unfortunately, the build failed as the compiler still remains >> clang and finding the cause is beyond my knowledge. Here is the resulted >> scratch build: >> >> >> https://koji.fedoraproject.org/koji/taskinfo?taskID=32277096 > Which sources are you building? Nothing like this is on the master > branch on src.fedoraproject.org. > > Thanks, > Florian I avoided committing the update as I preferred to do a scratch-build hence the link from koji. Realizing the change can be seen on the master branch on src.fedoraproject.org, I applied the update for view: https://src.fedoraproject.org/rpms/ispc/blob/master/f/ispc.spec I figured that gcc parameter was missing on %make_build and the failure occurred on python line despite the available dependency: https://koji.fedoraproject.org/koji/taskinfo?taskID=32307602 Luya -BEGIN PGP SIGNATURE- iQEzBAEBCAAdFiEEWyB+BQtYiFz4GUNDXlKBdNiiYJoFAlxO1GoACgkQXlKBdNii YJpvLQgAoqqXkwQwMPwRjO6hQfETtcdU0R/OKJyaHXniTbFPf+stsNPR0YqKMWwD FuvGNq7S+KscQG9EgFFMnVc19LSWDPoA+9jQF3KkZJFyaI8THx/4ekgVKHz/DkFt lxL7UR3F++HWNwVfaBnJDOYm9+i8ZYRGMC8qw47i55NsfnuIMj5mNe30o0uvuIqP xRT077YDisgTE/7dq9dkvWDqLaosqA3hfrtZSmS4EtmCcBvJa++Af72HKkbvC15p SitFlMLxV46PwFDinxaSO0zyZQy/Su1nYRV6kGlA56ewEyGR6DJvgSd2IehFyo/F JNP1gM0ssc3EiKGzNd40ugHx7ZlnIw== =OZJV -END PGP SIGNATURE- ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Re: Attempt to update ispc
* Luya Tshimbalanga: > On 2019-01-26 12:24 a.m., Dominik 'Rathann' Mierzejewski wrote: >> >> I would try patching out the clang requirement from CMakeLists >> and building with system gcc. >> >> Regards, >> Dominik > > Done. Unfortunately, the build failed as the compiler still remains > clang and finding the cause is beyond my knowledge. Here is the resulted > scratch build: > > > https://koji.fedoraproject.org/koji/taskinfo?taskID=32277096 Which sources are you building? Nothing like this is on the master branch on src.fedoraproject.org. Thanks, Florian ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Re: Attempt to update ispc
On 2019-01-26 12:24 a.m., Dominik 'Rathann' Mierzejewski wrote: > > I would try patching out the clang requirement from CMakeLists > and building with system gcc. > > Regards, > Dominik Done. Unfortunately, the build failed as the compiler still remains clang and finding the cause is beyond my knowledge. Here is the resulted scratch build: https://koji.fedoraproject.org/koji/taskinfo?taskID=32277096 Luya %global with_snapshot 0 %global commit e338aaaebcf0193e194b13267bc69e7a0ec4fa4d %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: ispc Version: 1.10.0 %if %{with_snapshot} Release: 0.5.git.20190102.%{shortcommit}%{?dist} %else Release: 1%{?dist} %endif Summary: C-based SPMD programming language compiler License: BSD URL: https://ispc.github.io/ %if %{with_snapshot} Source0: https://github.com/%{name}/%{name}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz %else Source0: https://github.com/%{name}/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz %endif BuildRequires: llvm-devel BuildRequires: clang-devel BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: bison BuildRequires: doxygen BuildRequires: flex BuildRequires: ncurses-devel ExclusiveArch: %{arm} %{ix86} x86_64 # Hardcoded path from 32-bit glibc-devel needed to build # See https://github.com/ispc/ispc/wiki/Building-ispc:-Linux-and-Mac-OS-X %ifarch x86_64 BuildRequires: /usr/lib/crt1.o %endif BuildRequires: zlib-devel # Conditional build for f24 and less %if 0%{?fedora} < 25 || 0%{?rhel} < 7 BuildRequires: python2-devel %else BuildRequires: python3-devel %endif # Set verbose compilation and remove -Werror on Makefile #Patch0: Makefile.patch #Patch1: 0001-Remove-uses-of-LLVM-dump-functions.patch %description A compiler for a variant of the C programming language, with extensions for "single program, multiple data" (SPMD) programming. %prep %if %{with_snapshot} %autosetup -n %{name}-%{commit} %else %autosetup -n %{name}-%{version} %endif sed -i 's|set(CMAKE_C_COMPILER "clang")|set(CMAKE_C_COMPILER "gcc")|g' CMakeLists.txt sed -i 's|set(CMAKE_CXX_COMPILER "clang++")|set(CMAKE_CXX_COMPILER "g++")|g' CMakeLists.txt %build mkdir build pushd build # Disable test otherwise build fails %cmake -DISPC_INCLUDE_TESTS=OFF \ .. popd %make_build %install install -Dpm 0755 %{name} %{buildroot}%{_bindir}/%{name} %files %license LICENSE.txt %{_bindir}/%{name} %changelog * Sat Jan 19 2019 Luya Tshimbalanga - 1.10.0 - Update to 1.10.0 * Wed Dec 26 2018 Luya Tshimbalanga - 1.9.3-0.5.git.20190102.e338aaa - Git snasphot 20190102 * Wed Dec 26 2018 Luya Tshimbalanga - 1.9.3-0.4.git.20181220.1e4bfb7 - Git snasphot 20181220 * Tue Nov 06 2018 Luya Tshimbalanga - 1.9.3-0.3.git.20181106.3d846b - Git snasphot 1.9.3 * Fri Jul 13 2018 Fedora Release Engineering - 1.9.3-0.3.git.20180222.07fe054 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Mar 15 2018 Iryna Shcherbina - 1.9.3-0.2.git.20180222.07fe054 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wikiComponents/FinalizingFedoraSwitchtoPython3) * Sat Mar 03 2018 Luya Tshimbalanga - 1.9.3-0.1.git.20180222.07fe054 - Update to 1.9.3 git snapshot - Use new guideline versioning semantique for snapshot * Fri Mar 02 2018 Luya Tshimbalanga - 1.9.2-1 - Update to 1.9.2 * Wed Feb 07 2018 Fedora Release Engineering - 1.9.1-18.git.20171023.6dc0ccc - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Tue Oct 24 2017 Tom Stellard - 1.9.1-17.git.20171023.6dc0ccc - Rebase to more current snapshot for LLVM 5.0 support. * Wed Aug 02 2017 Fedora Release Engineering - 1.9.1-16.git.20170324.a618ad4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 1.9.1-15.git.20170324.a618ad4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Thu May 25 2017 Peter Robinson 1.9.1-14.git.20170324.a618ad4 - Rebuild clang/llvm-4 * Mon May 15 2017 Fedora Release Engineering - 1.9.1-13.git.20170324.a618ad4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild * Fri Mar 24 2017 Igor Gnatenko - 1.9.1-12.git.20170324.a618ad4 - Update to git snapshot which support LLVM4 * Thu Mar 16 2017 Luya Tshimbalanga - 1.9.1-11 - Rebuild for llvm 3.9 * Fri Feb 10 2017 Fedora Release Engineering - 1.9.1-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Sun Nov 06 2016 Luya Tshimbalanga - 1.9.1-9 - Rebuilt agaisnt llvm * Fri Aug 26 2016 Dan Horák 1.9.1-8 - set ExclusiveArch * Tue Aug 23 2016 Luya Tshimbalanga 1.9.1-7 - Added conditional build for Fedora 24- and rhel7- * Tue Aug 23 2016 Luya Tshimbalanga 1.9.1-6 - Included OPT and LDFLAGS on build line * Tue Aug 23 2016 Luya Tshimbalanga 1.9.1-5 - Improved patch to remove -Werror line - Removed unecesary CXXFLAGS and LDFLAGS on make_build line - Removed useless llvm-config * Sat Aug 20 2016 Luya Tshimbalanga 1.9.1-4 - Added gcc into
Re: Attempt to update ispc
On Saturday, 26 January 2019 at 02:20, Luya Tshimbalanga wrote: > On 2019-01-25 9:02 a.m., Jonathan Wakely wrote: > > > >> Upstream reason. Trying to build with gcc will fail. See the attacked > >> CMakeLists.txt from ispc-1.10.0 > > > > That says it wants to build with clang, but doesn't say why building > > with GCC will fail. Is it due to a GCC bug? Is it something we can > > fix? > > > My bad as I quickly wrote before leaving to work. Here is the updated > spec file and the result scratch build: > > https://koji.fedoraproject.org/koji/taskinfo?taskID=32250196 Well, obviously existing CMakeLists file enforces the use of clang. The developers seem to have a strong preference for clang. The issue tracker has a couple of closed issues around this topic: https://github.com/ispc/ispc/issues/1355 https://github.com/ispc/ispc/issues/1352 I would try patching out the clang requirement from CMakeLists and building with system gcc. Regards, Dominik -- Fedora https://getfedora.org | RPM Fusion http://rpmfusion.org There should be a science of discontent. People need hard times and oppression to develop psychic muscles. -- from "Collected Sayings of Muad'Dib" by the Princess Irulan ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Re: Attempt to update ispc
On 2019-01-25 9:02 a.m., Jonathan Wakely wrote: > >> Upstream reason. Trying to build with gcc will fail. See the attacked >> CMakeLists.txt from ispc-1.10.0 > > That says it wants to build with clang, but doesn't say why building > with GCC will fail. Is it due to a GCC bug? Is it something we can > fix? My bad as I quickly wrote before leaving to work. Here is the updated spec file and the result scratch build: https://koji.fedoraproject.org/koji/taskinfo?taskID=32250196 Luya %global with_snapshot 0 %global commit e338aaaebcf0193e194b13267bc69e7a0ec4fa4d %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: ispc Version: 1.10.0 %if %{with_snapshot} Release: 0.5.git.20190102.%{shortcommit}%{?dist} %else Release: 1%{?dist} %endif Summary: C-based SPMD programming language compiler License: BSD URL: https://ispc.github.io/ %if %{with_snapshot} Source0: https://github.com/%{name}/%{name}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz %else Source0: https://github.com/%{name}/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz %endif BuildRequires: llvm-devel BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: bison BuildRequires: doxygen BuildRequires: flex BuildRequires: ncurses-devel ExclusiveArch: %{arm} %{ix86} x86_64 # Hardcoded path from 32-bit glibc-devel needed to build # See https://github.com/ispc/ispc/wiki/Building-ispc:-Linux-and-Mac-OS-X %ifarch x86_64 BuildRequires: /usr/lib/crt1.o %endif BuildRequires: zlib-devel # Conditional build for f24 and less %if 0%{?fedora} < 25 || 0%{?rhel} < 7 BuildRequires: python2-devel %else BuildRequires: python3-devel %endif # Set verbose compilation and remove -Werror on Makefile #Patch0: Makefile.patch #Patch1: 0001-Remove-uses-of-LLVM-dump-functions.patch %description A compiler for a variant of the C programming language, with extensions for "single program, multiple data" (SPMD) programming. %prep %if %{with_snapshot} %autosetup -n %{name}-%{commit} %else %autosetup -n %{name}-%{version} %endif %build mkdir build pushd build %cmake -DCMAKE_CXX_COMPILER=gcc \ -DCMAKE_CXX_COMPILER=g++ \ .. %make_build popd %install install -Dpm 0755 %{name} %{buildroot}%{_bindir}/%{name} %files %license LICENSE.txt %{_bindir}/%{name} %changelog * Sat Jan 19 2019 Luya Tshimbalanga - 1.10.0 - Update to 1.10.0 * Wed Dec 26 2018 Luya Tshimbalanga - 1.9.3-0.5.git.20190102.e338aaa - Git snasphot 20190102 * Wed Dec 26 2018 Luya Tshimbalanga - 1.9.3-0.4.git.20181220.1e4bfb7 - Git snasphot 20181220 * Tue Nov 06 2018 Luya Tshimbalanga - 1.9.3-0.3.git.20181106.3d846b - Git snasphot 1.9.3 * Fri Jul 13 2018 Fedora Release Engineering - 1.9.3-0.3.git.20180222.07fe054 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Mar 15 2018 Iryna Shcherbina - 1.9.3-0.2.git.20180222.07fe054 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wikiComponents/FinalizingFedoraSwitchtoPython3) * Sat Mar 03 2018 Luya Tshimbalanga - 1.9.3-0.1.git.20180222.07fe054 - Update to 1.9.3 git snapshot - Use new guideline versioning semantique for snapshot * Fri Mar 02 2018 Luya Tshimbalanga - 1.9.2-1 - Update to 1.9.2 * Wed Feb 07 2018 Fedora Release Engineering - 1.9.1-18.git.20171023.6dc0ccc - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Tue Oct 24 2017 Tom Stellard - 1.9.1-17.git.20171023.6dc0ccc - Rebase to more current snapshot for LLVM 5.0 support. * Wed Aug 02 2017 Fedora Release Engineering - 1.9.1-16.git.20170324.a618ad4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 1.9.1-15.git.20170324.a618ad4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Thu May 25 2017 Peter Robinson 1.9.1-14.git.20170324.a618ad4 - Rebuild clang/llvm-4 * Mon May 15 2017 Fedora Release Engineering - 1.9.1-13.git.20170324.a618ad4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild * Fri Mar 24 2017 Igor Gnatenko - 1.9.1-12.git.20170324.a618ad4 - Update to git snapshot which support LLVM4 * Thu Mar 16 2017 Luya Tshimbalanga - 1.9.1-11 - Rebuild for llvm 3.9 * Fri Feb 10 2017 Fedora Release Engineering - 1.9.1-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Sun Nov 06 2016 Luya Tshimbalanga - 1.9.1-9 - Rebuilt agaisnt llvm * Fri Aug 26 2016 Dan Horák 1.9.1-8 - set ExclusiveArch * Tue Aug 23 2016 Luya Tshimbalanga 1.9.1-7 - Added conditional build for Fedora 24- and rhel7- * Tue Aug 23 2016 Luya Tshimbalanga 1.9.1-6 - Included OPT and LDFLAGS on build line * Tue Aug 23 2016 Luya Tshimbalanga 1.9.1-5 - Improved patch to remove -Werror line - Removed unecesary CXXFLAGS and LDFLAGS on make_build line - Removed useless llvm-config * Sat Aug 20 2016 Luya Tshimbalanga 1.9.1-4 - Added gcc into make_build line - Added patch against Makefile for verbose dialog - Use llvm-config * Sun Aug 14 2016 Luya Tshimbalanga 1.9.1-3 - Fixed
Re: Attempt to update ispc
On 25/01/19 08:36 -0800, Luya Tshimbalanga wrote: On 2019-01-22 8:17 a.m., Serge Guelton wrote: Hi Luya, Clang does not support the -fstack-clash-protection flag. We used to silently ignore that flag but it's no longer the case. Why are you using clang to compile the package? The safe step is to use gcc, ot if clang is needed, to strip -fstack-clash-protection from the flags passed to clang, but that's not future-proof (clang may end up supporting that flag). Hope it helps, Serge Upstream reason. Trying to build with gcc will fail. See the attacked CMakeLists.txt from ispc-1.10.0 That says it wants to build with clang, but doesn't say why building with GCC will fail. Is it due to a GCC bug? Is it something we can fix? ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Re: Attempt to update ispc
On 2019-01-22 8:17 a.m., Serge Guelton wrote: > > Hi Luya, > > Clang does not support the -fstack-clash-protection flag. We used to silently > ignore that flag but it's no longer the case. > Why are you using clang to compile the package? The safe step is to use gcc, > ot if clang is needed, to strip -fstack-clash-protection > from the flags passed to clang, but that's not future-proof (clang may end up > supporting that flag). > > Hope it helps, > > Serge > Upstream reason. Trying to build with gcc will fail. See the attacked CMakeLists.txt from ispc-1.10.0 Luya # # Copyright (c) 2018, Intel Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # #* Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # #* Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # #* Neither the name of Intel Corporation nor the names of its # contributors may be used to endorse or promote products derived from # this software without specific prior written permission. # # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS # IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED # TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A # PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER # OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR # PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # ispc CMakeLists.txt # cmake_minimum_required(VERSION 3.8) if (UNIX) set(CMAKE_C_COMPILER "clang") set(CMAKE_CXX_COMPILER "clang++") endif() set(PROJECT_NAME ispc) set(ISPC_BUILD TRUE) project(${PROJECT_NAME}) option(ARM_ENABLED "Enable ARM support" OFF) option(NVPTX_ENABLED "Enable NVPTX support" OFF) option(ISPC_INCLUDE_EXAMPLES "Generate build targets for the ISPC examples" ON) option(ISPC_INCLUDE_TESTS "Generate build targets for the ISPC tests." ON) option(ISPC_INCLUDE_UTILS "Generate build targets for the utils." ON) option(ISPC_PREPARE_PACKAGE "Generate build targets for ispc package" OFF) if (UNIX) option(ISPC_STATIC_STDCXX_LINK "Link statically with libstdc++ and libgcc" OFF) if (ISPC_PREPARE_PACKAGE AND (NOT APPLE)) option(ISPC_STATIC_LINK "Link statically" ON) else() option(ISPC_STATIC_LINK "Link statically" OFF) endif() option(ISPC_USE_ASAN "Build ispc with address sanitizer instrumentation using clang compiler" OFF) endif() # Use solution folders. set_property(GLOBAL PROPERTY USE_FOLDERS ON) set(OUTPUT_DEBUG Debug/bin) set(OUTPUT_RELEASE Release/bin) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bin ) if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE "Release") message(STATUS "Build type not specified: Use Release by default.") endif(NOT CMAKE_BUILD_TYPE) include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/FixWindowsPath.cmake) include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/LLVMConfig.cmake) include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/Git.cmake) include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/GenerateBuiltins.cmake) include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/Stdlib.cmake) find_package(PythonInterp 2.7 REQUIRED) if (NOT PYTHONINTERP_FOUND) message(FATAL_ERROR "Python interpreter is not found") endif() find_package(BISON 2.4 REQUIRED) if (BISON_FOUND) set(BISON_INPUT ${CMAKE_CURRENT_SOURCE_DIR}/src/parse.yy) set(BISON_CPP_OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/parse.cc) set(BISON_OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/parse.hh ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/parse.output) if (WIN32) win_path_to_cygwin(${BISON_INPUT} ${BISON_EXECUTABLE} BISON_INPUT) endif() add_custom_command ( OUTPUT ${BISON_CPP_OUTPUT} ${BISON_OUTPUT} COMMAND ${BISON_EXECUTABLE} -d -t -v --output=${BISON_CPP_OUTPUT} ${BISON_INPUT} COMMENT "Generating parse.cc" ) endif() find_package(FLEX 2.5 REQUIRED) if (FLEX_FOUND) set(FLEX_INPUT ${CMAKE_CURRENT_SOURCE_DIR}/src/lex.ll) set(FLEX_OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/lex.cpp) if (WIN32)
Re: Attempt to update ispc
On Sun, Jan 20, 2019 at 11:36:22AM -0800, Luya Tshimbalanga wrote: > Hello team, > > Upstream ispc updated to 1.10.0. Unfortunately, the build failed with > broken clang++ compiler according to koji > (https://koji.fedoraproject.org/koji/taskinfo?taskID=32150411) > > Can someone investigate the issue? This package is needed by embree, a > dependency for both Blender, luxcorerender and Yafaray. > > Thanks > > Luya > Hi Luya, Clang does not support the -fstack-clash-protection flag. We used to silently ignore that flag but it's no longer the case. Why are you using clang to compile the package? The safe step is to use gcc, ot if clang is needed, to strip -fstack-clash-protection from the flags passed to clang, but that's not future-proof (clang may end up supporting that flag). Hope it helps, Serge ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Attempt to update ispc
Hello team, Upstream ispc updated to 1.10.0. Unfortunately, the build failed with broken clang++ compiler according to koji (https://koji.fedoraproject.org/koji/taskinfo?taskID=32150411) Can someone investigate the issue? This package is needed by embree, a dependency for both Blender, luxcorerender and Yafaray. Thanks Luya %global with_snapshot 0 %global commit e338aaaebcf0193e194b13267bc69e7a0ec4fa4d %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: ispc Version: 1.10.0 %if %{with_snapshot} Release: 0.5.git.20190102.%{shortcommit}%{?dist} %else Release: 1%{?dist} %endif Summary: C-based SPMD programming language compiler License: BSD URL: https://ispc.github.io/ %if %{with_snapshot} Source0: https://github.com/%{name}/%{name}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz %else Source0: https://github.com/%{name}/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz %endif BuildRequires: llvm-devel BuildRequires: clang-devel BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: bison BuildRequires: doxygen BuildRequires: flex BuildRequires: ncurses-devel ExclusiveArch: %{arm} %{ix86} x86_64 # Hardcoded path from 32-bit glibc-devel needed to build # See https://github.com/ispc/ispc/wiki/Building-ispc:-Linux-and-Mac-OS-X %ifarch x86_64 BuildRequires: /usr/lib/crt1.o %endif BuildRequires: zlib-devel # Conditional build for f24 and less %if 0%{?fedora} < 25 || 0%{?rhel} < 7 BuildRequires: python2-devel %else BuildRequires: python3-devel %endif # Set verbose compilation and remove -Werror on Makefile # Patch0: Makefile.patch # Patch1: 0001-Remove-uses-of-LLVM-dump-functions.patch %description A compiler for a variant of the C programming language, with extensions for "single program, multiple data" (SPMD) programming. %prep %if %{with_snapshot} %autosetup -n %{name}-%{commit} %else %autosetup -n %{name}-%{version} %endif %build mkdir build pushd build %cmake -DCMAKE_CXX_COMPILER=clang++ .. popd %make_build gcc OPT="%{optflags}" LDFLAGS="%{__global_ldflags}" %install install -Dpm 0755 %{name} %{buildroot}%{_bindir}/%{name} %files %license LICENSE.txt %{_bindir}/%{name} %changelog * Sat Jan 19 2019 Luya Tshimbalanga - 1.10.0 - Update to 1.10.0 * Wed Dec 26 2018 Luya Tshimbalanga - 1.9.3-0.5.git.20190102.e338aaa - Git snasphot 20190102 * Wed Dec 26 2018 Luya Tshimbalanga - 1.9.3-0.4.git.20181220.1e4bfb7 - Git snasphot 20181220 * Tue Nov 06 2018 Luya Tshimbalanga - 1.9.3-0.3.git.20181106.3d846b - Git snasphot 1.9.3 * Fri Jul 13 2018 Fedora Release Engineering - 1.9.3-0.3.git.20180222.07fe054 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Mar 15 2018 Iryna Shcherbina - 1.9.3-0.2.git.20180222.07fe054 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wikiComponents/FinalizingFedoraSwitchtoPython3) * Sat Mar 03 2018 Luya Tshimbalanga - 1.9.3-0.1.git.20180222.07fe054 - Update to 1.9.3 git snapshot - Use new guideline versioning semantique for snapshot * Fri Mar 02 2018 Luya Tshimbalanga - 1.9.2-1 - Update to 1.9.2 * Wed Feb 07 2018 Fedora Release Engineering - 1.9.1-18.git.20171023.6dc0ccc - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Tue Oct 24 2017 Tom Stellard - 1.9.1-17.git.20171023.6dc0ccc - Rebase to more current snapshot for LLVM 5.0 support. * Wed Aug 02 2017 Fedora Release Engineering - 1.9.1-16.git.20170324.a618ad4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 1.9.1-15.git.20170324.a618ad4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Thu May 25 2017 Peter Robinson 1.9.1-14.git.20170324.a618ad4 - Rebuild clang/llvm-4 * Mon May 15 2017 Fedora Release Engineering - 1.9.1-13.git.20170324.a618ad4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild * Fri Mar 24 2017 Igor Gnatenko - 1.9.1-12.git.20170324.a618ad4 - Update to git snapshot which support LLVM4 * Thu Mar 16 2017 Luya Tshimbalanga - 1.9.1-11 - Rebuild for llvm 3.9 * Fri Feb 10 2017 Fedora Release Engineering - 1.9.1-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Sun Nov 06 2016 Luya Tshimbalanga - 1.9.1-9 - Rebuilt agaisnt llvm * Fri Aug 26 2016 Dan Horák 1.9.1-8 - set ExclusiveArch * Tue Aug 23 2016 Luya Tshimbalanga 1.9.1-7 - Added conditional build for Fedora 24- and rhel7- * Tue Aug 23 2016 Luya Tshimbalanga 1.9.1-6 - Included OPT and LDFLAGS on build line * Tue Aug 23 2016 Luya Tshimbalanga 1.9.1-5 - Improved patch to remove -Werror line - Removed unecesary CXXFLAGS and LDFLAGS on make_build line - Removed useless llvm-config * Sat Aug 20 2016 Luya Tshimbalanga 1.9.1-4 - Added gcc into make_build line - Added patch against Makefile for verbose dialog - Use llvm-config * Sun Aug 14 2016 Luya Tshimbalanga 1.9.1-3 - Fixed spec - Added missing cflags for build - Added zlib-devel for dependency * Sun Aug 14 2016 Luya