helpMIT/GNU Scheme - Support: sr #106480, C back end fails to compile...


sr #106480: C back end fails to compile scmutils

Submitted by:  None
Submitted on:  Tue 26 Aug 2008 08:16:16 AM UTC  
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  Done
Privacy:  Public Assigned to:  Taylor R. Campbell <riastradh>
Originator Email:  -email is unavailable- Open/Closed:  Closed
Operating System:  GNU/Linux

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Thu 04 Sep 2008 11:12:36 AM UTC, comment #3:

The workaround you suggested works for me. Thank you!

It may be some time before I try CVS. I'll let you know the results.

Thu 28 Aug 2008 07:30:08 PM UTC, comment #2:

I have committed a fix to CVS. Let me know if it works for you, or if the workaround I suggested worked.

Taylor R. Campbell <riastradh>
Project MemberIn charge of this item.
Thu 28 Aug 2008 03:15:48 PM UTC, comment #1:

The C back end gets confused when compiling files that contain nothing in them, or only a literal datum. Here's a quick kludge to work around it until I make sense of what's supposed to happen: Rather than (load "compile"), evaluate

(fluid-let (((access compiler:compile-data-files-as-expressions?
(->environment '(compiler top-level)))
(load "compile"))

Unfortunately, the compilation scripts will not repeat the process in the middle, because they were (accidentally, I'm sure) written with only the native-code back end in mind. You can fix this provisionally by changing the definition of CF-CONDITIONALLY in general/comutils.scm to be:

(define (cf-conditionally filename)
(sf-conditionally filename)
(if (not (file-processed? filename "bin" (compiler:compiled-code-pathname-type)))
(compile-bin-file filename)))

Taylor R. Campbell <riastradh>
Project MemberIn charge of this item.
Tue 26 Aug 2008 08:16:16 AM UTC, original submission:

I'm using the following package on Debian Etch PPC

I'm attempting to build scmutils from this package

using these instructions

and invoking MIT Scheme with the following command line

mit-scheme --library /usr/local/lib/mit-scheme-c/ --compiler -heap 20000 -constant 2000 -stack 2000

It fails
using these instructions

and invoking MIT Scheme with the following command line

mit-scheme --library /usr/local/lib/mit-scheme-c/ --compiler -heap 20000 -constant 2000 -stack 2000

It fails compiling Lagrangian-evolution.bin with the following error:

; Compiling file: "Lagrangian-evolution.bin" => "Lagrangian-evolution.c"...
; gcc -DHAVE_CONFIG_H -DMIT_SCHEME -I/usr/include/postgresql -O3 -Wall -Wundef -Wpointer-arith -Winline -Wstrict-prototypes -Wnested-externs -Wredundant-decls -Wextra -Wno-sign-compare -Wno-unused-parameter -Wold-style-definition -fPIC -DENABLE_LIARC_FILE_INIT -I/usr/local/lib/mit-scheme-c/include -o Lagrangian-evolution.o -c Lagrangian-evolution.c
; Lagrangian-evolution.c: In function ‘dload_initialize_data’:
; Lagrangian-evolution.c:8: error: ‘Lagrangian_evolution_so_data_8e2c04520ee2b082’ undeclared (first use in this function)
; Lagrangian-evolution.c:8: error: (Each undeclared identifier is reported only once
; Lagrangian-evolution.c:8: error: for each function it appears in.)
;C compiler returned non-zero exit code: 1
;To continue, call RESTART with an option number:
; (RESTART 1) => Return to read-eval-print level 1.

Attached is the full compile session. Let me know if there's anything else I can do to help track this down.



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #16356:  scmutils.compile.txt.gz added by None (4KiB - application/x-gzip)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by riastradh (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-08-30 riastradh StatusReady For Test => Done
        Open/ClosedOpen => Closed
    2008-08-28 riastradh StatusNone => Ready For Test
        Assigned toNone => riastradh
    2008-08-26 None Attached File- => Added scmutils.compile.txt.gz, #16356

    Back to the top

    Powered by Savane 3.3