LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 07-26-2023, 08:15 AM   #1
JohnHendry
Member
 
Registered: Apr 2020
Location: Sydney, Australia
Distribution: Crux Linux, LFS, Artix, source packages (64-bit PC)
Posts: 39

Rep: Reputation: Disabled
g++ from gcc-12.2.0 not compliant with std=C++11 - ???


Trying to build pass 2 of gcc-12.2.0 but I can't get past libcody test in libcody configure which wants __cplusplus=201103 or whatever, not >. Seems a stupid test 12 years later and gcc claims to have been fully compliant with C++11 since gcc-5.

I don't know where __cplusplus is set or whether it changes when I put something like -std=gnu++2b in CXXFLAGS and I can't find the exact test used by libcody configure about lines 2490 to 2520 where C++11 is tested several times but in conftest.c wherever it is.
Attached Files
File Type: txt tar-part.txt (3.3 KB, 6 views)

Last edited by JohnHendry; 07-26-2023 at 10:12 PM.
 
Old 07-28-2023, 04:57 AM   #2
JohnHendry
Member
 
Registered: Apr 2020
Location: Sydney, Australia
Distribution: Crux Linux, LFS, Artix, source packages (64-bit PC)
Posts: 39

Original Poster
Rep: Reputation: Disabled
The solution was not to specify any standard for g++ in CXXFLAGS, which leaves me wondering what sort of compiler is built of parts compatible with a range of C++ standards. Grooving on this new system, though. Do without a lot of these groups, I think.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
std::cin/std::cout or cin/cout? shifter Programming 1 10-16-2013 01:24 PM
std::async vs std::thread grob115 Programming 1 09-21-2013 10:03 AM
printf vs std::cout and std::ofstream grob115 Programming 2 01-16-2013 11:49 AM
Perl: suppress std output and std error say_hi_ravi Programming 1 11-01-2012 06:22 AM
Template algorithm for std::vector and std::string CartmanYO Programming 4 09-08-2010 09:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 10:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration