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: 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 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.

Anonymous
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)))
#t))
(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 http://ftp.gnu.org/gnu/mit-scheme/snapshot.pkg/20080130/mit-scheme-c-20080130.tar.gz

I'm attempting to build scmutils from this package ftp://swiss-ftp.ai.mit.edu/pub/users/gjs/scmutils-20060906-ix86-gnu-linux-sarge.tar.gz

using these instructions

http://groups.google.com/group/sicm/browse_thread/thread/d9aa16a6025a767b/c623edc0e8a8b91b

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

http://groups.google.com/group/sicm/browse_thread/thread/d9aa16a6025a767b/c623edc0e8a8b91b

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.

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

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 30 Aug 2013 04:33:52 PM UTCriastradhStatusReady For Test=>Done
      Open/ClosedOpen=>Closed
    Thu 28 Aug 2008 07:30:08 PM UTCriastradhStatusNone=>Ready For Test
      Assigned toNone=>riastradh
    Tue 26 Aug 2008 08:16:16 AM UTCNoneAttached File-=>Added scmutils.compile.txt.gz, #16356

    Back to the top


    Powered by Savane 3.1-cleanup