LFS-5 compile - help needed

Michael Zachar mgzachar at stonline.sk
Tue Feb 10 13:54:15 PST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I have two problems compiling LFS-5:

First is compiling glibc-2.3.2 in chapter 6.

I am compiling anew on new disk with linux and swap partition only.
I used already compiled and archived /tools subdirectory extracted 
to
this disk.

First time compile completed without hitch including test suites and
end up in BLFS with X11 and KDE instalations. So to speak I'm using
LFS 5 to build LFS-5.

There should not be any conflicts here, right?

But after installing linux headers and man-pages here I have striked
problem during configure.

checking for suffix of object files... configure: error: cannot 
compute
suffix of object files: cannot compile
See `config.log' for more details.
root:/usr/src/glibc-build#


Here follows relevant section of config.log


configure:2938: gcc -V </dev/null >&5
gcc: `-V' option must have argument

above first error?? or intentional?




configure:2941: $? = 1
configure:2945: checking for suffix of object files
configure:2967: gcc -c   conftest.c >&5
gcc: installation problem, cannot exec `/tools/lib/gcc-lib/
i686-pc-linux-gnu/3.3.1/../../../../i686-pc-linux-gnu/bin/as': No 
such file or directory

Here is second that seems strange as file actualy exist:


root:/tools/i686-pc-linux-gnu/bin# ls -l as
- -rwxr-xr-x    2 root     root      1619437 Jan 20 19:51 as
root:/tools/i686-pc-linux-gnu/bin#



configure:2970: $? = 1
configure: failed program was:
| #line 2950 "configure"
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "GNU C Library"
| #define PACKAGE_TARNAME "c-library"
| #define PACKAGE_VERSION "(see version.h)"
| #define PACKAGE_STRING "GNU C Library (see version.h)"
| #define PACKAGE_BUGREPORT "glibc"
| #define USE_REGPARMS 1
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:2984: error: cannot compute suffix of object files: cannot 
compile
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-pc-linux-gnuoldld
ac_cv_build_alias=i686-pc-linux-gnuoldld
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=i686-pc-linux-gnuoldld
ac_cv_host_alias=i686-pc-linux-gnuoldld
ac_cv_path_PWD_P=/bin/pwd
ac_cv_path_install='/tools/bin/install -c'
ac_cv_prog_CC=gcc
ac_cv_prog_MAKE=make
ac_cv_prog_MAKEINFO=makeinfo
ac_cv_prog_MSGFMT=msgfmt
ac_cv_prog_SED=sed



In above what strikes me odd is >> i686-pc-linux-gnuoldld <<
is this what causes problem?
grep -ir *oldld* /tools didn't produce any results.


Second is compiling perl-5.8.0

Making DB_File (dynamic)
Writing Makefile for DB_File
make[1]: Entering directory `/usr/src/perl-5.8.0/ext/DB_File'
make[1]: Leaving directory `/usr/src/perl-5.8.0/ext/DB_File'
make[1]: Entering directory `/usr/src/perl-5.8.0/ext/DB_File'
Skip ../../lib/DB_File.pm (unchanged)
gcc -c   -DDEBUGGING -fno-strict-aliasing -D_LARGEFILE_SOURCE
- -D_FILE_OFFSET_BITS=64 -g   -DVERSION=\"1.804\" -DXS_VERSION=\"1.804
\"
- -fpic "-I../.."   version.c/usr/src/perl-5.8.0/miniperl "-I../../
lib"
"-I../../lib" ../../lib/ExtUtils/xsubpp -noprototypes
- -typemap ../../lib/ExtUtils/typemap -typemap typemap  DB_File.xs >
DB_File.xsc && mv DB_File.xsc DB_File.c
gcc -c   -DDEBUGGING -fno-strict-aliasing -D_LARGEFILE_SOURCE
- -D_FILE_OFFSET_BITS=64 -g   -DVERSION=\"1.804\" -DXS_VERSION=\"1.804
\"
- -fpic "-I../.."   DB_File.cDB_File.xs: In function `ParseOpenInfo':
DB_File.xs:1370: warning: passing arg 2 of pointer to function from
incompatible pointer type
DB_File.xs:1370: error: incompatible type for argument 4 of indirect
function call
DB_File.xs:1370: error: too few arguments to function
make[1]: *** [DB_File.o] Error 1
make[1]: Leaving directory `/usr/src/perl-5.8.0/ext/DB_File'
make: *** [lib/auto/DB_File/DB_File.so] Error 2

I'am asking here and not on BLFS becouse normaly it is compiled in 
LFS.

I was trying to recompile it in BLFS since trying to use CPAN all 
packages failed tests and would not install.
Bundle::CPAN and its dependencies is one I have tried first since 
originaly instaled CPAN anounced and recomended newer version.

Since I could not compile in BLFS I went to install new LFS and was 
going to copy resultant perl to BLFS if it prove to be different by 
using diff and if it was feaseble.

Advice where to look for problems would be appreciated

Regards Mick

 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFAKVMbo/L1NCjeVCARAtdrAJ95QVOXsKCxRfGui/RgR9vGjQeZdwCfatyk
RIMddLS3+oINGtXvYQtzbB4=
=FTcp
-----END PGP SIGNATURE-----




More information about the lfs-support mailing list