LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 04-24-2016, 07:48 AM   #1
Jigsaw
Member
 
Registered: Apr 2016
Location: Indonesia
Distribution: Debian
Posts: 77

Rep: Reputation: Disabled
Compile Libstdc++ error '-std=gnu++14'


I have problems when compiling 5.8.1. Installation of Target libstdc ++ lfs 7.9. I am using Xubuntu 14:04 and gcc 4.8 please help me sir.

$ sudo make
make "AR_FLAGS=" "CC_FOR_BUILD=" "CC_FOR_TARGET=" "CFLAGS=-g -O2" "CXXFLAGS=" "CFLAGS_FOR_BUILD=" "CFLAGS_FOR_TARGET=" "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install -c" "LDFLAGS=" "LIBCFLAGS=" "LIBCFLAGS_FOR_TARGET=" "MAKE=make" "MAKEINFO=/bin/sh /mnt/lfs/sources/gcc-5.3.0/missing --run makeinfo " "SHELL=/bin/sh" "RUNTESTFLAGS=" "exec_prefix=/tools" "infodir=/tools/share/info" "libdir=/tools/lib" "includedir=/tools/include" "prefix=/tools" "tooldir=" "gxx_include_dir=/tools/i686-lfs-linux-gnu/include/c++/5.3.0" "AR=ar" "AS=as" "LD=/usr/bin/ld" "RANLIB=ranlib" "NM=nm" "NM_FOR_BUILD=" "NM_FOR_TARGET=" "DESTDIR=" "WERROR=" all-recursive
make[1]: Entering directory `/mnt/lfs/sources/gcc-5.3.0/build'
Making all in include
make[2]: Entering directory `/mnt/lfs/sources/gcc-5.3.0/build/include'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/mnt/lfs/sources/gcc-5.3.0/build/include'
Making all in libsupc++
make[2]: Entering directory `/mnt/lfs/sources/gcc-5.3.0/build/libsupc++'
/bin/sh ../libtool --tag CXX --tag disable-shared --mode=compile g++ -I/mnt/lfs/sources/gcc-5.3.0/libstdc++-v3/../libgcc -I/mnt/lfs/sources/gcc-5.3.0/build/include/i686-lfs-linux-gnu -I/mnt/lfs/sources/gcc-5.3.0/build/include -I/mnt/lfs/sources/gcc-5.3.0/libstdc++-v3/libsupc++ -prefer-pic -D_GLIBCXX_SHARED -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -frandom-seed=del_ops.lo -std=gnu++14 -Wno-sized-deallocation -c ../../libstdc++-v3/libsupc++/del_ops.cc
libtool: compile: g++ -I/mnt/lfs/sources/gcc-5.3.0/libstdc++-v3/../libgcc -I/mnt/lfs/sources/gcc-5.3.0/build/include/i686-lfs-linux-gnu -I/mnt/lfs/sources/gcc-5.3.0/build/include -I/mnt/lfs/sources/gcc-5.3.0/libstdc++-v3/libsupc++ -D_GLIBCXX_SHARED -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -frandom-seed=del_ops.lo -std=gnu++14 -Wno-sized-deallocation -c ../../libstdc++-v3/libsupc++/del_ops.cc -fPIC -DPIC -D_GLIBCXX_SHARED -o del_ops.o
g++: error: unrecognized command line option '-std=gnu++14'
make[2]: *** [del_ops.lo] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/gcc-5.3.0/build/libsupc++'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/lfs/sources/gcc-5.3.0/build'
make: *** [all] Error 2
 
Old 04-24-2016, 09:24 AM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi

Can you post the output of version-script
 
Old 04-24-2016, 10:58 AM   #3
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,682
Blog Entries: 19

Rep: Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492
Why are you using sudo? Everything in chapter 5 should be carried out as the lfs user.
 
Old 04-24-2016, 05:57 PM   #4
Jigsaw
Member
 
Registered: Apr 2016
Location: Indonesia
Distribution: Debian
Posts: 77

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hazel View Post
Why are you using sudo? Everything in chapter 5 should be carried out as the lfs user.
I do not know why it should wear sudo when the owner and the group that had lfs.
 
Old 04-24-2016, 06:01 PM   #5
Jigsaw
Member
 
Registered: Apr 2016
Location: Indonesia
Distribution: Debian
Posts: 77

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by spiky0011 View Post
Hi

Can you post the output of version-script
what should wear debian 8 usb persistence? yesterday I tried to live cd Xubuntu 14:04 and stuck there.
 
Old 04-24-2016, 08:03 PM   #6
anak_bawang
Member
 
Registered: Jun 2015
Location: Bandung Indonesia
Distribution: Debian, LFS/BLFS
Posts: 138

Rep: Reputation: 23
Quote:
Originally Posted by Jigsaw View Post
g++: error: unrecognized command line option '-std=gnu++14'
Happen to me once, although not in LFS project.

Probably in your host system, you upgraded C compiler, but not for the C++ compiler.
Try to upgrade C and C++ compiler, then try re-building LFS from the start.

Hope that will work for you too.
 
Old 04-25-2016, 01:51 AM   #7
Jigsaw
Member
 
Registered: Apr 2016
Location: Indonesia
Distribution: Debian
Posts: 77

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by anak_bawang View Post
Happen to me once, although not in LFS project.

Probably in your host system, you upgraded C compiler, but not for the C++ compiler.
Try to upgrade C and C++ compiler, then try re-building LFS from the start.

Hope that will work for you too.
are you from indonesia? i'm from indonesia sir, yes i will upgrade c compiler thank you sir i hope this work.
 
Old 04-25-2016, 03:10 AM   #8
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
can you post the output of the version-script
 
Old 04-25-2016, 06:35 PM   #9
Jigsaw
Member
 
Registered: Apr 2016
Location: Indonesia
Distribution: Debian
Posts: 77

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by spiky0011 View Post
can you post the output of the version-script
this version has me

Code:
bash version-check.sh
bash, version 4.3.11(1)-release
/bin/sh -> /bin/bash
Binutils: (GNU Binutils for Ubuntu) 2.24
bison (GNU Bison) 3.0.2
/usr/bin/yacc -> /usr/bin/bison.yacc
bzip2,  Version 1.0.6, 6-Sept-2010.
Coreutils:  8.21
diff (GNU diffutils) 3.3
find (GNU findutils) 4.4.2
GNU Awk 4.0.1
/usr/bin/awk -> /usr/bin/gawk
gcc (Ubuntu 4.8.4-2ubuntu1~14.04.1) 4.8.4
g++ (Ubuntu 4.8.4-2ubuntu1~14.04.1) 4.8.4
(Ubuntu EGLIBC 2.19-0ubuntu6.7) 2.19
grep (GNU grep) 2.16
gzip 1.6
Linux version 4.2.0-30-generic (buildd@lgw01-01) (gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.1) ) #36~14.04.1-Ubuntu SMP Fri Feb 26 18:50:14 UTC 2016
m4 (GNU M4) 1.4.17
GNU Make 3.81
GNU patch 2.7.1
Perl version='5.18.2';
sed (GNU sed) 4.2.2
tar (GNU tar) 1.27.1
makeinfo (GNU texinfo) 5.2
xz (XZ Utils) 5.1.0alpha
g++ compilation OK
 
  


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
Perl: suppress std output and std error say_hi_ravi Programming 1 11-01-2012 06:22 AM
c++11 std on g++4.7: gnu++11 vs c++11 - is there a difference? esgol Linux - Newbie 3 07-14-2012 04:36 AM
[SOLVED] compile error on std::string(ptr.get()) fsshl Programming 1 08-10-2011 07:52 AM
compile error: undefined reference to std::basic_ostream ron7000 Programming 5 09-17-2008 09:13 AM
phpLogCon, Gnu TLS, compile error. rgerhards Linux - Software 5 06-04-2008 03:28 AM

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

All times are GMT -5. The time now is 08:00 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