[Cbe-oss-dev] ps3-kexec-tools (latest git update) compiling problems (on PS3)

Goffredo Marocchi panajev at gmail.com
Sat Dec 22 20:49:14 EST 2007


I cleaned up the directory I cloned the git repo in question and then I 
cloned it again:


[root at IGGS-PS3 src]# git clone 
git://git.kernel.org/pub/scm/linux/kernel/git/geoff/ps3-kexec-tools.git 
ps3-kexec
Initialized empty Git repository in /usr/src/ps3-kexec/.git/
remote: Generating pack...
remote: Done counting 2230 objects.
remote: Deltifying 2230 objects...
remote:  100% (2230/2230) done
Indexing 2230 objects...
remote: Total 2230 (delta 1585), reused 1987 (delta 1398)
 100% (2230/2230) done
Resolving 1585 deltas...
 100% (1585/1585) done



I usually only needed to run autoconf  and then ./configure 
--prefix=/usr   but if I do just that I get an error (about 
include/config.h):

[root at IGGS-PS3 ps3-kexec]# autoconf
[root at IGGS-PS3 ps3-kexec]# ./configure --prefix=/usr
checking build system type... powerpc64-unknown-linux-gnu
checking host system type... powerpc64-unknown-linux-gnu
checking target system type... powerpc64-unknown-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for ld... ld
checking for as... as
checking for objcopy... objcopy
checking for ar... ar
checking for a BSD-compatible install... /usr/bin/install -c
checking for mkdir... mkdir
checking for rm... rm
checking for cp... cp
checking for ln... ln
checking for tar... tar
checking for rpmbuild... rpmbuild
checking for sed... sed
checking for find... find
checking for xargs... xargs
checking for dirname... dirname
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for inflateInit_ in -lz... yes
checking xenctrl.h usability... no
checking xenctrl.h presence... no
checking for xenctrl.h... no
configure: creating ./config.status
config.status: creating Makefile
config.status: WARNING:  Makefile.in seems to ignore the --datarootdir 
setting
config.status: error: cannot find input file: include/config.h.in


If I run autoheader (and why not autoconf again although it makes no 
difference I'd think) and then ./configure --prefix=/usr then it 
successfully completes.

A good make clean, followed by a make all brings this error though:
gcc -melf64ppc --no-undefined -nostartfiles -nostdlib -nodefaultlibs -e 
purgatory_start -r -o purgatory/purgatory.ro purgatory/purgatory.o 
purgatory/printf.o purgatory/string.o purgatory/arch/ppc64/v2wrap.o 
purgatory/arch/ppc64/purgatory-ppc64.o 
purgatory/arch/ppc64/console-ppc64.o 
purgatory/arch/ppc64/crashdump_backup.o purgatory/sha256.o
/usr/bin/ld: Relocatable linking with relocations from format 
elf64-powerpc (purgatory/purgatory.o) to format elf32-powerpc 
(purgatory/purgatory.ro) is not supported
collect2: ld returned 1 exit status
make: *** [purgatory/purgatory.ro] Error 1


Is there something I am missing that is causing both errors ?

Regards,

Goffredo Marocchi





More information about the cbe-oss-dev mailing list