Michael D Labriola | 24 Mar 15:51 2014

Strange cross-tools eglibc failure

I'm can't seem to get past the cross-tools eglibc installtion...  I'm 
following the instructions from the 2.1.0 book, and I'm assuming I've 
misread something or typod something.  Here's what I get:

/cross-tools/include/gmp.h:324:33: error: expected declaration specifiers 
or '...' before '(' token

It looks like my cross-gcc doesn't like the __GMP_CAST macro definition in 
gmp.h?  Surely this has to be a bogus error?

My last build was using the dev book just prior to 2.1.0's release, 
mid-September timeframe.  I didn't have any problems then.  Looks like 
gmp, gcc, and eglibc have been updated slightly since then.

I'm getting this error on an AVLinux host (based off debian 6, I believe) 
and on a really ancient Red Hat box, both are 32bit operating systems 
running on 64bit capable hardware, so I specified the GMP API following 
the NOTE in the GMP section.  I don't think it's related to the host 
sytstem's compiler (at least not directly), because the failure is coming 
from the cross-gcc that I've already compiled.  I feel like I must be 
missing something silly, but I just don't see it.

The problem also happens on the 32bit portion of cross eglibc when 
building for x86_64 multilib and the also happens when building for x86_64 
pure64 or for x86.

Anyone else seen this problem?  Thanks!

-Mike

(Continue reading)

Alexey Orishko | 19 Mar 16:21 2014
Picon

bootscripts-cross-lfs issue

Hi guys,

If I use bootscripts-cross-lfs-2.1-pre1 while building CLFS-2.1.0,
several packages from BLFS won't start...
The difference is obvious: corresponding directories are not created in /run.

Should these dirs be created by corresponding scripts from
/etc/rc.d/init.d or by some other magic way?

Regards,
Alexey
Vlastimil Slintak | 18 Mar 19:00 2014
Picon

CLFS embedded and shared libraries

Hello,

For last two weeks I am working on my CLFS embedded system for Raspberry Pi. My system is already running, but I had to disable shared libraries for all application (busybox, dropbear and e2fsprogs). When I compile busybox with enabled shared libraries, I get “Kernel panic - not syncing: No init found.” from kernel. When I compile dropbear or e2fsprogs with shared libraries, I get “-ash: dropbearkey: not found”.

Dropbear (for example) needs three libraries (I run this command on my host system):

$ readelf -d targetfs/usr/bin/dropbearmulti 
Dynamic section at offset 0x3400c contains 26 entries:
  Tag        Type                         Name/Value
 0x00000001 (NEEDED)                     Shared library: [libz.so.1]
 0x00000001 (NEEDED)                     Shared library: [libgcc_s.so.1]
 0x00000001 (NEEDED)                     Shared library: [libc.so]

And the content of my CLFS /lib is (I run this on my target system):

$ ls /lib
firmware   libgomp.so     libitm.so.1.0.0  libstdc++.so.6 libz.so.1.2.8
ld-musl-arm.so.1  libgomp.so.1     libssp.so     libstdc++.so.6.0.17 modules
libc.so   libgomp.so.1.0.0  libssp.so.0      libstdc++.so.6.0.17-gdb.py
libgcc_s.so   libitm.so     libssp.so.0.0.0  libz.so
libgcc_s.so.1   libitm.so.1     libstdc++.so     libz.so.1

So I am sure, I have all needed libraries. I compiled them with CLFS gcc. What am I missing? Do you think there is some problem with my lib-musl library or with GCC?

Regards
Vlastimil S.
_______________________________________________
Clfs-support mailing list
Clfs-support <at> lists.cross-lfs.org
http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org
Robin | 15 Mar 19:24 2014
Picon

10.66. Gzip-1.6 test error "zgrep-signal" "chroot method"

Google threw up https://lists.debian.org/debian-68k/2013/06/msg00056.html

