the installation can not find gcc, but if there

Hello .
I have a problem installing mandriva powerpack pgi in 2010.
When you run the test command “pgf77-V xf” gives me this error:

[eta @ localhost ~] $ pgf77-V x.f
pgf77-Error-Please run makelocalrc to complete your installation

pgf77 10.0-0 32-bit target on Linux-tp p7
Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
Copyright 2000-2009, STMicroelectronics, Inc. All Rights Reserved.
When you run “. / Makelocalrc-x / opt/pgi/linux86/10.0” to see the error, gives me the following:

[eta @ localhost bin] $. / makelocalrc-x / opt/pgi/linux86/10.0
ERROR: directory install: / usr/lib/gcc/i586-manbo-linux-gnu/4.4.1: not found;
successful use of compilers requires existence of gcc libraries
It is impossible for this not gcc, because if installed. When you run “gcc - version” gives me the following:

[eta @ localhost bin] $ gcc - version
gcc (GCC) 4.4.1
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software, see the code for copying conditions. NO
guarantee, not even for MERCHANTABILITY or FITNESS FOR A PURPOSE
PARTICULAR

I do not understand what happens …
Help please!

Hi angelo1903,

The PGI 32-bit compilers need the 32-bit GNU compatibility libraries and I suspect the issue here is that you don’t have them installed. The “gcc” your invoking is most likely 64-bit. To check, please run the following commands to compile a simple program and post the output.

% cat hello.c
#include <stdio.h>

int main () {
   printf("Hello\n");
   return 0;
}
% gcc -m32 -v hello.c
% gcc -m64 -v hello.c

I don’t know Mandriva myself, so unfortunately don’t know what you need to do to get these libraries installed. Does the PGI 64-bit installing work?

  • Mat

My system is Mandriva Power Pack 2010.
My 32-bit PGI (10.0)
My gcc is also 32 bits.

This is the result of the code above …

[root@localhost Escritorio]# gcc -m32 -v hello.c
Usando especificaciones internas.
Objetivo: i586-manbo-linux-gnu
Configurado con: …/configure --prefix=/usr --libexecdir=/usr/lib --with-slibdir=/lib --with-bugurl=https://qa.mandriva.com/ --mandir=/usr/share/man --infodir=/usr/share/info --enable-checking=release --enable-languages=c,c++,ada,fortran,objc,obj-c++,java --build=i586-manbo-linux-gnu --host=i586-manbo-linux-gnu --with-cpu=generic --with-system-zlib --enable-threads=posix --enable-shared --enable-objc-gc --enable-long-long --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --enable-java-awt=gtk --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-gtk-cairo --disable-libjava-multilib --enable-ssp --disable-libssp --disable-werror --with-ppl --with-cloog --with-python-dir=/lib/python2.6/site-packages
Modelo de hilos: posix
gcc versión 4.4.1 (GCC)
COLLECT_GCC_OPTIONS=‘-m32’ ‘-v’ ‘-mtune=generic’
/usr/lib/gcc/i586-manbo-linux-gnu/4.4.1/cc1 -quiet -v hello.c -quiet -dumpbase hello.c -m32 -mtune=generic -auxbase hello -version -o /root/tmp/cc7tzfDQ.s
se descarta el directorio inexistente “/usr/lib/gcc/i586-manbo-linux-gnu/4.4.1/include-fixed”
se descarta el directorio inexistente “/usr/lib/gcc/i586-manbo-linux-gnu/4.4.1/…/…/…/…/i586-manbo-linux-gnu/include”
la búsqueda de #include “…” inicia aquí:
la búsqueda de #include <…> inicia aquí:
/usr/local/include
/usr/lib/gcc/i586-manbo-linux-gnu/4.4.1/include
/usr/include
Fin de la lista de búsqueda.
GNU C (GCC) versión 4.4.1 (i586-manbo-linux-gnu)
compilado por GNU C versión 4.4.1, GMP versión 4.3.1, MPFR versión 2.4.1.
GGC heurísticas: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 12d468fd84a1466b9fe13055e87d8e8f
COLLECT_GCC_OPTIONS=‘-m32’ ‘-v’ ‘-mtune=generic’
as -V -Qy -o /root/tmp/ccdrQPC4.o /root/tmp/cc7tzfDQ.s
GNU assembler version 2.19.51.0.2 (i586-mandriva-linux-gnu) using BFD version (Linux/GNU Binutils) 2.19.51.0.2.20090204
COMPILER_PATH=/usr/lib/gcc/i586-manbo-linux-gnu/4.4.1/:/usr/lib/gcc/i586-manbo-linux-gnu/4.4.1/:/usr/lib/gcc/i586-manbo-linux-gnu/:/usr/lib/gcc/i586-manbo-linux-gnu/4.4.1/:/usr/lib/gcc/i586-manbo-linux-gnu/:/usr/lib/gcc/i586-manbo-linux-gnu/4.4.1/:/usr/lib/gcc/i586-manbo-linux-gnu/
LIBRARY_PATH=/usr/lib/gcc/i586-manbo-linux-gnu/4.4.1/:/usr/lib/gcc/i586-manbo-linux-gnu/4.4.1/:/usr/lib/gcc/i586-manbo-linux-gnu/4.4.1/…/…/…/:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS=‘-m32’ ‘-v’ ‘-mtune=generic’
/usr/lib/gcc/i586-manbo-linux-gnu/4.4.1/collect2 --eh-frame-hdr -m elf_i386 --hash-style=gnu -dynamic-linker /lib/ld-linux.so.2 /usr/lib/gcc/i586-manbo-linux-gnu/4.4.1/…/…/…/crt1.o /usr/lib/gcc/i586-manbo-linux-gnu/4.4.1/…/…/…/crti.o /usr/lib/gcc/i586-manbo-linux-gnu/4.4.1/crtbegin.o -L/usr/lib/gcc/i586-manbo-linux-gnu/4.4.1 -L/usr/lib/gcc/i586-manbo-linux-gnu/4.4.1 -L/usr/lib/gcc/i586-manbo-linux-gnu/4.4.1/…/…/… /root/tmp/ccdrQPC4.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/i586-manbo-linux-gnu/4.4.1/crtend.o /usr/lib/gcc/i586-manbo-linux-gnu/4.4.1/…/…/…/crtn.o


