Re: Installation problem ?? (`Crt' could not be imported...)
laurent@laurent-parise.com wrote:
However, I can find /usr/lib/gcc-lib/i386-slackware-linux/2.95.3/cc1 here. (but not in /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/ ...)
You need C files (cc1 among others) of the same version and in the same directory as the gpc files (gpc1 among others) to compile C files like crtc.c automatically with --automake. Or you have to use GPC_EXEC_PREFIX and/or GCC_EXEC_PREFIX: see the discussion in recent mails of the gpc list. But the surest if you can is to install them. Maurice -- Maurice Lombardi Laboratoire de Spectrometrie Physique, Universite Joseph Fourier de Grenoble, BP87 38402 Saint Martin d'Heres Cedex FRANCE Tel: 33 (0)4 76 51 47 51 Fax: 33 (0)4 76 63 54 95 mailto:Maurice.Lombardi@ujf-grenoble.fr
Hi. Thanks a lot to everybody. I tried a lot of things and read some other mails in the gpc list ....
Frank Heckenbach wrote
: Try moving the line `#include <sys/time.h>' in units/crtc.c from : line 1001 to the other includes (line ~50), After these changes, the message
In file included from /usr/include/sys/time.h:30, from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/units/crtc.c:939: /usr/include/sys/select.h:52: warning: `__NFDBITS' redefined /usr/include/linux/posix_types.h:22: warning: this is the location of the previous definition /usr/include/sys/select.h:54: warning: `__FDMASK' redefined /usr/include/linux/posix_types.h:34: warning: this is the location of the previous definition
disappeared but :
gpc --automake crtdemo.pas
gpc: installation problem, cannot exec `cc1': No such file or directory gpc1: gpc exited with status 1 gpc1: gpc exited with status 1
So, I tried to put in csh.login setenv GPC_EXEC_PREFIX /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.3 setenv GCC_EXEC_PREFIX /usr/lib/gcc-lib/i386-slackware-linux/2.95.3 but there was no change. I move files (like cc1*) from /usr/lib/gcc-lib/i386-slackware-linux/2.95.3 to /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.3 and I think it seemed to worked but in order to have a proper installation I decided to compile from the sources. I put GCC (from Slack 8.0 source disk) and GPC sources in /usr/src and proceed to installation. At the end of 'make', I read the message : checking if compiler f771 has been built... no Configuring in i686-pc-linux-gnu/libchill creating cache ./config.cache checking if compiler cc1chill has been built... no Configuring in i686-pc-linux-gnu/libobjc creating cache ./config.cache checking if compiler cc1obj has been built... no Do you think this is a normal message ? ('make' detected gcc 2.95.3 and used a special patch ... ) so I run 'make pascal.install' in 'gpc-build/gcc'. (Should I have done a 'make install' and install gcc too ???) After that, I got gpc --automake hello.pas gpc: installation problem, cannot exec `cpp0': No such file or directory gpc1: gpc exited with status 1 gpc1: gpc exited with status 1 The same kind of error,isn't it ?? If I put cc1* and cpp0 in /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.3, it seems to work again. What's my problem ?? 1. Should I compile sources from another directory (/usr/local/src ???) (I am root) 2. Should I install GPC into another directory (/usr/lib/gcc-lib/i386-slackware-linux/2.95.3 ???) and how to do this from .../gcc-2.95.3/configure ? 3. I tried to use the previous setenv commands (GCC_EXEC... and GPC_EXEC...) but it doesn't seem to do anything ... why ? Thanks. Laurent -- \!!!/ g( o 0 )g --oOO---(_)---OOo--------------------------------------- Laurent Parise .ooo0 0ooo. Web: http://www.laurent-parise.com ( ) ( ) E-mail: laurent@laurent-parise.com -----\ (---) /------------------------------------------ \_) (_/
participants (2)
-
laurent@laurent-parise.com -
Maurice Lombardi