Didier Verna | 1 Jul 2012 11:53
X-Face
Face
Picon
Picon
Picon
Picon
Gravatar

sb-grovel and the CC env var


  Hi,

when you try to load a system which uses sb-grovel, without a CC
environment variable set, SBCL breaks:

The CC environment variable has not been set in SB-GROVEL. Since this variable should always be set during
the SBCL build process, this might indicate an SBCL with a broken contrib installation.
   [Condition of type SIMPLE-ERROR]

Restarts:
 0: [RETRY] Retry compiling #<GROVEL-CONSTANTS-FILE "com.dvlsoft.clon" "termio" "sbcl" "constants">.
 1: [ACCEPT] Continue, treating compiling #<GROVEL-CONSTANTS-FILE "com.dvlsoft.clon" "termio"
"sbcl" "constants"> as having been successful.
 2: [RETRY] Retry SLIME REPL evaluation request.
 3: [*ABORT] Return to SLIME's top level.
 4: [REMOVE-FD-HANDLER] Remove #<SB-IMPL::HANDLER INPUT on descriptor 6: #<CLOSURE (LABELS
SWANK-BACKEND::RUN :IN SWANK-BACKEND:ADD-FD-HANDLER) {100403C5FB}>>
 5: [ABORT] Exit debugger, returning to top level.

Backtrace:
  0: ((SB-PCL::FAST-METHOD ASDF:PERFORM (ASDF:COMPILE-OP SB-GROVEL:GROVEL-CONSTANTS-FILE)) ..)
  1: ((SB-PCL::EMF ASDF:PERFORM) #<unavailable argument> #<unavailable argument> #<ASDF:COMPILE-OP
NIL {100497B403}> #<SB-GROVEL:GROVEL-CONSTANTS-FILE "com.dvlsoft.clon" "termio" "sbcl" "constants">)
  2: ((SB-PCL::FAST-METHOD ASDF::PERFORM-WITH-RESTARTS :AROUND (T T)) ..)
  3: ((LAMBDA () :IN ASDF::PERFORM-PLAN))
  4: ((FLET SB-THREAD::WITH-RECURSIVE-LOCK-THUNK :IN SB-C::%WITH-COMPILATION-UNIT))
  5: ((FLET SB-C::WITH-IT :IN SB-C::%WITH-COMPILATION-UNIT))
  6: ((SB-PCL::FAST-METHOD ASDF::PERFORM-PLAN (LIST)) ..)
  7: ((LAMBDA () :IN ASDF:OPERATE))
(Continue reading)

Nikodemus Siivola | 8 Oct 2012 08:34
Gravatar

Re: sb-grovel and the CC env var

On 1 July 2012 12:53, Didier Verna <didier <at> lrde.epita.fr> wrote:

> when you try to load a system which uses sb-grovel, without a CC
> environment variable set, SBCL breaks:

Sorted out, I hope:

commit d15afa61c4854eddb4b61e3d8772590db760c565
Author: Nikodemus Siivola <nikodemus <at> random-state.net>
Date:   Mon Oct 8 08:49:41 2012 +0300

    allow SB-CONTRIB operation without explicitly set CC

      Fall back to "cc" with a style-warning.

Cheers,

 -- Nikodemus

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
Faré | 8 Oct 2012 14:27
Picon
Gravatar

Re: sb-grovel and the CC env var

On Mon, Oct 8, 2012 at 2:34 AM, Nikodemus Siivola
<nikodemus <at> random-state.net> wrote:
> On 1 July 2012 12:53, Didier Verna <didier <at> lrde.epita.fr> wrote:
>
>> when you try to load a system which uses sb-grovel, without a CC
>> environment variable set, SBCL breaks:
>
> Sorted out, I hope:
>
> commit d15afa61c4854eddb4b61e3d8772590db760c565
> Author: Nikodemus Siivola <nikodemus <at> random-state.net>
> Date:   Mon Oct 8 08:49:41 2012 +0300
>
>     allow SB-CONTRIB operation without explicitly set CC
>
>       Fall back to "cc" with a style-warning.
>
Shouldn't it instead remember the compiler and options used while
compiling SBCL itself?

—♯ƒ • François-René ÐVB Rideau •Reflection&Cybernethics• http://fare.tunes.org
In Cuba, medecine is free, which explains why aspirin is rationed
(to 20 pills a year per person) and bandages are lacking.

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
(Continue reading)

Rupert Swarbrick | 8 Oct 2012 14:48
Picon
Gravatar

Re: sb-grovel and the CC env var

Faré <fahree <at> gmail.com> writes:
> On Mon, Oct 8, 2012 at 2:34 AM, Nikodemus Siivola
>> commit d15afa61c4854eddb4b61e3d8772590db760c565
>> Author: Nikodemus Siivola <nikodemus <at> random-state.net>
>> Date:   Mon Oct 8 08:49:41 2012 +0300
>>
>>     allow SB-CONTRIB operation without explicitly set CC
>>
>>       Fall back to "cc" with a style-warning.
>>
> Shouldn't it instead remember the compiler and options used while
> compiling SBCL itself?

At least on Linux machines, mostly people are going to be installing
binary SBCL packages (eg. .debs, rpms, ...). The compiler installed on
the build machine doesn't a priori have much connection with that
installed locally.

Maybe I've misunderstood your question?

Rupert
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
(Continue reading)

Faré | 8 Oct 2012 21:49
Picon
Gravatar

Re: sb-grovel and the CC env var

On Mon, Oct 8, 2012 at 8:48 AM, Rupert Swarbrick <rswarbrick <at> gmail.com> wrote:
> Faré <fahree <at> gmail.com> writes:
>> On Mon, Oct 8, 2012 at 2:34 AM, Nikodemus Siivola
>>> commit d15afa61c4854eddb4b61e3d8772590db760c565
>>> Author: Nikodemus Siivola <nikodemus <at> random-state.net>
>>> Date:   Mon Oct 8 08:49:41 2012 +0300
>>>
>>>     allow SB-CONTRIB operation without explicitly set CC
>>>
>>>       Fall back to "cc" with a style-warning.
>>>
>> Shouldn't it instead remember the compiler and options used while
>> compiling SBCL itself?
>
> At least on Linux machines, mostly people are going to be installing
> binary SBCL packages (eg. .debs, rpms, ...). The compiler installed on
> the build machine doesn't a priori have much connection with that
> installed locally.
>
> Maybe I've misunderstood your question?
>
Oh yes, there will be a strong connection.
In particular, -m32 vs -m64 flags are *essential*,
as well as any other flags that modify the ABI.
Failing to remember these is planning to fail.

—♯ƒ • François-René ÐVB Rideau •Reflection&Cybernethics• http://fare.tunes.org
Most economic fallacies derive... from the tendency to assume that there
is a fixed pie, that one party can gain only at the expense of another.
	— Milton Friedman
(Continue reading)


Gmane