views:

896

answers:

18

What is the funniest or strangest error message you have ever seen from a compiler?

My personal favorite is one I came across with java: cannot cast boolean to Boolean

Any others?

+2  A: 

"Confused by earlier errors, bailing out."

Kristo
+5  A: 

PROGRAMMER IS INSUFFICIENTLY POLITE

From ick, the INTERCAL compiler.

Martinho Fernandes
uh? did you have four-letters words as identifiers ? :)
Stefano Borini
No. I didn't have enough PLEASE statement modifiers in the code.
Martinho Fernandes
If you modify too many statements with PLEASE, you will get something like PROGRAMMER IS TOO POLITE. You need exactly the right amount of politeness...
Martinho Fernandes
That made me laugh pretty hard :D
Stefano Borini
+5  A: 

Not sure if it's the 'best', but I always find C++ template errors fun; especially the 25-line long ones where you spend longer trying to understand the error message than you did writing the code in the first place!

Dave Rigby
I agree, the first time I saw them it was instant WTF.
Junier
Most C++ template errors are just errors propagating. X couldn't do Y because Y couldn't do Z, etc. Can't wait for concepts.
GMan
@GMan: Indeed - half of the fun is working out which one started the cascade!
Dave Rigby
+2  A: 

I dont' remember the actual wording, but Intel Fortran compiler had a clear opinion when he found that the horrible code (NB: not mine) I was feeding him modified the cycle variable inside a cycle. His opinion was sort of "screw you, I refuse to compile this blasphemy"

Edit:

Ok, so either they changed the error message, or that was my personal interpretation:

fortcom: Error: test.f, line 4: An assignment to a DO variable within a DO body is invalid.   [I]
         i=8
---------^

Even g77 refuses to compile it.

test.f: In program `foo':
test.f:2: 
         do i=1,7
            1
test.f:4: (continued):
            i=8
            2
Attempt to modify variable `i' at (2) while it serves as DO-loop iterator at (1)

Not so funny anyway. Feel free to downvote me.

Stefano Borini
+2  A: 

A few from here:

"Too many errors on one line (make fewer)"

"We already did this function"

"This label is the target of a goto from outside of the block containing this label AND this block has an automatic variable with an initializer AND your window wasn't wide enough to read this whole error message"

But really, all of them.

Pavel Minaev
+2  A: 

Not really a compiler error, but I like IE's Javascript error message "null is null or not an object".

erikkallen
+4  A: 

Visual studio's "C1001: INTERNAL COMPILER ERROR" always gets me laughing for some reason.

shoosh
+4  A: 

Ocaml has a wealth of head-scratching error messages. One of my favorites is:

This expression has type int but is here used with type int

which you can get if you accidentally override an existing type in the top level.

brendan
I've got these before... so confusing...
Zifre
+4  A: 

My favorite error message comes from the Glasgow Haskell Compiler:

qcgadt.hs:115:7:
    My brain just exploded.
    I can't handle pattern bindings for existentially-quantified constructors.
    In the binding group
        (Rep x) = uncompressRep s
    In the definition of `uncompressRep':
        uncompressRep (0 : 1 : 0 : s) = let (Rep x) = uncompressReps in Rep (RList x)
Norman Ramsey
+4  A: 

Digital Equipment Basic-Plus and Basic-Plus-2 in RSTS/E OS, running on PDP-11's:

Program Lost -- Sorry.

Heh, :-)

RBarryYoung
+10  A: 
"long long long is too long for gcc"

Xcode was cranky at me.... (C++)

CrazyJugglerDrummer
+6  A: 

You are in a maze of twisty compiler features, all different

From GCC 1.34's "implementation-defined" handling of #pragma, displayed if your system was unable to launch emacs -f hanoi, hack, or rogue (which were its preferred implementations of #pragma).

puetzk
+2  A: 

This message is from Squeak.

Whenever I realized I had started to run code that was destined to produced a stack overflow error, I quickly hit CTRL+C (squeak for cancel operation). Sometimes it worked but when it didn't it would popup a dialog which said

Insufficient resources to interupt this operation

But yes, enough resources to popup the dialog.

JaredPar
+2  A: 

PHP

Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in Command line code on line 1
Mark
+1  A: 

Got this today and thought it was funny:

Warning 8 warning C4800: 'BOOL' : forcing value to bool 'true' or 'false'
SP
+1  A: 

Error: This DO variable has already been used as an outer DO variable in the same nesting structure.

sungl
+5  A: 

I just found this old screenshot in my hard drive. I can't quite remember what had gone wrong... and I am afraid to know:

error C2064: term does not evaluate to a function taking -22 arguments

Martinho Fernandes
+1 I just came across this error
zildjohn01
A: 

From .NET, my favourite has always been:

Nullable object must have a value.

Noon Silk