[lfs-support] still doesnt work right (after binutils pass 2)

Paige Thompson erratic at devel.ws
Wed Nov 14 10:38:45 PST 2012


dev at dev-VirtualBox /mnt/erraticOS/tools/bin $ strace ./as

execve("./as", ["./as"], [/* 28 vars */]) = 0

brk(0)                                  = 0x1432000

mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f59289d4000

access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or
directory)

open("/tools/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file
or directory)

open("/tools/lib/tls/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No
such file or directory)

stat("/tools/lib/tls/x86_64", 0x7fffa8d55500) = -1 ENOENT (No such file or
directory)

open("/tools/lib/tls/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such
file or directory)

stat("/tools/lib/tls", 0x7fffa8d55500)  = -1 ENOENT (No such file or
directory)

open("/tools/lib/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such
file or directory)

stat("/tools/lib/x86_64", 0x7fffa8d55500) = -1 ENOENT (No such file or
directory)

open("/tools/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = 3

read(3,
"\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300\27\2\0\0\0\0\0"..., 832)
= 832

fstat(3, {st_mode=S_IFREG|0755, st_size=9593885, ...}) = 0

mmap(NULL, 3824768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0x7f592840f000

mprotect(0x7f59285ab000, 2097152, PROT_NONE) = 0

mmap(0x7f59287ab000, 24576, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x19c000) = 0x7f59287ab000

mmap(0x7f59287b1000, 15488, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f59287b1000

close(3)                                = 0

mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f59289d3000

mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f59289d2000

mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f59289d1000

arch_prctl(ARCH_SET_FS, 0x7f59289d2700) = 0

mprotect(0x7f59287ab000, 16384, PROT_READ) = 0

mprotect(0x7f59289d5000, 4096, PROT_READ) = 0

--- SIGSEGV (Segmentation fault) @ 0 (0) ---

+++ killed by SIGSEGV +++

Segmentation fault

dev at dev-VirtualBox /mnt/erraticOS/tools/bin $

 

 

dev at dev-VirtualBox /mnt/erraticOS/tools/bin $ ldd as

        linux-vdso.so.1 =>  (0x00007fffb63ff000)

        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f3d79c06000)

        /tools/lib64/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2
(0x00007f3d79fd9000)

dev at dev-VirtualBox /mnt/erraticOS/tools/bin $

 

cant compile gcc because of it

 

 

configure:2237: checking build system type

configure:2251: result: x86_64-unknown-linux-gnu

configure:2298: checking host system type

configure:2311: result: x86_64-pc-linux-gnu

configure:2331: checking target system type

configure:2344: result: x86_64-pc-linux-gnu

configure:2398: checking for a BSD-compatible install

configure:2466: result: /usr/bin/install -c

configure:2477: checking whether ln works

configure:2499: result: yes

configure:2503: checking whether ln -s works

configure:2507: result: yes

configure:2514: checking for a sed that does not truncate output

configure:2578: result: /bin/sed

configure:2587: checking for gawk

configure:2603: found /usr/bin/gawk

configure:2614: result: gawk

configure:3070: checking for libitm support

configure:3080: result: yes

configure:3729: checking for x86_64-linux-gnu-gcc

configure:3756: result: /mnt/erraticOS/tools/bin/x86_64-linux-gnu-gcc

configure:4025: checking for C compiler version

configure:4034: /mnt/erraticOS/tools/bin/x86_64-linux-gnu-gcc --version >&5

x86_64-linux-gnu-gcc (GCC) 4.7.2 20120614 (prerelease)

Copyright (C) 2012 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:4045: $? = 0

configure:4034: /mnt/erraticOS/tools/bin/x86_64-linux-gnu-gcc -v >&5

Using built-in specs.

COLLECT_GCC=/mnt/erraticOS/tools/bin/x86_64-linux-gnu-gcc

COLLECT_LTO_WRAPPER=/mnt/erraticOS/tools/bin/../libexec/gcc/x86_64-linux-gnu
/4.7.2/lto-wrapper

Target: x86_64-linux-gnu

Configured with: ../gcc/configure --target=x86_64-linux-gnu --prefix=/tools
--with-sysroot=/mnt/erraticOS --with-newlib --without-headers
--with-local-prefix=/tools --with-native-system-header-dir=/tools/include
--disable-nls --disable-shared --disable-multilib --disable-decimal-float
--disable-threads --disable-libmudflap --disable-libssp --disable-libgomp
--disable-libquadmath --enable-languages=c

Thread model: single

gcc version 4.7.2 20120614 (prerelease) (GCC)

configure:4045: $? = 0

configure:4034: /mnt/erraticOS/tools/bin/x86_64-linux-gnu-gcc -V >&5

x86_64-linux-gnu-gcc: error: unrecognized command line option '-V'

x86_64-linux-gnu-gcc: fatal error: no input files

compilation terminated.

configure:4045: $? = 1

configure:4034: /mnt/erraticOS/tools/bin/x86_64-linux-gnu-gcc -qversion >&5

x86_64-linux-gnu-gcc: error: unrecognized command line option '-qversion'

x86_64-linux-gnu-gcc: fatal error: no input files

compilation terminated.

configure:4045: $? = 1

configure:4065: checking for C compiler default output file name

configure:4087: /mnt/erraticOS/tools/bin/x86_64-linux-gnu-gcc    conftest.c
>&5

x86_64-linux-gnu-gcc: internal compiler error: Segmentation fault (program
as)

Please submit a full bug report,

with preprocessed source if appropriate.

See <http://gcc.gnu.org/bugs.html> for instructions.

configure:4091: $? = 4

configure:4128: result:

configure: failed program was:

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-support/attachments/20121114/d198bf08/attachment.html>


More information about the lfs-support mailing list