> On Sep 1, 2016, at 7:40 AM, Jarrod Bourlon <jar...@tri8.com> wrote:
> 
> I am trying to compile the websockets extension for ARM using the typical 
> ‘arm-linux-gnueabi-gcc’ cross-compilation method by generating a special 
> cross-compilation Chicken as described here: 
> https://wiki.call-cc.org/man/4/Cross%20development
> 
> My dev environment looks good; I’ve compiled several extensions using my 
> Chicken cross compiler.  However, when compiling the websockets extension, I 
> get an error while trying to compile the dependency ‘mailbox’.  Is mailbox 
> supported on ARM, or am I missing some dependency?

inline-type-checks.scm is a part of the check-errors egg, which is a mailbox 
egg dependency. The install attempts to place a copy in the Chicken Home 
directory but can fail with this warning:

        cannot copy to Chicken Home: must use CHICKEN_INCLUDE_PATH when using 
"inline-type-checks"

Suspect you need to have the environment variable CHICKEN_INCLUDE_PATH at least 
state the 'repository-path’, ex:

        CHICKEN_INCLUDE_PATH=/usr/local/lib/chicken/8;/usr/local/share/chicken

The mailbox egg impl is designed for an older Chicken. The shortcuts taken are 
not needed, or wanted, now. I need to do some re-writing.

> 
> 
> 
> Here is the output when trying to install mailbox:
> 
> 
> websockets# arm-chicken-install mailbox   
> retrieving ...
> connecting to host "chicken.kitten-technologies.co.uk", port 80 ...
> requesting "/henrietta.cgi?name=mailbox&mode=default" ...
> reading response ...
> HTTP/1.1 200 OK
> Date: Thu, 01 Sep 2016 14:38:48 GMT
> Server: Apache/2.2.31 (Unix) DAV/2 PHP/5.5.36 mod_fastcgi/2.4.6
> Connection: close
> Transfer-Encoding: chunked
> Content-Type: text/plain
> reading chunks ....
> reading files ...
>  ./mailbox.meta
>  ./chicken-primitive-object-inlines.scm
>  ./chicken-thread-object-inlines.scm
>  ./inline-queue.scm
>  ./mailbox.scm
>  ./mailbox.setup
> mailbox located at /tmp/temp7739.29453/mailbox
> checking platform for `mailbox' ...
> checking dependencies for `mailbox' ...
> install order:
> ("mailbox")
> installing mailbox:2.1.5 ...
> copying sources for target installation
>  cp -r /tmp/temp7739.29453/mailbox/* /tmp/temp464.29453
> changing current directory to /tmp/temp7739.29453/mailbox
> deleting stale binaries ...deleting stale binaries ...
>  '/cross-chicken/bin/arm-csi' -bnq -setup-mode -e "(require-library 
> setup-api)" -e "(import setup-api)" -e "(setup-error-handling)" -e 
> "(extension-name-and-version '(\"mailbox\" \"2.1.5\"))" -e "(host-extension 
> #t)" 'mailbox.setup'
>  '/cross-chicken/bin/arm-csc' -feature compiling-extension -setup-mode  -host 
>  mailbox.scm -shared -optimize-leaf-routines -inline -output-file mailbox.so 
> -emit-import-library mailbox -scrutinize -feature unsafe-operations 
> -optimize-level 3 -debug-level 1 -no-procedure-checks -no-bound-checks 
> -no-argc-checks
> 
> Error: (open-input-file) cannot open file - No such file or directory: 
> "inline-type-checks"
> 
>       Call history:
> 
>       <syntax>          (define-inline (%condition-variable-waiters-empty? 
> cv) (%null? (%condition-variable-waiters cv)))
>       <syntax>          (##core#define-inline 
> %condition-variable-waiters-empty? (##core#lambda (cv) (%null? 
> (%condition-var...
>       <syntax>          (define-inline (%condition-variable-waiters-empty! 
> cv) (%structure-set!/immediate cv 2 (quote ())))
>       <syntax>          (##core#define-inline 
> %condition-variable-waiters-empty! (##core#lambda (cv) 
> (%structure-set!/immedi...
>       <syntax>          (define-inline (%condition-variable-waiters-add! cv 
> th) (%condition-variable-waiters-set! cv (%appen...
>       <syntax>          (##core#define-inline 
> %condition-variable-waiters-add! (##core#lambda (cv th) 
> (%condition-variable-w...
>       <syntax>          (define-inline (%condition-variable-waiters-delete! 
> cv th) (%condition-variable-waiters-set! cv (%de...
>       <syntax>          (##core#define-inline 
> %condition-variable-waiters-delete! (##core#lambda (cv th) 
> (%condition-variabl...
>       <syntax>          (define-inline (%condition-variable-waiters-pop! mx) 
> (let* ((wt (%condition-variable-waiters mx)) (t...
>       <syntax>          (##core#define-inline 
> %condition-variable-waiters-pop! (##core#lambda (mx) (let* ((wt 
> (%condition-va...
>       <syntax>          (define-inline (%condition-variable-specific cv) 
> (%structure-ref cv 3))
>       <syntax>          (##core#define-inline %condition-variable-specific 
> (##core#lambda (cv) (%structure-ref cv 3)))
>       <syntax>          (define-inline (%condition-variable-specific-set! cv 
> x) (%structure-set!/mutate cv 3 x))
>       <syntax>          (##core#define-inline 
> %condition-variable-specific-set! (##core#lambda (cv x) 
> (%structure-set!/mutat...
>       <syntax>          (include "inline-type-checks")
>       <syntax>          (##core#include "inline-type-checks") <--
> 
> Error: shell command terminated with non-zero exit status 17920: 
> '/cross-chicken/bin/arm-chicken' 'mailbox.scm' -output-file 'mailbox.c' 
> -dynamic -feature chicken-compile-shared -feature compiling-extension 
> -setup-mode -optimize-leaf-routines -inline -emit-import-library mailbox 
> -scrutinize -feature unsafe-operations -optimize-level 3 -debug-level 1 
> -no-procedure-checks -no-bound-checks -no-argc-checks
> 
> Error: shell command failed with nonzero exit status 256:
> 
>  '/cross-chicken/bin/arm-csc' -feature compiling-extension -setup-mode  -host 
>  mailbox.scm -shared -optimize-leaf-routines -inline -output-file mailbox.so 
> -emit-import-library mailbox -scrutinize -feature unsafe-operations 
> -optimize-level 3 -debug-level 1 -no-procedure-checks -no-bound-checks 
> -no-argc-checks
> 
> 
> Error: shell command terminated with nonzero exit code
> 17920
> "'/cross-chicken/bin/arm-csi' -bnq -setup-mode -e \"(require-library 
> setup-api)\...
> 
> 
> _______________________________________________
> Chicken-users mailing list
> Chicken-users@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/chicken-users


_______________________________________________
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to