LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   LFS 7.1 6.10 readelf: Error: 'a.out' : No such file (https://www.linuxquestions.org/questions/linux-from-scratch-13/lfs-7-1-6-10-readelf-error-a-out-no-such-file-4175411323/)

lfs_newbie 06-13-2012 09:06 PM

LFS 7.1 6.10 readelf: Error: 'a.out' : No such file
 
I am on page 91; working on trying to re-adjust the toolchain; I have no issues up to this point. I am using Matthias Benkmann's more_control package management system, just in case this might be leading to the issue. For those who look at my past issues, I restarted the process, corrected the version-check.sh issues of mawk > gawk & dash > bash.

root:/# gcc -dumpspecs | sed -e 's@/tools@@g' -e '/\*startfile_prefix_spec:/{n;s@.*@/usr/lib/ @}' -e '/\*cpp:/{n;s@$@ -isystem /usr/include@}' > `dirname $(gcc --print-libgcc-file-name)`/specs
root:/# echo 'main(){}' > dummy.croot:/# cc dummy.c -v -W1, --verbose &> dummy.log
root:/# readelf -l a.out | grep ': /lib'
readelf: Error: 'a.out': No such file
root:/# grep -o '/usr/lib.*/crt[1in].*succeeded' dummy.log
root:/# grep -B1 '^ /usr/include' dummy.log
#include <...> search starts here:
/usr/include
root:/#

spiky0011 06-14-2012 12:04 PM

Hi

Here
same problem, Post the same file as asked hopfully someone can spot a mistake.

lfs_newbie 06-14-2012 02:10 PM

I will look at it when I get home and can read it all. That is what I get, when i try limiting the search to LFS 7.1, and not going back a couple of distributions.

lfs_newbie 06-14-2012 08:29 PM

Here is the contents of the dummy.log; took me a moment to think i could actually open another terminal outside of the one I was in, so I didn't have to get out of chroot and then back in.

Code:


Reading specs from /tools/lib/gcc/i686-pc-linux-gnu/4.6.2/specs
COLLECT_GCC=cc
COLLECT_LTO_WRAPPER=/tools/libexec/gcc/i686-pc-linux-gnu/4.6.2/lto-wrapper
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.6.2/configure --prefix=/tools --with-local-prefix=/tools --enable-clocale=gnu --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++ --disable-libstdcxx-pch --disable-multilib --disable-bootstrap --disable-libgomp --without-ppl --without-cloog --with-mpfr-include=/mnt/lfs/sources/gcc-build/../gcc-4.6.2/mpfr/src --with-mpfr-lib=/mnt/lfs/sources/gcc-build/mpfr/src/.libs
Thread model: posix
gcc version 4.6.2 (GCC)
COLLECT_GCC_OPTIONS='-v' '-W1,' '-v' '-mtune=generic' '-march=pentiumpro'
 /tools/libexec/gcc/i686-pc-linux-gnu/4.6.2/cc1 -quiet -v -v -isystem /usr/include dummy.c -quiet -dumpbase dummy.c -mtune=generic -march=pentiumpro -auxbase dummy -W1, -version -o /tmp/ccZ4nGWD.s
cc1: error: unrecognized command line option '-W1,'
GNU C (GCC) version 4.6.2 (i686-pc-linux-gnu)
        compiled by GNU C version 4.6.2, GMP version 5.0.4, MPFR version 3.1.0, MPC version 0.9
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "/tools/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/include
 /tools/lib/gcc/i686-pc-linux-gnu/4.6.2/include
 /tools/include
 /tools/lib/gcc/i686-pc-linux-gnu/4.6.2/include-fixed
End of search list.
GNU C (GCC) version 4.6.2 (i686-pc-linux-gnu)
        compiled by GNU C version 4.6.2, GMP version 5.0.4, MPFR version 3.1.0, MPC version 0.9
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072

I think that the error is this...

Code:


COLLECT_GCC_OPTIONS='-v' '-W1,' '-v' '-mtune=generic' '-march=pentiumpro'
 /tools/libexec/gcc/i686-pc-linux-gnu/4.6.2/cc1 -quiet -v -v -isystem /usr/include dummy.c -quiet -dumpbase dummy.c -mtune=generic -march=pentiumpro -auxbase dummy -W1, -version -o /tmp/ccZ4nGWD.s
cc1: error: unrecognized command line option '-W1,'

So I went and tried to reconfigure and install glibc.

got the following error

Code:

checking for forced unwind support... no
configure: error: forced unwind support is required
package glibc:/usr/src/glibc/glibc-build>


So an output from that config.log (next post)

---------- Post added 06-14-12 at 09:30 PM ----------

Code:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by GNU C Library configure (see version.h), which was
generated by GNU Autoconf 2.66.  Invocation command line was

  $ ../glibc-2.14.1/configure --prefix=/usr --disable-profile --enable-add-ons --enable-kernel=2.6.25 --libexecdir=/usr/lib/glibc

## --------- ##
## Platform. ##
## --------- ##

hostname = LFS
uname -m = i686
uname -r = 2.6.32-5-686
uname -s = Linux
uname -v = #1 SMP Sun May 6 04:01:19 UTC 2012

/usr/bin/uname -p = unknown
/bin/uname -X    = unknown

/bin/arch              = unknown
/usr/bin/arch -k      = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine          = unknown
/usr/bin/oslevel      = unknown
/bin/universe          = unknown

PATH: /usr/lib/pkgusr
PATH: /bin
PATH: /usr/bin
PATH: /sbin
PATH: /usr/sbin
PATH: /tools/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2363: checking build system type
configure:2377: result: i686-pc-linux-gnu
configure:2397: checking host system type
configure:2410: result: i686-pc-linux-gnu
configure:2479: checking for gcc
configure:2495: found /tools/bin/gcc
configure:2506: result: gcc
configure:2735: checking for C compiler version
configure:2744: gcc --version >&5
gcc (GCC) 4.6.2
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2755: $? = 0
configure:2744: gcc -v >&5
Reading specs from /tools/lib/gcc/i686-pc-linux-gnu/4.6.2/specs
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/tools/libexec/gcc/i686-pc-linux-gnu/4.6.2/lto-wrapper
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.6.2/configure --prefix=/tools --with-local-prefix=/tools --enable-clocale=gnu --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++ --disable-libstdcxx-pch --disable-multilib --disable-bootstrap --disable-libgomp --without-ppl --without-cloog --with-mpfr-include=/mnt/lfs/sources/gcc-build/../gcc-4.6.2/mpfr/src --with-mpfr-lib=/mnt/lfs/sources/gcc-build/mpfr/src/.libs
Thread model: posix
gcc version 4.6.2 (GCC)
configure:2755: $? = 0
configure:2744: gcc -V >&5
gcc: error: unrecognized option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:2755: $? = 1
configure:2744: gcc -qversion >&5
gcc: error: unrecognized option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:2755: $? = 1
configure:2760: checking for suffix of object files
configure:2782: gcc -c  conftest.c >&5
configure:2786: $? = 0
configure:2807: result: o
configure:2811: checking whether we are using the GNU C compiler
configure:2830: gcc -c  conftest.c >&5
configure:2830: $? = 0
configure:2839: result: yes
configure:2848: checking whether gcc accepts -g
configure:2868: gcc -c -g  conftest.c >&5
configure:2868: $? = 0
configure:2909: result: yes
configure:2926: checking for gcc option to accept ISO C89
configure:2990: gcc  -c -g -O2  conftest.c >&5
configure:2990: $? = 0
configure:3003: result: none needed
configure:3073: checking how to run the C preprocessor
configure:3104: gcc -E  conftest.c
configure:3104: $? = 0
configure:3118: gcc -E  conftest.c
conftest.c:9:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
configure:3118: $? = 1
configure: failed program was:
| /* 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 PACKAGE_URL "http://www.gnu.org/software/c-library/"
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:3143: result: gcc -E
configure:3163: gcc -E  conftest.c
configure:3163: $? = 0
configure:3177: gcc -E  conftest.c
conftest.c:9:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
configure:3177: $? = 1
configure: failed program was:
| /* 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 PACKAGE_URL "http://www.gnu.org/software/c-library/"
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:3264: checking for g++
configure:3280: found /tools/bin/g++
configure:3291: result: g++
configure:3318: checking for C++ compiler version
configure:3327: g++ --version >&5
g++ (GCC) 4.6.2
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3338: $? = 0
configure:3327: g++ -v >&5
Reading specs from /tools/lib/gcc/i686-pc-linux-gnu/4.6.2/specs
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/tools/libexec/gcc/i686-pc-linux-gnu/4.6.2/lto-wrapper
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.6.2/configure --prefix=/tools --with-local-prefix=/tools --enable-clocale=gnu --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++ --disable-libstdcxx-pch --disable-multilib --disable-bootstrap --disable-libgomp --without-ppl --without-cloog --with-mpfr-include=/mnt/lfs/sources/gcc-build/../gcc-4.6.2/mpfr/src --with-mpfr-lib=/mnt/lfs/sources/gcc-build/mpfr/src/.libs
Thread model: posix
gcc version 4.6.2 (GCC)
configure:3338: $? = 0
configure:3327: g++ -V >&5
g++: error: unrecognized option '-V'
g++: fatal error: no input files
compilation terminated.
configure:3338: $? = 1
configure:3327: g++ -qversion >&5
g++: error: unrecognized option '-qversion'
g++: fatal error: no input files
compilation terminated.
configure:3338: $? = 1
configure:3342: checking whether we are using the GNU C++ compiler
configure:3361: g++ -c  conftest.cpp >&5
configure:3361: $? = 0
configure:3370: result: yes
configure:3379: checking whether g++ accepts -g
configure:3399: g++ -c -g  conftest.cpp >&5
configure:3399: $? = 0
configure:3440: result: yes
configure:3968: running configure fragment for add-on libidn
configure:3968: running configure fragment for add-on nptl
configure:4110: checking for assembler gnu_indirect_function symbol type support
configure:4126: result: yes
configure:4129: checking whether .text pseudo-op must be used
configure:4139: gcc  -c conftest.s 1>&5
configure:4142: $? = 0
configure:4153: result: yes
configure:4157: checking for assembler global-symbol directive
configure:4170: gcc  -c conftest.s 1>&5
configure:4173: $? = 0
configure:4181: result: .globl
configure:4192: checking for assembler .type directive prefix
configure:4208: gcc  -c conftest.s 1>&5
configure:4211: $? = 0
configure:4219: result: @
configure:4242: checking sysdep dirs
configure:4487: result: sysdeps/generic/elf sysdeps/generic
configure:4564: checking for a BSD-compatible install
configure:4632: result: /usr/lib/pkgusr/install -c
configure:4647: checking whether ln -s works
configure:4651: result: yes
configure:4673: checking whether /tools/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../i686-pc-linux-gnu/bin/as is GNU as
configure:4687: result: yes
configure:4692: checking whether /tools/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../i686-pc-linux-gnu/bin/ld is GNU ld
configure:4706: result: yes
configure:4716: checking for /tools/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../i686-pc-linux-gnu/bin/as
configure:4743: result: /tools/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../i686-pc-linux-gnu/bin/as
configure:4758: checking version of /tools/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../i686-pc-linux-gnu/bin/as
configure:4768: result: 2.22, ok
configure:4779: checking for /tools/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../i686-pc-linux-gnu/bin/ld
configure:4806: result: /tools/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../i686-pc-linux-gnu/bin/ld
configure:4821: checking version of /tools/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../i686-pc-linux-gnu/bin/ld
configure:4831: result: 2.22, ok
configure:4846: checking for pwd
configure:4864: found /bin/pwd
configure:4877: result: /bin/pwd
configure:4895: checking for gcc
configure:4922: result: gcc
configure:4937: checking version of gcc
configure:4947: result: 4.6.2, ok
configure:4958: checking for gnumake
configure:4988: result: no
configure:4958: checking for gmake
configure:4988: result: no
configure:4958: checking for make
configure:4974: found /tools/bin/make
configure:4985: result: make
configure:5000: checking version of make
configure:5010: result: 3.82, ok
configure:5022: checking for gnumsgfmt
configure:5052: result: no
configure:5022: checking for gmsgfmt
configure:5052: result: no
configure:5022: checking for msgfmt
configure:5038: found /tools/bin/msgfmt
configure:5049: result: msgfmt
configure:5064: checking version of msgfmt
configure:5074: result: 0.18.1, ok
configure:5085: checking for makeinfo
configure:5101: found /tools/bin/makeinfo
configure:5112: result: makeinfo
configure:5127: checking version of makeinfo
configure:5137: result: 4.13, ok
configure:5148: checking for sed
configure:5164: found /tools/bin/sed
configure:5175: result: sed
configure:5190: checking version of sed
configure:5200: result: 4.2.1, ok
configure:5212: checking for autoconf
configure:5242: result: no
configure:5282: WARNING:
*** These auxiliary programs are missing or incompatible versions: autoconf
*** some features will be disabled.
*** Check the INSTALL file for required versions.
configure:5320: checking LD_LIBRARY_PATH variable
configure:5330: result: ok
configure:5339: checking whether GCC supports -static-libgcc
configure:5350: result: -static-libgcc
configure:5356: checking for bash
configure:5374: found /bin/bash
configure:5387: result: /bin/bash
configure:5462: checking for gawk
configure:5478: found /tools/bin/gawk
configure:5489: result: gawk
configure:5502: checking for perl
configure:5520: found /usr/bin/perl
configure:5533: result: /usr/bin/perl
configure:5547: checking for install-info
configure:5566: found /tools/bin/install-info
configure:5579: result: /tools/bin/install-info
configure:5589: checking for bison
configure:5621: result: no
configure:5630: checking for signed size_t type
configure:5645: result: no
configure:5654: checking for libc-friendly stddef.h
configure:5678: gcc -c -g -O2  conftest.c >&5
conftest.c: In function 'main':
conftest.c:26:38: warning: incompatible implicit declaration of built-in function 'abort' [enabled by default]
configure:5678: $? = 0
configure:5685: result: yes
configure:5692: checking whether we need to use -P to assemble .S files
configure:5702: gcc  -c conftest.S 1>&5
configure:5705: $? = 0
configure:5713: result: no
configure:5720: checking for .set assembler directive
configure:5746: result: yes
configure:5753: checking for assembler gnu_unique_object symbol type
configure:5770: result: yes
configure:5777: checking for .symver assembler directive
configure:5794: result: yes
configure:5796: checking for ld --version-script
configure:5822: gcc -g -O2  -shared
                                -o conftest.so conftest.o
                                -nostartfiles -nostdlib
                                -Wl,--version-script,conftest.map
                      1>&5
configure:5825: $? = 0
configure:5840: result: yes
configure:5862: checking for .previous assembler directive
configure:5872: gcc -c  conftest.s 1>&5
configure:5875: $? = 0
configure:5883: result: yes
configure:5917: checking for .protected and .hidden assembler directive
configure:5929: gcc -c  conftest.s 1>&5
configure:5932: $? = 0
configure:5940: result: yes
configure:5944: checking whether __attribute__((visibility())) is supported
configure:5955: gcc -Werror -S conftest.c -o conftest.s 1>&5
configure:5958: $? = 0
configure:5969: result: yes
configure:5977: checking for broken __attribute__((visibility()))
configure:5989: gcc -Werror -S conftest.c -o conftest.s 1>&5
configure:5992: $? = 0
configure:6001: result: no
configure:6008: checking for broken __attribute__((alias()))
configure:6023: gcc -Werror -S conftest.c -o conftest.s 1>&5
configure:6026: $? = 0
configure:6036: result: no
configure:6043: checking whether to put _rtld_local into .sdata section
configure:6057: result: no
configure:6065: checking for .preinit_array/.init_array/.fini_array support
configure:6078: gcc -g -O2  -o conftest conftest.c
                    -static -nostartfiles -nostdlib 1>&5
configure:6081: $? = 0
configure:6094: result: yes
configure:6099: gcc -Wl,--verbose 2>&1|grep SORT_BY_INIT_PRIORITY 1>&5
    KEEP (*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*)))
    KEEP (*(SORT_BY_INIT_PRIORITY(.fini_array.*) SORT_BY_INIT_PRIORITY(.dtors.*)))
configure:6102: $? = 0
configure:6108: checking for libunwind-support in compiler
configure:6125: result: no
configure:6133: checking for -z nodelete option
configure:6145: gcc -g -O2 
                    -fPIC -shared -o conftest.so conftest.c
                    -nostartfiles -nostdlib
                    -Wl,--enable-new-dtags,-z,nodelete 1>&5
configure:6148: $? = 0
configure:6157: result: yes
configure:6160: checking for -z nodlopen option
configure:6172: gcc -g -O2 
                        -fPIC -shared -o conftest.so conftest.c
                        -nostartfiles -nostdlib
                        -Wl,--enable-new-dtags,-z,nodlopen 1>&5
configure:6175: $? = 0
configure:6184: result: yes
configure:6187: checking for -z initfirst option
configure:6199: gcc -g -O2 
                        -fPIC -shared -o conftest.so conftest.c
                        -nostartfiles -nostdlib
                        -Wl,--enable-new-dtags,-z,initfirst 1>&5
configure:6202: $? = 0
configure:6211: result: yes
configure:6216: checking for -z relro option
configure:6223: gcc -v --help 2>&1|grep z relro 1>&5
  -z relro                    Create RELRO program header
  -z relro                    Create RELRO program header
configure:6226: $? = 0
configure:6230: gcc -Wl,--verbose 2>&1|grep DATA_SEGMENT_RELRO_END 1>&5
  . = DATA_SEGMENT_RELRO_END (12, .);
configure:6233: $? = 0
configure:6240: result: yes
configure:6249: checking for -Bgroup option
configure:6260: gcc -g -O2 
                              -fPIC -shared -o conftest.so conftest.c
                              -Wl,-Bgroup -nostdlib 1>&5
configure:6263: $? = 0
configure:6272: result: yes
configure:6276: checking for libgcc_s suffix
configure:6290: result:
configure:6294: checking for --as-needed option
configure:6306: gcc -g -O2 
                              -fPIC -shared -o conftest.so conftest.c
                              -lgcc_s -Wl,--as-needed
                              -nostdlib 1>&5
configure:6309: $? = 0
configure:6318: result: yes
configure:6323: checking whether --noexecstack is desirable for .S files
configure:6333: gcc -g -O2
                    -S -o conftest.s conftest.c 1>&5
configure:6336: $? = 0
configure:6341: gcc  -Wa,--noexecstack
                      -c -o conftest.o conftest.s 1>&5
configure:6344: $? = 0
configure:6353: result: yes
configure:6360: checking for -z combreloc
configure:6374: gcc -g -O2 
                        -fPIC -shared -o conftest.so conftest.c
                        -nostdlib -nostartfiles
                        -Wl,-z,combreloc 1>&5
configure:6377: $? = 0
configure:6390: result: yes
configure:6398: checking for -z execstack
configure:6410: gcc -g -O2 
                              -fPIC -shared -o conftest.so conftest.c
                              -Wl,-z,execstack -nostdlib
                              1>&5
configure:6413: $? = 0
configure:6422: result: yes
configure:6426: checking for -fpie
configure:6437: gcc -g -O2  -pie -fpie
                              -o conftest conftest.c 1>&5
/tools/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find /lib/libc.so.6
/tools/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find /lib/ld-linux.so.2
collect2: ld returned 1 exit status
configure:6440: $? = 1
configure:6449: result: no
configure:6454: checking for --hash-style option
configure:6465: gcc -g -O2 
                              -fPIC -shared -o conftest.so conftest.c
                              -Wl,--hash-style=both -nostdlib 1>&5
configure:6468: $? = 0
configure:6477: result: yes
configure:6482: checking for -fno-toplevel-reorder -fno-section-anchors
configure:6492: gcc -g -O2  -S -fno-toplevel-reorder -fno-section-anchors
                            conftest.c 1>&5
configure:6495: $? = 0
configure:6504: result: yes
configure:6513: checking for -fstack-protector
configure:6524: gcc -g -O2  -Werror -fstack-protector
                            -o conftest conftest.c 1>&5
/tools/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find /lib/libc.so.6
/tools/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find /lib/ld-linux.so.2
collect2: ld returned 1 exit status
configure:6527: $? = 1
configure:6536: result: no
configure:6540: checking for -fgnu89-inline
configure:6555: gcc -g -O2  -S -std=gnu99 -fgnu89-inline
                            -o conftest.s conftest.c 1>&5
conftest.c:3:1: warning: return type defaults to 'int' [enabled by default]
configure:6558: $? = 0
configure:6567: result: yes
configure:6611: checking whether cc puts quotes around section names
configure:6632: result: no
configure:6717: checking for assembler .weak directive
configure:6730: gcc  -c conftest.s 1>&5
configure:6733: $? = 0
configure:6741: result: yes
configure:6784: checking whether CFI directives are supported
configure:6803: gcc  -c conftest.s 1>&5
configure:6806: $? = 0
configure:6814: result: yes
configure:6821: checking for ld --no-whole-archive
configure:6834: gcc -g -O2 
                            -nostdlib -nostartfiles -Wl,--no-whole-archive
                            -o conftest conftest.c 1>&5
configure:6837: $? = 0
configure:6845: result: yes
configure:6851: checking for gcc -fexceptions
configure:6864: gcc -g -O2 
                            -nostdlib -nostartfiles -fexceptions
                            -o conftest conftest.c 1>&5
configure:6867: $? = 0
configure:6875: result: yes
configure:6915: checking for __builtin_expect
configure:6930: gcc -g -O2  -nostdlib -nostartfiles
                            -o conftest conftest.c -lgcc >&5
/tools/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../i686-pc-linux-gnu/bin/ld: warning: cannot find entry symbol _start; defaulting to 080480a0
configure:6933: $? = 0
configure:6941: result: yes
configure:6948: checking for __builtin_memset
configure:6960: gcc -O3 -S conftest.c -o - | fgrep memset > /dev/null
configure:6963: $? = 1
configure:6972: result: yes
configure:6979: checking for redirection of built-in functions
configure:6992: gcc -O3 -S conftest.c -o - | fgrep my_strstr > /dev/null
configure:6995: $? = 0
configure:7004: result: yes
configure:7012: checking for __thread
configure:7021: gcc -g -O2  -c conftest.c >&5
configure:7024: $? = 0
configure:7032: result: yes
configure:7043: checking for tls_model attribute
configure:7052: gcc -g -O2  -S -Werror conftest.c >&5
configure:7055: $? = 0
configure:7063: result: yes
configure:7098: checking for libgd
configure:7118: gcc -o conftest -g -O2    conftest.c  -lgd -lpng -lz -lm >&5
conftest.c:28:16: fatal error: gd.h: No such file or directory
compilation terminated.
configure:7118: $? = 1
configure: failed program was:
| /* 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 PACKAGE_URL "http://www.gnu.org/software/c-library/"
| #define HAVE_LIBIDN 1
| #define USE_REGPARMS 1
| #define ASM_GLOBAL_DIRECTIVE .globl
| #define ASM_TYPE_DIRECTIVE_PREFIX @
| #define USE_MULTIARCH 1
| #define HAVE_ASM_SET_DIRECTIVE 1
| #define HAVE_ASM_UNIQUE_OBJECT 1
| #define DO_VERSIONING 1
| #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
| #define NO_CTORS_DTORS_SECTIONS 1
| #define HAVE_Z_COMBRELOC 1
| #define NO_UNDERSCORES 1
| #define HAVE_ASM_WEAK_DIRECTIVE 1
| #define HAVE_ASM_CFI_DIRECTIVES 1
| #define HAVE_BUILTIN_EXPECT 1
| #define HAVE_BUILTIN_MEMSET 1
| #define HAVE_BUILTIN_REDIRECTION 1
| #define HAVE___THREAD 1
| #define HAVE_TLS_MODEL_ATTRIBUTE 1
| /* end confdefs.h.  */
| #include <gd.h>
| int
| main ()
| {
| gdImagePng (0, 0)
|  ;
|  return 0;
| }
configure:7131: result: no
configure:7140: checking for is_selinux_enabled in -lselinux
configure:7165: gcc -o conftest -g -O2  conftest.c -lselinux  >&5
/tools/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lselinux
/tools/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find /lib/libc.so.6
/tools/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find /lib/ld-linux.so.2
collect2: ld returned 1 exit status
configure:7165: $? = 1
configure: failed program was:
| /* 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 PACKAGE_URL "http://www.gnu.org/software/c-library/"
| #define HAVE_LIBIDN 1
| #define USE_REGPARMS 1
| #define ASM_GLOBAL_DIRECTIVE .globl
| #define ASM_TYPE_DIRECTIVE_PREFIX @
| #define USE_MULTIARCH 1
| #define HAVE_ASM_SET_DIRECTIVE 1
| #define HAVE_ASM_UNIQUE_OBJECT 1
| #define DO_VERSIONING 1
| #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
| #define NO_CTORS_DTORS_SECTIONS 1
| #define HAVE_Z_COMBRELOC 1
| #define NO_UNDERSCORES 1
| #define HAVE_ASM_WEAK_DIRECTIVE 1
| #define HAVE_ASM_CFI_DIRECTIVES 1
| #define HAVE_BUILTIN_EXPECT 1
| #define HAVE_BUILTIN_MEMSET 1
| #define HAVE_BUILTIN_REDIRECTION 1
| #define HAVE___THREAD 1
| #define HAVE_TLS_MODEL_ATTRIBUTE 1
| /* end confdefs.h.  */
|


lfs_newbie 06-14-2012 08:30 PM

Code:

| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char is_selinux_enabled ();
| int
| main ()
| {
| return is_selinux_enabled ();
|  ;
|  return 0;
| }
configure:7174: result: no
configure:7326: checking for grep that handles long lines and -e
configure:7384: result: /tools/bin/grep
configure:7389: checking for egrep
configure:7451: result: /tools/bin/grep -E
configure:7456: checking for ANSI C header files
configure:7476: gcc -c -g -O2  conftest.c >&5
configure:7476: $? = 0
configure:7549: gcc -o conftest -g -O2  conftest.c  >&5
/tools/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find /lib/libc.so.6
/tools/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find /lib/ld-linux.so.2
collect2: ld returned 1 exit status
configure:7549: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* 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 PACKAGE_URL "http://www.gnu.org/software/c-library/"
| #define HAVE_LIBIDN 1
| #define USE_REGPARMS 1
| #define ASM_GLOBAL_DIRECTIVE .globl
| #define ASM_TYPE_DIRECTIVE_PREFIX @
| #define USE_MULTIARCH 1
| #define HAVE_ASM_SET_DIRECTIVE 1
| #define HAVE_ASM_UNIQUE_OBJECT 1
| #define DO_VERSIONING 1
| #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
| #define NO_CTORS_DTORS_SECTIONS 1
| #define HAVE_Z_COMBRELOC 1
| #define NO_UNDERSCORES 1
| #define HAVE_ASM_WEAK_DIRECTIVE 1
| #define HAVE_ASM_CFI_DIRECTIVES 1
| #define HAVE_BUILTIN_EXPECT 1
| #define HAVE_BUILTIN_MEMSET 1
| #define HAVE_BUILTIN_REDIRECTION 1
| #define HAVE___THREAD 1
| #define HAVE_TLS_MODEL_ATTRIBUTE 1
| /* end confdefs.h.  */
| #include <ctype.h>
| #include <stdlib.h>
| #if ((' ' & 0x0FF) == 0x020)
| # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
| # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
| #else
| # define ISLOWER(c)                    (('a' <= (c) && (c) <= 'i')                      || ('j' <= (c) && (c) <= 'r')                      || ('s' <= (c) && (c) <= 'z'))
| # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
| #endif
|
| #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
| int
| main ()
| {
|  int i;
|  for (i = 0; i < 256; i++)
|    if (XOR (islower (i), ISLOWER (i))
|        || toupper (i) != TOUPPER (i))
|      return 2;
|  return 0;
| }
configure:7560: result: no
configure:7573: checking for sys/types.h
configure:7573: gcc -c -g -O2  conftest.c >&5
configure:7573: $? = 0
configure:7573: result: yes
configure:7573: checking for sys/stat.h
configure:7573: gcc -c -g -O2  conftest.c >&5
configure:7573: $? = 0
configure:7573: result: yes
configure:7573: checking for stdlib.h
configure:7573: gcc -c -g -O2  conftest.c >&5
configure:7573: $? = 0
configure:7573: result: yes
configure:7573: checking for string.h
configure:7573: gcc -c -g -O2  conftest.c >&5
configure:7573: $? = 0
configure:7573: result: yes
configure:7573: checking for memory.h
configure:7573: gcc -c -g -O2  conftest.c >&5
configure:7573: $? = 0
configure:7573: result: yes
configure:7573: checking for strings.h
configure:7573: gcc -c -g -O2  conftest.c >&5
configure:7573: $? = 0
configure:7573: result: yes
configure:7573: checking for inttypes.h
configure:7573: gcc -c -g -O2  conftest.c >&5
configure:7573: $? = 0
configure:7573: result: yes
configure:7573: checking for stdint.h
configure:7573: gcc -c -g -O2  conftest.c >&5
configure:7573: $? = 0
configure:7573: result: yes
configure:7573: checking for unistd.h
configure:7573: gcc -c -g -O2  conftest.c >&5
configure:7573: $? = 0
configure:7573: result: yes
configure:7589: checking size of long double
configure:7594: gcc -o conftest -g -O2  conftest.c  >&5
/tools/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find /lib/libc.so.6
/tools/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find /lib/ld-linux.so.2
collect2: ld returned 1 exit status
configure:7594: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* 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 PACKAGE_URL "http://www.gnu.org/software/c-library/"
| #define HAVE_LIBIDN 1
| #define USE_REGPARMS 1
| #define ASM_GLOBAL_DIRECTIVE .globl
| #define ASM_TYPE_DIRECTIVE_PREFIX @
| #define USE_MULTIARCH 1
| #define HAVE_ASM_SET_DIRECTIVE 1
| #define HAVE_ASM_UNIQUE_OBJECT 1
| #define DO_VERSIONING 1
| #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
| #define NO_CTORS_DTORS_SECTIONS 1
| #define HAVE_Z_COMBRELOC 1
| #define NO_UNDERSCORES 1
| #define HAVE_ASM_WEAK_DIRECTIVE 1
| #define HAVE_ASM_CFI_DIRECTIVES 1
| #define HAVE_BUILTIN_EXPECT 1
| #define HAVE_BUILTIN_MEMSET 1
| #define HAVE_BUILTIN_REDIRECTION 1
| #define HAVE___THREAD 1
| #define HAVE_TLS_MODEL_ATTRIBUTE 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| static long int longval () { return (long int) (sizeof (long double)); }
| static unsigned long int ulongval () { return (long int) (sizeof (long double)); }
| #include <stdio.h>
| #include <stdlib.h>
| int
| main ()
| {
|
|  FILE *f = fopen ("conftest.val", "w");
|  if (! f)
|    return 1;
|  if (((long int) (sizeof (long double))) < 0)
|    {
|      long int i = longval ();
|      if (i != ((long int) (sizeof (long double))))
|        return 1;
|      fprintf (f, "%ld", i);
|    }
|  else
|    {
|      unsigned long int i = ulongval ();
|      if (i != ((long int) (sizeof (long double))))
|        return 1;
|      fprintf (f, "%lu", i);
|    }
|  /* Do not output a trailing newline, as this causes \r\n confusion
|      on some platforms.  */
|  return ferror (f) || fclose (f) != 0;
|
|  ;
|  return 0;
| }
configure:7608: result: 0
configure:7639: result: running configure fragment for sysdeps/i386/elf
configure:89: checking for i386 TLS support
configure:111: gcc -c -g -O2 conftest.s 1>&5
configure:114: $? = 0
configure:122: result: yes
configure:7639: result: running configure fragment for nptl/sysdeps/pthread
configure:149: checking for forced unwind support
configure:168: gcc -o conftest -g -O2  conftest.c  >&5
/tools/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find /lib/libc.so.6
/tools/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find /lib/ld-linux.so.2
collect2: ld returned 1 exit status
configure:168: $? = 1
configure: failed program was:
| /* 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 PACKAGE_URL "http://www.gnu.org/software/c-library/"
| #define HAVE_LIBIDN 1
| #define USE_REGPARMS 1
| #define ASM_GLOBAL_DIRECTIVE .globl
| #define ASM_TYPE_DIRECTIVE_PREFIX @
| #define USE_MULTIARCH 1
| #define HAVE_ASM_SET_DIRECTIVE 1
| #define HAVE_ASM_UNIQUE_OBJECT 1
| #define DO_VERSIONING 1
| #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
| #define NO_CTORS_DTORS_SECTIONS 1
| #define HAVE_Z_COMBRELOC 1
| #define NO_UNDERSCORES 1
| #define HAVE_ASM_WEAK_DIRECTIVE 1
| #define HAVE_ASM_CFI_DIRECTIVES 1
| #define HAVE_BUILTIN_EXPECT 1
| #define HAVE_BUILTIN_MEMSET 1
| #define HAVE_BUILTIN_REDIRECTION 1
| #define HAVE___THREAD 1
| #define HAVE_TLS_MODEL_ATTRIBUTE 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define SIZEOF_LONG_DOUBLE 0
| #define HAVE_TLS_SUPPORT 1
| #define PI_STATIC_AND_HIDDEN 1
| /* end confdefs.h.  */
| #include <unwind.h>
| int
| main ()
| {
|
| struct _Unwind_Exception exc;
| struct _Unwind_Context *context;
| _Unwind_GetCFA (context)
|  ;
|  return 0;
| }
configure:176: result: no
configure:218: error: forced unwind support is required

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

ac_cv_build=i686-pc-linux-gnu
ac_cv_c_compiler_gnu=yes
ac_cv_cxx_compiler_gnu=yes
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
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_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_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_header_inttypes_h=yes
ac_cv_header_memory_h=yes
ac_cv_header_stdc=no
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_unistd_h=yes
ac_cv_host=i686-pc-linux-gnu
ac_cv_lib_selinux_is_selinux_enabled=no
ac_cv_objext=o
ac_cv_path_BASH_SHELL=/bin/bash
ac_cv_path_BISON=no
ac_cv_path_EGREP='/tools/bin/grep -E'
ac_cv_path_GREP=/tools/bin/grep
ac_cv_path_INSTALL_INFO=/tools/bin/install-info
ac_cv_path_PERL=/usr/bin/perl
ac_cv_path_PWD_P=/bin/pwd
ac_cv_path_install='/usr/lib/pkgusr/install -c'
ac_cv_prog_AS=/tools/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../i686-pc-linux-gnu/bin/as
ac_cv_prog_AWK=gawk
ac_cv_prog_CC=gcc
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_LD=/tools/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../i686-pc-linux-gnu/bin/ld
ac_cv_prog_MAKE=make
ac_cv_prog_MAKEINFO=makeinfo
ac_cv_prog_MSGFMT=msgfmt
ac_cv_prog_SED=sed
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_CXX=g++
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_cxx_g=yes
ac_cv_sizeof_long_double=0
libc_cv_386_tls=yes
libc_cv_Bgroup=yes
libc_cv_as_needed=yes
libc_cv_as_noexecstack=yes
libc_cv_asm_cfi_directives=yes
libc_cv_asm_global_directive=.globl
libc_cv_asm_gnu_indirect_function=yes
libc_cv_asm_previous_directive=yes
libc_cv_asm_protected_directive=yes
libc_cv_asm_set_directive=yes
libc_cv_asm_symver_directive=yes
libc_cv_asm_type_prefix=@
libc_cv_asm_underscores=no
libc_cv_asm_unique_object=yes
libc_cv_asm_weak_directive=yes
libc_cv_broken_alias_attribute=no
libc_cv_broken_visibility_attribute=no
libc_cv_cc_with_libunwind=no
libc_cv_dot_text=.text
libc_cv_fno_toplevel_reorder=yes
libc_cv_forced_unwind=no
libc_cv_fpie=no
libc_cv_friendly_stddef=yes
libc_cv_gcc___thread=yes
libc_cv_gcc_builtin_expect=yes
libc_cv_gcc_builtin_memset=yes
libc_cv_gcc_builtin_redirection=yes
libc_cv_gcc_exceptions=yes
libc_cv_gcc_static_libgcc=-static-libgcc
libc_cv_gcc_tls_model_attr=yes
libc_cv_gcc_unwind_find_fde=no
libc_cv_gnu89_inline=yes
libc_cv_hashstyle=yes
libc_cv_have_bash2=yes
libc_cv_have_ksh=yes
libc_cv_have_sdata_section=no
libc_cv_have_section_quotes=no
libc_cv_idn=no
libc_cv_initfini_array=yes
libc_cv_ld_no_whole_archive=yes
libc_cv_ld_version_script_option=yes
libc_cv_libgcc_s_suffix=
libc_cv_need_minus_P=no
libc_cv_nss_crypt=no
libc_cv_prog_as_gnu=yes
libc_cv_prog_ld_gnu=yes
libc_cv_signed_size_t=no
libc_cv_ssp=no
libc_cv_sysconfdir='${prefix}/etc'
libc_cv_visibility_attribute=yes
libc_cv_weak_symbols=yes
libc_cv_z_combreloc=yes
libc_cv_z_execstack=yes
libc_cv_z_initfirst=yes
libc_cv_z_nodelete=yes
libc_cv_z_nodlopen=yes
libc_cv_z_relro=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

AR='/tools/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../i686-pc-linux-gnu/bin/ar'
AS='/tools/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../i686-pc-linux-gnu/bin/as'
ASFLAGS_config=' -Wa,--noexecstack'
AUTOCONF='no'
AWK='gawk'
BASH_SHELL='/bin/bash'
BISON='no'
BUILD_CC=''
CC='gcc'
CFLAGS='-g -O2'
CPP='gcc -E'
CPPFLAGS=''
CXX='g++'
CXXFLAGS='-g -O2'
CXX_SYSINCLUDES=''
DEFINES=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='/tools/bin/grep -E'
GREP='/tools/bin/grep'
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_INFO='/tools/bin/install-info'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
KSH='/bin/bash'
LD='/tools/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../i686-pc-linux-gnu/bin/ld'
LDFLAGS=''
LIBGD='no'
LIBOBJS=''
LIBS=''
LN_S='ln -s'
LTLIBOBJS=''
MAKE='make'
MAKEINFO='makeinfo'
MIG=''
MSGFMT='msgfmt'
OBJDUMP='/tools/lib/gcc/i686-pc-linux-gnu/4.6.2/../../../../i686-pc-linux-gnu/bin/objdump'
OBJEXT='o'
PACKAGE_BUGREPORT='glibc'
PACKAGE_NAME='GNU C Library'
PACKAGE_STRING='GNU C Library (see version.h)'
PACKAGE_TARNAME='c-library'
PACKAGE_URL='http://www.gnu.org/software/c-library/'
PACKAGE_VERSION='(see version.h)'
PATH_SEPARATOR=':'
PERL='/usr/bin/perl'
PWD_P='/bin/pwd'
RELEASE=''
SED='sed'
SHELL='/bin/sh'
SYSINCLUDES=''
VERSION=''
VERSIONING='yes'
ac_ct_CC='gcc'
ac_ct_CXX='g++'
add_on_subdirs=' libidn'
add_ons='libidn nptl'
all_warnings=''
base_machine='i386'
bindir='${exec_prefix}/bin'
bindnow='no'
bounded='no'
build='i686-pc-linux-gnu'
build_alias=''
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
cross_compiling='no'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
elf='yes'
enable_check_abi='no'
exceptions='-fexceptions'
exec_prefix='NONE'
experimental_malloc=''
fno_unit_at_a_time='-fno-toplevel-reorder -fno-section-anchors'
force_install='yes'
gnu89_inline='-fgnu89-inline'
have_libaudit=''
have_libcap=''
have_selinux='no'
host='i686-pc-linux-gnu'
host_alias=''
host_cpu='i686'
host_os='linux-gnu'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
ldd_rewrite_script='no'
libc_cv_Bgroup='yes'
libc_cv_as_i686=''
libc_cv_as_needed='yes'
libc_cv_cc_avx=''
libc_cv_cc_novzeroupper=''
libc_cv_cc_sse4=''
libc_cv_cc_submachine=''
libc_cv_cc_with_libunwind='no'
libc_cv_cpp_asm_debuginfo=''
libc_cv_forced_unwind='no'
libc_cv_fpie='no'
libc_cv_gcc_static_libgcc='-static-libgcc'
libc_cv_gcc_unwind_find_fde='no'
libc_cv_hashstyle='yes'
libc_cv_have_bash2='yes'
libc_cv_have_initfini=''
libc_cv_have_ksh='yes'
libc_cv_libgcc_s_suffix=''
libc_cv_localedir=''
libc_cv_nss_crypt='no'
libc_cv_pic_default=''
libc_cv_rootsbindir=''
libc_cv_slibdir=''
libc_cv_ssp='no'
libc_cv_sysconfdir='${prefix}/etc'
libc_cv_z_combreloc='yes'
libc_cv_z_execstack='yes'
libdir='${exec_prefix}/lib'
libexecdir='/usr/lib/glibc'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mach_interface_list=''
mandir='${datarootdir}/man'
multi_arch='default'
no_whole_archive='-Wl,--no-whole-archive'
nopic_initfini=''
old_glibc_headers=''
oldest_abi='default'
oldincludedir='/usr/include'
omitfp='no'
pdfdir='${docdir}'
prefix='/usr'
profile='no'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
shared='default'
sharedstatedir='${prefix}/com'
sizeof_long_double='0'
static='yes'
static_nss='no'
subdirs='  '
submachine=''
sysconfdir='${prefix}/etc'
sysdeps_add_ons=' nptl'
sysnames=' sysdeps/i386/elf nptl/sysdeps/unix/sysv/linux/i386/i686 sysdeps/unix/sysv/linux/i386/i686 nptl/sysdeps/unix/sysv/linux/i386 sysdeps/unix/sysv/linux/i386 nptl/sysdeps/unix/sysv/linux nptl/sysdeps/pthread sysdeps/pthread sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/common sysdeps/unix/mman sysdeps/unix/inet sysdeps/unix/sysv/i386 nptl/sysdeps/unix/sysv sysdeps/unix/sysv sysdeps/unix/i386 nptl/sysdeps/unix sysdeps/unix sysdeps/posix sysdeps/i386/i686/fpu sysdeps/i386/i686/multiarch nptl/sysdeps/i386/i686 sysdeps/i386/i686 sysdeps/i386/i486 nptl/sysdeps/i386/i486 sysdeps/i386/fpu nptl/sysdeps/i386 sysdeps/i386 sysdeps/wordsize-32 sysdeps/ieee754/ldbl-96 sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32 sysdeps/ieee754 sysdeps/generic/elf sysdeps/generic'
target_alias=''
use_ldconfig='no'
with_cvs='yes'
with_fp='yes'
xcoff='no'

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* 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 PACKAGE_URL "http://www.gnu.org/software/c-library/"
#define HAVE_LIBIDN 1
#define USE_REGPARMS 1
#define ASM_GLOBAL_DIRECTIVE .globl
#define ASM_TYPE_DIRECTIVE_PREFIX @
#define USE_MULTIARCH 1
#define HAVE_ASM_SET_DIRECTIVE 1
#define HAVE_ASM_UNIQUE_OBJECT 1
#define DO_VERSIONING 1
#define HAVE_ASM_PREVIOUS_DIRECTIVE 1
#define NO_CTORS_DTORS_SECTIONS 1
#define HAVE_Z_COMBRELOC 1
#define NO_UNDERSCORES 1
#define HAVE_ASM_WEAK_DIRECTIVE 1
#define HAVE_ASM_CFI_DIRECTIVES 1
#define HAVE_BUILTIN_EXPECT 1
#define HAVE_BUILTIN_MEMSET 1
#define HAVE_BUILTIN_REDIRECTION 1
#define HAVE___THREAD 1
#define HAVE_TLS_MODEL_ATTRIBUTE 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1
#define SIZEOF_LONG_DOUBLE 0
#define HAVE_TLS_SUPPORT 1
#define PI_STATIC_AND_HIDDEN 1

configure: exit 1


lfs_newbie 06-14-2012 08:30 PM

Double post

druuna 06-15-2012 10:18 AM

Quote:

COLLECT_GCC_OPTIONS='-v' '-W1' '-v' '-mtune=generic' '-march=pentiumpro'
The red part should be: -Wl and not -W1 (one [1] versus el [l]).

Guess the mistake was made in this step:
Code:

echo 'main(){}' > dummy.c
cc dummy.c -v -Wl,--verbose &> dummy.log
readelf -l a.out | grep ': /lib'



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