From a2fdb8b980d76aa912b6385e2379853746e40905 Mon Sep 17 00:00:00 2001 From: desert-sailor Date: Thu, 17 Aug 2023 17:56:15 +0800 Subject: [PATCH] Fix the EulerMaker failure (cherry picked from commit 17e6cf0ccf3eded2d41b1d7c064d0d984d17d583) --- pytorch.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pytorch.spec b/pytorch.spec index ba89b7f..ba23d65 100644 --- a/pytorch.spec +++ b/pytorch.spec @@ -1,7 +1,7 @@ %global _empty_manifest_terminate_build 0 Name: pytorch Version: 2.0.1 -Release: 1 +Release: 2 Summary: Tensors and Dynamic neural networks in Python with strong GPU acceleration License: BSD-3 URL: https://pytorch.org/ @@ -54,8 +54,8 @@ You can reuse your favorite Python packages such as NumPy, SciPy and Cython to e %autosetup -p1 -n %{name}-v%{version} %build -export CFLAGS+=" -Wno-error=maybe-uninitialized -Wno-error=uninitialized -Wno-error=restrict" -export CXXFLAGS+=" -Wno-error=maybe-uninitialized -Wno-error=uninitialized -Wno-error=restrict" +export CFLAGS+=" -Wno-error=maybe-uninitialized -Wno-error=uninitialized -Wno-error=restrict -fPIC" +export CXXFLAGS+=" -Wno-error=maybe-uninitialized -Wno-error=uninitialized -Wno-error=restrict -fPIC" %pyproject_build %install @@ -85,6 +85,9 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog +* Thu Aug 17 2023 Dongxing Wang - 2.0.1-2 +- Fix the EulerMaker failure for verion 2.0.1 + * Mon Jul 24 2023 Dongxing Wang - 2.0.1-1 - upgrade to 2.0.1 -- Gitee