Aurelien Jarno schrieb: > Jög Sommer a èrit : > > I would like to build the newest libc6 package for powerpc, but I get this: > > > > % CC=gcc-4.2 nice dpkg-buildpackage -rfakeroot -uc -nc > > CC= does not work the way you use it. This is probably the cause of your > problem. You have to add this line to debian/sysdeps/powerpc.mk I've did this, but it didn't help. I still get the error. dpkg-buildpackage: source package is glibc dpkg-buildpackage: source version is 2.6-0exp2 dpkg-buildpackage: source changed by Aurelien Jarno <aurel32@debian.org> dpkg-buildpackage: host architecture powerpc dpkg-buildpackage: source version without epoch 2.6-0exp2 fakeroot debian/rules clean dh_clean rm -f debian/*.install* rm -f debian/*.install.* rm -f debian/*.manpages rm -f debian/*.links rm -f debian/*.postinst rm -f debian/*.preinst rm -f debian/*.postinst rm -f debian/*.prerm rm -f debian/*.postrm rm -f debian/*.info rm -f debian/*.init rm -f debian/*.config rm -f debian/*.templates rm -f debian/*.dirs rm -f debian/*.docs rm -f debian/*.doc-base rm -f debian/*.generated rm -f debian/*.lintian rm -f debian/*.linda rm -f /tmp/glibc-2.6/stamp-dir/binaryinst* rm -rf debian/tmp-libc debian/tmp-ppc64 rm -rf build-tree rm -rf /tmp/glibc-2.6/stamp-dir/ rm -f log-* rm -rf debian/include debian/rules build mkdir -p build-tree cd build-tree && tar -xjf /tmp/glibc-2.6/glibc-2.6ds1.tar.bz2 touch /tmp/glibc-2.6/stamp-dir/glibc-2.6ds1.tar.bz2 cd build-tree/glibc-2.6 && tar -xjf /tmp/glibc-2.6/glibc-libidn-2.6.tar.bz2 a=`echo glibc-libidn-2.6.tar.bz2 | sed -e 's/^glibc-//' -e 's/-[^-]*$//'`; \ d=`echo glibc-libidn-2.6.tar.bz2 | sed -e 's/\.tar\.bz2$//'`; \ if test -d build-tree/glibc-2.6/$d; then \ cd build-tree/glibc-2.6 && mv $d $a; \ fi touch /tmp/glibc-2.6/stamp-dir/glibc-libidn-2.6.tar.bz2 cd build-tree/glibc-2.6 && tar -xjf /tmp/glibc-2.6/glibc-linuxthreads-2.6-20070518.tar.bz2 a=`echo glibc-linuxthreads-2.6-20070518.tar.bz2 | sed -e 's/^glibc-//' -e 's/-[^-]*$//'`; \ d=`echo glibc-linuxthreads-2.6-20070518.tar.bz2 | sed -e 's/\.tar\.bz2$//'`; \ if test -d build-tree/glibc-2.6/$d; then \ cd build-tree/glibc-2.6 && mv $d $a; \ fi touch /tmp/glibc-2.6/stamp-dir/glibc-linuxthreads-2.6-20070518.tar.bz2 cd build-tree/glibc-2.6 && tar -xjf /tmp/glibc-2.6/glibc-ports-2.6.tar.bz2 a=`echo glibc-ports-2.6.tar.bz2 | sed -e 's/^glibc-//' -e 's/-[^-]*$//'`; \ d=`echo glibc-ports-2.6.tar.bz2 | sed -e 's/\.tar\.bz2$//'`; \ if test -d build-tree/glibc-2.6/$d; then \ cd build-tree/glibc-2.6 && mv $d $a; \ fi touch /tmp/glibc-2.6/stamp-dir/glibc-ports-2.6.tar.bz2 touch /tmp/glibc-2.6/stamp-dir/unpack Applying patches...successful. rm -rf debian/include mkdir debian/include ln -s /usr/include/linux debian/include # Link all asm directories. We can't just link asm and asm-generic # because of explicit references to <asm-sparc/*> and # <asm-sparc64/*>. find /usr/include -maxdepth 1 -xtype d -name asm\* \ -exec ln -s '{}' debian/include ';' # To make configure happy if libc6-dev is not installed. touch debian/include/assert.h touch /tmp/glibc-2.6/stamp-dir/mkincludedir Making builddir for libc test -d build-tree/powerpc-libc || mkdir build-tree/powerpc-libc touch /tmp/glibc-2.6/stamp-dir/mkbuilddir_libc Configuring libc rm -f build-tree/powerpc-libc/configparms echo "CC = gcc-4.2" >> build-tree/powerpc-libc/configparms echo "BUILD_CC = gcc-4.1" >> build-tree/powerpc-libc/configparms echo "CFLAGS = -pipe -O2 -fstrict-aliasing -g " >> build-tree/powerpc-libc/configparms echo "BUILD_CFLAGS = -O2 -g" >> build-tree/powerpc-libc/configparms echo "BASH := /bin/bash" >> build-tree/powerpc-libc/configparms echo "KSH := /bin/bash" >> build-tree/powerpc-libc/configparms echo "LIBGD = no" >> build-tree/powerpc-libc/configparms echo "bindir = /usr/bin" >> build-tree/powerpc-libc/configparms echo "datadir = /usr/share" >> build-tree/powerpc-libc/configparms echo "localedir = /usr/lib/locale" >> build-tree/powerpc-libc/configparms echo "sysconfdir = /etc" >> build-tree/powerpc-libc/configparms echo "libexecdir = /usr/lib" >> build-tree/powerpc-libc/configparms echo "rootsbindir = /sbin" >> build-tree/powerpc-libc/configparms echo "includedir = /usr/include" >> build-tree/powerpc-libc/configparms echo "docdir = /usr/share/doc" >> build-tree/powerpc-libc/configparms echo "mandir = /usr/share/man" >> build-tree/powerpc-libc/configparms echo "sbindir = /usr/sbin" >> build-tree/powerpc-libc/configparms libdir="" ; if test -n "$libdir" ; then \ echo "libdir = $libdir" >> build-tree/powerpc-libc/configparms ; \ fi slibdir="" ; if test -n "$slibdir" ; then \ echo "slibdir = $slibdir" >> build-tree/powerpc-libc/configparms ; \ fi rtlddir="" ; if test -n "$rtlddir" ; then \ echo "rtlddir = $rtlddir" >> build-tree/powerpc-libc/configparms ; \ fi # Prevent autoconf from running unexpectedly by setting it to false. # Also explicitly pass CC down - this is needed to get -m64 on # Sparc, et cetera. configure_build=powerpc-linux-gnu; \ if [ powerpc-linux-gnu = $configure_build ]; then \ echo "Checking that we're running at least kernel version: 2.6.1"; \ if ! (minimum=$((`echo 2.6.1 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1 \* 65536 + \2 \* 256 + \3/'`)); current=$((`echo 2.6.22-rc2 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1 \* 65536 + \2 \* 256 + \3/'`)); if [ $current -lt $minimum ]; then false; fi); then \ configure_build=`echo $configure_build | sed 's/^\([^-]*\)-\([^-]*\)$/\1-dummy-\2/'`; \ echo "No. Forcing cross-compile by setting build to $configure_build."; \ fi; \ fi; \ (exec 3>&1; exit `( ( ( echo -n "Build started: " ; date --rfc-2822 ; echo "---------------" ) 2>&1 3>&-; echo $? >&4) | tee -a /tmp/glibc-2.6/log-build-powerpc-linux-gnu-libc >&3) 4>&1`) ; \ (exec 3>&1; exit `( ( ( cd build-tree/powerpc-libc && CC="gcc-4.2" AUTOCONF=false MAKEINFO=: /tmp/glibc-2.6/build-tree/glibc-2.6/configure --host=powerpc-linux-gnu --build=$configure_build --prefix=/usr --without-cvs --enable-add-ons=libidn,"nptl " --enable-profile --without-selinux --with-headers=/tmp/glibc-2.6/debian/include --enable-kernel=2.6.1 ) 2>&1 3>&-; echo $? >&4) | tee -a /tmp/glibc-2.6/log-build-powerpc-linux-gnu-libc >&3) 4>&1`) Checking that we're running at least kernel version: 2.6.1 Build started: Fri, 15 Jun 2007 16:09:30 +0200 --------------- checking build system type... powerpc-unknown-linux-gnu checking host system type... powerpc-unknown-linux-gnu configure: running configure fragment for add-on libidn configure: running configure fragment for add-on nptl checking sysdep dirs... sysdeps/powerpc/powerpc32/elf sysdeps/powerpc/elf sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu sysdeps/powerpc/powerpc32/fpu nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32 sysdeps/unix/sysv/linux/powerpc/powerpc32 nptl/sysdeps/unix/sysv/linux/powerpc sysdeps/unix/sysv/linux/powerpc sysdeps/ieee754/ldbl-128ibm sysdeps/ieee754/ldbl-opt nptl/sysdeps/unix/sysv/linux nptl/sysdeps/pthread sysdeps/pthread sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/common sysdeps/unix/mman sysdeps/unix/inet nptl/sysdeps/unix/sysv sysdeps/unix/sysv sysdeps/unix/powerpc nptl/sysdeps/unix sysdeps/unix sysdeps/posix sysdeps/powerpc/powerpc32 sysdeps/wordsize-32 sysdeps/powerpc/fpu nptl/sysdeps/powerpc sysdeps/powerpc sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32 sysdeps/ieee754 sysdeps/generic/elf sysdeps/generic checking for a BSD-compatible install... /usr/bin/install -c checking whether ln -s works... yes checking for powerpc-linux-gnu-gcc... gcc-4.2 checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc-4.2 accepts -g... yes checking for gcc-4.2 option to accept ANSI C... none needed checking how to run the C preprocessor... gcc-4.2 -E checking for powerpc-linux-gnu-g++... powerpc-linux-gnu-g++ checking whether we are using the GNU C++ compiler... yes checking whether powerpc-linux-gnu-g++ accepts -g... yes checking for powerpc-linux-gnu-ranlib... no checking for ranlib... ranlib checking whether as is GNU as... yes checking whether ld is GNU ld... yes checking for as... as checking version of as... 2.17.50.20070406, ok checking for ld... ld checking version of ld... 2.17.50.20070406, ok checking for pwd... /bin/pwd checking for powerpc-linux-gnu-gcc... (cached) gcc-4.2 checking version of gcc-4.2... 4.2.1, ok checking for gnumake... no checking for gmake... no checking for make... make checking version of make... 3.81, ok checking for gnumsgfmt... no checking for gmsgfmt... no checking for msgfmt... msgfmt checking version of msgfmt... 0.16.1, ok checking for makeinfo... : checking version of :... v. ?.??, bad checking for sed... sed checking version of sed... 4.1.5, ok checking for autoconf... false checking whether false works... no configure: WARNING: *** These auxiliary programs are missing or incompatible versions: makeinfo *** some features will be disabled. *** Check the INSTALL file for required versions. checking whether ranlib is necessary... no checking LD_LIBRARY_PATH variable... ok checking whether GCC supports -static-libgcc... -static-libgcc checking for bash... /bin/bash checking for gawk... gawk checking for perl... /usr/bin/perl checking for install-info... /usr/sbin/install-info checking for bison... /usr/bin/bison checking for signed size_t type... no checking for libc-friendly stddef.h... yes checking whether we need to use -P to assemble .S files... no checking whether .text pseudo-op must be used... yes checking for assembler global-symbol directive... .globl checking for .set assembler directive... yes checking for assembler .type directive prefix... @ checking for .symver assembler directive... yes checking for ld --version-script... yes checking for .previous assembler directive... yes checking for .protected and .hidden assembler directive... yes checking whether __attribute__((visibility())) is supported... yes checking for broken __attribute__((visibility()))... no checking for broken __attribute__((alias()))... no checking whether to put _rtld_local into .sdata section... yes checking for .preinit_array/.init_array/.fini_array support... yes checking for libunwind-support in compiler... no checking for -z nodelete option... yes checking for -z nodlopen option... yes checking for -z initfirst option... yes checking for -z relro option... yes checking for -Bgroup option... yes checking for libgcc_s suffix... checking for --as-needed option... yes checking whether --noexecstack is desirable for .S files... yes checking for -z combreloc... yes checking for -z execstack... yes checking for -fpie... yes checking for --hash-style option... yes checking for -fno-toplevel-reorder... yes checking for -fstack-protector... yes checking for -fgnu89-inline... yes checking whether cc puts quotes around section names... no checking for assembler .weak directive... yes checking whether CFI directives are supported... yes checking for ld --no-whole-archive... yes checking for gcc -fexceptions... yes checking whether clobbering cr0 causes problems... no checking for __builtin_expect... yes checking for __builtin_memset... no checking for redirection of built-in functions... yes checking for __thread... yes checking for tls_model attribute... yes checking for libgd... no checking for egrep... 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 for long double... yes checking size of long double... 16 running configure fragment for sysdeps/powerpc/powerpc32/elf checking for powerpc32 TLS support... yes running configure fragment for sysdeps/unix/sysv/linux/powerpc checking whether gcc-4.2 -O2 -Wall -Wformat=2 -Wunused -Wundef -Wextra -Wswitch-enum -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Wconversion -mlong-double-128 uses IBM extended format... yes running configure fragment for sysdeps/ieee754/ldbl-opt checking whether gcc-4.2 -O2 -Wall -Wformat=2 -Wunused -Wundef -Wextra -Wswitch-enum -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Wconversion supports -mlong-double-128... yes running configure fragment for nptl/sysdeps/pthread checking for forced unwind support... yes checking for C cleanup handling... no configure: error: the compiler must support C cleanup handling make: *** [/tmp/glibc-2.6/stamp-dir/configure_libc] Fehler 1 … wait, I think I see the problem. I've set CFLAGS to -O2 -Wall -Wformat=2 -Wunused -Wundef -Wextra -Wswitch-enum -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wnested-externs -Wconversion and this causes the error. Maybe, you should not import CFLAG from the environment. Now, the build process is running. Bye, Jörg. -- Nutze die Talente, die du hast. Die Wälder wären sehr still, wenn nur die begabtesten Vögel sängen. (Henry van Dyke)
Attachment:
pgpwi1T4ou4HS.pgp
Description: PGP signature