Can't build db48

Daniel Morante daniel at morante.net
Tue Mar 4 01:22:55 UTC 2014


I was able to have it build by changing the line to:

return (intptr_t)tsl;

On 2/28/2014 8:49 PM, Daniel Morante wrote:
> I am unable to build databases/db48 and db6 on FreeBSD 9.2 powerpc64. 
> I've tried with the default gcc, gcc4.8 and gcc 4.9. They all result 
> in the same problem:
>
>
> ./libtool --mode=compile g++49 -c -I. -I./../dist/.. -D_THREAD_SAFE 
> -O2 -pipe -O3 -maltivec -mcpu=G5 -fno-strict-aliasing 
> ./../dist/../cxx/cxx_dbc.cpp
> libtool: compile:  g++49 -c -I. -I./../dist/.. -D_THREAD_SAFE -O2 
> -pipe -O3 -maltivec -mcpu=G5 -fno-strict-aliasing 
> ./../dist/../cxx/cxx_dbc.cpp  -fPIC -DPIC -o .libs/cxx_dbc.o
> In file included from ./../dist/../dbinc/mutex.h:15:0,
>                  from ./db_int.h:884,
>                  from ./../dist/../cxx/cxx_dbc.cpp:11:
> ./../dist/../dbinc/mutex_int.h: In function 'int MUTEX_SET(int*)':
> ./../dist/../dbinc/mutex_int.h:599:15: error: cast from 'int*' to 
> 'int' loses precision [-fpermissive]
>    return (int)tsl;
>                ^
> *** [cxx_db.lo] Error code 1
> *** [cxx_dbc.lo] Error code 1
> 2 errors
> ===> Compilation failed unexpectedly.
> Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the 
> failure to
> the maintainer.
> *** [do-build] Error code 1
>
>
>
>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3742 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20140303/515dee07/attachment-0001.bin>


More information about the freebsd-ports mailing list