From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by sourceware.org (Postfix) with ESMTPS id 8C9B0385843B for ; Thu, 25 Jan 2024 10:25:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8C9B0385843B 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 8C9B0385843B Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::531 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706178334; cv=none; b=DefyCs0HIV71lkTIOuj8Vf/Wj+o1ptYhhiM0pLBlZkTwkZyZz9/PknEgi1sasOHJCkNz9ybNL1DlJHf/TaLjpq+EFcDlxyO0omAC7a6ePtsR50RGIeM76lQ+OVI5c55nT/WKOcSnQ5Oodan6CCJKTdSn7+D7Y4b0xBd1xX28HEE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706178334; c=relaxed/simple; bh=2/zqQwJF1z9iF/crmOfpvhISb1UG8vbqu0jKtjgCs9c=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=nhI48aTEZBt0iCa+ViyYw2fRGqkUyPJ0rXk2l4EkwL02otCrAV7CH2JU8VJfGBrhEJGsPv53n8qBJOg5xVj77Iu9IXQlUaX1XA4X9pSFAcmx/ninTPHiAJBGRl8FvIjlM9foz1v23SmTKsQjhqe9WUXMULFx387OP2iEolX5OF0= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-55a87dfc3b5so5687050a12.3 for ; Thu, 25 Jan 2024 02:25:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706178330; x=1706783130; darn=gcc.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=oxmkaueMXT/RTl0o6cxmCg3kt7ox1KT+c/6tKXIF/JM=; b=nn4uZiVkTz7e1NgvSXW27vMovvqAFQ1eKiCWJ07scFWIPD8Fyzvkf7FrIVNYOf5Cz2 F3dSTsB+NiB6eA/BeHvYHAvEljQYkVTZC2nTRIYgaOcC+pCFgajvxtyt2QS5oj56GcMF AzWTPBrcpL+oy5LRDa8nyMZyoUvBrHlhOlkQb58z2xMqSRYkvca2xjfWgzGHJOme/3BT dDWD2/+P31ORfWgGrRVT7RXgWWH679pDpkh4bTH7ORATZiy65hFUmOH1T6ONJHB7rIDU mDSvrLV4+G6WcOEFGzMLY4SclubDjtR3034dItTdyRR+wEd1VixHFSIqs1lWuDRH3BdE dJpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706178330; x=1706783130; h=content-transfer-encoding:cc: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=oxmkaueMXT/RTl0o6cxmCg3kt7ox1KT+c/6tKXIF/JM=; b=ZDRhNZq6+CH9XE1N4GaCBhK2vYsISoTdo5k33MnJAGFE1TpAgsveBSG4sb7jG9nLCN U2F8cpWVi2yl4peRlQHhB1PncKCcybFSOuGdJcqIJaWjuRNQDTHzTHwLsCnbstBv72az Wuz65mG4a6l5lIAzItR92PhKcVtCaA+jcSTUTA5spgSy5IyZ2gFtiHWq0+qPccljGzWB Ww71DpMVAciSD6FjTQaeOUlCaWfvH6Ztxrw7Zqc9pbNkeAnpDfuMnFZNIt7P4+/XxocD OGMMLO6hqtOn6AKKchoar9rR99PQ8dHDk3zhOngXSr/AEXghnmbj48C3urpYYOvW+Z6W FiKA== X-Gm-Message-State: AOJu0YyjGVD2MyvGs96uo7gXsRF2zQa0z93B0QXjPI9i5SJIHOaqI+18 5XQeok1UduhHlZYJ//7kgMLQVUG/IibDF4MwJaFTmmzk+UJYqfQfBn900ZKI+7nZAwprGVSmSEQ dPK6EbdDqdh4Tow6WHZX/Yhadb78LFnYh X-Google-Smtp-Source: AGHT+IG6c/LXWmPIZZ0aQh5DjhTjWJ3TJ5eFXWEQgs2RLlG/IXcaVpET3QfK7o4oYyelcH2l0uB+X1oos9BTyDQ4K9g= X-Received: by 2002:a17:907:a808:b0:a31:7aca:a429 with SMTP id vo8-20020a170907a80800b00a317acaa429mr488869ejc.4.1706178329868; Thu, 25 Jan 2024 02:25:29 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Jonathan Wakely Date: Thu, 25 Jan 2024 10:25:19 +0000 Message-ID: Subject: Re: Issues compiling gcc 12.3.0 To: Damas Joao CHST Cc: "gcc-help@gcc.gnu.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,KAM_NUMSUBJECT,KAM_SHORT,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no 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 Thu, 25 Jan 2024 at 10:21, Damas Joao CHST via Gcc-help wrote: > > Hi, > > I am following a recipe I already had working for gcc 12.1.0 and trying t= o install 12.3.0 from source, and I am facing the following: > > libtool: compile: /tmp/tmp-gcc-12.3.0/source/build/./gcc/xgcc -shared-li= bgcc -B/tmp/tmp-gcc-12.3.0/source/build/./gcc -nostdinc++ -L/tmp/tmp-gcc-12= .3.0/source/build/x86_64-pc-linux-gnu/libstdc++-v3/src -L/tmp/tmp-gcc-12.3.= 0/source/build/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -L/tmp/tmp-gcc-12= .3.0/source/build/x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -B/progs= /all/opensource/gcc/12.3.0/x86_64-pc-linux-gnu/bin/ -B/progs/all/opensource= /gcc/12.3.0/x86_64-pc-linux-gnu/lib/ -isystem /progs/all/opensource/gcc/12.= 3.0/x86_64-pc-linux-gnu/include -isystem /progs/all/opensource/gcc/12.3.0/x= 86_64-pc-linux-gnu/sys-include -fno-checking -I/tmp/tmp-gcc-12.3.0/source/l= ibstdc++-v3/../libgcc -I/tmp/tmp-gcc-12.3.0/source/build/x86_64-pc-linux-gn= u/libstdc++-v3/include/x86_64-pc-linux-gnu -I/tmp/tmp-gcc-12.3.0/source/bui= ld/x86_64-pc-linux-gnu/libstdc++-v3/include -I/tmp/tmp-gcc-12.3.0/source/li= bstdc++-v3/libsupc++ -std=3Dgnu++98 -D_GLIBCXX_SHARED -fno-implicit-templat= es -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=3D2 -fdiagnostics-show-l= ocation=3Donce -ffunction-sections -fdata-sections -frandom-seed=3Dlocale_f= acets.lo -g -fvisibility-inlines-hidden -std=3Dc++17 -fmessage-length=3D0 -= march=3Dnocona -mtune=3Dhaswell -ftree-vectorize -fPIC -fstack-protector-st= rong -fno-plt -O2 -ffunction-sections -pipe -D_GNU_SOURCE -c ../../../../..= /libstdc++-v3/src/c++98/locale_facets.cc -fPIC -DPIC -D_GLIBCXX_SHARED -o = locale_facets.o > libtool: compile: /tmp/tmp-gcc-12.3.0/source/build/./gcc/xgcc -shared-li= bgcc -B/tmp/tmp-gcc-12.3.0/source/build/./gcc -nostdinc++ -L/tmp/tmp-gcc-12= .3.0/source/build/x86_64-pc-linux-gnu/libstdc++-v3/src -L/tmp/tmp-gcc-12.3.= 0/source/build/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -L/tmp/tmp-gcc-12= .3.0/source/build/x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -B/progs= /all/opensource/gcc/12.3.0/x86_64-pc-linux-gnu/bin/ -B/progs/all/opensource= /gcc/12.3.0/x86_64-pc-linux-gnu/lib/ -isystem /progs/all/opensource/gcc/12.= 3.0/x86_64-pc-linux-gnu/include -isystem /progs/all/opensource/gcc/12.3.0/x= 86_64-pc-linux-gnu/sys-include -fno-checking -I/tmp/tmp-gcc-12.3.0/source/l= ibstdc++-v3/../libgcc -I/tmp/tmp-gcc-12.3.0/source/build/x86_64-pc-linux-gn= u/libstdc++-v3/include/x86_64-pc-linux-gnu -I/tmp/tmp-gcc-12.3.0/source/bui= ld/x86_64-pc-linux-gnu/libstdc++-v3/include -I/tmp/tmp-gcc-12.3.0/source/li= bstdc++-v3/libsupc++ -std=3Dgnu++98 -D_GLIBCXX_SHARED -fno-implicit-templat= es -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=3D2 -fdiagnostics-show-l= ocation=3Donce -ffunction-sections -fdata-sections -frandom-seed=3Dlocale_i= nit.lo -g -fvisibility-inlines-hidden -std=3Dc++17 -fmessage-length=3D0 -ma= rch=3Dnocona -mtune=3Dhaswell -ftree-vectorize -fPIC -fstack-protector-stro= ng -fno-plt -O2 -ffunction-sections -pipe -D_GNU_SOURCE -std=3Dgnu++11 -fch= ar8_t -c ../../../../../libstdc++-v3/src/c++98/locale_init.cc -fPIC -DPIC = -D_GLIBCXX_SHARED -o locale_init.o > ../../../../../libstdc++-v3/src/c++98/bitmap_allocator.cc:51:23: error: I= SO C++17 does not allow dynamic exception specifications > 51 | _M_get(size_t __sz) throw(std::bad_alloc) > | ^~~~~ > libtool: compile: /tmp/tmp-gcc-12.3.0/source/build/./gcc/xgcc -shared-li= bgcc -B/tmp/tmp-gcc-12.3.0/source/build/./gcc -nostdinc++ -L/tmp/tmp-gcc-12= .3.0/source/build/x86_64-pc-linux-gnu/libstdc++-v3/src -L/tmp/tmp-gcc-12.3.= 0/source/build/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -L/tmp/tmp-gcc-12= .3.0/source/build/x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -B/progs= /all/opensource/gcc/12.3.0/x86_64-pc-linux-gnu/bin/ -B/progs/all/opensource= /gcc/12.3.0/x86_64-pc-linux-gnu/lib/ -isystem /progs/all/opensource/gcc/12.= 3.0/x86_64-pc-linux-gnu/include -isystem /progs/all/opensource/gcc/12.3.0/x= 86_64-pc-linux-gnu/sys-include -fno-checking -I/tmp/tmp-gcc-12.3.0/source/l= ibstdc++-v3/../libgcc -I/tmp/tmp-gcc-12.3.0/source/build/x86_64-pc-linux-gn= u/libstdc++-v3/include/x86_64-pc-linux-gnu -I/tmp/tmp-gcc-12.3.0/source/bui= ld/x86_64-pc-linux-gnu/libstdc++-v3/include -I/tmp/tmp-gcc-12.3.0/source/li= bstdc++-v3/libsupc++ -std=3Dgnu++98 -D_GLIBCXX_SHARED -fno-implicit-templat= es -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=3D2 -fdiagnostics-show-l= ocation=3Donce -ffunction-sections -fdata-sections -frandom-seed=3Dlocalena= me.lo -g -fvisibility-inlines-hidden -std=3Dc++17 -fmessage-length=3D0 -mar= ch=3Dnocona -mtune=3Dhaswell -ftree-vectorize -fPIC -fstack-protector-stron= g -fno-plt -O2 -ffunction-sections -pipe -D_GNU_SOURCE -std=3Dgnu++11 -fcha= r8_t -c ../../../../../libstdc++-v3/src/c++98/localename.cc -fPIC -DPIC -D= _GLIBCXX_SHARED -o localename.o > libtool: compile: /tmp/tmp-gcc-12.3.0/source/build/./gcc/xgcc -shared-li= bgcc -B/tmp/tmp-gcc-12.3.0/source/build/./gcc -nostdinc++ -L/tmp/tmp-gcc-12= .3.0/source/build/x86_64-pc-linux-gnu/libstdc++-v3/src -L/tmp/tmp-gcc-12.3.= 0/source/build/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -L/tmp/tmp-gcc-12= .3.0/source/build/x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -B/progs= /all/opensource/gcc/12.3.0/x86_64-pc-linux-gnu/bin/ -B/progs/all/opensource= /gcc/12.3.0/x86_64-pc-linux-gnu/lib/ -isystem /progs/all/opensource/gcc/12.= 3.0/x86_64-pc-linux-gnu/include -isystem /progs/all/opensource/gcc/12.3.0/x= 86_64-pc-linux-gnu/sys-include -fno-checking -I/tmp/tmp-gcc-12.3.0/source/l= ibstdc++-v3/../libgcc -I/tmp/tmp-gcc-12.3.0/source/build/x86_64-pc-linux-gn= u/libstdc++-v3/include/x86_64-pc-linux-gnu -I/tmp/tmp-gcc-12.3.0/source/bui= ld/x86_64-pc-linux-gnu/libstdc++-v3/include -I/tmp/tmp-gcc-12.3.0/source/li= bstdc++-v3/libsupc++ -std=3Dgnu++98 -D_GLIBCXX_SHARED -fno-implicit-templat= es -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=3D2 -fdiagnostics-show-l= ocation=3Donce -ffunction-sections -fdata-sections -frandom-seed=3Dmath_stu= bs_float.lo -g -fvisibility-inlines-hidden -std=3Dc++17 -fmessage-length=3D= 0 -march=3Dnocona -mtune=3Dhaswell -ftree-vectorize -fPIC -fstack-protector= -strong -fno-plt -O2 -ffunction-sections -pipe -D_GNU_SOURCE -c ../../../..= /../libstdc++-v3/src/c++98/math_stubs_float.cc -fPIC -DPIC -D_GLIBCXX_SHAR= ED -o math_stubs_float.o > /bin/sh ../../libtool --tag CXX --tag disable-shared --mode=3Dcompile /= tmp/tmp-gcc-12.3.0/source/build/./gcc/xgcc -shared-libgcc -B/tmp/tmp-gcc-12= .3.0/source/build/./gcc -nostdinc++ -L/tmp/tmp-gcc-12.3.0/source/build/x86_= 64-pc-linux-gnu/libstdc++-v3/src -L/tmp/tmp-gcc-12.3.0/source/build/x86_64-= pc-linux-gnu/libstdc++-v3/src/.libs -L/tmp/tmp-gcc-12.3.0/source/build/x86_= 64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -B/progs/all/opensource/gcc/12= .3.0/x86_64-pc-linux-gnu/bin/ -B/progs/all/opensource/gcc/12.3.0/x86_64-pc-= linux-gnu/lib/ -isystem /progs/all/opensource/gcc/12.3.0/x86_64-pc-linux-gn= u/include -isystem /progs/all/opensource/gcc/12.3.0/x86_64-pc-linux-gnu/sys= -include -fno-checking -I/tmp/tmp-gcc-12.3.0/source/libstdc++-v3/../libgc= c -I/tmp/tmp-gcc-12.3.0/source/build/x86_64-pc-linux-gnu/libstdc++-v3/inclu= de/x86_64-pc-linux-gnu -I/tmp/tmp-gcc-12.3.0/source/build/x86_64-pc-linux-g= nu/libstdc++-v3/include -I/tmp/tmp-gcc-12.3.0/source/libstdc++-v3/libsupc++= -std=3Dgnu++98 -prefer-pic -D_GLIBCXX_SHARED -fno-implicit-templates -W= all -Wextra -Wwrite-strings -Wcast-qual -Wabi=3D2 -fdiagnostics-show-locat= ion=3Donce -ffunction-sections -fdata-sections -frandom-seed=3Dmath_stub= s_long_double.lo -g -fvisibility-inlines-hidden -std=3Dc++17 -fmessage-len= gth=3D0 -march=3Dnocona -mtune=3Dhaswell -ftree-vectorize -fPIC -fstack-pro= tector-strong -fno-plt -O2 -ffunction-sections -pipe -D_GNU_SOURCE -c -o m= ath_stubs_long_double.lo ../../../../../libstdc++-v3/src/c++98/math_stubs_l= ong_double.cc > make[6]: *** [bitmap_allocator.lo] Error 1 > make[6]: *** Waiting for unfinished jobs.... > libtool: compile: /tmp/tmp-gcc-12.3.0/source/build/./gcc/xgcc -shared-li= bgcc -B/tmp/tmp-gcc-12.3.0/source/build/./gcc -nostdinc++ -L/tmp/tmp-gcc-12= .3.0/source/build/x86_64-pc-linux-gnu/libstdc++-v3/src -L/tmp/tmp-gcc-12.3.= 0/source/build/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs -L/tmp/tmp-gcc-12= .3.0/source/build/x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs -B/progs= /all/opensource/gcc/12.3.0/x86_64-pc-linux-gnu/bin/ -B/progs/all/opensource= /gcc/12.3.0/x86_64-pc-linux-gnu/lib/ -isystem /progs/all/opensource/gcc/12.= 3.0/x86_64-pc-linux-gnu/include -isystem /progs/all/opensource/gcc/12.3.0/x= 86_64-pc-linux-gnu/sys-include -fno-checking -I/tmp/tmp-gcc-12.3.0/source/l= ibstdc++-v3/../libgcc -I/tmp/tmp-gcc-12.3.0/source/build/x86_64-pc-linux-gn= u/libstdc++-v3/include/x86_64-pc-linux-gnu -I/tmp/tmp-gcc-12.3.0/source/bui= ld/x86_64-pc-linux-gnu/libstdc++-v3/include -I/tmp/tmp-gcc-12.3.0/source/li= bstdc++-v3/libsupc++ -std=3Dgnu++98 -D_GLIBCXX_SHARED -fno-implicit-templat= es -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=3D2 -fdiagnostics-show-l= ocation=3Donce -ffunction-sections -fdata-sections -frandom-seed=3Dmath_stu= bs_long_double.lo -g -fvisibility-inlines-hidden -std=3Dc++17 -fmessage-len= gth=3D0 -march=3Dnocona -mtune=3Dhaswell -ftree-vectorize -fPIC -fstack-pro= tector-strong -fno-plt -O2 -ffunction-sections -pipe -D_GNU_SOURCE -c ../..= /../../../libstdc++-v3/src/c++98/math_stubs_long_double.cc -fPIC -DPIC -D_= GLIBCXX_SHARED -o math_stubs_long_double.o > ../../../../../libstdc++-v3/src/c++98/ios_locale.cc:59:12: error: templat= e-id =E2=80=98operator bool<>=E2=80=99 for =E2=80=98std::basic_ios::o= perator void*() const=E2=80=99 does not match any template declaration > 59 | template basic_ios::operator void*() const; > | ^~~~~~~~~~~~~~~ > In file included from /tmp/tmp-gcc-12.3.0/source/build/x86_64-pc-linux-gn= u/libstdc++-v3/include/ios:44, > from ../../../../../libstdc++-v3/src/c++98/ios_locale.cc= :29: > /tmp/tmp-gcc-12.3.0/source/build/x86_64-pc-linux-gnu/libstdc++-v3/include= /bits/basic_ios.h:117:16: note: candidate is: =E2=80=98std::basic_ios<_Char= T, _Traits>::operator bool() const [with _CharT =3D char; _Traits =3D std::= char_traits]=E2=80=99 > 117 | explicit operator bool() const > | ^~~~~~~~ > ../../../../../libstdc++-v3/src/c++98/ios_locale.cc:61:12: error: templat= e-id =E2=80=98operator bool<>=E2=80=99 for =E2=80=98std::basic_ios= ::operator void*() const=E2=80=99 does not match any template declaration > 61 | template basic_ios::operator void*() const; > | ^~~~~~~~~~~~~~~~~~ > /tmp/tmp-gcc-12.3.0/source/build/x86_64-pc-linux-gnu/libstdc++-v3/include= /bits/basic_ios.h:117:16: note: candidate is: =E2=80=98std::basic_ios<_Char= T, _Traits>::operator bool() const [with _CharT =3D wchar_t; _Traits =3D st= d::char_traits]=E2=80=99 > 117 | explicit operator bool() const > | ^~~~~~~~ > make[6]: *** [ios_locale.lo] Error 1 > make[6]: Leaving directory `/tmp/tmp-gcc-12.3.0/source/build/x86_64-pc-li= nux-gnu/libstdc++-v3/src/c++98' > make[5]: *** [all-recursive] Error 1 > make[5]: Leaving directory `/tmp/tmp-gcc-12.3.0/source/build/x86_64-pc-li= nux-gnu/libstdc++-v3/src' > make[4]: *** [all-recursive] Error 1 > make[4]: Leaving directory `/tmp/tmp-gcc-12.3.0/source/build/x86_64-pc-li= nux-gnu/libstdc++-v3' > make[3]: *** [all] Error 2 > make[3]: Leaving directory `/tmp/tmp-gcc-12.3.0/source/build/x86_64-pc-li= nux-gnu/libstdc++-v3' > make[2]: *** [all-stage1-target-libstdc++-v3] Error 2 > make[2]: Leaving directory `/tmp/tmp-gcc-12.3.0/source/build' > make[1]: *** [stage1-bubble] Error 2 > make[1]: Leaving directory `/tmp/tmp-gcc-12.3.0/source/build' > make: *** [all] Error 2 > > I'm using CentOS 7.9 (old OS, I am aware) and the following setup: > > configure \ > --prefix=3D \ > --disable-multilib Also, if you're running configure in the source tree, please stop doing tha= t. https://gcc.gnu.org/wiki/InstallingGCC has details and links explaining it.