Project

General

Profile

Actions

Bug #824

closed

Is this a compiler error?

Added by wa1ter about 17 years ago. Updated almost 16 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

While trying to build pkgsrc/emacs on HEAD with the default gcc41 I'm
getting an error that just doesn't make sense. This is taken from
'dragonfly.h' in the emacs sources:

#if defined(GNUC) && GNUC 3 && GNUC_MINOR 4
  1. ifndef DFLY_PRE_17_CRT
    #define START_FILES pre-crt0.o /usr/lib/gcc34/crt1.o /usr/lib/gcc34/crti.o /usr/lib/gcc34/crtbegin.o
    #define LIB_STANDARD -L/usr/lib/gcc34 -lgcc -lc -lgcc /usr/lib/gcc34/crtend.o /usr/lib/gcc34/crtn.o
  2. else
    #define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o
    #define LIB_STANDARD -L/usr/lib/gcc34 -lgcc -lc -lgcc /usr/lib/crtend.o /usr/lib/crtn.o
  3. endif
    #else
    #error "Add compiler version magic"
    #endif

The problem is that 'error' is triggered no matter what that first 'if'
checks for. E.g. that first line can be changed to #if 0 and that same
'error' is still triggered.

Either gcc41 is broken or I am. Which is it?

Actions

Also available in: Atom PDF