pkgsrc-Users archive

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

Re: libffi compile fail on powerpc (Linux)



> Hi,
> I'm trying to compile libffi as a dependency of.. well lots of packages. It
> keeps failing with this message :
> 
> ../src/powerpc/ffi.c: In function 'ffi_call_int':
> ../src/powerpc/ffi.c:93:3: error: unknown type name '__int64_t'
>    93 |   __int64_t smst_buffer[16];
>       |   ^~~~~~~~~
...
> The issue is there on plgsrc2023Q3 and Q4. I'm using pkgsrc on Debian Linux
> Sid powerpc (good old PowerMac G4)
> 
> Any idea to fix this ?

I don't have access to this particular environment, though I do
use NetBSD/macppc.

You might search a bit for clues with

gcc -E -dD - </dev/null | sort | less

and

gcc -E -dD <<EOF | sort | less
#include <sys/types.h>
EOF

On NetBSD/macppc the latter includes

typedef long long int __int64_t;

and

typedef __int64_t int64_t;

among others using the __int64_t typedef.

If I've understood correctly, the names prefixed with two
underscores are supposed to come "from the implementation", be
that either from the compiler itself or the "system headers" (I'm
a little vague on the exact defintion).

Regards,

- Håvard


Home | Main Index | Thread Index | Old Index