LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-24-2016, 11:32 AM   #1
AlbertPG
LQ Newbie
 
Registered: Jul 2016
Location: Barcelona
Distribution: Xubuntu 16.04.1 LTS
Posts: 12

Rep: Reputation: Disabled
Question Gperf is not installing the directory


I'm in chapter 6.51 of LFS 7.9 and, after installing the package like it is explained in the book, when I check if the directory exist I got an error.

Here is the log:
Code:
root:/sources/gperf-3.0.4# ./configure --prefix=/usr --docdir=/usr/share/doc/gperf-3.0.4
checking whether make sets $(MAKE)... yes
configure: creating ./config.status
config.status: creating Makefile
=== configuring in lib (/sources/gperf-3.0.4/lib)
configure: running /bin/sh ./configure '--prefix=/usr'  '--docdir=/usr/share/doc/gperf-3.0.4' --cache-file=/dev/null --srcdir=.
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for ranlib... ranlib
checking for a BSD compatible install... /usr/bin/install -c
configure: creating ./config.status
config.status: creating Makefile
=== configuring in src (/sources/gperf-3.0.4/src)
configure: running /bin/sh ./configure '--prefix=/usr'  '--docdir=/usr/share/doc/gperf-3.0.4' --cache-file=/dev/null --srcdir=.
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for a BSD compatible install... /usr/bin/install -c
checking for stack-allocated variable-size arrays... yes
checking for rand in -lm... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
=== configuring in tests (/sources/gperf-3.0.4/tests)
configure: running /bin/sh ./configure '--prefix=/usr'  '--docdir=/usr/share/doc/gperf-3.0.4' --cache-file=/dev/null --srcdir=.
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
configure: creating ./config.status
config.status: creating Makefile
=== configuring in doc (/sources/gperf-3.0.4/doc)
configure: running /bin/sh ./configure '--prefix=/usr'  '--docdir=/usr/share/doc/gperf-3.0.4' --cache-file=/dev/null --srcdir=.
checking whether make sets $(MAKE)... yes
checking for a BSD compatible install... /usr/bin/install -c
configure: creating ./config.status
config.status: creating Makefile
root:/sources/gperf-3.0.4# make
cd lib; make all
make[1]: Entering directory '/sources/gperf-3.0.4/lib'
gcc -g -O2 -I. -c ./getopt.c
gcc -g -O2 -I. -c ./getopt1.c
g++ -g -O2 -I. -c ./getline.cc
g++ -g -O2 -I. -c ./hash.cc
rm -f libgp.a
ar rc libgp.a getopt.o getopt1.o getline.o hash.o
ranlib libgp.a
make[1]: Leaving directory '/sources/gperf-3.0.4/lib'
cd src; make all
make[1]: Entering directory '/sources/gperf-3.0.4/src'
g++ -g -O2 -I. -I./../lib -c ./version.cc
g++ -g -O2 -I. -I./../lib -c ./positions.cc
g++ -g -O2 -I. -I./../lib -c ./options.cc
g++ -g -O2 -I. -I./../lib -c ./keyword.cc
g++ -g -O2 -I. -I./../lib -c ./keyword-list.cc
g++ -g -O2 -I. -I./../lib -c ./input.cc
g++ -g -O2 -I. -I./../lib -c ./bool-array.cc
g++ -g -O2 -I. -I./../lib -c ./hash-table.cc
g++ -g -O2 -I. -I./../lib -c ./search.cc
g++ -g -O2 -I. -I./../lib -c ./output.cc
g++ -g -O2 -I. -I./../lib -c ./main.cc
g++ -g -O2  -o gperf version.o positions.o options.o keyword.o keyword-list.o input.o bool-array.o hash-table.o search.o output.o main.o ../lib/libgp.a -lm
/usr/bin/ld: cannot find crtbegin.o: No such file or directory
collect2: error: ld returned 1 exit status
Makefile:74: recipe for target 'gperf' failed
make[1]: *** [gperf] Error 1
make[1]: Leaving directory '/sources/gperf-3.0.4/src'
Makefile:33: recipe for target 'all' failed
make: *** [all] Error 2
root:/sources/gperf-3.0.4# make -j1 check
cd lib; make check
make[1]: Entering directory '/sources/gperf-3.0.4/lib'
make[1]: Nothing to be done for 'check'.
make[1]: Leaving directory '/sources/gperf-3.0.4/lib'
cd src; make check
make[1]: Entering directory '/sources/gperf-3.0.4/src'
g++ -g -O2  -o gperf version.o positions.o options.o keyword.o keyword-list.o input.o bool-array.o hash-table.o search.o output.o main.o ../lib/libgp.a -lm
/usr/bin/ld: cannot find crtbegin.o: No such file or directory
collect2: error: ld returned 1 exit status
Makefile:74: recipe for target 'gperf' failed
make[1]: *** [gperf] Error 1
make[1]: Leaving directory '/sources/gperf-3.0.4/src'
Makefile:57: recipe for target 'check' failed
make: *** [check] Error 2
root:/sources/gperf-3.0.4# make install
cd lib; make install
make[1]: Entering directory '/sources/gperf-3.0.4/lib'
make[1]: Nothing to be done for 'install'.
make[1]: Leaving directory '/sources/gperf-3.0.4/lib'
cd src; make install
make[1]: Entering directory '/sources/gperf-3.0.4/src'
g++ -g -O2  -o gperf version.o positions.o options.o keyword.o keyword-list.o input.o bool-array.o hash-table.o search.o output.o main.o ../lib/libgp.a -lm
/usr/bin/ld: cannot find crtbegin.o: No such file or directory
collect2: error: ld returned 1 exit status
Makefile:74: recipe for target 'gperf' failed
make[1]: *** [gperf] Error 1
make[1]: Leaving directory '/sources/gperf-3.0.4/src'
Makefile:39: recipe for target 'install' failed
make: *** [install] Error 2
root:/sources/gperf-3.0.4# /usr/share/doc/gperf-3.0.4
bash: /usr/share/doc/gperf-3.0.4: No such file or directory
root:/sources/gperf-3.0.4#
Is it installed in a different directory or what happens?

