[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: FTBFS on powerpc/ppc64el



On 20.10.2014 03:46, Daniel Lintott wrote:

Hi,

For one of my packages (dynamips) I've got a new FTBFS on Ubuntu (but is
replicable on Debian as well).

The last version of the package to compile successfully was 0.2.12
before upstream switched to using CMake (but I think that's a
coincidence as I reproduce the FTBFS using the old Makefile with the new
source)

The error given in the buildlog[1] and from testing locally using qemu is:

daniel@debian-powerpc:~/workspace/dynamips/build$ make
...
[  4%] Building C object stable/CMakeFiles/dynamips_nojit_stable.dir/__/common/hash.c.o
In file included from /usr/include/powerpc-linux-gnu/bits/sigcontext.h:28:0,
                  from /usr/include/signal.h:339,
                  from /home/daniel/workspace/dynamips/stable/utils.h:13,
                  from /home/daniel/workspace/dynamips/common/hash.c:16:
/usr/include/powerpc-linux-gnu/asm/sigcontext.h:17:23: error: expected identifier or ‘(’ before ‘[’ token
make[2]: *** [stable/CMakeFiles/dynamips_nojit_stable.dir/__/common/hash.c.o] Error 1
make[1]: *** [stable/CMakeFiles/dynamips_nojit_stable.dir/all] Error 2
make: *** [all] Error 2

Line 17 in /usr/include/powerpc-linux-gnu/asm/sigcontext.h is:

        unsigned long   _unused[4];

My guess would be that either the dynamips build system, /home/daniel/workspace/dynamips/common/hash.c or one of the other header files it includes before /home/daniel/workspace/dynamips/stable/utils.h defines '_unused' as a macro.


--
Earthling Michel Dänzer            |                  http://www.amd.com
Libre software enthusiast          |                Mesa and X developer


Reply to: