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

 
 

sr #106480: C back end fails to compile scmutils

Submitter:  None
Submitted:  Tue 26 Aug 2008 08:16:16 AM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  Done
Privacy:  Public Assigned to:  riastradh
Originator Email:  -email is unavailable- Open/Closed:  Closed
Operating System:  GNU/Linux
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group Member
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>
Group Member
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 Files:
   
   
Comment:
   

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)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    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.13-4448.
    Corresponding source code