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 5847944BFB for ; Sat, 12 Nov 2022 23:10:08 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0755668B9F2; Sun, 13 Nov 2022 01:10:06 +0200 (EET) Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 0987168B77F for ; Sun, 13 Nov 2022 01:10:00 +0200 (EET) Received: by mail-ej1-f50.google.com with SMTP id y14so20241857ejd.9 for ; Sat, 12 Nov 2022 15:09:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=zSGILHElJUgYoGSrnKA5yzb53eHh+1iBx1Rg8zn9gws=; b=iHjUhawuY3HMEZH7TGn9ma19z9/Tzvt5eE1WGbPsF/h4NbfrlqdG6wSUDe05ALYSFy 7w3SUh8JejSxEl6lEaYonR0j1gPwPGGRlfjYcnQVeYYPtnO6Pj2ftgNJWria9czvfTn7 VYIia7CteL6XYHA2Dw8D1Uvdl0VJ5SHsv6TPGTnEbt/S3ZthVGUrn1ttt5MAk1Dvul9g UI3yj9bTCZ5+e6YDDmeSDtRG9/26i9us7b35JW50H2Eoa2HF/xcKilzgeUTIfr+PmKTD 2yu/aVZaWX/seTJObhq8jtXv4Xc3tJ3q6I850v7K+qjAs3ageIA3m3h6WGO0nvBXDcXe KiTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=zSGILHElJUgYoGSrnKA5yzb53eHh+1iBx1Rg8zn9gws=; b=U21KRss23SyvcmkgJ2Jm0GTesBMsLWY7o3VCYRK+jpVWSiN1L5ruDHeXFpA4UuwVOU D2fXbcmEukZNLNNKXIanPqO/7v78hY8VtrKCM+dYcT8o/L2Uxe4qbPqHblHsXDuNygcP lb0OhT7t13tHglcVheyAZ9OWUEV7YrDK3Kac+nv3W/l+jo7pLNbCB86yJMnj8enrzp4h KXlELjiB568jlNP/g/Ad3tF9LY/FLpwu/K8oZQ1ThDx82tb7ihDIadu7x3lyOZLxtGr/ 8DJGhuwh3e/LOOFFNozaHSYzt8qWm4BsFlgCwq6Y2vrpcFs50N37M+adqAZ/58X1a3BD VnbQ== X-Gm-Message-State: ANoB5pn+vnlN3PxHoB9ZprCk26aIVk7CUVJjsH6yoZNFrfNjPHNTkb/q qtxLtTLmOoQi8jyRNB4+aGMUutLCrQWBfDLAdiB5RgKY X-Google-Smtp-Source: AA0mqf4ItxkKYpVx42aGwtfdBH/ccHChPf7CJwtLMri62WtOHNzmDg9BGE7GmSb3m7zZvg+qbboKSrGIoMHMDhhI9Aw= X-Received: by 2002:a17:906:6852:b0:7ac:a2b7:6c96 with SMTP id a18-20020a170906685200b007aca2b76c96mr6113164ejs.412.1668294598955; Sat, 12 Nov 2022 15:09:58 -0800 (PST) MIME-Version: 1.0 References: <1ba17c0d-7a16-2fdb-1c85-74641994fff1@web.de> In-Reply-To: <1ba17c0d-7a16-2fdb-1c85-74641994fff1@web.de> From: "Ronald S. Bultje" Date: Sat, 12 Nov 2022 18:09:47 -0500 Message-ID: To: FFmpeg development discussions and patches X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Re: [FFmpeg-devel] [Question] Technical reason why FFmpeg sets a mstack-alignment value on compile time? 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: Hi, On Sat, Nov 12, 2022 at 1:57 PM Nomis101 wrote: > Hi.If building FFmpeg, configure does set a value for mstack-alignment, > for example on macOS > -mstack-alignment=16. On HandBrake we found there is an issue with current > Clang in Xcode about > conflicting 'override-stack-alignment' values if we build with ThinLTO. > > "ld: linking module flags 'override-stack-alignment': IDs have conflicting > values" > > I found out why this is. x264 does set -mstack-alignment=64 in configure, > FFmpeg does set > -mstack-alignment=16 and this seems to be a conflict when linking. If I > modify both configure files > and remove the mstack-alignment part, then the build does finish with no > error. > > And here comes my questions. I was wondering, about the technical reason > why FFmpeg does set > mstack-alignment? And if it would be safe to disable it in case FFmpeg is > compiled with ThinLTO (for > HandBrake)? > It can safely be set to the higher of the two values, it has the same meaning. Alignment of 64 implies alignment of 16. Ronald _______________________________________________ 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".