LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   grep fails to install (http://www.linuxquestions.org/questions/linux-from-scratch-13/grep-fails-to-install-382651/)

bmfan 11-13-2005 06:14 AM

grep fails to install
 
everything seems to go just fine untill i get to grep , make fails . it also fails on patch and i notice after i run configure and i run make configure runs and then make will run. im not sure if thats normal or not . up untill i get to grep everything goes just fine. any ideas what might be going wrong or where i should look ?

mr_demilord 11-13-2005 07:41 AM

Which version of LFS are you building?

what are the last lines of the error?

bmfan 11-13-2005 08:27 AM

lfs-6.1 , I'll have to start from scratch to get the error message again. which im doing right now. is it normal for configure to run again when i run make ? another question. its the only part im not sure about. for adjusting the toolchain it says to run
Code:

SPECFILE=`gcc --print-file specs` &&
sed 's@ /lib/ld-linux.so.2@ /tools/lib/ld-linux.so.2@g' \
    $SPECFILE > tempspecfile &&
mv -f tempspecfile $SPECFILE &&
unset SPECFILE

where am i supose to run that from , the gcc-build directory ?

bmfan 11-13-2005 10:31 AM

ok here is the error
Code:

lfs:/mnt/lfs/sources/grep-2.5.1a$ make
cd . && /bin/sh /mnt/lfs/sources/grep-2.5.1a/missing --run aclocal
/usr/share/aclocal/pkg.m4:5: warning: underquoted definition of PKG_CHECK_MODULES
  run info '(automake)Extending aclocal'
  or see http://sources.redhat.com/automake/a...ending-aclocal
/usr/share/aclocal/pilot-link.m4:1: warning: underquoted definition of AC_PILOT_LINK_HOOK
/usr/share/aclocal/imlib.m4:9: warning: underquoted definition of AM_PATH_IMLIB
/usr/share/aclocal/imlib.m4:167: warning: underquoted definition of AM_PATH_GDK_IMLIB
/usr/share/aclocal/gtk.m4:7: warning: underquoted definition of AM_PATH_GTK
/usr/share/aclocal/glib.m4:8: warning: underquoted definition of AM_PATH_GLIB
/usr/share/aclocal/gdk-pixbuf.m4:12: warning: underquoted definition of AM_PATH_GDK_PIXBUF
/usr/share/aclocal/audiofile.m4:12: warning: underquoted definition of AM_PATH_AUDIOFILE
/usr/share/aclocal/aalib.m4:12: warning: underquoted definition of AM_PATH_AALIB
aclocal:configure.in:82: warning: macro `AM_SEP' not found in library
cd . && \
  /bin/sh /mnt/lfs/sources/grep-2.5.1a/missing --run automake --gnu  Makefile
cd . && /bin/sh /mnt/lfs/sources/grep-2.5.1a/missing --run autoconf
configure.in:37: error: possibly undefined macro: jm_AC_TYPE_UINTMAX_T
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.in:45: error: possibly undefined macro: AC_MBSTATE_T
configure.in:55: error: possibly undefined macro: jm_AC_PREREQ_XSTRTOUMAX
configure.in:78: error: possibly undefined macro: AC_DOSFILE
configure.in:82: error: possibly undefined macro: AM_SEP
WARNING: `autoconf' is missing on your system.  You should only need it if
        you modified `configure.in'.  You might want to install the
        `Autoconf' and `GNU m4' packages.  Grab them from any GNU
        archive site.
/bin/sh ./config.status --recheck
running /bin/sh ./configure  --prefix=/tools --disable-perl-regexp  --no-create --no-recursion
checking for a BSD-compatible install... /tools/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu

./configure: line 6344: jm_AC_PREREQ_XSTRTOUMAX: command not found
./configure: line 6346: syntax error near unexpected token `newline'
./configure: line 6346: `jm_CHECK_DECLARATIONS(#include <stdlib.h>, strtoul strtoull)'
make: *** [config.status] Error 2
lfs:/mnt/lfs/sources/grep-2.5.1a$

I think the error might be coming from pass two of gcc install, make runs for half an hour or so but make install only takes ten seconds. and after pss two off gcc is when i start seeing it run configure again when i type make

mr_demilord 11-14-2005 01:20 PM

Quote:

Originally posted by bmfan
is it normal for configure to run again when i run make ?
another question. its the only part im not sure about. for adjusting the toolchain it says to run
where am i supose to run that from , the gcc-build directory ? [/B]
1. Sometimes it does and with some packages it is normal.
2. Just copy and paste the code and run it from the terminal/console. from the gcc-build directory.
3. Depends on the package, some packages requires you to build the package outside the source tree/directory. GCC requires you to run make in the gcc-build directory,so yes.

I hope it is clear for you now.

mr_demilord 11-14-2005 01:31 PM

You can try to rebuild and cheat with the build of LFS to do everything with copy/paste. ;)
Especialy GCC which is a pain is the best to copy past the configure code.
I had the same problem with GCC


All times are GMT -5. The time now is 11:47 PM.