Ciao,
I have Gambit-C 4.6.0 installed on a i686-pc-linux-gnu along with GCC 4.5.1, and it can successfully compile simple programs; I am no expert of Gambit. When trying to build r6gambit from the tarball at:
http://smyles.com/projects/r6gambit.tar.gz
I get the following error:
$ gsc-script -i compile generating r6rs. creating stage compiling /home/marco/var/build/devel/r6gambit/srfi-1-min.scm compiling /home/marco/var/build/devel/r6gambit/srfi-99.scm compiling /home/marco/var/build/devel/r6gambit/error.scm compiling /home/marco/var/build/devel/r6gambit/srfi-69.scm compiling /home/marco/var/build/devel/r6gambit/uri.scm compiling /home/marco/var/build/devel/r6gambit/catalog.scm compiling /home/marco/var/build/devel/r6gambit/compat-gambit.scm compiling /home/marco/var/build/devel/r6gambit/runtime.scm compiling /home/marco/var/build/devel/r6gambit/srfi-66.scm loading stage... create play compiling /tmp/r6rs-expand-1291024639/core.exp compiling /tmp/r6rs-expand-1291024639/expander.exp compiling /home/marco/var/build/devel/r6gambit/primitives.scm linking (/tmp/r6rs-expand-1291024639/srfi-1-min /tmp/r6rs-expand-1291024639/srfi-99 /tmp/r6rs-expand-1291024639/error /tmp/r6rs-expand-1291024639/srfi-69 /tmp/r6rs-expand-1291024639/uri /tmp/r6rs-expand-1291024639/catalog /tmp/r6rs-expand-1291024639/compat-gambit /tmp/r6rs-expand-1291024639/runtime /tmp/r6rs-expand-1291024639/srfi-66 /tmp/r6rs-expand-1291024639/core /tmp/r6rs-expand-1291024639/expander /tmp/r6rs-expand-1291024639/primitives) generating-library ... gcc: error trying to exec 'cc1': execvp: No such file or directory gcc: error trying to exec 'cc1': execvp: No such file or directory gcc: error trying to exec 'cc1': execvp: No such file or directory gcc: error trying to exec 'cc1': execvp: No such file or directory gcc: error trying to exec 'cc1': execvp: No such file or directory gcc: error trying to exec 'cc1': execvp: No such file or directory gcc: error trying to exec 'cc1': execvp: No such file or directory gcc: error trying to exec 'cc1': execvp: No such file or directory gcc: error trying to exec 'cc1': execvp: No such file or directory gcc: error trying to exec 'cc1': execvp: No such file or directory gcc: error trying to exec 'cc1': execvp: No such file or directory gcc: error trying to exec 'cc1': execvp: No such file or directory gcc: error trying to exec 'cc1': execvp: No such file or directory done
is there a fix for this?
TIA
Afficher les réponses par date
Is gcc installed?
On Mon, Nov 29, 2010 at 5:10 AM, Marco Maggi marco.maggi-ipsu@poste.it wrote:
Ciao,
I have Gambit-C 4.6.0 installed on a i686-pc-linux-gnu along with GCC 4.5.1, and it can successfully compile simple programs; I am no expert of Gambit. When trying to build r6gambit from the tarball at:
http://smyles.com/projects/r6gambit.tar.gz
I get the following error:
$ gsc-script -i compile generating r6rs. creating stage compiling /home/marco/var/build/devel/r6gambit/srfi-1-min.scm compiling /home/marco/var/build/devel/r6gambit/srfi-99.scm compiling /home/marco/var/build/devel/r6gambit/error.scm compiling /home/marco/var/build/devel/r6gambit/srfi-69.scm compiling /home/marco/var/build/devel/r6gambit/uri.scm compiling /home/marco/var/build/devel/r6gambit/catalog.scm compiling /home/marco/var/build/devel/r6gambit/compat-gambit.scm compiling /home/marco/var/build/devel/r6gambit/runtime.scm compiling /home/marco/var/build/devel/r6gambit/srfi-66.scm loading stage... create play compiling /tmp/r6rs-expand-1291024639/core.exp compiling /tmp/r6rs-expand-1291024639/expander.exp compiling /home/marco/var/build/devel/r6gambit/primitives.scm linking (/tmp/r6rs-expand-1291024639/srfi-1-min /tmp/r6rs-expand-1291024639/srfi-99 /tmp/r6rs-expand-1291024639/error /tmp/r6rs-expand-1291024639/srfi-69 /tmp/r6rs-expand-1291024639/uri /tmp/r6rs-expand-1291024639/catalog /tmp/r6rs-expand-1291024639/compat-gambit /tmp/r6rs-expand-1291024639/runtime /tmp/r6rs-expand-1291024639/srfi-66 /tmp/r6rs-expand-1291024639/core /tmp/r6rs-expand-1291024639/expander /tmp/r6rs-expand-1291024639/primitives) generating-library ... gcc: error trying to exec 'cc1': execvp: No such file or directory gcc: error trying to exec 'cc1': execvp: No such file or directory gcc: error trying to exec 'cc1': execvp: No such file or directory gcc: error trying to exec 'cc1': execvp: No such file or directory gcc: error trying to exec 'cc1': execvp: No such file or directory gcc: error trying to exec 'cc1': execvp: No such file or directory gcc: error trying to exec 'cc1': execvp: No such file or directory gcc: error trying to exec 'cc1': execvp: No such file or directory gcc: error trying to exec 'cc1': execvp: No such file or directory gcc: error trying to exec 'cc1': execvp: No such file or directory gcc: error trying to exec 'cc1': execvp: No such file or directory gcc: error trying to exec 'cc1': execvp: No such file or directory gcc: error trying to exec 'cc1': execvp: No such file or directory done
is there a fix for this?
TIA
Marco Maggi _______________________________________________ Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
http://ubuntuforums.org/showthread.php?t=540541
On Mon, Nov 29, 2010 at 10:04 AM, Jeremie Lasalle Ratelle pouexmachinax@gmail.com wrote:
Is gcc installed?
On Mon, Nov 29, 2010 at 5:10 AM, Marco Maggi marco.maggi-ipsu@poste.it wrote:
Ciao,
I have Gambit-C 4.6.0 installed on a i686-pc-linux-gnu along with GCC 4.5.1, and it can successfully compile simple programs; I am no expert of Gambit. When trying to build r6gambit from the tarball at:
http://smyles.com/projects/r6gambit.tar.gz
I get the following error:
$ gsc-script -i compile generating r6rs. creating stage compiling /home/marco/var/build/devel/r6gambit/srfi-1-min.scm compiling /home/marco/var/build/devel/r6gambit/srfi-99.scm compiling /home/marco/var/build/devel/r6gambit/error.scm compiling /home/marco/var/build/devel/r6gambit/srfi-69.scm compiling /home/marco/var/build/devel/r6gambit/uri.scm compiling /home/marco/var/build/devel/r6gambit/catalog.scm compiling /home/marco/var/build/devel/r6gambit/compat-gambit.scm compiling /home/marco/var/build/devel/r6gambit/runtime.scm compiling /home/marco/var/build/devel/r6gambit/srfi-66.scm loading stage... create play compiling /tmp/r6rs-expand-1291024639/core.exp compiling /tmp/r6rs-expand-1291024639/expander.exp compiling /home/marco/var/build/devel/r6gambit/primitives.scm linking (/tmp/r6rs-expand-1291024639/srfi-1-min /tmp/r6rs-expand-1291024639/srfi-99 /tmp/r6rs-expand-1291024639/error /tmp/r6rs-expand-1291024639/srfi-69 /tmp/r6rs-expand-1291024639/uri /tmp/r6rs-expand-1291024639/catalog /tmp/r6rs-expand-1291024639/compat-gambit /tmp/r6rs-expand-1291024639/runtime /tmp/r6rs-expand-1291024639/srfi-66 /tmp/r6rs-expand-1291024639/core /tmp/r6rs-expand-1291024639/expander /tmp/r6rs-expand-1291024639/primitives) generating-library ... gcc: error trying to exec 'cc1': execvp: No such file or directory gcc: error trying to exec 'cc1': execvp: No such file or directory gcc: error trying to exec 'cc1': execvp: No such file or directory gcc: error trying to exec 'cc1': execvp: No such file or directory gcc: error trying to exec 'cc1': execvp: No such file or directory gcc: error trying to exec 'cc1': execvp: No such file or directory gcc: error trying to exec 'cc1': execvp: No such file or directory gcc: error trying to exec 'cc1': execvp: No such file or directory gcc: error trying to exec 'cc1': execvp: No such file or directory gcc: error trying to exec 'cc1': execvp: No such file or directory gcc: error trying to exec 'cc1': execvp: No such file or directory gcc: error trying to exec 'cc1': execvp: No such file or directory gcc: error trying to exec 'cc1': execvp: No such file or directory done
is there a fix for this?
TIA
Marco Maggi _______________________________________________ Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
On Mon, 2010-11-29 at 10:07 -0500, Jeremie Lasalle Ratelle wrote:
and now I'm getting
heine:~/Downloads/r6gambit> gsc-script -i compile generating r6rs. creating stage compiling /home/lucier/Downloads/r6gambit/srfi-1-min.scm compiling /home/lucier/Downloads/r6gambit/srfi-99.scm compiling /home/lucier/Downloads/r6gambit/error.scm compiling /home/lucier/Downloads/r6gambit/srfi-69.scm compiling /home/lucier/Downloads/r6gambit/uri.scm compiling /home/lucier/Downloads/r6gambit/catalog.scm compiling /home/lucier/Downloads/r6gambit/compat-gambit.scm compiling /home/lucier/Downloads/r6gambit/runtime.scm compiling /home/lucier/Downloads/r6gambit/srfi-66.scm loading stage... create play compiling /tmp/r6rs-expand-1291054286/core.exp compiling /tmp/r6rs-expand-1291054286/expander.exp compiling /home/lucier/Downloads/r6gambit/primitives.scm linking (/tmp/r6rs-expand-1291054286/srfi-1-min /tmp/r6rs-expand-1291054286/srfi-99 /tmp/r6rs-expand-1291054286/error /tmp/r6rs-expand-1291054286/srfi-69 /tmp/r6rs-expand-1291054286/uri /tmp/r6rs-expand-1291054286/catalog /tmp/r6rs-expand-1291054286/compat-gambit /tmp/r6rs-expand-1291054286/runtime /tmp/r6rs-expand-1291054286/srfi-66 /tmp/r6rs-expand-1291054286/core /tmp/r6rs-expand-1291054286/expander /tmp/r6rs-expand-1291054286/primitives) generating-library ... collect2: cannot find 'ld' done heine:~/Downloads/r6gambit> gsc-script -i compile generating r6rs. creating stage compiling /home/lucier/Downloads/r6gambit/srfi-1-min.scm compiling /home/lucier/Downloads/r6gambit/srfi-99.scm compiling /home/lucier/Downloads/r6gambit/error.scm compiling /home/lucier/Downloads/r6gambit/srfi-69.scm compiling /home/lucier/Downloads/r6gambit/uri.scm compiling /home/lucier/Downloads/r6gambit/catalog.scm compiling /home/lucier/Downloads/r6gambit/compat-gambit.scm compiling /home/lucier/Downloads/r6gambit/runtime.scm compiling /home/lucier/Downloads/r6gambit/srfi-66.scm loading stage... create play compiling /tmp/r6rs-expand-1291054742/core.exp compiling /tmp/r6rs-expand-1291054742/expander.exp compiling /home/lucier/Downloads/r6gambit/primitives.scm linking (/tmp/r6rs-expand-1291054742/srfi-1-min /tmp/r6rs-expand-1291054742/srfi-99 /tmp/r6rs-expand-1291054742/error /tmp/r6rs-expand-1291054742/srfi-69 /tmp/r6rs-expand-1291054742/uri /tmp/r6rs-expand-1291054742/catalog /tmp/r6rs-expand-1291054742/compat-gambit /tmp/r6rs-expand-1291054742/runtime /tmp/r6rs-expand-1291054742/srfi-66 /tmp/r6rs-expand-1291054742/core /tmp/r6rs-expand-1291054742/expander /tmp/r6rs-expand-1291054742/primitives) generating-library ... collect2: cannot find 'ld' done heine:~/Downloads/r6gambit> which ld /usr/bin/ld
I'm on Ubuntu 10.04; reinstalling binutils doesn't help.
It would be helpful if the compile process at least echoed the commands it was trying to execute, so we could see what's going on ... (which is why I like make).
Brad
Brad
It will also help to do
% export GAMBC_CC_VERBOSE=1
at the shell so that subsequent invocations of gsc will report which programs are being executed by gsc (actually those executed by the gambc-cc.bat script executed by gsc):
% gsc -exe foo.scm gcc -no-cpp-precomp -Wno-unused -O1 -fno-math-errno -fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv -fomit-frame-pointer -fno-move-loop-invariants -fPIC -fno-common -mieee-fp -D___SINGLE_HOST -I"/usr/local/Gambit-C/include" -c -o "foo.o" foo.c gcc -no-cpp-precomp -Wno-unused -O1 -fno-math-errno -fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv -fomit-frame-pointer -fno-move-loop-invariants -fPIC -fno-common -mieee-fp -D___SINGLE_HOST -I"/usr/local/Gambit-C/include" -c -o "foo_.o" foo_.c gcc -no-cpp-precomp -Wno-unused -O1 -fno-math-errno -fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv -fomit-frame-pointer -fno-move-loop-invariants -fPIC -fno-common -mieee-fp -D___SINGLE_HOST -I"/usr/local/Gambit-C/include" -o "foo" foo.o foo_.o "/usr/local/Gambit-C/lib/libgambc.a"
Marc
On 2010-11-29, at 1:52 PM, Bradley Lucier wrote:
On Mon, 2010-11-29 at 10:07 -0500, Jeremie Lasalle Ratelle wrote:
and now I'm getting
heine:~/Downloads/r6gambit> gsc-script -i compile generating r6rs. creating stage compiling /home/lucier/Downloads/r6gambit/srfi-1-min.scm compiling /home/lucier/Downloads/r6gambit/srfi-99.scm compiling /home/lucier/Downloads/r6gambit/error.scm compiling /home/lucier/Downloads/r6gambit/srfi-69.scm compiling /home/lucier/Downloads/r6gambit/uri.scm compiling /home/lucier/Downloads/r6gambit/catalog.scm compiling /home/lucier/Downloads/r6gambit/compat-gambit.scm compiling /home/lucier/Downloads/r6gambit/runtime.scm compiling /home/lucier/Downloads/r6gambit/srfi-66.scm loading stage... create play compiling /tmp/r6rs-expand-1291054286/core.exp compiling /tmp/r6rs-expand-1291054286/expander.exp compiling /home/lucier/Downloads/r6gambit/primitives.scm linking (/tmp/r6rs-expand-1291054286/srfi-1-min /tmp/r6rs-expand-1291054286/srfi-99 /tmp/r6rs-expand-1291054286/error /tmp/r6rs-expand-1291054286/srfi-69 /tmp/r6rs-expand-1291054286/uri /tmp/r6rs-expand-1291054286/catalog /tmp/r6rs-expand-1291054286/compat-gambit /tmp/r6rs-expand-1291054286/runtime /tmp/r6rs-expand-1291054286/srfi-66 /tmp/r6rs-expand-1291054286/core /tmp/r6rs-expand-1291054286/expander /tmp/r6rs-expand-1291054286/primitives) generating-library ... collect2: cannot find 'ld' done heine:~/Downloads/r6gambit> gsc-script -i compile generating r6rs. creating stage compiling /home/lucier/Downloads/r6gambit/srfi-1-min.scm compiling /home/lucier/Downloads/r6gambit/srfi-99.scm compiling /home/lucier/Downloads/r6gambit/error.scm compiling /home/lucier/Downloads/r6gambit/srfi-69.scm compiling /home/lucier/Downloads/r6gambit/uri.scm compiling /home/lucier/Downloads/r6gambit/catalog.scm compiling /home/lucier/Downloads/r6gambit/compat-gambit.scm compiling /home/lucier/Downloads/r6gambit/runtime.scm compiling /home/lucier/Downloads/r6gambit/srfi-66.scm loading stage... create play compiling /tmp/r6rs-expand-1291054742/core.exp compiling /tmp/r6rs-expand-1291054742/expander.exp compiling /home/lucier/Downloads/r6gambit/primitives.scm linking (/tmp/r6rs-expand-1291054742/srfi-1-min /tmp/r6rs-expand-1291054742/srfi-99 /tmp/r6rs-expand-1291054742/error /tmp/r6rs-expand-1291054742/srfi-69 /tmp/r6rs-expand-1291054742/uri /tmp/r6rs-expand-1291054742/catalog /tmp/r6rs-expand-1291054742/compat-gambit /tmp/r6rs-expand-1291054742/runtime /tmp/r6rs-expand-1291054742/srfi-66 /tmp/r6rs-expand-1291054742/core /tmp/r6rs-expand-1291054742/expander /tmp/r6rs-expand-1291054742/primitives) generating-library ... collect2: cannot find 'ld' done heine:~/Downloads/r6gambit> which ld /usr/bin/ld
I'm on Ubuntu 10.04; reinstalling binutils doesn't help.
It would be helpful if the compile process at least echoed the commands it was trying to execute, so we could see what's going on ... (which is why I like make).
Brad
Brad
Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
On Mon, 2010-11-29 at 14:17 -0500, Marc Feeley wrote:
It will also help to do
% export GAMBC_CC_VERBOSE=1
at the shell so that subsequent invocations of gsc will report which programs are being executed by gsc (actually those executed by the gambc-cc.bat script executed by gsc):
OK, thanks, now I end with
/pkgs/gcc-4.5.1/bin/gcc -fschedule-insns -march=native -Wno-unused -O1 -fno-math-errno -fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv -fomit-frame-pointer -fPIC -fno-common -mieee-fp -rdynamic -shared -D___SINGLE_HOST -D___DYNAMIC -I"/usr/local/Gambit-C/v4.6.0/include/" -o "/home/lucier/.gambit/lib/r6rs.o1" /tmp/r6rs-expand-1291058985/srfi-1-min.c /tmp/r6rs-expand-1291058985/srfi-99.c /tmp/r6rs-expand-1291058985/error.c /tmp/r6rs-expand-1291058985/srfi-69.c /tmp/r6rs-expand-1291058985/uri.c /tmp/r6rs-expand-1291058985/catalog.c /tmp/r6rs-expand-1291058985/compat-gambit.c /tmp/r6rs-expand-1291058985/runtime.c /tmp/r6rs-expand-1291058985/srfi-66.c /tmp/r6rs-expand-1291058985/core.c /tmp/r6rs-expand-1291058985/expander.c /tmp/r6rs-expand-1291058985/primitives.c /tmp/r6rs-expand-1291058985/r6rs.o1.c collect2: cannot find 'ld'
which still doesn't make much sense to me ...
On Mon, 2010-11-29 at 14:17 -0500, Marc Feeley wrote:
It will also help to do
% export GAMBC_CC_VERBOSE=1
at the shell so that subsequent invocations of gsc will report which programs are being executed by gsc (actually those executed by the gambc-cc.bat script executed by gsc):
OK, I think I may have all the information needed. This is what's passed to open-process:
(path: "/usr/local/Gambit-C/v4.6.0/bin/gambc-cc.bat" arguments: ("dyn") environment: ("GAMBCDIR_INCLUDE=/usr/local/Gambit-C/v4.6.0/include/" "BUILD_DYN_OUTPUT_FILENAME=/home/lucier/.gambit/lib/r6rs.o1" "BUILD_DYN_CC_OPTIONS=" "BUILD_DYN_LD_OPTIONS_PRELUDE=" "BUILD_DYN_LD_OPTIONS=" "BUILD_DYN_INPUT_FILENAMES=/tmp/r6rs-expand-1291069607/srfi-1-min.c /tmp/r6rs-expand-1291069607/srfi-99.c /tmp/r6rs-expand-1291069607/error.c /tmp/r6rs-expand-1291069607/srfi-69.c /tmp/r6rs-expand-1291069607/uri.c /tmp/r6rs-expand-1291069607/catalog.c /tmp/r6rs-expand-1291069607/compat-gambit.c /tmp/r6rs-expand-1291069607/runtime.c /tmp/r6rs-expand-1291069607/srfi-66.c /tmp/r6rs-expand-1291069607/core.c /tmp/r6rs-expand-1291069607/expander.c /tmp/r6rs-expand-1291069607/primitives.c /tmp/r6rs-expand-1291069607/r6rs.o1.c" "GAMBC_CC_VERBOSE=") stdout-redirection: #f directory: #f)
And this is the command that gambc-cc.bat runs, which fails with "collect2: cannot find 'ld'":
/pkgs/gcc-4.5.1/bin/gcc -fschedule-insns -march=native -Wno-unused -O1 -fno-math-errno -fschedule-insns2 -fno-trapping-math -fno-strict-aliasing -fwrapv -fomit-frame-pointer -fPIC -fno-common -mieee-fp -rdynamic -shared -D___SINGLE_HOST -D___DYNAMIC -I"/usr/local/Gambit-C/v4.6.0/include/" -o "/home/lucier/.gambit/lib/r6rs.o1" /tmp/r6rs-expand-1291069607/srfi-1-min.c /tmp/r6rs-expand-1291069607/srfi-99.c /tmp/r6rs-expand-1291069607/error.c /tmp/r6rs-expand-1291069607/srfi-69.c /tmp/r6rs-expand-1291069607/uri.c /tmp/r6rs-expand-1291069607/catalog.c /tmp/r6rs-expand-1291069607/compat-gambit.c /tmp/r6rs-expand-1291069607/runtime.c /tmp/r6rs-expand-1291069607/srfi-66.c /tmp/r6rs-expand-1291069607/core.c /tmp/r6rs-expand-1291069607/expander.c /tmp/r6rs-expand-1291069607/primitives.c /tmp/r6rs-expand-1291069607/r6rs.o1.c
Any suggestions? For example, should the environment contain my path?
Brad
On Mon, 2010-11-29 at 17:41 -0500, Bradley Lucier wrote:
Any suggestions? For example, should the environment contain my path?
Bingo! I changed the definition of env in gambc-cc (found in primitives.scm) to
(let ((env (append (list (envar 'GAMBCDIR_INCLUDE include: (path-expand "~~include")) (envar 'BUILD_DYN_OUTPUT_FILENAME output: "") (envar 'BUILD_DYN_CC_OPTIONS cc-options: "") (envar 'BUILD_DYN_LD_OPTIONS_PRELUDE ld-options-prelude: "") (envar 'BUILD_DYN_LD_OPTIONS ld-options: "") (envar 'BUILD_DYN_INPUT_FILENAMES input-files: '()) (envar 'GAMBC_CC_VERBOSE verbose: "")) (get-environment 'LIBRARY_PATH 'CPATH 'PATH))))
and it built.
Brad