Hi all (landley and JoeSchmo in special)

I've created a distro for arm following the clfs for arm.
First of all I'd like to congrats all lfs team for your job. The
documentation is amazing.

But I got an error while I was trying to run a chroot to this environment:

[EMAIL PROTECTED]:~# chroot clfs-eabi
/bin/bash: error while loading shared libraries: libgcc_s.so.1: cannot
enable executable stack as shared object requires: Invalid argument

But let me explain some points. I'm trying to run this all over qemu
that I'm sure that qemu works perfectly for this situation because I
have another distro based on debian that works fine.

Executing a strace I got the following message:

###### BEGIN of strace log (just the important part)

open("/lib/libgcc_s.so.1", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such
file or directory)
open("/usr/lib/tls/fast-mult/half/libgcc_s.so.1",
O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls/fast-mult/half", 0xbff15d20) = -1 ENOENT (No such
file or directory)
open("/usr/lib/tls/fast-mult/libgcc_s.so.1", O_RDONLY|O_LARGEFILE) =
-1 ENOENT (No such file or directory)
stat64("/usr/lib/tls/fast-mult", 0xbff15d20) = -1 ENOENT (No such file
or directory)
open("/usr/lib/tls/half/libgcc_s.so.1", O_RDONLY|O_LARGEFILE) = -1
ENOENT (No such file or directory)
stat64("/usr/lib/tls/half", 0xbff15d20) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/libgcc_s.so.1", O_RDONLY|O_LARGEFILE) = -1 ENOENT
(No such file or directory)
stat64("/usr/lib/tls", 0xbff15d20)      = -1 ENOENT (No such file or directory)
open("/usr/lib/fast-mult/half/libgcc_s.so.1", O_RDONLY|O_LARGEFILE) =
-1 ENOENT (No such file or directory)
stat64("/usr/lib/fast-mult/half", 0xbff15d20) = -1 ENOENT (No such
file or directory)
open("/usr/lib/fast-mult/libgcc_s.so.1", O_RDONLY|O_LARGEFILE) = -1
ENOENT (No such file or directory)
stat64("/usr/lib/fast-mult", 0xbff15d20) = -1 ENOENT (No such file or directory)
open("/usr/lib/half/libgcc_s.so.1", O_RDONLY|O_LARGEFILE) = -1 ENOENT
(No such file or directory)
stat64("/usr/lib/half", 0xbff15d20)     = -1 ENOENT (No such file or directory)
open("/usr/lib/libgcc_s.so.1", O_RDONLY|O_LARGEFILE) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\4\"\0\000"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=218499, ...}) = 0
mmap2(NULL, 77824, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0xb5e69000
mprotect(0xb5e74000, 28672, PROT_NONE)  = 0
mmap2(0xb5e7b000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xa) = 0xb5e7b000
close(3)                                = 0
writev(2, [{"/bin/bash", 9}, {": ", 2}, {"error while loading shared
libra"..., 36}, {": ", 2}, {"libgcc_s.so.1", 13}, {": ", 2}, {"cannot
enable executable stack a"..., 56}, {": ", 2}, {"Invalid argument",
16}, {"\n", 1}], 10/bin/bash: error while loading shared libraries:
libgcc_s.so.1: cannot enable executable stack as shared object
requires: Invalid argument
) = 139
exit_group(127)                         = ?
Process 13629 detached

##### END of strace log

But I've noticed to that in my other distro the strace does not even
mention a access try to libgcc_s ...

Does any body can help me on that ?
Thank you in advance.

Rodrigo Vivi.
_______________________________________________
Clfs-support mailing list
[email protected]
http://lists.cross-lfs.org/cgi-bin/mailman/listinfo/clfs-support

Reply via email to