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 01-07-2023, 11:00 PM   #1
menotu3169
LQ Newbie
 
Registered: Feb 2019
Posts: 12

Rep: Reputation: Disabled
Installing GCC- Pass 2 failing


Hello,

I am currently trying to build Linux From Scratch - Version 11.2

Everything has gone fairly smoothly up until this point but I have run into an issue in section 6.18.1. Installation of GCC (pass 2)

When I run make I get the following error
Code:
Checking multilib configuration for libgcc...
make[2]: Entering directory '/media/mark/LFS/sources/gcc/gcc-11.2.0/build/x86_64-lfs-linux-gnu/libgcc'
# If this is the top-level multilib, build all the other
# multilibs.
x86_64-lfs-linux-gnu-gcc --sysroot=/media/mark/LFS   -g -O2 -O2 -g -O2 -DIN_GCC    -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag -Wstrict-prototypes -Wmissing-prototypes -Wno-error=format-diag -Wold-style-definition  -isystem ./include  -I. -I. -I../.././gcc -I../../../libgcc -I../../../libgcc/. -I../../../libgcc/../gcc -I../../../libgcc/../include   -g0  -finhibit-size-directive -fno-inline -fno-exceptions -fno-zero-initialized-in-bss -fno-toplevel-reorder -fno-tree-vectorize -fbuilding-libgcc -fno-stack-protector    -I. -I. -I../.././gcc -I../../../libgcc -I../../../libgcc/. -I../../../libgcc/../gcc -I../../../libgcc/../include  -o crtend.o -MT crtend.o -MD -MP -MF crtend.dep  -fno-omit-frame-pointer -fno-asynchronous-unwind-tables -fcf-protection -mshstk -c ../../../libgcc/crtstuff.c -DCRT_END
../../../libgcc/crtstuff.c: In function '__do_global_ctors_aux':
../../../libgcc/crtstuff.c:695:12: error: '__CTOR_END__' undeclared (first use in this function); did you mean '__TMC_END__'?
  695 |   for (p = __CTOR_END__ - 1; *p != (func_ptr) -1; p--)
      |            ^~~~~~~~~~~~
      |            __TMC_END__
../../../libgcc/crtstuff.c:695:12: note: each undeclared identifier is reported only once for each function it appears in
Makefile:1029: recipe for target 'crtend.o' failed
make[2]: *** [crtend.o] Error 1
make[2]: Leaving directory '/media/mark/LFS/sources/gcc/gcc-11.2.0/build/x86_64-lfs-linux-gnu/libgcc'
Makefile:14433: recipe for target 'all-target-libgcc' failed
make[1]: *** [all-target-libgcc] Error 2
make[1]: Leaving directory '/media/mark/LFS/sources/gcc/gcc-11.2.0/build'
Makefile:964: recipe for target 'all' failed
make: *** [all] Error 2
I really can't make any sense of the above error, so I really haven't tried anything yet. The only thing I have tried is re-running 'make' but I get the same error.

Any help would be greatly appreciated
 
Old 01-09-2023, 09:22 AM   #2
hendrickxm
Member
 
Registered: Feb 2014
Posts: 344

Rep: Reputation: Disabled
Try rebuilding pass 2 of binutils. If that fails, redo chapter 6 or even 5 and 6. I guess you are using the latest stable version of the book.
 
  


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
installation of gcc failing, make error 2 and libstdc++ tests failing... RetroGamerCX Linux From Scratch 15 12-26-2022 06:43 AM
gcc-4.5.2 - Pass 1 error -gcc command not found ?? adi_30stm Linux From Scratch 20 11-17-2011 12:23 PM
[SOLVED] GCC-4.5.2 - Pass 2 / unsetting the multilib spec for GCC golarbol Linux From Scratch 2 07-11-2011 07:30 AM
questions on GCC-3.4.3 - Pass 2 and Binutils-2.15.94.0.2.2 - Pass 2 satimis Linux From Scratch 7 12-26-2005 09:23 PM

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

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