From: Sangjung Woo Date: Thu, 20 Jun 2024 02:18:33 +0000 (+0900) Subject: [Spec] Fixed the build error for gcc-14 X-Git-Tag: accepted/tizen/9.0/unified/20241030.232535^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Ftizen;p=platform%2Fupstream%2Fpytorch.git [Spec] Fixed the build error for gcc-14 This patch fixes the build error for gcc-v14. Change-Id: I2c5ef048470a882c703e4ea6e82ccfd17b4e6f49 Signed-off-by: Sangjung Woo --- diff --git a/packaging/pytorch.spec b/packaging/pytorch.spec index 77c2975..6273c37 100644 --- a/packaging/pytorch.spec +++ b/packaging/pytorch.spec @@ -120,8 +120,8 @@ export PYTHONPATH="$PYTHONPATH:./packaging/python_module" mkdir -p build pushd build alias python=python3 -CFLAGS=`echo $CFLAGS | sed -e "s|-Wall|-Wall -Wno-unused-function -Wno-array-parameter -Wno-missing-braces -Wno-nonnull|"` -CXXFLAGS=`echo $CXXFLAGS | sed -e "s|-Wall|-Wall -Wno-unused-function -Wno-array-parameter -Wno-missing-braces -Wno-nonnull|"` +CFLAGS=`echo $CFLAGS | sed -e "s|-Wall|-Wall -Wno-unused-function -Wno-missing-braces -Wno-nonnull -Wno-tautological-compare -Wno-incompatible-pointer-types|g"` +CXXFLAGS=`echo $CXXFLAGS | sed -e "s|-Wall|-Wall -Wno-unused-function -Wno-missing-braces -Wno-nonnull -Wno-tautological-compare|g"` cmake .. \ -DCMAKE_INSTALL_PREFIX=./install \ -DCMAKE_VERBOSE_MAKEFILE=1 \