[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gnulib: __builtin_expect()
From: |
Daniel Richard G. |
Subject: |
Re: gnulib: __builtin_expect() |
Date: |
Fri, 16 Dec 2016 18:31:55 -0500 |
On Fri, 2016 Dec 16 14:58-0800, Paul Eggert wrote:
>
> No, it's a compiler builtin. I installed the attached to gnulib;
> please give it a try.
Alas, git master 005973d6 gives me a new build failure:
source='/u/darkstar/testdir/gllib/allocator.c' object='allocator.o' libtool=no \
DEPDIR=.deps depmode=aix /bin/sh /u/darkstar/testdir/build-aux/depcomp \
xlc-wrap -DHAVE_CONFIG_H -I. -I/u/darkstar/testdir/gllib -I..
-DGNULIB_STRICT_CHECKING=1 -D_XOPEN_SOURCE=600 -DNSIG=39 -qhaltonmsg=CCN3296
-g -qfloat=ieee -qlanglvl=extc99 -c -o allocator.o
/u/darkstar/testdir/gllib/allocator.c
ERROR CCN3046 /usr/include/builtins.h:1858 Syntax error.
CCN0793(I) Compilation failed for file /u/darkstar/testdir/gllib/allocator.c.
Object file not created.
make[3]: *** [allocator.o] Error 12
It seems like the configure-time detection of __builtin_expect() failed:
configure:32144: checking for __builtin_expect
configure:32159: xlc-wrap -o conftest -g -qfloat=ieee -qlanglvl=extc99
-D_XOPEN_SOURCE=600 -DNSIG=39 -qhaltonmsg=CCN3296 conftest.c >&5
IEW2456E 9207 SYMBOL __builtin_expect UNRESOLVED. MEMBER COULD NOT BE INCLUDED
FROM THE DESIGNATED CALL LIBRARY.
FSUM3065 The LINKEDIT step ended with return code 8.
configure:32159: $? = 3
Some testing shows that "#include<builtins.h>" is needed in order for
the linkage to work correctly. #include<stdlib.h> also does the trick,
as that header pulls in this one unconditionally.
--Daniel
--
Daniel Richard G. || address@hidden
My ASCII-art .sig got a bad case of Times New Roman.