From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by sourceware.org (Postfix) with ESMTPS id B8E6F3858C98 for ; Mon, 26 Feb 2024 22:06:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B8E6F3858C98 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B8E6F3858C98 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::330 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708985192; cv=none; b=PQoU/i6XpdxfmCG5kdzlWplLM7qQ8Ogpdvwz1mtfKeQXzXxL8WzHS10kLa9Jf6bNyORx+z9xn1mwpv6doJ6SpNTkw2zWPVVWFI7tDKcX5To/0FEa7wX1RbQl2pR1zZxX1b3podZkWxUxRYGCtxtog4I+L3IqJbKSfAzY150FSVY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708985192; c=relaxed/simple; bh=Ghjs1hjQRHoAKpCxa/pMHjKI17dYIVz0Pk5Zwx/6BZc=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=NYY2SG0RYpguqYmS6t7iYdPXs2s0zXZcGya/zlfS0tYl/P+VatxJqaUDvOOTHYz+r7b85fXlJYpYzkqcHBoePkXdj8zfNR7BhdcA2xuS5nAb7Z4mdCPm1855Lh0B4Ib0VA+TOf68SGMRa4O10RJ3CcXYA78x1P9bZO/INJ1DFzg= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-412acafd27dso402415e9.3 for ; Mon, 26 Feb 2024 14:06:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708985189; x=1709589989; darn=gcc.gnu.org; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=/z3zj+hDhvYt11lwqSNk3Whwro1e6QIZssAStywzdRo=; b=WGha4Lt88GUrtyrAoaZ5/h7Uo0xr1LpvexCYc1HUPjGgwx5w3LTaFkdvZigkPOwcPP x92EFrsD+HeNjodkiZpBMCIC+CKDpGMZHl3cJTlWTBGDiKCGCls/18kb1+rhJVhcU8CQ NTvpP6TKBk9gDK8sbzONAOGFZkBAEotVBAkI+uM6ndwz2h4zYNknaI/KLpOEDDQG4CH/ VHDeORdE3oE91lBn9HWBh/rqfBuHjtTSgW6WML9+ufrEXtPxx9rXzPzmNTiNuAvyL/Gn kQmdBTUTASg7cDSagERQgUulr0BqOgngCgY2J8GoFMr1UBprSOxMXe5XZj7+MAire7N5 KpCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708985189; x=1709589989; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=/z3zj+hDhvYt11lwqSNk3Whwro1e6QIZssAStywzdRo=; b=HqirDLw/BkSmZ0Dltq6/uBqzgtF5nSZOMsu/w0zydx2cj7fiz9Fw/0fV3yl1VPQ+yr yZVcdqCQ4itqj4KPjQ7SB6px9n0VFefRcz2N4fhnsMk6Zp2bBrdoCDTyCwXQRzIFCBgX OL5/mSm3KB6pJsORagVEnJPN3AGhZxjCAI12OESU+B1uFNlBlmcZVV5r2NRcYCXeG237 vVeWP8GM3pRgLF+lttb3FZHQwli4zy2Vn6bCW+ctjHOjvRo3HUXV58tU7h5rNm/JFxq4 3KCa1DgTs8r8qT8vkxMz1xD1cugNzluzQ8ChYpdd0X5TcIT2nNFtKVDHK+54XxWut5LH t43Q== X-Forwarded-Encrypted: i=1; AJvYcCVG/M0a3uv6WfePFNle8aYouS4Ma95jA9xorkBa7wgBivYtaN3+hdSYv/s/iMRGrjRgzUD4NQpjptVSlXqojZNSIyiJYA== X-Gm-Message-State: AOJu0YyfNC2nUHJbdsTNCHrQtl9YSJGKcnh/YB/4ihzNP6XAG08ppeMQ fiSs5nY5FR+2v+kZTyinxRIE2sYKDMjXhBz3t2wBVlipwNOa31f/ X-Google-Smtp-Source: AGHT+IF9IWnV1fIF82jMGx766Zao4nEcqL+Q0UXaM3j5dKE1Jr3IHOQlzgVjINQX0/d74BOvaQMldw== X-Received: by 2002:a05:600c:a001:b0:412:a47d:1fb2 with SMTP id jg1-20020a05600ca00100b00412a47d1fb2mr2808724wmb.19.1708985189057; Mon, 26 Feb 2024 14:06:29 -0800 (PST) Received: from [10.96.0.93] ([146.70.48.11]) by smtp.gmail.com with ESMTPSA id e11-20020adfe7cb000000b0033d071c0477sm9344281wrn.59.2024.02.26.14.06.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 26 Feb 2024 14:06:28 -0800 (PST) Message-ID: <06bbf36d-8c3d-4f60-887e-f8f1590ec397@gmail.com> Date: Mon, 26 Feb 2024 22:06:26 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [wwwdocs] GCC processor independent install? Content-Language: en-US To: Vru Inbvi , gcc-help@gcc.gnu.org References: From: Gabriel Ravier In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 2/26/24 21:59, Vru Inbvi via Gcc-help wrote: > Hi, > > If I install for instance Ubuntu 22.04 with the default compilers (from apt > install) on computers with AMD and Intel processors, and run my application > I get the same results, bit for bit. > > However if I install a different version of GCC and GFORTRAN from source I > get different results. > > Which configuration options should I use make my install > processor-independent and get the same results? > > VI I don't exactly understand what it is you're trying to say here, exactly...  If you're installing different versions of GCC (e.g. GCC 12 and GCC 13) then I would hope it is obvious enough that the different versions will pretty much always output different code - even for minor version updates this can often occur. If the issue is that your application appears to exhibit different behavior (and not just have differing executable artifacts) depending on the version this is most likely due to a bug in your program, which you might be able to find using checkers like `-fsanitize` or others, or, much less likely, there is a bug in one of the two versions of GCC you used to compile the code.