ERROR: zgrep-signal
===================
++ initial_cwd_=/sources/gzip-1.6/tests
++ fail=0
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /sources/gzip-1.6/tests gt-zgrep-signal.XXXX
+++ case $# in
+++ destdir_=/sources/gzip-1.6/tests
+++ template_=gt-zgrep-signal.XXXX
+++ MAX_TRIES_=4
+++ case $destdir_ in
+++ case $template_ in
++++ unset TMPDIR
+++ d=/sources/gzip-1.6/tests/gt-zgrep-signal.x2ZU
+++ case $d in
+++ test -d /sources/gzip-1.6/tests/gt-zgrep-signal.x2ZU
++++ ls -dgo /sources/gzip-1.6/tests/gt-zgrep-signal.x2ZU
++++ tr S -
+++ perms='drwx------ 2 4096 Mar 15 17:59
/sources/gzip-1.6/tests/gt-zgrep-signal.x2ZU'
+++ case $perms in
+++ test 0 = 0
+++ echo /sources/gzip-1.6/tests/gt-zgrep-signal.x2ZU
+++ return
++ test_dir_=/sources/gzip-1.6/tests/gt-zgrep-signal.x2ZU
++ cd /sources/gzip-1.6/tests/gt-zgrep-signal.x2ZU
++ gl_init_sh_nl_='
'
++ IFS='
'
++ for sig_ in 1 2 3 13 15
+++ expr 1 + 128
++ eval 'trap '\''Exit 129'\'' 1'
+++ trap 'Exit 129' 1
++ for sig_ in 1 2 3 13 15
+++ expr 2 + 128
++ eval 'trap '\''Exit 130'\'' 2'
+++ trap 'Exit 130' 2
++ for sig_ in 1 2 3 13 15
+++ expr 3 + 128
++ eval 'trap '\''Exit 131'\'' 3'
+++ trap 'Exit 131' 3
++ for sig_ in 1 2 3 13 15
+++ expr 13 + 128
++ eval 'trap '\''Exit 141'\'' 13'
+++ trap 'Exit 141' 13
++ for sig_ in 1 2 3 13 15
+++ expr 15 + 128
++ eval 'trap '\''Exit 143'\'' 15'
+++ trap 'Exit 143' 15
++ trap remove_tmp_ 0
+ path_prepend_ ..
+ test 1 '!=' 0
+ path_dir_=..
+ case $path_dir_ in
+ abs_path_dir_=/sources/gzip-1.6/tests/..
+ case $abs_path_dir_ in
+ PATH=/sources/gzip-1.6/tests/..:/sources/gzip-1.6:/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin
+ create_exe_shims_ /sources/gzip-1.6/tests/..
+ case $EXEEXT in
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ echo a
+ gzip -c
+ test x = x
+ PERL=perl
++ write_to_dangling_pipe cat f.gz f.gz
++ exec
++ :
++ exec_with_SIGPIPE_SIG_DFL cat f.gz f.gz
++ program=cat
++ shift
++ args=
++ for arg in '"$ <at> "'
++ args=', '\''f.gz'\'''
++ for arg in '"$ <at> "'
++ args=', '\''f.gz'\'', '\''f.gz'\'''
++ perl -e '$SIG{PIPE} = '\''DEFAULT'\''; exec '\''cat'\'',
'\''f.gz'\'', '\''f.gz'\'''
++ echo 0
+ signal_status=0
+ test 128 -lt 0
+ framework_failure_ 'signal handling busted on this host'
+ warn_ 'zgrep-signal: set-up failure: signal handling busted on this host'
+ case $IFS in
+ printf '%s\n' 'zgrep-signal: set-up failure: signal handling busted
on this host'
zgrep-signal: set-up failure: signal handling busted on this host
+ test 9 = 2
+ printf '%s\n' 'zgrep-signal: set-up failure: signal handling busted
on this host'
+ sed 1q
+ Exit 99
+ set +e
+ exit 99
+ exit 99
+ remove_tmp_
+ __st=99
+ cleanup_
+ :
+ cd /sources/gzip-1.6/tests
+ chmod -R u+rwx /sources/gzip-1.6/tests/gt-zgrep-signal.x2ZU
+ rm -rf /sources/gzip-1.6/tests/gt-zgrep-signal.x2ZU
+ exit 99

============================================================================
Testsuite summary for gzip 1.6
============================================================================
# TOTAL: 15
# PASS:  14
# SKIP:  0
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 1
============================================================================
See tests/test-suite.log
Please report to bug-gzip <at> gnu.org
============================================================================
Makefile:1576: recipe for target 'test-suite.log' failed
make[4]: *** [test-suite.log] Error 1
make[4]: Leaving directory '/sources/gzip-1.6/tests'
Makefile:1682: recipe for target 'check-TESTS' failed
make[3]: *** [check-TESTS] Error 2
make[3]: Leaving directory '/sources/gzip-1.6/tests'
Makefile:1853: recipe for target 'check-am' failed
make[2]: *** [check-am] Error 2
make[2]: Leaving directory '/sources/gzip-1.6/tests'
Makefile:1669: recipe for target 'check-recursive' failed
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory '/sources/gzip-1.6'
Makefile:1943: recipe for target 'check' failed
make: *** [check] Error 2
root:/sources/gzip-1.6# cat tests/test-suite.log | grep -i error
# ERROR: 1
ERROR: zgrep-signal

Thanks

--

-- 
rob
Robin | 14 Mar 14:55 2014
Picon

Info: 10.37. Iana-Etc-2.30 Version GIT-20140311-x86_64-Multilib

Make get fails as there is no internet yet.

I used the instructions from Version 2.1.0-x86_64-Multilib to continue
installation

Thanks
--

-- 
rob
Robin | 11 Mar 17:02 2014
Picon

10.7.1. Eglibc tests.

I haven't changed anything from the book though  I may have missed something.
No optimisations were applied to the build

make[2]: *** [/sources/eglibc-build/math/test-ldouble.out] Error 1
make[2]: *** [/sources/eglibc-build/math/test-ildoubl.out] Error 1
make[1]: *** [math/tests] Error 2
make[2]: [/sources/eglibc-build/posix/annexc.out] Error 1 (ignored)
make[2]: *** [/sources/eglibc-build/posix/tst-getaddrinfo4.out] Error 1
make[1]: *** [posix/tests] Error 2
make[2]: *** [/sources/eglibc-build/debug/tst-backtrace6.out] Error 1
make[1]: *** [debug/tests] Error 2
make: *** [check] Error 2

