Opened 17 years ago

Closed 17 years ago

Last modified 15 years ago

#11510 closed defect (invalid)

lang/sbcl-1.0.3 fails to compile

Reported by: easye Owned by: macports-tickets@…
Priority: High Milestone:
Component: ports Version:
Keywords: Cc:
Port:

Description

lang/sbcl-1.0.3 fails to compile, due to undefined special variables *ALLOC-INTERVAL*, *MAX-SAMPLES*, and *SAMPLE-INTERVAL* needed by the included contrib from sb-posix. I have not looked upstream between SBCL versions to see where the problem might lie.

Tail of output from "port -v upgrade sbcl":

; file: /opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_lang_sbcl/work/sbcl-1.0.3/contrib/sb-sprof/sb-sprof.lisp ; in: DEFSTRUCT SAMPLES ; (DEFSTRUCT (SB-SPROF::SAMPLES) ; (VECTOR (MAKE-ARRAY (* SB-SPROF:*MAX-SAMPLES* 10 2)) :TYPE SIMPLE-VECTOR) ; (SB-SPROF::TRACE-COUNT 0 :TYPE SB-INT:INDEX) ; (SB-SPROF::INDEX 0 :TYPE SB-INT:INDEX) ; (SB-SPROF::MODE NIL :TYPE (MEMBER :CPU :ALLOC)) ; (SB-SPROF::SAMPLE-INTERVAL SB-SPROF:*SAMPLE-INTERVAL* :TYPE NUMBER) ; (SB-SPROF::ALLOC-INTERVAL SB-SPROF:*ALLOC-INTERVAL* :TYPE NUMBER) ; (SB-SPROF::MAX-DEPTH MOST-POSITIVE-FIXNUM :TYPE NUMBER) ; (SB-SPROF::MAX-SAMPLES SB-SPROF:*MAX-SAMPLES* :TYPE SB-INT:INDEX)) ; --> PROGN DEFUN PROGN EVAL-WHEN SB-IMPL::%DEFUN ; ==> ; (IF #:N-SUPPLIED-868 #:G834-DEFAULTING-TEMP SB-SPROF:*ALLOC-INTERVAL*) ; ; caught WARNING: ; undefined variable: *ALLOC-INTERVAL*

; ==> ; (IF #:N-SUPPLIED-869 #:G836-DEFAULTING-TEMP SB-SPROF:*MAX-SAMPLES*) ; ; caught WARNING: ; undefined variable: *MAX-SAMPLES*

; ==> ; (IF #:N-SUPPLIED-867 #:G833-DEFAULTING-TEMP SB-SPROF:*SAMPLE-INTERVAL*) ; ; caught WARNING: ; undefined variable: *SAMPLE-INTERVAL*

; ; caught WARNING: ; These variables are undefined: ; *ALLOC-INTERVAL* *MAX-SAMPLES* *SAMPLE-INTERVAL* ; ; compilation unit finished ; caught 4 WARNING conditions

; SYS:CONTRIB;SB-SPROF;SB-SPROF.FASL.NEWEST written ; compilation finished in 0:00:01

  • true

WARNING! Some of the contrib modules did not build successfully or pass their self-tests. Failed contribs:"

sb-posix

Error: Target com.apple.build returned: shell command "unset LD_PREBIND && unset LD_PREBIND_ALLOW_OVERLAP && sh make.sh "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_lang_sbcl/work/sbcl-0.9.16-x86-darwin/src/runtime/sbcl --core /opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_lang_sbcl/work/sbcl-0.9.16-x86-darwin/output/sbcl.core --disable-debugger --sysinit /dev/null --userinit /dev/null" " returned error 1 Command output: ; undefined variable: *ALLOC-INTERVAL*

; ==> ; (IF #:N-SUPPLIED-869 #:G836-DEFAULTING-TEMP SB-SPROF:*MAX-SAMPLES*) ; ; caught WARNING: ; undefined variable: *MAX-SAMPLES*

; ==> ; (IF #:N-SUPPLIED-867 #:G833-DEFAULTING-TEMP SB-SPROF:*SAMPLE-INTERVAL*) ; ; caught WARNING: ; undefined variable: *SAMPLE-INTERVAL*

; ; caught WARNING: ; These variables are undefined: ; *ALLOC-INTERVAL* *MAX-SAMPLES* *SAMPLE-INTERVAL* ; ; compilation unit finished ; caught 4 WARNING conditions

; SYS:CONTRIB;SB-SPROF;SB-SPROF.FASL.NEWEST written ; compilation finished in 0:00:01

  • true

WARNING! Some of the contrib modules did not build successfully or pass their self-tests. Failed contribs:"

sb-posix

Change History (6)

comment:1 Changed 17 years ago by easye

sbcl-1.0.3 compiles fine on PPC: this problem is only occuring on Intel.

comment:2 Changed 17 years ago by pipping@…

Milestone: Available Ports

comment:3 Changed 17 years ago by pipping@…

Milestone: Available PortsPort Bugs

comment:4 Changed 17 years ago by easye

Please close this bug: it was a build problem on one machine (the only darwin-x86 I have access to), not a problem with either darwin-x86 or MacPorts.

I tracked the problem down to the failure of the SBCL sb-posix contrib module tests that were refusing to go further if the root directory is writable by world (slightly paranoid but perhaps reasonable). Somehow, my root filesystem was indeed mounted as world writable. Running the "Fix Disk Permissions" via Disk Utility got the port to build.

Note that the SBCL build output "hides" this error much further "up" in its output log, so the transcript that I posted in the initial bug report is quite misleading as to the source of the error.

comment:5 Changed 17 years ago by markd@…

Resolution: invalid
Status: newclosed

Thank you for reporting. Closing.

comment:6 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.