building sandbox barebox: too many '"BITS_PER_LONG" redefined' warnings

Antony Pavlov antonynpavlov at gmail.com
Tue Jun 2 01:37:36 PDT 2015


Hi, Sascha!

I have tried to build sandbox barebox from latest next on amd64 debian linux host.

I see very many '"BITS_PER_LONG" redefined' warnings, e.g.

  CC      common/misc.o
In file included from /home/antony/barebog.git/arch/sandbox/include/asm/types.h:57:0,
                 from include/linux/types.h:5,
                 from include/param.h:5,
                 from include/console.h:23,
                 from include/stdio.h:5,
                 from include/common.h:23,
                 from common/misc.c:19:
include/asm-generic/bitsperlong.h:7:0: warning: "BITS_PER_LONG" redefined
 #define BITS_PER_LONG 32
 ^
In file included from include/asm-generic/posix_types.h:4:0,
                 from /home/antony/barebog.git/arch/sandbox/include/asm/posix_types.h:1,
                 from include/linux/posix_types.h:46,
                 from include/linux/types.h:4,
                 from include/param.h:5,
                 from include/console.h:23,
                 from include/stdio.h:5,
                 from include/common.h:23,
                 from common/misc.c:19:
/home/antony/barebog.git/arch/sandbox/include/asm/bitsperlong.h:5:0: note: this is the location of the previous definition
 #define BITS_PER_LONG 64
 ^

-- 
Best regards,
  Antony Pavlov



More information about the barebox mailing list