LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-05-2022, 08:12 PM   #1
hexo
LQ Newbie
 
Registered: May 2022
Posts: 1

Rep: Reputation: 0
Question Compiling Libstdc++ from GCC-11.2.0, Pass 1


when i try to compile the libstdc++ pass 1 i get this error this problem repeat with all the distribution linux
kubuntu
kali linux
ubuntu
debian
.....

Code:
configure: creating ./config.status
config.status: creating Makefile
config.status: creating scripts/testsuite_flags
config.status: creating scripts/extract_symvers
config.status: creating doc/xsl/customization.xsl
config.status: creating include/Makefile
config.status: creating libsupc++/Makefile
config.status: creating src/Makefile
config.status: creating src/c++98/Makefile
config.status: creating src/c++11/Makefile
config.status: creating src/c++17/Makefile
config.status: creating src/c++20/Makefile
config.status: creating src/filesystem/Makefile
config.status: creating doc/Makefile
config.status: creating po/Makefile
config.status: creating testsuite/Makefile
config.status: creating python/Makefile
config.status: creating config.h
config.status: executing default-1 commands
config.status: executing libtool commands
config.status: executing include/gstdint.h commands
config.status: executing generate-headers commands
echo timestamp > stamp-pb
echo timestamp > stamp-host
make: [Makefile:1767: x86_64-lsos-linux-gnu/bits/largefile-config.h] Error 1 (ignored)
make: [Makefile:1768: x86_64-lsos-linux-gnu/bits/largefile-config.h] Error 1 (ignored)
echo 0 > stamp-namespace-version
echo 1 > stamp-visibility
echo 1 > stamp-extern-template
echo 1 > stamp-dual-abi
echo 1 > stamp-cxx11-abi
echo 1 > stamp-allocator-new
echo 'define _GLIBCXX_USE_FLOAT128 1' > stamp-float128
sed -e '/^#pragma/b' \
    -e '/^#/s/\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][ABCDEFGHIJKLMNOPQRSTUVWXYZ_]*\)/_GLIBCXX_\1/g' \
    -e 's/_GLIBCXX_SUPPORTS_WEAK/__GXX_WEAK__/g' \
    -e 's/_GLIBCXX___MINGW32_GLIBCXX___/__MINGW32__/g' \
    -e 's,^#include "\(.*\)",#include <bits/\1>,g' \
    < /mnt/lsos/sources/gcc-11.2.0/libstdc++-v3/../libgcc/gthr.h > x86_64-lsos-linux-gnu/bits/gthr.h
sed -e 's/\(UNUSED\)/_GLIBCXX_\1/g' \
    -e 's/\(GCC[ABCDEFGHIJKLMNOPQRSTUVWXYZ_]*_H\)/_GLIBCXX_\1/g' \
    < /mnt/lsos/sources/gcc-11.2.0/libstdc++-v3/../libgcc/gthr-single.h > x86_64-lsos-linux-gnu/bits/gthr-single.h
sed -e 's/\(UNUSED\)/_GLIBCXX_\1/g' \
    -e 's/\(GCC[ABCDEFGHIJKLMNOPQRSTUVWXYZ_]*_H\)/_GLIBCXX_\1/g' \
    -e 's/SUPPORTS_WEAK/__GXX_WEAK__/g' \
    -e 's/\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]*USE_WEAK\)/_GLIBCXX_\1/g' \
    < /mnt/lsos/sources/gcc-11.2.0/libstdc++-v3/../libgcc/gthr-posix.h > x86_64-lsos-linux-gnu/bits/gthr-posix.h
sed -e 's/\(UNUSED\)/_GLIBCXX_\1/g' \
    -e 's/\(GCC[ABCDEFGHIJKLMNOPQRSTUVWXYZ_]*_H\)/_GLIBCXX_\1/g' \
    -e 's/SUPPORTS_WEAK/__GXX_WEAK__/g' \
    -e 's/\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]*USE_WEAK\)/_GLIBCXX_\1/g' \
    -e 's,^#include "\(.*\)",#include <bits/\1>,g' \
    < /mnt/lsos/sources/gcc-11.2.0/libstdc++-v3/../libgcc/gthr-single.h > x86_64-lsos-linux-gnu/bits/gthr-default.h



Code:
make: [Makefile:1767: x86_64-LSOS-linux-gnu/bits/largefile-config.h] Error 1 (ignored)
make: [Makefile:1768: x86_64-LSOS-linux-gnu/bits/largefile-config.h] Error 1 (ignored)

Last edited by hexo; 05-07-2022 at 02:13 PM.
 
Old 05-06-2022, 05:44 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,572
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
First put this kind of output between [code][/code] tags. It's unreadable otherwise.

And second, show us the bit with the error message. It's not included in your post.
 
Old 07-24-2022, 10:56 PM   #3
yezhengmao
LQ Newbie
 
Registered: Jul 2022
Posts: 2

Rep: Reputation: 0
do you fix it? I also found the error in my compile stage.
 
  


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
LFS 11.0 Ch 7.7. Libstdc++ from GCC-11.2.0, Pass 2 areccsu Linux From Scratch 3 05-28-2022 09:11 AM
LFS 11.0 Ch 7.7. Libstdc++ from GCC-11.2.0, Pass 2 areccsu Linux From Scratch 0 05-06-2022 03:45 PM
LFS 10.1 failed at Chapter 7.7. Libstdc++ from GCC-10.2.0, Pass 2 someguydude Linux From Scratch 7 07-06-2021 05:44 PM
[SOLVED] Questions about "Creating Essential Files and Symlinks" and "Libstdc++ from GCC-10.2.0, Pass 2". n00b_noob Linux From Scratch 4 02-04-2021 07:10 AM
gcc-pass 2...libstdc++-v3...GCC_NO_EXECUTABLE!! tagigogo Linux From Scratch 7 05-15-2005 11:19 AM

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

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