[Clfs-dev] CLFS 1.2 is Ready

code monkey lfscodemonkey at gmail.com
Sat Feb 4 20:15:38 PST 2012


Ok, here is my input on the PPC multilib:


If others are successfully building PPC multilib, maybe I'm doing
something wrong.   But these are the issues I found during my
build of it using the boot method...


======================================================
In 10.66 (iputils):

This is minor but...  The line:

"install -v -m755 rdisc /usr/bin"

fails because rdisc is missing from the make command and thus
doesn't exist.   The fix is to simply add rdisc to the make
command line.

My 0128 patch fixes this one.   It just adds rdisc to the
make command line.

======================================================

Chapter 7 (missing build flags)

Chapter 7 needs an additional section added to it which does:

cat >> ${CLFS}/root/.bash_profile << EOF
export BUILD32="${BUILD32}"
export BUILD64="${BUILD64}"
export CLFS_TARGET32="${CLFS_TARGET32}"
EOF

Without this, BUILD32, BUILD64 never get set in the booted system.
Various of the following compiles depend on them being set.   Other
multilib builds (e.g. x86_64) have a build flags in chapter 7 but
it is missing from the PPC.

My 0128 patch fixes this one.   Basically I just cloned the
build flags section from another multilib and linked it into the
PPC64 book.

======================================================

Section 7.5 (e2fsprogs 32bit)

The configure step fails with the following:

sabling journal debugging by default
Disabling blkid debugging by default
Enabling testio debugging by default
checking pkg-config is at least version 0.9.0... yes
checking for uuid_generate in -luuid... no
configure: error: external uuid library not found

I'm not completely sure of the fix on this one but:
This step is building of 32 bit e2fsprog libraries.   The libraries
that it is dependent on should come from the build of util-linux.
However the build of util-linux is 64 bits and doesn't produce
32 bit libraries.   I added a 32 bit build of util-linux prior
to the util-linux 64 bit build and this build step then worked.

======================================================

Section 7.6  (e2fsprogs)

The make fails with the following error:

	CC prof_err.c
	LD e2fsck
/opt/clfsppc64/cross-tools/bin/../lib/gcc/powerpc64-unknown-linux-gnu/4.6.0/../../../../powerpc64-unknown-linux-gnu/bin/ld:
warning: libpthread.so.0, needed by ../lib/libcom_err.so, not found
(try using -rpath or -rpath-link)
../lib/libcom_err.so: undefined reference to `sem_post at GLIBC_2.3'
../lib/libcom_err.so: undefined reference to `sem_destroy at GLIBC_2.3'
../lib/libcom_err.so: undefined reference to `sem_init at GLIBC_2.3'
../lib/libcom_err.so: undefined reference to `sem_wait at GLIBC_2.3'
collect2: ld returned 1 exit status
make[2]: *** [e2fsck] Error 1
make[2]: Leaving directory
`/opt/clfsppc64/sources/e2fsprogs-1.41.14/build/e2fsck'
make[1]: *** [all-progs-recursive] Error 1
make[1]: Leaving directory `/opt/clfsppc64/sources/e2fsprogs-1.41.14/build'


For some reason it can't find libpthread.so.0.    However, I look and find
that a /tools/lib64/libpthread.so.0 is present.  It should just find it
there and use it but somehow it doesn't.   I added
"LDFLAGS="-Wl,-rpath,/tools/lib64" \" to the configure step
and that made it work.   But I'm not sure that this the proper
way to fix it.

=====================================================================



More information about the Clfs-dev mailing list