Changes between Initial Version and Version 2 of Ticket #1048


Ignore:
Timestamp:
08/26/13 11:00:57 (11 years ago)
Author:
Ivan Raikov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1048

    • Property Keywords cross removed
    • Property Summary changed from Cross compiled chicken-install is broken in Chicken 4.8.2 to chicken-install is broken when TMPDIR=./
    • Property Milestone changed from someday to 4.9.0
  • Ticket #1048 – Description

    initial v2  
    1 I have just tried to use chicken-install with Chicken 4.8.2 cross-compiled for x86_64 and SPARC in Linux, and it seems that there is a  bug in the cross compilation code, beginning on line 599.
     1If the environment variable TMPDIR is set to ./ then chicken-install is unable to install eggs:
    22
    3 chicken-install copies the egg files from $EGGDIR/* to $TMPCOPY/*
    4 and then tries to run the .setup file residing in $TMPCOPY/$EGGNAME
    5 instead of $TMPCOPY. So either the files need to be copied to $TMPCOPY/$EGGNAME, or the path to the .setup file needs to be constructed twice, once for the host and a second time for target.
     3TMPDIR=./ chicken-install -debug datatype
    64
    75
     6{{{
     7(snip)
     8reading files ...
     9  ./datatype.meta
     10  ./datatype.scm
     11  ./datatype.setup
     12 datatype located at ./temp72ca.9084/datatype
     13checking platform for `datatype' ...
     14checking dependencies for `datatype' ...
     15install order:
     16("datatype")
     17installing datatype:1.4 ...
     18changing current directory to ./temp72ca.9084/datatype
     19  '/home/igr/bin/chicken/bin/csi' -bnq -setup-mode -e "(require-library setup-api)" -e "(import setup-api)" -e "(extension-name-and-version '(\"datatype\" \"1.4\"))" 'temp72ca.9084/datatype/datatype.setup'
     20
     21Error: (open-input-file) cannot open file - No such file or directory: "temp72ca.9084/datatype/datatype.setup"
     22
     23        Call history:
     24
     25        setup-api.scm:582: ->string       
     26        setup-api.scm:583: ensure-string         
     27        setup-api.scm:582: ->string       
     28        setup-api.scm:645: user-install-setup     
     29        <syntax>          (import setup-api)
     30        <syntax>          (import scheme chicken foreign irregex utils posix ports extras data-structures srfi-1 srfi-13 files......
     31        <syntax>          (##core#undefined)
     32        <syntax>          (##core#undefined)
     33        <syntax>          (extension-name-and-version (quote ("datatype" "1.4")))
     34        <syntax>          (quote ("datatype" "1.4"))
     35        <syntax>          (##core#quote ("datatype" "1.4"))
     36        <eval>    (extension-name-and-version (quote ("datatype" "1.4")))
     37        setup-api.scm:583: ensure-string         
     38        setup-api.scm:582: ->string       
     39        setup-api.scm:583: ensure-string         
     40        setup-api.scm:582: ->string             <--
     41
     42
     43Error: shell command terminated with nonzero exit code
     4417920
     45"'/home/igr/bin/chicken/bin/csi' -bnq -setup-mode -e \"(require-library setup-ap...
     46
     47}}}
     48
     49
     50
     51
     52