There's either a bug in the build procedure
or a misconfig. on my system.  In any case
I'd appreciate some help.

I tried  to build the gcc-3.2.1 rpm's from 

   gcc-3.2.1-2mdk.src.rpm

(using rpm -bb gcc.spec) and the build bombs out during
installation into /var/tmp/gcc-3.2.1-root/


Here are the final lines of the build:

+ rmdir /var/tmp/gcc-3.2.1-root/usr/include/java
+ mkdir -p /var/tmp/gcc-3.2.1-root/usr/include/libgcj-3.2.1/javax
+ mv /var/tmp/gcc-3.2.1-root/usr/include/javax/naming 
+/var/tmp/gcc-3.2.1-root/usr/include/javax/transaction 
+/var/tmp/gcc-3.2.1-root/usr/include/libgcj-3.2.1/javax/
+ rmdir /var/tmp/gcc-3.2.1-root/usr/include/javax
+ mkdir -p /var/tmp/gcc-3.2.1-root/usr/include/libgcj-3.2.1/org
+ mv /var/tmp/gcc-3.2.1-root/usr/include/org/w3c 
+/var/tmp/gcc-3.2.1-root/usr/include/org/xml 
+/var/tmp/gcc-3.2.1-root/usr/include/libgcj-3.2.1/org/
+ rmdir /var/tmp/gcc-3.2.1-root/usr/include/org
+ mv 
+/var/tmp/gcc-3.2.1-root/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2.1/include/gcj/libgcj-config.h
+ /var/tmp/gcc-3.2.1-root/usr/include/libgcj-3.2.1/gcj/
+ rmdir 
+/var/tmp/gcc-3.2.1-root/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2.1/include/gcj
+ ln -s /usr/include/libgcj-3.2.1 
+/var/tmp/gcc-3.2.1-root/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2.1/include/libgcj
ln: 
`/var/tmp/gcc-3.2.1-root/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2.1/include/libgcj':
 File exists
error: Bad exit status from /var/tmp/rpm-tmp.71143 (%install)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.71143 (%install)



The problem is that there is already a file (link) in

/var/tmp/gcc-3.2.1-root/usr/lib/gcc-lib/athlon-mandrake-linux-gnu/3.2.1/include/

called `libgcj'.  It points to `root/etc/alternatives/libgcj'
so when the above link is attempted, it fails.

Surely other athlon users have run across this?  But I've not seen
anything mentioned.  I  went over the cooker archives and see nothing.

Incidently, the packages build just fine on my nearly identically
configured i686 laptop.  The only differences are  this machine
is an SMP Athon MP and that is a UP i686 PIII.

My System Information:

  * Linux distribution:
        o Mdk 9.0 with come selected cooker additions
  * kernel version:
       Linux medulla 2.4.19-16mdksmp #1 SMP Wed Sep 24 12:26:01 EDT 2003
        i686 unknown unknown GNU/Linux
  * libc version:
       /lib/libc-2.2.5.so
  * X version:
       XFree86 Version 4.2.1
  * gcc and ld versions:
      gcc -v:
       Reading specs from /usr/lib/gcc-lib/athlon-mandrake-linux-gnu/3.2/specs
       gcc version 3.2 (Mandrake Linux 9.0 3.2-4mdk)
      ld -v:
       GNU ld version 2.12.90.0.15 20020717
  * binutils version:
       GNU assembler 2.12.90.0.15 20020717

  * CPU info (this works on Linux only):
         processor         : 0
             vendor_id     : AuthenticAMD
             cpu family    : 6
             model         : 6
             model name    : AMD Athlon(tm) MP 1500+
             stepping      : 2
             cpu MHz       : 1333.410
             cache size    : 256 KB
             fdiv_bug      : no
             hlt_bug       : no
             f00f_bug      : no
             coma_bug      : no
             fpu           : yes    
             fpu_exception : yes
             cpuid level   : 1
             wp            : yes
             flags         : fpu vme de tsc msr pae mce cx8 apic
                             sep mtrr pge mca cmov pat pse36 mmx
                             fxsr sse syscall mmxext 3dnowext 3dnow
             bogomips      : 2660.76

          processor        : 1
          same thing as processor 0.


Dean S. Messing
Display Algorithms & Visual Optimization Lab
Information Systems Technologies Dept.
Sharp Laboratories of America




Reply via email to