The math/test errors and the tst-getaddrinfo4 I can ignore?

What about tst-backtrace6?

tst-backtrace6.out:

Obtained backtrace with 7 functions
Function 0: /sources/eglibc-build/debug/tst-backtrace6(handle_signal+0x1a)
[0x804960a]
Function 1: linux-gate.so.1(__kernel_sigreturn+0) [0x55577400]
Function 2: /sources/eglibc-build/debug/tst-backtrace6(noreturn_func+0)
[0x8049720]
Function 3: /sources/eglibc-build/debug/tst-backtrace6() [0x80497fd]
Function 4: /sources/eglibc-build/debug/tst-backtrace6(fn+0x1e) [0x804974e]
Function 5: /sources/eglibc-build/debug/tst-backtrace6(fn+0x1e) [0x804974e]
Function 6: /sources/eglibc-build/debug/tst-backtrace6() [0x804980f]
Failure on line 96

Thanks
--

-- 
rob
Robin | 11 Mar 14:18 2014
Picon

10.2.2.6. Creating Package Archives - LSB Specification link dead

I found a link :

https://refspecs.linuxbase.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/packagefmt.html

as a possible replacement?

--

-- 
rob
Robin | 9 Mar 22:53 2014
Picon

linux-3.12.6 make error 5.6.1.

This is 2nd attempt just in case I borked something

Ran as user clfs:

make ARCH=x86_64 headers_check

Error:

/mnt/clfs/sources/linux-3.12.6/usr/include/linux/kexec.h:49: userspace
cannot reference function or variable defined in the kernel
/mnt/clfs/sources/linux-3.12.6/usr/include/linux/soundcard.h:1054:
userspace cannot reference function or variable defined in the kernel

Version GIT-20140308-x86_64-Multilib
Section 5.6.1.

version_check
bash, version 4.3.0(1)-release
Binutils: (GNU Binutils for Debian) 2.24
bison (GNU Bison) 3.0.2
bzip2,  Version
1.0.6, 6-Sept-2010.
Coreutils:  8.21
diff (GNU diffutils) 3.3
find (GNU findutils) 4.4.2
GNU Awk 4.0.1
gcc (Debian 4.8.2-16) 4.8.2
g++ (Debian 4.8.2-16) 4.8.2
GNU C Library (Debian EGLIBC 2.18-4) stable
grep (GNU grep) 2.18
gzip 1.6
Linux 3.13-1-amd64
GNU Make 3.81
ncurses 5.9.20140118
GNU patch 2.7.1
sed (GNU sed) 4.2.2
tar (GNU tar) 1.27.1
makeinfo (GNU texinfo) 5.2
xz (XZ Utils) 5.1.0alpha
Compilation successful

Thanks

--

-- 
rob
Robin | 7 Mar 11:28 2014
Picon

http://primates.ximian.com/~flucifredi/man/man-1.6g.tar.gz

Version GIT-20140212-x86_64-Multilib

--2014-03-06 21:51:27--  (try: 7)
http://primates.ximian.com/~flucifredi/man/man-1.6g.tar.gz
-- Connecting to primates.ximian.com
(primates.ximian.com)|130.57.21.46|:80... failed: Connection timed
out.

I tried again this morning 07/03/2014 10:20 GMT with same result

rob
William Harrington | 3 Mar 19:18 2014

CLFS Systemd Build Logs with Tests

Greetings,

With the help of Ryan Turner, I've updated the test suite commands in  
some places.

I am now in the process of making sure they work and providing test  
suite results at the following location:

http://cross-lfs.org/~kb0iic/CLFS-GIT-SYSTEMD/build-logs/

I will be adding more results as I build more targets. I'm going to do  
multilib next.

Two known tests fail with Flex cause of BIson 3.0:

test-bison-yyloc
test-bison-yylval

Two tests fail for me with Perl (may be cause of networking):

cpan/Socket/t/getnameinfo ..................................... #    
Failed test '$err == 0 for {family=AF_INET,port=80,sinaddr=127.0.0.1}/ 
NI_NUMERICSERV'
lib/Net/hostent ............................................... #    
Failed test 'gethost('localhost')'

4 tests which are common for glibc (2 ignored):

make[3]: *** [/sources/glibc-build/libio/tst-ftell-partial-wide.out]  
Error 1
make[3]: [/sources/glibc-build/posix/annexc.out] Error 1 (ignored)
make[3]: *** [/sources/glibc-build/posix/tst-getaddrinfo4.out] Error 1
make[3]: [/sources/glibc-build/conform/run-conformtest.out] Error 1  
(ignored)

That's all I can remember at this time. If some packages do have test  
suites and we don't have check commands (mainly packages which we  
added for systemd which we didn't include check commands), let us know.

Sincerely,

William Harrington
thomas kaeding | 23 Feb 02:15 2014
Picon

libkate != kate

I haven't checked all the books yet, but blfs online svn has a link to
kate (of KDE) in the vorbis-tools page, but really they meant libkate
(the karaoke lyric library).

Gmane