LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-19-2024, 09:22 AM   #1
HridayKh
LQ Newbie
 
Registered: Apr 2024
Location: India
Posts: 1

Rep: Reputation: 0
Exclamation Make error in libstdc++-v3


I am using the LFS Book 12.1 and have reached section 5.6 with no problems until `libstdc++-v3`. I ran all commands as said in book until the `make` command for `libstdc++-v3`. It gave me this error:
Code:
In file included from /mnt/LFS/sources/gcc-13.2.0/build/include/bits/move.h:37,
                 from /mnt/LFS/sources/gcc-13.2.0/build/include/bits/exception_ptr.h:41,
                 from /mnt/LFS/sources/gcc-13.2.0/libstdc++-v3/libsupc++/exception:164,
                 from ../../libstdc++-v3/libsupc++/unwind-cxx.h:34,
                 from ../../libstdc++-v3/libsupc++/eh_arm.cc:26:
/mnt/LFS/sources/gcc-13.2.0/build/include/type_traits:3363:66: error: expected primary-expression before ',' token
 3363 |   inline constexpr bool is_convertible_v = __is_convertible(_From, _To);
      |                                                                  ^
In file included from /mnt/LFS/sources/gcc-13.2.0/build/include/bits/move.h:37,
                 from /mnt/LFS/sources/gcc-13.2.0/build/include/bits/exception_ptr.h:41,
                 from ../../libstdc++-v3/libsupc++/exception:164,
                 from ../../libstdc++-v3/libsupc++/eh_aux_runtime.cc:26:
/mnt/LFS/sources/gcc-13.2.0/build/include/type_traits:3363:66: error: expected primary-expression before ',' token
 3363 |   inline constexpr bool is_convertible_v = __is_convertible(_From, _To);
      |                                                                  ^
In file included from /mnt/LFS/sources/gcc-13.2.0/build/include/bits/move.h:37,
                 from /mnt/LFS/sources/gcc-13.2.0/build/include/bits/exception_ptr.h:41,
                 from /mnt/LFS/sources/gcc-13.2.0/libstdc++-v3/libsupc++/exception:164,
                 from ../../libstdc++-v3/libsupc++/unwind-cxx.h:34,
                 from ../../libstdc++-v3/libsupc++/eh_call.cc:28:
/mnt/LFS/sources/gcc-13.2.0/build/include/type_traits:3363:66: error: expected primary-expression before ',' token
 3363 |   inline constexpr bool is_convertible_v = __is_convertible(_From, _To);
      |                                                                  ^
/mnt/LFS/sources/gcc-13.2.0/build/include/type_traits:3363:71: error: expected primary-expression before ')' token
 3363 |   inline constexpr bool is_convertible_v = __is_convertible(_From, _To);
      |                                                                       ^
/mnt/LFS/sources/gcc-13.2.0/build/include/type_traits:3363:71: error: expected primary-expression before ')' token
 3363 |   inline constexpr bool is_convertible_v = __is_convertible(_From, _To);
      |                                                                       ^
/mnt/LFS/sources/gcc-13.2.0/build/include/type_traits:3363:44: error: there are no arguments to '__is_convertible' that depend on a template parameter, so a declaration of '__is_convertible' must be available [-fpermissive]
 3363 |   inline constexpr bool is_convertible_v = __is_convertible(_From, _To);
      |                                            ^~~~~~~~~~~~~~~~
/mnt/LFS/sources/gcc-13.2.0/build/include/type_traits:3363:71: error: expected primary-expression before ')' token
 3363 |   inline constexpr bool is_convertible_v = __is_convertible(_From, _To);
      |                                                                       ^
/mnt/LFS/sources/gcc-13.2.0/build/include/type_traits:3363:44: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/mnt/LFS/sources/gcc-13.2.0/build/include/type_traits:3363:44: error: there are no arguments to '__is_convertible' that depend on a template parameter, so a declaration of '__is_convertible' must be available [-fpermissive]
 3363 |   inline constexpr bool is_convertible_v = __is_convertible(_From, _To);
      |                                            ^~~~~~~~~~~~~~~~
/mnt/LFS/sources/gcc-13.2.0/build/include/type_traits:3363:44: error: there are no arguments to '__is_convertible' that depend on a template parameter, so a declaration of '__is_convertible' must be available [-fpermissive]
 3363 |   inline constexpr bool is_convertible_v = __is_convertible(_From, _To);
      |                                            ^~~~~~~~~~~~~~~~
