From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12olkn2082.outbound.protection.outlook.com [40.92.21.82]) by sourceware.org (Postfix) with ESMTPS id 7B2EF3857C52 for ; Fri, 14 Aug 2020 21:21:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 7B2EF3857C52 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=n2/pcGCt7EF7xDI9AiT6Jh3UieYL2SRozmpYuG6+g6tw0zr3ycgRTHbYTX3AVihNbGfDVvJl6uXvtYVOdN8AF1I2Hf8JzTC/hdwYvJATfU09woVrVyWOliB9TjsjpkL9ghzHldWudWvWihbLf3no74+8cToInPsjrnE4MPAc/GIu72QWEUe8rnc1biTtYbmPNsvufTnUbFlN36rlnw4ZRthkqsPh+AgsRC7O/a+Eml6/dCQ8Gp64UHDn+tM6eyOyJmBb0XV5tZ1GE8YFu1mDtxabkDjNt4vkLslm5Vav17K6s6UVWhccyn+3PNctAghwUc8Y3BJZEREv8o6hIWyP7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=P0wjer8MXVrY5aCYhtHvMuhFtvvXXRj72cqaiQQQkvg=; b=GIIy+DoUwg67R7vqwPlDry7wW6/RwiunmvuxNngWW+/PkAxy9N+fStMIhOABB4YiPlZpjZUsbsTl6yMSZlQjLrzFRKGZTBS0OhX8YRNcgJfBTpGqD9hNTwA8yoT0Xd32uXon3efD1uzgflorasruYoEMrFOOtiMqzidTkKUuB912XGCqBgvnQd25+Aj41RB/uACk61l12RQG49aw5+7YCsjPTvAKMEEAECy78eIbJ4E4DhYnx58I0KFw85SaNregsfL5WiRfawVeT1LcplwOIxKNFrDfpIcSP+oYLfinfg2tZsljmA7HsvvjJ6SsGOCWMXn228wu/jmX4+NeioNIYg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Received: from DM6NAM12FT027.eop-nam12.prod.protection.outlook.com (2a01:111:e400:fc64::4e) by DM6NAM12HT126.eop-nam12.prod.protection.outlook.com (2a01:111:e400:fc64::424) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3283.11; Fri, 14 Aug 2020 21:21:03 +0000 Received: from MN2PR16MB3008.namprd16.prod.outlook.com (2a01:111:e400:fc64::51) by DM6NAM12FT027.mail.protection.outlook.com (2a01:111:e400:fc64::149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3283.11 via Frontend Transport; Fri, 14 Aug 2020 21:21:03 +0000 Received: from MN2PR16MB3008.namprd16.prod.outlook.com ([fe80::2c44:7ff1:400e:ce46]) by MN2PR16MB3008.namprd16.prod.outlook.com ([fe80::2c44:7ff1:400e:ce46%5]) with mapi id 15.20.3261.026; Fri, 14 Aug 2020 21:21:03 +0000 From: Casey St.Fleur To: "gcc-help@gcc.gnu.org" Subject: Cross Compile Gcc 10.2.0 Thread-Topic: Cross Compile Gcc 10.2.0 Thread-Index: AQHWcoBfMm/n+HeXuEKnjumhZjrlVw== Date: Fri, 14 Aug 2020 21:21:03 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:76ABC5E1C9CC48277CB74D394EDED4CB399D75A596DA439DA420A1CD59C3EBA5; UpperCasedChecksum:9ABE0D6404F15593CC8C0827F8A3DBC7D3E3DCC445943C4B99AEDD4D77E10BD9; SizeAsReceived:6596; Count:41 x-tmn: [pJDCQk7tTTtq45D9r6Z78ApLny5FGk+G] x-ms-publictraffictype: Email x-incomingheadercount: 41 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: 2de620c6-499d-4441-db19-08d84097f33a x-ms-traffictypediagnostic: DM6NAM12HT126: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 7TAGoV6E93+ezEsIOiUseEfifqp9A77iUDQNKBo3WTgbxWAPVxnG2qYK3+pOFEG2r+DTnBXHqO7Ss+MRh5/CA63NFqJ5EcFW4sy2SQn3P5gdDcU5XbFpzn35LFoZ1PGz6r83bcudqaHlXiM478cCsE28hJ7MkyXYq0Pgd3j7vHevyxCysssjTq8HdNkVZd4Fs8hBo0xhs8UvaacOGLMJtQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:0; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR16MB3008.namprd16.prod.outlook.com; PTR:; CAT:NONE; SFS:; DIR:OUT; SFP:1901; x-ms-exchange-antispam-messagedata: 7TWDJ+mbFUShhWuorqtfRRoJt+fPXrP91GNiEjElJjdGd7XnO/ccotTiBt0SSf3qvlWFoi9GFEBfIuPfaGQJUwrmBh+FRTxSmoNObcvVuHahFilBc4RVER7ucxy339CyNmOp9XkjHHEG7pimJdFeGQ== x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-AuthSource: DM6NAM12FT027.eop-nam12.prod.protection.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 2de620c6-499d-4441-db19-08d84097f33a X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Aug 2020 21:21:03.6815 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6NAM12HT126 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, HTML_MESSAGE, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Aug 2020 21:21:06 -0000 Hi all, I am trying to build GCC 10.2 using Ubuntu's Arm cross compiler. But I am getting the following error, ../../../../../gcc-10.2.0/libstdc++-v3/src/c++17/memory_resource.cc:92:5: e= rror: =91__constinit=92 does not name a type 92 | __constinit constant_init newdel_res{}; | ^~~~~~~~~~~ ../../../../../gcc-10.2.0/libstdc++-v3/src/c++17/memory_resource.cc:93:5: e= rror: =91__constinit=92 does not name a type 93 | __constinit constant_init null_res{}; | ^~~~~~~~~~~ ../../../../../gcc-10.2.0/libstdc++-v3/src/c++17/memory_resource.cc:146:5: = error: =91__constinit=92 does not name a type 146 | __constinit constant_init default_res{&newdel_r= es.obj}; | ^~~~~~~~~~~ ../../../../../gcc-10.2.0/libstdc++-v3/src/c++17/memory_resource.cc: In fun= ction =91std::pmr::memory_resource* std::pmr::new_delete_resource()=92: ../../../../../gcc-10.2.0/libstdc++-v3/src/c++17/memory_resource.cc:154:13:= error: =91newdel_res=92 was not declared in this scope 154 | { return &newdel_res.obj; } | ^~~~~~~~~~ ../../../../../gcc-10.2.0/libstdc++-v3/src/c++17/memory_resource.cc: In fun= ction =91std::pmr::memory_resource* std::pmr::null_memory_resource()=92: ../../../../../gcc-10.2.0/libstdc++-v3/src/c++17/memory_resource.cc:158:13:= error: =91null_res=92 was not declared in this scope 158 | { return &null_res.obj; } | ^~~~~~~~ ../../../../../gcc-10.2.0/libstdc++-v3/src/c++17/memory_resource.cc: In fun= ction =91std::pmr::memory_resource* std::pmr::set_default_resource(std::pmr= ::memory_resource*)=92: ../../../../../gcc-10.2.0/libstdc++-v3/src/c++17/memory_resource.cc:165:12:= error: =91default_res=92 was not declared in this scope; did you mean =91d= efault_delete=92? 165 | return default_res.obj.exchange(r); | ^~~~~~~~~~~ | default_delete ../../../../../gcc-10.2.0/libstdc++-v3/src/c++17/memory_resource.cc: In fun= ction =91std::pmr::memory_resource* std::pmr::get_default_resource()=92: ../../../../../gcc-10.2.0/libstdc++-v3/src/c++17/memory_resource.cc:170:12:= error: =91default_res=92 was not declared in this scope; did you mean =91d= efault_delete=92? 170 | { return default_res.obj.load(); } | ^~~~~~~~~~~ | default_delete It looks like build is failing because it is trying to build a C++ 17 featu= re using a C++ 20 keyword. I am not sure what to do from here, any help is = greatly appreciated . Here are the configure parameters I used to set up the build: ../gcc-10.2.0/configure --prefix=3D/opt/gcc-10.2.0 --build=3D$MACHTYPE --h= ost=3Darm-linux-gnueabihf --target=3Darm-linux-gnueabihf --enable-languages= =3Dc,ada,c++,go,d,fortran,objc,obj-c++ --with-gcc-major-version-only --prog= ram-suffix=3D-10.2 --program-prefix=3Darm-linux-gnueabihf- --enable-shared = --without-included-gettext --enable-threads=3Dposix --enable-nls --enable-= bootstrap --enable-clocale=3Dgnu --enable-libstdcxx-debug --enable-libstdcx= x-time=3Dyes --with-default-libstdcxx-abi=3Dnew --enable-gnu-unique-object = --disable-libitm --disable-libquadmath --disable-libquadmath-support --enab= le-plugin --with-system-zlib --with-target-system-zlib --enable-objc-gc=3Da= uto --enable-multiarch --disable-sjlj-exceptions --with-arch=3Darmv6 --with= -fpu=3Dvfp --with-float=3Dhard --disable-werror --enable-checking=3Drelease Additional Information: I am running Ubuntu 20.04.1 LTS (Linux ubuntu Server 5.4.0-42-generic #46-U= buntu SMP Fri Jul 10 00:24:02 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux ). arm-linux-gnueabihf-gcc -v Using built-in specs. COLLECT_GCC=3Darm-linux-gnueabihf-gcc COLLECT_LTO_WRAPPER=3D/usr/lib/gcc-cross/arm-linux-gnueabihf/9/lto-wrapper Target: arm-linux-gnueabihf Configured with: ../src/configure -v --with-pkgversion=3D'Ubuntu 9.3.0-10ub= untu1' --with-bugurl=3Dfile:///usr/share/doc/gcc-9/README.Bugs --enable-lan= guages=3Dc,ada,c++,go,d,fortran,objc,obj-c++,gm2 --prefix=3D/usr --with-gcc= -major-version-only --program-suffix=3D-9 --enable-shared --enable-linker-b= uild-id --libexecdir=3D/usr/lib --without-included-gettext --enable-threads= =3Dposix --libdir=3D/usr/lib --enable-nls --with-sysroot=3D/ --enable-cloca= le=3Dgnu --enable-libstdcxx-debug --enable-libstdcxx-time=3Dyes --with-defa= ult-libstdcxx-abi=3Dnew --enable-gnu-unique-object --disable-libitm --disab= le-libquadmath --disable-libquadmath-support --enable-plugin --enable-defau= lt-pie --with-system-zlib --without-target-system-zlib --enable-libpth-m2 -= -enable-multiarch --enable-multilib --disable-sjlj-exceptions --with-arch= =3Darmv7-a --with-fpu=3Dvfpv3-d16 --with-float=3Dhard --with-mode=3Dthumb -= -disable-werror --enable-multilib --enable-checking=3Drelease --build=3Dx86= _64-linux-gnu --host=3Dx86_64-linux-gnu --target=3Darm-linux-gnueabihf --pr= ogram-prefix=3Darm-linux-gnueabihf- --includedir=3D/usr/arm-linux-gnueabihf= /include Thread model: posix gcc version 9.3.0 (Ubuntu 9.3.0-10ubuntu1) Have a great day, Casey S.