gittup/gittup — Issue #4: "bfd.h:88:5: error: #if with no expression"
Author: anatol
Created: 2011-12-08 06:06:31+00:00
State: open

It fails on Ubuntu 11.10

$ tup upd -j2
[ tup ] Scanning filesystem...0.372s
[ tup ] No tup.config changes.
[ tup ] No Tupfiles to parse.
[ tup ] No files to delete.
[ tup ] Executing Commands...
[ 1/2275 ] binutils/bfd: CC [host] archive.c
In file included from archive.c:133:0:
bfd.h:88:5: error: #if with no expression
bfd.h:95:19: error: operator '>=' has no left operand
bfd.h:109:23: warning: type defaults to ‘int’ in declaration of ‘bfd_hostptr_t’ [-Wimplicit-int]
bfd.h:190:10: warning: type defaults to ‘int’ in declaration of ‘file_ptr’ [-Wimplicit-int]
*** tup errors ***
*** Command ID=61704 failed with return value 1
[ 2/2275 ] binutils/bfd: CC [host] aout32.c
In file included from aoutx.h:123:0,
from aout32.c:24:
bfd.h:88:5: error: #if with no expression
bfd.h:95:19: error: operator '>=' has no left operand
bfd.h:109:23: warning: type defaults to ‘int’ in declaration of ‘bfd_hostptr_t’ [-Wimplicit-int]
bfd.h:190:10: warning: type defaults to ‘int’ in declaration of ‘file_ptr’ [-Wimplicit-int]
In file included from aout32.c:24:0:
aoutx.h: In function ‘aout_link_input_bfd’:
aoutx.h:5232:17: warning: variable ‘sym_count’ set but not used [-Wunused-but-set-variable]
*** tup errors ***
*** Command ID=61702 failed with return value 1

The header file around line 88 looks like

#define BFD_HOST_64BIT_LONG
#define BFD_HOST_64BIT_LONG_LONG
#if /// !!!! THE ERROR HERE
#define BFD_HOST_64_BIT
#define BFD_HOST_U_64_BIT
typedef BFD_HOST_64_BIT bfd_int64_t;