/mnt/LFS/sources/gcc-13.2.0/build/include/type_traits:3363:44: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/mnt/LFS/sources/gcc-13.2.0/build/include/type_traits:3363:44: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
make[2]: *** [Makefile:777: eh_arm.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /mnt/LFS/sources/gcc-13.2.0/build/include/bits/move.h:37,
                 from /mnt/LFS/sources/gcc-13.2.0/build/include/bits/exception_ptr.h:41,
                 from /mnt/LFS/sources/gcc-13.2.0/libstdc++-v3/libsupc++/exception:164,
                 from ../../libstdc++-v3/libsupc++/eh_alloc.cc:33:
/mnt/LFS/sources/gcc-13.2.0/build/include/type_traits:3363:66: error: expected primary-expression before ',' token
 3363 |   inline constexpr bool is_convertible_v = __is_convertible(_From, _To);
      |                                                                  ^
/mnt/LFS/sources/gcc-13.2.0/build/include/type_traits:3363:71: error: expected primary-expression before ')' token
 3363 |   inline constexpr bool is_convertible_v = __is_convertible(_From, _To);
      |                                                                       ^
/mnt/LFS/sources/gcc-13.2.0/build/include/type_traits:3363:44: error: there are no arguments to '__is_convertible' that depend on a template parameter, so a declaration of '__is_convertible' must be available [-fpermissive]
 3363 |   inline constexpr bool is_convertible_v = __is_convertible(_From, _To);
      |                                            ^~~~~~~~~~~~~~~~
/mnt/LFS/sources/gcc-13.2.0/build/include/type_traits:3363:44: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
make[2]: *** [Makefile:777: eh_call.lo] Error 1
make[2]: *** [Makefile:777: eh_aux_runtime.lo] Error 1
make[2]: *** [Makefile:777: eh_alloc.lo] Error 1
make[2]: Leaving directory '/mnt/LFS/sources/gcc-13.2.0/build/libsupc++'
make[1]: *** [Makefile:576: all-recursive] Error 1
make[1]: Leaving directory '/mnt/LFS/sources/gcc-13.2.0/build'
make: *** [Makefile:501: all] Error 2
The full log for the make command before the error is:
Code:
lfs:/mnt/LFS/sources/gcc-13.2.0/build$ 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-13.2.0/missing makeinfo " "SHELL=/bin/sh" "RUNTESTFLAGS=" "exec_prefix=/usr" "infodir=/usr/share/info" "libdir=/usr/lib" "includedir=/usr/include" "prefix=/usr" "tooldir=" "gxx_include_dir=/tools/x86_64-lfs-linux-gnu/include/c++/13.2.0" "AR=ar" "AS=as" "LD=/usr/bin/ld -m elf_x86_64" "RANLIB=ranlib" "NM=nm" "NM_FOR_BUILD=" "NM_FOR_TARGET=" "DESTDIR=" "WERROR=" all-recursive
make[1]: Entering directory '/mnt/LFS/sources/gcc-13.2.0/build'
Making all in include
make[2]: Entering directory '/mnt/LFS/sources/gcc-13.2.0/build/include'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/mnt/LFS/sources/gcc-13.2.0/build/include'
Making all in libsupc++
make[2]: Entering directory '/mnt/LFS/sources/gcc-13.2.0/build/libsupc++'
/bin/sh ../libtool --tag CXX --tag disable-shared   --mode=compile g++ -I/mnt/LFS/sources/gcc-13.2.0/libstdc++-v3/../libgcc -I/mnt/LFS/sources/gcc-13.2.0/build/include/x86_64-lfs-linux-gnu -I/mnt/LFS/sources/gcc-13.2.0/build/include -I/mnt/LFS/sources/gcc-13.2.0/libstdc++-v3/libsupc++   -prefer-pic -D_GLIBCXX_SHARED -fno-implicit-templates   -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=2  -fdiagnostics-show-location=once    -ffunction-sections -fdata-sections  -frandom-seed=eh_alloc.lo   -fcf-protection -mshstk -c -o eh_alloc.lo ../../libstdc++-v3/libsupc++/eh_alloc.cc
/bin/sh ../libtool --tag CXX --tag disable-shared   --mode=compile g++ -I/mnt/LFS/sources/gcc-13.2.0/libstdc++-v3/../libgcc -I/mnt/LFS/sources/gcc-13.2.0/build/include/x86_64-lfs-linux-gnu -I/mnt/LFS/sources/gcc-13.2.0/build/include -I/mnt/LFS/sources/gcc-13.2.0/libstdc++-v3/libsupc++   -prefer-pic -D_GLIBCXX_SHARED -fno-implicit-templates   -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=2  -fdiagnostics-show-location=once    -ffunction-sections -fdata-sections  -frandom-seed=eh_arm.lo   -fcf-protection -mshstk -c -o eh_arm.lo ../../libstdc++-v3/libsupc++/eh_arm.cc
/bin/sh ../libtool --tag CXX --tag disable-shared   --mode=compile g++ -I/mnt/LFS/sources/gcc-13.2.0/libstdc++-v3/../libgcc -I/mnt/LFS/sources/gcc-13.2.0/build/include/x86_64-lfs-linux-gnu -I/mnt/LFS/sources/gcc-13.2.0/build/include -I/mnt/LFS/sources/gcc-13.2.0/libstdc++-v3/libsupc++   -prefer-pic -D_GLIBCXX_SHARED -fno-implicit-templates   -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=2  -fdiagnostics-show-location=once    -ffunction-sections -fdata-sections  -frandom-seed=eh_aux_runtime.lo   -fcf-protection -mshstk -c -o eh_aux_runtime.lo ../../libstdc++-v3/libsupc++/eh_aux_runtime.cc
/bin/sh ../libtool --tag CXX --tag disable-shared   --mode=compile g++ -I/mnt/LFS/sources/gcc-13.2.0/libstdc++-v3/../libgcc -I/mnt/LFS/sources/gcc-13.2.0/build/include/x86_64-lfs-linux-gnu -I/mnt/LFS/sources/gcc-13.2.0/build/include -I/mnt/LFS/sources/gcc-13.2.0/libstdc++-v3/libsupc++   -prefer-pic -D_GLIBCXX_SHARED -fno-implicit-templates   -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=2  -fdiagnostics-show-location=once    -ffunction-sections -fdata-sections  -frandom-seed=eh_call.lo   -fcf-protection -mshstk -c -o eh_call.lo ../../libstdc++-v3/libsupc++/eh_call.cc
libtool: compile:  g++ -I/mnt/LFS/sources/gcc-13.2.0/libstdc++-v3/../libgcc -I/mnt/LFS/sources/gcc-13.2.0/build/include/x86_64-lfs-linux-gnu -I/mnt/LFS/sources/gcc-13.2.0/build/include -I/mnt/LFS/sources/gcc-13.2.0/libstdc++-v3/libsupc++ -D_GLIBCXX_SHARED -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=2 -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -frandom-seed=eh_arm.lo -fcf-protection -mshstk -c ../../libstdc++-v3/libsupc++/eh_arm.cc  -fPIC -DPIC -D_GLIBCXX_SHARED -o eh_arm.o
libtool: compile:  g++ -I/mnt/LFS/sources/gcc-13.2.0/libstdc++-v3/../libgcc -I/mnt/LFS/sources/gcc-13.2.0/build/include/x86_64-lfs-linux-gnu -I/mnt/LFS/sources/gcc-13.2.0/build/include -I/mnt/LFS/sources/gcc-13.2.0/libstdc++-v3/libsupc++ -D_GLIBCXX_SHARED -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=2 -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -frandom-seed=eh_alloc.lo -fcf-protection -mshstk -c ../../libstdc++-v3/libsupc++/eh_alloc.cc  -fPIC -DPIC -D_GLIBCXX_SHARED -o eh_alloc.o
libtool: compile:  g++ -I/mnt/LFS/sources/gcc-13.2.0/libstdc++-v3/../libgcc -I/mnt/LFS/sources/gcc-13.2.0/build/include/x86_64-lfs-linux-gnu -I/mnt/LFS/sources/gcc-13.2.0/build/include -I/mnt/LFS/sources/gcc-13.2.0/libstdc++-v3/libsupc++ -D_GLIBCXX_SHARED -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=2 -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -frandom-seed=eh_call.lo -fcf-protection -mshstk -c ../../libstdc++-v3/libsupc++/eh_call.cc  -fPIC -DPIC -D_GLIBCXX_SHARED -o eh_call.o
libtool: compile:  g++ -I/mnt/LFS/sources/gcc-13.2.0/libstdc++-v3/../libgcc -I/mnt/LFS/sources/gcc-13.2.0/build/include/x86_64-lfs-linux-gnu -I/mnt/LFS/sources/gcc-13.2.0/build/include -I/mnt/LFS/sources/gcc-13.2.0/libstdc++-v3/libsupc++ -D_GLIBCXX_SHARED -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=2 -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -frandom-seed=eh_aux_runtime.lo -fcf-protection -mshstk -c ../../libstdc++-v3/libsupc++/eh_aux_runtime.cc  -fPIC -DPIC -D_GLIBCXX_SHARED -o eh_aux_runtime.o
 
Old 04-19-2024, 08:16 PM   #2
murugesandins
Member
 
Registered: Apr 2024
Location: Bangalore Karnataka India
Distribution: CYGWIN_NT
Posts: 61

Rep: Reputation: 0
I am downloading https://ftp.gnu.org/gnu/gcc/gcc-13.2...-13.2.0.tar.xz
to compile that at windows here(since no Linux here)
>> to compile the same at simulated linux cygwin at windows.
During unzip process:
Code:
$ cd gcc-13.2.0/libstdc++-v3
murugesandins@127.0.0.1 /home/murugesandins/gcc-master/gcc-13.2.0/libstdc++-v3 [ 0 ]
$ ./configure
# in progress now

Last edited by murugesandins; 04-19-2024 at 08:19 PM.
 
Old 04-19-2024, 08:41 PM   #3
murugesandins
Member
 
Registered: Apr 2024
Location: Bangalore Karnataka India
Distribution: CYGWIN_NT
Posts: 61

Rep: Reputation: 0
Code:
murugesandinsdins@127.0.0.1 /home/murugesandinsdins/gcc-master/gcc-13.2.0/libstdc++-v3 [ 0 ]
$ ./configure
# ....
config.status: creating include/Makefile
./config.status: line 2625: ./../../config-ml.in: No such file or directory
murugesandins@127.0.0.1 /home/murugesandins/gcc-master/gcc-13.2.0/libstdc++-v3 [ 1 ]
$ cp  configure  configure.Original
murugesandins@127.0.0.1 /home/murugesandins/gcc-master/gcc-13.2.0/libstdc++-v3 [ 1 ]
$ grep -n =.*config-ml.in configure
74765:   ac_file=Makefile . ${multi_basedir}/config-ml.in
$ vi +74765  configure
Inside configure file
Code:
Replace:
	if test "$srcdir" = "."; then
	  if test "$with_target_subdir" != "."; then
		multi_basedir="$srcdir/$with_multisrctop../.."
	  else
		multi_basedir="$srcdir/$with_multisrctop.."
	  fi
	else
	  multi_basedir="$srcdir/.."
	fi
With:
	if test "$srcdir" = "."; then
	  if test "$with_target_subdir" != "."; then
		#murugesandins_IDA20Apr20240710AMIST
		#multi_basedir="$srcdir/$with_multisrctop../.."
		multi_basedir="$srcdir/$with_multisrctop../"
		#murugesandins_IDA20Apr20240710AMIST
	  else
		multi_basedir="$srcdir/$with_multisrctop.."
	  fi
	else
	  multi_basedir="$srcdir/.."
	fi
Code:
murugesandinsdins@127.0.0.1 /home/murugesandinsdins/gcc-master/gcc-13.2.0/libstdc++-v3 [ 0 ]
$ ./configure
#...
#...
sed -e 's/\(UNUSED\)/_GLIBCXX_\1/g' \
#...
    < /home/murugesandinsdins/gcc-master/gcc-13.2.0/libstdc++-v3/../libgcc/gthr-posix.h > bits/gthr-default.h
 
  


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
warning: libstdc++.so.5 may conflict with libstdc++.so.6 sbaratam Linux - Newbie 4 05-18-2009 02:38 PM
How to find libstdc++* or compat-libstdc++-* bopedibop Linux - Newbie 2 04-29-2008 09:53 AM
FC4 doesn't have libstdc++.so.5 but libstdc++.so.6 baosheng Fedora 14 04-06-2008 10:08 AM
Need older libraries: libstdc++-3.2.4, libstdc++-libc6.-1.so.2, & compat-2004.7.1 al_moline SUSE / openSUSE 2 10-19-2007 07:01 AM
mismatched rpm versions of libstdc++ and libstdc++-devel pcweirdo Linux - Software 8 11-29-2004 09:30 AM

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

All times are GMT -5. The time now is 06:11 AM.

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