and…gcc -m64 -v hello.c:

[root@localhost Escritorio]# gcc -m64 -v hello.c
Usando especificaciones internas.
Objetivo: i586-manbo-linux-gnu
Configurado con: …/configure --prefix=/usr --libexecdir=/usr/lib --with-slibdir=/lib --with-bugurl=https://qa.mandriva.com/ --mandir=/usr/share/man --infodir=/usr/share/info --enable-checking=release --enable-languages=c,c++,ada,fortran,objc,obj-c++,java --build=i586-manbo-linux-gnu --host=i586-manbo-linux-gnu --with-cpu=generic --with-system-zlib --enable-threads=posix --enable-shared --enable-objc-gc --enable-long-long --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --enable-java-awt=gtk --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-gtk-cairo --disable-libjava-multilib --enable-ssp --disable-libssp --disable-werror --with-ppl --with-cloog --with-python-dir=/lib/python2.6/site-packages
Modelo de hilos: posix
gcc versión 4.4.1 (GCC)
COLLECT_GCC_OPTIONS=‘-m64’ ‘-v’ ‘-mtune=generic’
/usr/lib/gcc/i586-manbo-linux-gnu/4.4.1/cc1 -quiet -v hello.c -quiet -dumpbase hello.c -m64 -mtune=generic -auxbase hello -version -o /root/tmp/ccubySym.s
se descarta el directorio inexistente “/usr/lib/gcc/i586-manbo-linux-gnu/4.4.1/include-fixed”
se descarta el directorio inexistente “/usr/lib/gcc/i586-manbo-linux-gnu/4.4.1/…/…/…/…/i586-manbo-linux-gnu/include”
la búsqueda de #include “…” inicia aquí:
la búsqueda de #include <…> inicia aquí:
/usr/local/include
/usr/lib/gcc/i586-manbo-linux-gnu/4.4.1/include
/usr/include
Fin de la lista de búsqueda.
hello.c:1: lo sentimos, sin implementar: no está compilado el modo bit-64
GNU C (GCC) versión 4.4.1 (i586-manbo-linux-gnu)
compilado por GNU C versión 4.4.1, GMP versión 4.3.1, MPFR versión 2.4.1.
GGC heurísticas: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 12d468fd84a1466b9fe13055e87d8e8f

Angelo,

Try the localrc file I sent, and see if you can compile and link now.
If not, send the output dialog of the compile with ‘-dryrun’ and ‘-v’


regards,
dave

Thank you very much for your help.
This is the solution to my problem:

Create the file: $ PGI/linux86/10 . / bin / localrc
Within the paste:
*
set LFC=-lgfortran;
set LDSO=/lib/ld-linux.so.2;
set GCCDIR=/usr/lib/gcc/i586-manbo-linux-gnu/4.4.1;
set GCCINC=/usr/lib/gcc/i586-manbo-linux-gnu/4.4.1/include;
set G77DIR=/usr/lib/gcc/i586-manbo-linux-gnu/4.4.1/;
set OEM_INFO=32-bit target on x86-64 Linux $INFOTPVAL;
set LOCALRC=YES;
set THROW=__THROW=;
set EXTENSION=extension=;
set LC=$if(-Bstatic,-lgcc -lgcc_eh -lc -lgcc -lgcc_eh -lc, -lgcc -lc -lgcc);
set DEFLIBDIR=/usr/lib;
set DEFSTDOBJDIR=/usr/lib;
set EXTRAASARGS=–32;

GLIBC version 2.10

GCC version 4.4.1

set GCCVERSION=40401;

… and problem solved!

When you run the test now “pgf77-V xf” gives me the following:

eta @ localhost ~] $ pgf77-V x.f

pgf77 10.0-0 32-bit target on x86-64 Linux-tp p7
Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
Copyright 2000-2009, STMicroelectronics, Inc. All Rights Reserved.
PGFTN/x86 Linux 10.0-0
Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
Copyright 2000-2009, STMicroelectronics, Inc. All Rights Reserved.
PGFTN-F-0002-Unable to open source input file: xf

THANK’S !!!
SEE YOU!!!