From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 8FA57488DD for ; Wed, 20 Dec 2023 12:43:02 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id EBDD568D1F6; Wed, 20 Dec 2023 14:42:58 +0200 (EET) Received: from mail-lj1-f171.google.com (mail-lj1-f171.google.com [209.85.208.171]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id DCA9D68D181 for ; Wed, 20 Dec 2023 14:42:51 +0200 (EET) Received: by mail-lj1-f171.google.com with SMTP id 38308e7fff4ca-2cc6d9b4c6aso44369871fa.3 for ; Wed, 20 Dec 2023 04:42:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=martin-st.20230601.gappssmtp.com; s=20230601; t=1703076171; x=1703680971; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=IOOUPkmXK4pPBBj1GYhFbyQu8FI3vIItUPb9IzczmEU=; b=TEMJRjk9n3UVEaefznaOkXWKl3+ZISpeu3mC4kxJLZfc6tt5r6H5GNnl5aHqLNjWNm tExfn658Go7JX8+F7wF8BbF93ffqHfIWVrmpDr3BL+zgHomavoceDzq2aJpd+zZD6n3I lBtQlnGwPaQcjw1CF6VSHO34lfkbLd3kw+FYvbswhbWgMss9rmYMWwrGkp7+iUYiGkgl jOIgWv/WItwWkTppQ49L5Qb85jWOzfqU5msuDhVPloAFDtoj7Ygo6rgdFA1dOMdnIn6N 6WK17U76N5cWVfPsdfTly/ZeGkx+05IEl3iARAe4b9Etje+TN+jGTiRDGok9OINzfJMt 6t/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703076171; x=1703680971; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=IOOUPkmXK4pPBBj1GYhFbyQu8FI3vIItUPb9IzczmEU=; b=hi8WWV2WNVbpKsuD9JVmNbamlUzyUWwUhUpsIr6KF8Jq6O17iexWtbn88d+4wVI5K1 DwIAUtqc4F6AN6N/A1C+h2x8qDnZI7KCiYD6A8gShUbUTfaHwRjVVn6/rrh6NDb5cKFu w8lJ+bnRm0tcF7UrhJ07FSpmBV+OnYMgAC/2R7wm+BlEvbrtm/482ojTnjxRz4mZda6v SvN7nN7HNdKdxrwMoFb2MHTz4PxBUjdmANVN/pr7X9lAg8JfRNWeW9GZ+DJe485Svm6y hufUe30ySvleXlA8ISM+6I0tFz3S2pgpSzhT6TIXV3G4DWLxKPzuliSCG+tZ/5YrkrZC Hbog== X-Gm-Message-State: AOJu0YxQJjDPCkKKaRWUEE/zyM/VU5/T9PcorIDWJ7xmP6R3mAJ6kxcL qG/pBzh+bsFNGeg9mM1BCfBagsZQd6JeLp1nMQXuJw== X-Google-Smtp-Source: AGHT+IHJYAsnEJVJF2MsG5ztO1FfGm3kLNoALsE59pSN1XAPD53QgDeToYqVjSY7dO2kaUcw3/I9Jw== X-Received: by 2002:a2e:9792:0:b0:2cc:2fd5:dd2d with SMTP id y18-20020a2e9792000000b002cc2fd5dd2dmr100916lji.15.1703076170839; Wed, 20 Dec 2023 04:42:50 -0800 (PST) Received: from localhost (dsl-tkubng21-58c01c-243.dhcp.inet.fi. [88.192.28.243]) by smtp.gmail.com with ESMTPSA id z5-20020a2ebcc5000000b002cc540b56f9sm1751839ljp.3.2023.12.20.04.42.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 04:42:50 -0800 (PST) From: =?UTF-8?q?Martin=20Storsj=C3=B6?= To: ffmpeg-devel@ffmpeg.org Date: Wed, 20 Dec 2023 14:42:48 +0200 Message-Id: <20231220124248.2816809-1-martin@martin.st> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] configure: Disable inline assembly with nonlocal labels with LTO on Clang on Windows X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: The file libavcodec/x86/mlpdsp_init.c uses inline assembly with nonlocal labels that are referenced outside of the assembly in C. This fails to link with LTO when built with Clang when targeting Windows. The root cause has been reported upstream at https://github.com/llvm/llvm-project/issues/76046. Fixes: https://trac.ffmpeg.org/ticket/10548 --- configure | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/configure b/configure index 7742ea4ba2..b4f7c2de66 100755 --- a/configure +++ b/configure @@ -7372,6 +7372,16 @@ if [ -n "$lto" ]; then check_cflags $lto check_ldflags $lto $cpuflags disable inline_asm_direct_symbol_refs + if test "$cc_type" = "clang"; then + # Clang's LTO fails on Windows, when there are references outside + # of inline assembly to nonlocal labels defined within inline assembly, + # see https://github.com/llvm/llvm-project/issues/76046. + case $target_os in + mingw32|win32) + disable inline_asm_nonlocal_labels + ;; + esac + fi fi enabled ftrapv && check_cflags -ftrapv -- 2.34.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".