LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-15-2013, 01:01 PM   #1
tristan401
LQ Newbie
 
Registered: Dec 2013
Posts: 5

Rep: Reputation: Disabled
LInux from scratch: Libstdc++v3 compile problem


I am beginning my first Linux from Scratch build, and so far everything has worked completely fine.

I am using "Linux From Scratch - Version SVN-20131213" and I am running a Dell Vostro 220 with a custom Ubuntu made from mini.iso.

I am currently on Chapter 5, Section 5.8. Libstdc++-4.8.2.

I unpack gcc-4.8.2.tar.bz2 with no issues
I make the required build directory with
Code:
mkdir -pv ../gcc-build
cd ../gcc-build
Next, I run the configure script:
Code:
../gcc-4.8.2/libstdc++-v3/configure \
    --host=$LFS_TGT                      \
    --prefix=/tools                      \
    --disable-multilib                   \
    --disable-shared                     \
    --disable-nls                        \
    --disable-libstdcxx-threads          \
    --disable-libstdcxx-pch              \
    --with-gxx-include-dir=/tools/$LFS_TGT/include/c++/4.8.2
And get the following output:
Code:
 ../gcc-4.8.2/libstdc++-v3/configure \
>     --host=$LFS_TGT                      \
>     --prefix=/tools                      \
>     --disable-multilib                   \
>     --disable-shared                     \
>     --disable-nls                        \
>     --disable-libstdcxx-threads          \
>     --disable-libstdcxx-pch              \
>     --with-gxx-include-dir=/tools/$LFS_TGT/include/c++/4.8.2
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking build system type... i686-pc-linux-gnu
checking host system type... i686-lfs-linux-gnu
checking target system type... i686-lfs-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for i686-lfs-linux-gnu-strip... no
checking for strip... strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for i686-lfs-linux-gnu-gcc... i686-lfs-linux-gnu-gcc
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i686-lfs-linux-gnu-gcc accepts -g... yes
checking for i686-lfs-linux-gnu-gcc option to accept ISO C89... none needed
checking for i686-lfs-linux-gnu-g++... i686-lfs-linux-gnu-g++
checking whether we are using the GNU C++ compiler... yes
checking whether i686-lfs-linux-gnu-g++ accepts -g... yes
checking how to run the C preprocessor... i686-lfs-linux-gnu-gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking whether ln -s works... yes
checking for i686-lfs-linux-gnu-as... no
checking for as... as
configure: WARNING: using cross tools not prefixed with host triplet
checking for i686-lfs-linux-gnu-ar... no
checking for ar... ar
checking for i686-lfs-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking whether to enable maintainer-specific portions of Makefiles... no
configure: CPU config directory is cpu/i486
configure: OS config directory is os/gnu-linux
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by i686-lfs-linux-gnu-gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... no
checking for i686-lfs-linux-gnu-dumpbin... no
checking for i686-lfs-linux-gnu-link... no
checking for dumpbin... no
checking for link... link -dump
checking the name lister (nm) interface... BSD nm
checking the maximum length of command line arguments... 512
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for i686-lfs-linux-gnu-objdump... no
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for i686-lfs-linux-gnu-ar... ar
checking for i686-lfs-linux-gnu-strip... strip
checking for i686-lfs-linux-gnu-ranlib... ranlib
checking command to parse nm output from i686-lfs-linux-gnu-gcc object... failed
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if i686-lfs-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no
checking for i686-lfs-linux-gnu-gcc option to produce PIC... -fPIC -DPIC
checking if i686-lfs-linux-gnu-gcc PIC flag -fPIC -DPIC works... yes
checking if i686-lfs-linux-gnu-gcc static flag -static works... no
checking if i686-lfs-linux-gnu-gcc supports -c -o file.o... yes
checking if i686-lfs-linux-gnu-gcc supports -c -o file.o... (cached) yes
checking whether the i686-lfs-linux-gnu-gcc linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
Next, I type "make", just like the manual says to do...
This is my output:
Code:
make: *** No targets specified and no makefile found.  Stop.
So I try to find a makefile in the directory, and I see Makefile.def, Makefile.in, and Makefile.tpl

So where did I go wrong?
 
Old 12-15-2013, 01:53 PM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393
If this is your first LFS build, why chose for the unstable LFS svn/development version?

LFS svn/development is work in progress and might or might not work. Do yourself a huge favour and build the latest stable version instead.

Also: Make 100% sure that your host meets the vii. Host System Requirements. Run the script and fix the problems that show up.

You will not be able to build LFS without meeting these requirements!

Last edited by druuna; 12-15-2013 at 02:15 PM.
 
Old 12-15-2013, 02:17 PM   #3
tristan401
LQ Newbie
 
Registered: Dec 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
I am completely starting over, using the stable version of the manual, and making sure I have all requirements before I start.

Any reccomendations as to where i can find extra tutorials or guides for LFS?
 
Old 12-15-2013, 02:28 PM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393
Quote:
Originally Posted by tristan401 View Post
Any reccomendations as to where i can find extra tutorials or guides for LFS?
Nope.

The book is perfect as-is. Follow it to the letter and you end up with a working LFS system.

Not a guide, but it might be helpful for specific problems: LFS Mailing list archive
 
Old 12-15-2013, 06:43 PM   #5
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: A few
Posts: 3,692

Rep: Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005Reputation: 1005
Quote:
Originally Posted by tristan401 View Post
Next, I run the configure

[....]

Code:
checking dynamic linker characteristics... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
Next, I type "make", just like the manual says to do...
This is my output:
Code:
make: *** No targets specified and no makefile found.  Stop.
So I try to find a makefile in the directory, and I see Makefile.def, Makefile.in, and Makefile.tpl

So where did I go wrong?
General advice, also valid for the stable 7.4 version of LFS: If the configure script stops with an error, there is no need to look for a makefile. Your problem is at an earlier stage.

The beauty of LFS is that an undetected mistake can lead to a problem much later. I have a functioning (I thought) LFS installation, but when trying to compile Python, I had an error related to bzip2. It turns out that due to a typo my libbzip2 library was called libzzip2. The joys of troubleshooting!

The lesson: Even if there is no error message, reread and double-check everything you do.
 
Old 12-15-2013, 11:17 PM   #6
tristan401
LQ Newbie
 
Registered: Dec 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
Well thank you for all of your help. I will go back to the stable version, and follow everything exactly as it says.
 
  


Reply

Tags
compile error, libstdc++


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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] Linux Kernel 3.1 won't compile for i686 on Linux From Scratch 7.0 ubuntudude12 Linux From Scratch 4 12-30-2011 10:34 AM
kernel 2.6.9 compile fron scratch - issues gsgleason Linux - Newbie 1 10-25-2004 02:38 PM

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

All times are GMT -5. The time now is 10:38 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration