Problems rebuilding packages with rpm

Problems rebuilding packages with rpm

Post by Michael Medin » Mon, 24 Jul 2000 04:00:00



Hi there,

my RedHat6.2 with latest binutils refuses to build some packages.
Compiler is pgcc 2.95.2.

Attached please see what happened.

Annybody any ideas ?

Thanks in advance for help.

Regards

Michael Meding

PS if possible cc me.

[ rpmrebuild.log 12K ]
Installiere gcc-2.95.2-4.src.rpm
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.64412
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd /usr/src/redhat/BUILD
+ rm -rf gcc-2.95.2
+ /usr/bin/bzip2 -dc /usr/src/redhat/SOURCES/gcc-2.95.2.tar.bz2
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd gcc-2.95.2
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,g-w,o-w .
+ cd /usr/src/redhat/BUILD
+ cd gcc-2.95.2
+ /bin/gzip -dc /usr/src/redhat/SOURCES/libgcj-2.95.1.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,g-w,o-w .
+ mv libgcj-2.95.1 libgcj
+ mv libgcj/boehm-gc libgcj/libjava libgcj/zlib libgcj/zip .
+ cp -f libgcj/ltmain.sh libgcj/ltconfig .
+ echo 'Patch #0 (gcc-2.95.1-libgcj-config.patch):'
Patch #0 (gcc-2.95.1-libgcj-config.patch):
+ patch -p1 -b --suffix .libgcj -s
+ echo 'Patch #1 (gcc-2.95.2-config.guess.patch):'
Patch #1 (gcc-2.95.2-config.guess.patch):
+ patch -p0 -b --suffix .config -s
+ echo 'Patch #2 (gcc-2.95.2-f.patch):'
Patch #2 (gcc-2.95.2-f.patch):
+ patch -p0 -b --suffix .f -s
+ echo 'Patch #3 (gcc-2.95.2-gcc.patch):'
Patch #3 (gcc-2.95.2-gcc.patch):
+ patch -p1 -b --suffix .gcc -s
+ echo 'Patch #4 (gcc-2.95.2-if.patch):'
Patch #4 (gcc-2.95.2-if.patch):
+ patch -p0 -b --suffix .if -s
+ echo 'Patch #5 (gcc-2.95.2-libf2c.patch):'
Patch #5 (gcc-2.95.2-libf2c.patch):
+ patch -p1 -b --suffix .libf2c -s
+ echo 'Patch #6 (gcc-2.95.2-libobjc.patch):'
Patch #6 (gcc-2.95.2-libobjc.patch):
+ patch -p0 -b --suffix .libobjc -s
+ echo 'Patch #7 (gcc-2.95.2-glibc.cross.patch):'
Patch #7 (gcc-2.95.2-glibc.cross.patch):
+ patch -p0 -b --suffix .glibc -s
+ mkdir compat
+ '[' redhat = redhat -o redhat = pc ']'
+ tar xzf /usr/src/redhat/SOURCES/libstdc++-compat-redhat.tar.gz -C compat
+ '[' redhat = mandrake ']'
+ exit 0

--snip--

GRAM=/bin/sh /usr/src/redhat/BUILD/gcc-2.95.2/install-sh -c " "INSTALL_SCRIPT=/bin/sh /usr/src/redhat/BUILD/gcc-2.95.2/install-sh -c" "LDFLAGS=" "LIBCFLAGS=-m486 -pipe -O3" "LIBCFLAGS_FOR_TARGET=-m486 -pipe -O3" "MAKE=make" "MAKEINFO=makeinfo --no-split  " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "EXPECT=expect" "RUNTEST=runtest" "RUNTESTFLAGS=" "exec_prefix=/var/tmp/gcc-2.95.2-root/usr" "infodir=/var/tmp/gcc-2.95.2-root/usr/info" "libdir=/var/tmp/gcc-2.95.2-root/usr/lib" "prefix=/var/tmp/gcc-2.95.2-root/usr" "tooldir=/var/tmp/gcc-2.95.2-root/usr/i386-redhat-linux" "AR=ar" "AS=as" "CC=/usr/src/redhat/BUILD/gcc-2.95.2/obj-i386-redhat-linux/gcc/xgcc -B/usr/src/redhat/BUILD/gcc-2.95.2/obj-i386-redhat-linux/gcc/ -B/var/tmp/gcc-2.95.2-root/usr/i386-redhat-linux/bin/" "CXX=/usr/src/redhat/BUILD/gcc-2.95.2/obj-i386-redhat-linux/gcc/xgcc -B/usr/src/redhat/BUILD/gcc-2.95.2/obj-i386-redhat-linux/gcc/ -B/var/tmp/gcc-2.95.2-root/usr/i386-redhat-linux/bin/" "LD=ld" "LIBCFLAGS=-m486 -pipe -O3" "NM=nm" "PICFLAG=" "RANLIB=ranlib" "DESTDIR=" DO=install multi-do
make[2]: Entering directory `/usr/src/redhat/BUILD/gcc-2.95.2/obj-i386-redhat-linux/i386-redhat-linux/boehm-gc'
if [ -z "" ]; then \
  true; \
else \
  rootpre=`pwd`/; export rootpre; \
  srcrootpre=`cd ../../../boehm-gc; pwd`/; export srcrootpre; \
  lib=`echo ${rootpre} | sed -e 's,^.*/\([^/][^/]*\)/$,\1,'`; \
  compiler="/usr/src/redhat/BUILD/gcc-2.95.2/obj-i386-redhat-linux/gcc/xgcc -B/usr/src/redhat/BUILD/gcc-2.95.2/obj-i386-redhat-linux/gcc/ -B/var/tmp/gcc-2.95.2-root/usr/i386-redhat-linux/bin/"; \
  for i in `${compiler} --print-multi-lib 2>/dev/null`; do \
    dir=`echo $i | sed -e 's/;.*$//'`; \
    if [ "${dir}" = "." ]; then \
      true; \
    else \
      if [ -d ../${dir}/${lib} ]; then \
        flags=`echo $i | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`; \
        if (cd ../${dir}/${lib}; make  \
                        CFLAGS="-m486 -pipe -O3 ${flags}" \
                        CXXFLAGS="-g -O2 -fvtable-thunks -D_GNU_SOURCE ${flags}" \
                        LIBCFLAGS="-m486 -pipe -O3 ${flags}" \
                        LIBCXXFLAGS="-g -O2 -fvtable-thunks -D_GNU_SOURCE -fno-implicit-templates ${flags}" \
                        LDFLAGS=" ${flags}" \
                        install); then \
          true; \
        else \
          exit 1; \
        fi; \
      else true; \
      fi; \
    fi; \
  done; \
fi
make[2]: Leaving directory `/usr/src/redhat/BUILD/gcc-2.95.2/obj-i386-redhat-linux/i386-redhat-linux/boehm-gc'
make[2]: Entering directory `/usr/src/redhat/BUILD/gcc-2.95.2/obj-i386-redhat-linux/i386-redhat-linux/boehm-gc'
/bin/sh ../../../boehm-gc/../mkinstalldirs /var/tmp/gcc-2.95.2-root/usr/lib
/bin/sh ./libtool  --mode=install /bin/sh /usr/src/redhat/BUILD/gcc-2.95.2/install-sh -c libgcjgc.la /var/tmp/gcc-2.95.2-root/usr/lib/libgcjgc.la
/bin/sh /usr/src/redhat/BUILD/gcc-2.95.2/install-sh -c .libs/libgcjgc.so.0.0.0 /var/tmp/gcc-2.95.2-root/usr/lib/libgcjgc.so.0.0.0
(cd /var/tmp/gcc-2.95.2-root/usr/lib && rm -f libgcjgc.so.0 && ln -s libgcjgc.so.0.0.0 libgcjgc.so.0)
(cd /var/tmp/gcc-2.95.2-root/usr/lib && rm -f libgcjgc.so && ln -s libgcjgc.so.0.0.0 libgcjgc.so)
/bin/sh /usr/src/redhat/BUILD/gcc-2.95.2/install-sh -c .libs/libgcjgc.lai /var/tmp/gcc-2.95.2-root/usr/lib/libgcjgc.la
/bin/sh /usr/src/redhat/BUILD/gcc-2.95.2/install-sh -c .libs/libgcjgc.a /var/tmp/gcc-2.95.2-root/usr/lib/libgcjgc.a
ranlib /var/tmp/gcc-2.95.2-root/usr/lib/libgcjgc.a
chmod 644 /var/tmp/gcc-2.95.2-root/usr/lib/libgcjgc.a
libtool: install: warning: remember to run `libtool --finish /usr/lib'
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/usr/src/redhat/BUILD/gcc-2.95.2/obj-i386-redhat-linux/i386-redhat-linux/boehm-gc'
make[1]: Leaving directory `/usr/src/redhat/BUILD/gcc-2.95.2/obj-i386-redhat-linux/i386-redhat-linux/boehm-gc'
++ /var/tmp/gcc-2.95.2-root/usr/bin/i386-redhat-linux-gcc --version
++ cut '-d ' -f1
+ FULLVER=2.95.2
++ dirname /var/tmp/gcc-2.95.2-root/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/cc1
+ FULLPATH=/var/tmp/gcc-2.95.2-root/usr/lib/gcc-lib/i386-redhat-linux/2.95.2
+ file /var/tmp/gcc-2.95.2-root//usr/bin/c++ /var/tmp/gcc-2.95.2-root//usr/bin/c++filt /var/tmp/gcc-2.95.2-root//usr/bin/chill /var/tmp/gcc-2.95.2-root//usr/bin/cpp /var/tmp/gcc-2.95.2-root//usr/bin/g++ /var/tmp/gcc-2.95.2-root//usr/bin/g77 /var/tmp/gcc-2.95.2-root//usr/bin/gcc /var/tmp/gcc-2.95.2-root//usr/bin/gcj /var/tmp/gcc-2.95.2-root//usr/bin/gcjh /var/tmp/gcc-2.95.2-root//usr/bin/gcov /var/tmp/gcc-2.95.2-root//usr/bin/i386-redhat-linux-gcc /var/tmp/gcc-2.95.2-root//usr/bin/jcf-dump /var/tmp/gcc-2.95.2-root//usr/bin/jv-convert /var/tmp/gcc-2.95.2-root//usr/bin/jv-scan /var/tmp/gcc-2.95.2-root//usr/bin/protoize /var/tmp/gcc-2.95.2-root//usr/bin/unprotoize /var/tmp/gcc-2.95.2-root//usr/bin/zip
+ grep ELF
+ cut -d: -f1
+ xargs strip
+ strip /var/tmp/gcc-2.95.2-root/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/cc1 /var/tmp/gcc-2.95.2-root/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/cc1obj /var/tmp/gcc-2.95.2-root/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/cpp /var/tmp/gcc-2.95.2-root/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/f771 /var/tmp/gcc-2.95.2-root/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/jc1 /var/tmp/gcc-2.95.2-root/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/jvgenmain /var/tmp/gcc-2.95.2-root/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/cc1chill
+ mkdir /var/tmp/gcc-2.95.2-root/usr/i386-redhat-linux/lib
+ mv /var/tmp/gcc-2.95.2-root/usr/lib/libiberty.a /var/tmp/gcc-2.95.2-root/usr/i386-redhat-linux/lib/libiberty.a
+ ln -sf i386-redhat-linux-gcc /var/tmp/gcc-2.95.2-root/usr/bin/egcs
+ ln -sf gcc.1 /var/tmp/gcc-2.95.2-root/usr/man/man1/egcs.1
+ ln -sf gcc /var/tmp/gcc-2.95.2-root/usr/bin/cc
+ rm -f /var/tmp/gcc-2.95.2-root/usr/info/dir
+ gzip -n -9f /var/tmp/gcc-2.95.2-root/usr/info/chill.info /var/tmp/gcc-2.95.2-root/usr/info/cpp.info /var/tmp/gcc-2.95.2-root/usr/info/cpp.info-1 /var/tmp/gcc-2.95.2-root/usr/info/cpp.info-2 /var/tmp/gcc-2.95.2-root/usr/info/cpp.info-3 /var/tmp/gcc-2.95.2-root/usr/info/g77.info /var/tmp/gcc-2.95.2-root/usr/info/g77.info-1 /var/tmp/gcc-2.95.2-root/usr/info/g77.info-10 /var/tmp/gcc-2.95.2-root/usr/info/g77.info-11 /var/tmp/gcc-2.95.2-root/usr/info/g77.info-12 /var/tmp/gcc-2.95.2-root/usr/info/g77.info-13 /var/tmp/gcc-2.95.2-root/usr/info/g77.info-14 /var/tmp/gcc-2.95.2-root/usr/info/g77.info-15 /var/tmp/gcc-2.95.2-root/usr/info/g77.info-16 /var/tmp/gcc-2.95.2-root/usr/info/g77.info-17 /var/tmp/gcc-2.95.2-root/usr/info/g77.info-18 /var/tmp/gcc-2.95.2-root/usr/info/g77.info-19 /var/tmp/gcc-2.95.2-root/usr/info/g77.info-2 /var/tmp/gcc-2.95.2-root/usr/info/g77.info-20 /var/tmp/gcc-2.95.2-root/usr/info/g77.info-21 /var/tmp/gcc-2.95.2-root/usr/info/g77.info-3 /var/tmp/gcc-2.95.2-root/usr/info/g77.info-4 /var/tmp/gcc-2.95.2-root/usr/info/g77.info-5 /var/tmp/gcc-2.95.2-root/usr/info/g77.info-6 /var/tmp/gcc-2.95.2-root/usr/info/g77.info-7 /var/tmp/gcc-2.95.2-root/usr/info/g77.info-8 /var/tmp/gcc-2.95.2-root/usr/info/g77.info-9 /var/tmp/gcc-2.95.2-root/usr/info/gcc.info /var/tmp/gcc-2.95.2-root/usr/info/gcc.info-1 /var/tmp/gcc-2.95.2-root/usr/info/gcc.info-10 /var/tmp/gcc-2.95.2-root/usr/info/gcc.info-11 /var/tmp/gcc-2.95.2-root/usr/info/gcc.info-12 /var/tmp/gcc-2.95.2-root/usr/info/gcc.info-13 /var/tmp/gcc-2.95.2-root/usr/info/gcc.info-14 /var/tmp/gcc-2.95.2-root/usr/info/gcc.info-15 /var/tmp/gcc-2.95.2-root/usr/info/gcc.info-16 /var/tmp/gcc-2.95.2-root/usr/info/gcc.info-17 /var/tmp/gcc-2.95.2-root/usr/info/gcc.info-18 /var/tmp/gcc-2.95.2-root/usr/info/gcc.info-19 /var/tmp/gcc-2.95.2-root/usr/info/gcc.info-2 /var/tmp/gcc-2.95.2-root/usr/info/gcc.info-20 /var/tmp/gcc-2.95.2-root/usr/info/gcc.info-21 /var/tmp/gcc-2.95.2-root/usr/info/gcc.info-22 /var/tmp/gcc-2.95.2-root/usr/info/gcc.info-23 /var/tmp/gcc-2.95.2-root/usr/info/gcc.info-24 /var/tmp/gcc-2.95.2-root/usr/info/gcc.info-25 /var/tmp/gcc-2.95.2-root/usr/info/gcc.info-26 /var/tmp/gcc-2.95.2-root/usr/info/gcc.info-27 /var/tmp/gcc-2.95.2-root/usr/info/gcc.info-28 /var/tmp/gcc-2.95.2-root/usr/info/gcc.info-29 /var/tmp/gcc-2.95.2-root/usr/info/gcc.info-3 /var/tmp/gcc-2.95.2-root/usr/info/gcc.info-30 ...

read more »

 
 
 

Problems rebuilding packages with rpm

Post by Robert Lync » Mon, 24 Jul 2000 04:00:00


[posted and e-mailed]


> Hi there,

> my RedHat6.2 with latest binutils refuses to build some packages.
> Compiler is pgcc 2.95.2.

> Attached please see what happened.

> Annybody any ideas ?

> Thanks in advance for help.

> Regards

> Michael Meding

> PS if possible cc me.

>   ------------------------------------------------------------------------
> Installiere gcc-2.95.2-4.src.rpm
> Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.64412
> + umask 022
[snip]
> Processing files: cpp-2.95.2-4
> File not found: /var/tmp/gcc-2.95.2-root/usr/man/man1/cpp.1
> File not found: /var/tmp/gcc-2.95.2-root/usr/man/man1/cccp.1
> Provides: cpp
> PreReq: /sbin/install-info /bin/sh

Every week or so when some cron job runs on my system I get mail about a
missing cpp.1/cppp1.gz.

I looked into it and it seems like someone screwed up these two files
and/or symlinks to them:

$ ls -l /usr/man/man1/cpp.1.gz
lrwxrwxrwx    1 root     root            9 May 26 08:37
/usr/man/man1/cpp.1.gz -> cccp.1.gz

$ ls -l /usr/man/man1/cccp.1.gz
ls: /usr/man/man1/cccp.1.gz: No such file or directory

If this is it, maybe you could edit the spec file and get rid of the
problem that way...

HTH. Bob L.
--


 
 
 

1. Problem with Gnome RPM - Failed to open /var/lib/rpm/packages.rpm

I'm new to Linux and have just installed Redhat 6.1.  I'm using the
Gnome RPM manager and it works great for rpm packages that came on the
6.1 CD, but when I try to load some packages that I've downloaded I
get the Error " Failed to open /var/lib/rpm/packages.rpm"  Am I doing
something wrong, or is there something I need to set?  Any help would
be appreciated.  Thanks

Oh, and one more less important item.  I installed 6.1 with Gnome, How
do I switch to KDE to try it out?  Do I have to re-install?

Dave Hyman

Dave Hyman

2. Controlling access to reboot

3. rpm problem, can't "rpm --rebuild"

4. ATAPI CDRom on the IDE interface of a ESS Audiodrive 1868

5. rebuilt FreeBSD => rebuild all ports + reload all packages?

6. XInput - Problems w/ multiple mice

7. RPM Crashes with "//var/lib/rpm/packages.rpm not found"

8. ST01 & ST02 Jumper Settings

9. RPM: cannot open //var/lib/rpm/packages.rpm

10. rpm --rebuild procps-1.2.7-1.src.rpm error

11. Pb rebuild SRC.RPM : cannot create //root/rpm/SOURCES

12. Problem rebuilding util-linux-2.9i.src.rpm

13. rpm --rebuild problem, RH6, newbie