LinuxQuestions.org
Review your favorite Linux distribution.
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 10-18-2016, 07:32 AM   #1
udinIMM
LQ Newbie
 
Registered: Oct 2016
Distribution: Kali GNU/Linux Rolling 64-bit
Posts: 2

Rep: Reputation: Disabled
On step 5.10, backtrace error


Hello, I've started 5.10 in the LFS book 5.10. GCC-4.9.0 - Pass 2. LFS version 7.10. PC is HP Pavilion with Intel core i7 64-bit
When I enter this step:
Code:
make
I get this:
Code:
make[2]: Entering directory '/mnt/lfs/sources/gcc-6.2.0/build/gcc'
g++ -no-pie   -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE   -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc  -o cc1 c/c-lang.o c-family/stub-objc.o attribs.o c/c-errors.o c/c-decl.o c/c-typeck.o c/c-convert.o c/c-aux-info.o c/c-objc-common.o c/c-parser.o c/c-array-notation.o c/c-fold.o c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o c-family/c-gimplify.o c-family/c-indentation.o c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o c-family/c-pretty-print.o c-family/c-semantics.o c-family/c-ada-spec.o c-family/c-cilkplus.o c-family/array-notation-common.o c-family/cilk.o c-family/c-ubsan.o i386-c.o glibc-c.o \
  cc1-checksum.o libbackend.a main.o libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a   ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a   -L/mnt/lfs/sources/gcc-6.2.0/build/./gmp/.libs -L/mnt/lfs/sources/gcc-6.2.0/build/./mpfr/src/.libs -L/mnt/lfs/sources/gcc-6.2.0/build/./mpc/src/.libs -lmpc -lmpfr -lgmp -rdynamic -ldl  -L./../zlib -lz
libcommon.a(diagnostic.o): In function `diagnostic_action_after_output(diagnostic_context*, diagnostic_t)':
/mnt/lfs/sources/gcc-6.2.0/build/gcc/../../gcc/diagnostic.c:476: undefined reference to `backtrace_full'
../libbacktrace/.libs/libbacktrace.a(state.o): In function `backtrace_create_state':
/mnt/lfs/sources/gcc-6.2.0/build/libbacktrace/../../libbacktrace/state.c:65: undefined reference to `backtrace_alloc'
collect2: error: ld returned 1 exit status
../../gcc/c/Make-lang.in:71: recipe for target 'cc1' failed
make[2]: *** [cc1] Error 1
make[2]: Leaving directory '/mnt/lfs/sources/gcc-6.2.0/build/gcc'
Makefile:4146: recipe for target 'all-gcc' failed
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory '/mnt/lfs/sources/gcc-6.2.0/build'
Makefile:886: recipe for target 'all' failed
make: *** [all] Error 2
undefined reference to `backtrace_full' & undefined reference to `backtrace_alloc'. What's wrong in this case? I lost backtrace.h?

Last edited by udinIMM; 10-18-2016 at 07:40 AM.
 
Old 10-18-2016, 10:56 PM   #2
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
What distribution are you using and can you run and post the output of the check scripts given before the build process to see if your packages are correct?
 
Old 10-19-2016, 02:36 AM   #3
udinIMM
LQ Newbie
 
Registered: Oct 2016
Distribution: Kali GNU/Linux Rolling 64-bit
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ReaperX7 View Post
What distribution are you using and can you run and post the output of the check scripts given before the build process to see if your packages are correct?
I use Kali GNU/Linux Rolling 64-bit

Sorry I don't know how to check the packages. Can you help me?
I just run this command, correct me if I'm wrong
Code:
make check
Thanks for help me and the output of make check below
Attached Files
File Type: txt make check output.txt (40.2 KB, 63 views)
 
Old 10-19-2016, 11:44 AM   #4
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
Just apoint
Quote:
LFS book 5.10. GCC-4.9.0 - Pass 2. LFS version 7.10
I hope that is a typo, I see you are using the correct gcc-6.2.0 and are following the 7.10 book and not an earlier book?

The 2nd thing is Kali is a specialised distro, not the ideal host to build lfs.

Maybe post the output of version check script here
http://www.linuxfromscratch.org/lfs/.../hostreqs.html
 
Old 04-08-2018, 10:11 AM   #5
ivo2376
LQ Newbie
 
Registered: Apr 2018
Posts: 4

Rep: Reputation: Disabled
for version check
https://pastebin.com/QTZy4siY

what am i doing ? and what am i doing wrong ?
first version check all OK
then env -testing and setting
first of all 01.clfs-su.sh
https://pastebin.com/p1bGxR2a
second 02-user-clfs.sh
https://pastebin.com/NGZe6Qgc
third 03-INSTALL-LINUX-HEADERS.sh
https://pastebin.com/d7JVuTRg
fourth 04-binutils.sh
https://pastebin.com/prbuGq4s
fifth 05-gcc-first-step.sh
https://pastebin.com/fHVRbW2R
sixth 06-muesli.sh
https://pastebin.com/3U0ktANY
zeventh 07-gcc-final.sh
https://pastebin.com/5Wa8T2j6

it fails on step 7 saying the exact error described on this page
i have no clue
all i want todo is clfs cross compîle linux for psvitaTV-4K lol
thanks in advance highly anticipating ur answers

make check on latest step does show intresting
https://pastebin.com/iuuH6fTK

Last edited by ivo2376; 04-08-2018 at 10:12 AM.
 
Old 04-13-2018, 06:14 AM   #6
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
your version check has errors correct them and start again, also kali is not a good distro to use to build LFS it is a highly specialized distro and is NOT for beginers, regardless of what you may have seen on tv.
 
  


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
[SOLVED] LFS 7.5 step 5.5 ... 5.7 error wiebittewas Linux From Scratch 4 03-21-2014 03:18 AM
[SOLVED] LFS 7.4 step 5.7 error Rodano Linux From Scratch 34 09-26-2013 09:31 PM
[SOLVED] GDB internal-error using backtrace kronmiller Programming 10 08-03-2010 10:50 AM
error 396, on a variable (gcc), learning GCC step by step frenchn00b Programming 2 09-11-2009 01:03 PM
PHP compile error - bug report needs backtrace - how to do this? jpmad4it Linux - Software 0 02-20-2009 02:17 AM

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

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