Thanks in advance
 
Old 08-24-2016, 11:36 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
Looks like the same as Bison problem you had? Maybe the problem is showing it,s ugly head now
 
Old 08-24-2016, 11:56 AM   #3
AlbertPG
LQ Newbie
 
Registered: Jul 2016
Location: Barcelona
Distribution: Xubuntu 16.04.1 LTS
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by spiky0011 View Post
Looks like the same as Bison problem you had? Maybe the problem is showing it,s ugly head now
It's similar but at the same time is different because in bison the same package told me how to solve it. In the log I have read that there is a file called crtbegin.o which should be in /usr/bin/ld, but there isn't there. I tried to reinstall many times and it didn't worked
 
Old 08-24-2016, 12:06 PM   #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
Ok there should be no reason to deviate from book as you did in bison, meaning something is wrong, I dont know what creates crtbegin.o but at a guess GCC
 
Old 08-24-2016, 12:15 PM   #5
AlbertPG
LQ Newbie
 
Registered: Jul 2016
Location: Barcelona
Distribution: Xubuntu 16.04.1 LTS
Posts: 12

Original Poster
Rep: Reputation: Disabled
Yes, you're right: crtbegin.o is from GCC. Maybe there was a problem with the installation of that package. I will install it again to check if the problem is gone.
 
  


Reply


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
Installing in a different directory.... RayAID Red Hat 3 09-28-2010 03:00 PM
Installing a RPM to a particular Directory linuxnewbie82 Fedora 6 09-15-2009 01:32 AM
directory for installing firefox philosophe Mandriva 3 02-28-2005 05:40 AM
glibc CVS - installing into different directory. ugenn Linux - Software 2 07-13-2004 01:40 PM
YAST2: Installing from directory possible micha Linux - Newbie 1 01-27-2004 10:15 PM

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

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