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 Aug 26 08:16:16 2008  
Category: NonePriority: 5 - Normal
Severity: 3 - NormalStatus: Done
Privacy: PublicAssigned to: Taylor R. Campbell <riastradh>
Originator Email: -unavailable-Open/Closed: Closed
Operating System: GNU/Linux

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

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


Thu Sep 4 11:12:36 2008, 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 Aug 28 19:30:08 2008, 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 Aug 28 15:15:48 2008, 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 Aug 26 08:16:16 2008, 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 File(s):

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


Depends on the following items: None found

Items that depend on this one: None found


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

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

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri Aug 30 16:33:52 2013riastradhStatusReady For Test=>Done
    Thu Aug 28 19:30:08 2008riastradhStatusNone=>Ready For Test
      Assigned toNone=>riastradh
    Tue Aug 26 08:16:16 2008NoneAttached File-=>Added scmutils.compile.txt.gz, #16356

    Back to the top

    Powered by Savane 3.1-cleanup1