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 05-15-2018, 11:37 PM   #1
bhardwaj_himanshu
LQ Newbie
 
Registered: May 2018
Location: India
Distribution: Fedora,Ubuntu,RHEL 7
Posts: 1

Rep: Reputation: Disabled
LFS8.2, Host-Fedora(4.14) ERROR compiling GCC-7.3.0 Pass1


Hi All,


I am stuck in first pass of GCC in LFS and getting error as
checking dynamic linker characteristics... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.


while executing make getting this


checking if /mnt/lfs/sources/gcc-7.3.0/build/./gcc/xgcc -B/mnt/lfs/sources/gcc-7.3.0/build/./gcc/ -B/tools/x86_64-lfs-linux-gnu/bin/ -B/tools/x86_64-lfs-linux-gnu/lib/ -isystem /tools/x86_64-lfs-linux-gnu/include -isystem /tools/x86_64-lfs-linux-gnu/sys-include supports -fno-rtti -fno-exceptions... no
checking for /mnt/lfs/sources/gcc-7.3.0/build/./gcc/xgcc -B/mnt/lfs/sources/gcc-7.3.0/build/./gcc/ -B/tools/x86_64-lfs-linux-gnu/bin/ -B/tools/x86_64-lfs-linux-gnu/lib/ -isystem /tools/x86_64-lfs-linux-gnu/include -isystem /tools/x86_64-lfs-linux-gnu/sys-include option to produce PIC... -fPIC -DPIC
checking if /mnt/lfs/sources/gcc-7.3.0/build/./gcc/xgcc -B/mnt/lfs/sources/gcc-7.3.0/build/./gcc/ -B/tools/x86_64-lfs-linux-gnu/bin/ -B/tools/x86_64-lfs-linux-gnu/lib/ -isystem /tools/x86_64-lfs-linux-gnu/include -isystem /tools/x86_64-lfs-linux-gnu/sys-include PIC flag -fPIC -DPIC works... yes
checking if /mnt/lfs/sources/gcc-7.3.0/build/./gcc/xgcc -B/mnt/lfs/sources/gcc-7.3.0/build/./gcc/ -B/tools/x86_64-lfs-linux-gnu/bin/ -B/tools/x86_64-lfs-linux-gnu/lib/ -isystem /tools/x86_64-lfs-linux-gnu/include -isystem /tools/x86_64-lfs-linux-gnu/sys-include static flag -static works... no
checking if /mnt/lfs/sources/gcc-7.3.0/build/./gcc/xgcc -B/mnt/lfs/sources/gcc-7.3.0/build/./gcc/ -B/tools/x86_64-lfs-linux-gnu/bin/ -B/tools/x86_64-lfs-linux-gnu/lib/ -isystem /tools/x86_64-lfs-linux-gnu/include -isystem /tools/x86_64-lfs-linux-gnu/sys-include supports -c -o file.o... yes
checking if /mnt/lfs/sources/gcc-7.3.0/build/./gcc/xgcc -B/mnt/lfs/sources/gcc-7.3.0/build/./gcc/ -B/tools/x86_64-lfs-linux-gnu/bin/ -B/tools/x86_64-lfs-linux-gnu/lib/ -isystem /tools/x86_64-lfs-linux-gnu/include -isystem /tools/x86_64-lfs-linux-gnu/sys-include supports -c -o file.o... (cached) yes
checking whether the /mnt/lfs/sources/gcc-7.3.0/build/./gcc/xgcc -B/mnt/lfs/sources/gcc-7.3.0/build/./gcc/ -B/tools/x86_64-lfs-linux-gnu/bin/ -B/tools/x86_64-lfs-linux-gnu/lib/ -isystem /tools/x86_64-lfs-linux-gnu/include -isystem /tools/x86_64-lfs-linux-gnu/sys-include linker (/mnt/lfs/sources/gcc-7.3.0/build/./gcc/collect-ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
make[1]: *** [Makefile:13756: configure-target-libobjc] Error 1
make[1]: Leaving directory '/mnt/lfs/sources/gcc-7.3.0/build'
make: *** [Makefile:880: all] Error 2


Binutils compiled successfully
but yacc is not a symblink it just an executable file in my system

version-check output is :



lfs:~$ ./version-check.sh
bash, version 4.4.12(1)-release
/bin/sh -> /usr/bin/bash
Binutils: version 2.29-6.fc27
bison (GNU Bison) 3.0.4
Usage: /usr/bin/yacc [options] filename

Options:
-b file_prefix set filename prefix (default "y.")
-B create a backtracking parser
-d write definitions (.tab.h)
-i write interface (y.tab.i)
-g write a graphical description
-l suppress #line directives
-L enable position processing, e.g., "%locations"
-o output_file (default ".tab.c")
-p symbol_prefix set symbol prefix (default "yy")
-P create a reentrant parser, e.g., "%pure-parser"
-r produce separate code and table files (y.code.c)
-s suppress #define's for quoted names in %token lines
-t add debugging support
-v write description (y.output)
-V show version information and exit
yacc is
bzip2, Version 1.0.6, 6-Sept-2010.
Coreutils: 8.27
diff (GNU diffutils) 3.6
find (GNU findutils) 4.6.0
GNU Awk 4.1.4, API: 1.1 (GNU MPFR 3.1.5, GNU MP 6.1.2)
/usr/bin/awk -> /usr/bin/gawk
gcc (GCC) 7.3.1 20180130 (Red Hat 7.3.1-2)
g++ (GCC) 7.3.1 20180130 (Red Hat 7.3.1-2)
(GNU libc) 2.26
grep (GNU grep) 3.1
gzip 1.8
Linux version 4.14.13-300.fc27.x86_64 (mockbuild@bkernel01.phx2.fedoraproject.org) (gcc version 7.2.1 20170915 (Red Hat 7.2.1-2) (GCC)) #1 SMP Thu Jan 11 04:00:01 UTC 2018
m4 (GNU M4) 1.4.18
GNU Make 4.2.1
GNU patch 2.7.6
Perl version='5.26.1';
sed (GNU sed) 4.4
tar (GNU tar) 1.29
xz (XZ Utils) 5.2.3
g++ compilation OK.
 
Old 05-18-2018, 04:03 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
Are you any optimization try with out. Is it possible to try another host "Debian could use live cd"

Last edited by spiky0011; 05-18-2018 at 04:06 AM.
 
  


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
LFS8.2, Host-Ubuntu(16.04, liveCD) ERROR compiling GCC-7.3.0 Pass1 Shreyansh_nayak Linux From Scratch 3 03-28-2018 11:27 AM
collect2: error: ld returned 1 exit status , for make install gcc-4.8.1 in gcc-pass1 cola Linux From Scratch 1 02-16-2014 10:51 PM
[SOLVED] 7.3 gcc pass1 error Axium1998 Linux From Scratch 13 10-15-2013 07:25 AM
error while configuring gcc-3.3.3 (pass1) alext_29 Linux From Scratch 4 09-28-2004 11:48 PM
Compiling GCC (pass1):ld cannot find -lc Dargason Linux From Scratch 2 07-15-2004 02:48 AM

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

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