Re: [Cppcms-users] FreeBSD 11+clang fails to build backtrace.cpp
Brought to you by:
artyom-beilis
From: Nazım C. B. <naz...@ne...> - 2017-03-03 22:37:28
|
Thank you very much. Regards, Nazim Can. On 04/03/17 01:17, Artyom Beilis wrote: > Fixed in master... now backtrace works in BSD and not just disabled as > per your patch > > Artyom > >>> Hi Artyom, >>> >>> This looks like related with closed bug "#78 FreeBSD+clang w/ c++11 fails to >>> build backtrace.cpp...". >>> >>> Operating system: >>> >>> $ uname -a >>> FreeBSD web1.bhyve.local 11.0-RELEASE-p1 FreeBSD 11.0-RELEASE-p1 #0 r306420: >>> Thu Sep 29 01:43:23 UTC 2016 >>> ro...@re...:/usr/obj/usr/src/sys/GENERIC amd64 >>> >>> Compiler: >>> >>> $ clang --version >>> FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based on LLVM >>> 3.8.0) >>> Target: x86_64-unknown-freebsd11.0 >>> Thread model: posix >>> InstalledDir: /usr/bin >>> >>> When trying to compile CppCMS on this system, compiler generates following >>> errors: >>> >>> $ make >>> [ 0%] Building CXX object >>> booster/CMakeFiles/booster.dir/lib/backtrace/src/backtrace.cpp.o >>> /home/nazim/cppcms/booster/lib/backtrace/src/backtrace.cpp:51:16: error: >>> functions that differ only in their return type cannot be overloaded >>> extern void * _Unwind_GetIP (void *); >>> ~~~~~~ ^ >>> /usr/include/c++/v1/unwind-itanium.h:92:22: note: previous declaration is >>> here >>> extern unsigned long _Unwind_GetIP (struct _Unwind_Context *); >>> ~~~~~~~~ ^ >>> /home/nazim/cppcms/booster/lib/backtrace/src/backtrace.cpp:80:48: error: no >>> matching function for call to '_Unwind_GetIP' >>> d->array[d->total++] = _Unwind_GetIP(context); >>> ^~~~~~~~~~~~~ >>> /usr/include/c++/v1/unwind-itanium.h:92:22: note: candidate function not >>> viable: cannot convert argument of incomplete type 'void *' to >>> 'struct _Unwind_Context *' >>> extern unsigned long _Unwind_GetIP (struct _Unwind_Context *); >>> ^ >>> 2 errors generated. >>> *** Error code 1 >>> > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users |