Compiling issues

Dimitry Andric dim at FreeBSD.org
Wed Jun 19 19:46:19 UTC 2019


On 18 Jun 2019, at 23:26, Aaron Farias <aaronfarias at att.net> wrote:
> 
> Hello good evening can someone help me out with this issue
> [  7%] Building CXX object src/CMakeFiles/services.dir/access.o
> In file included from /home/Dark/Downloads/anope-2.0.6/src/access.cpp:12:
> In file included from /home/Dark/Downloads/anope-2.0.6/include/service.h:15:
> In file included from /home/Dark/Downloads/anope-2.0.6/include/services.h:22:
> In file included from /usr/include/c++/v1/stdexcept:46:
> In file included from /usr/include/c++/v1/exception:81:
> In file included from /usr/include/c++/v1/cstddef:38:
> /home/Dark/Downloads/anope-2.0.6/include/version:1:1: error: expected
>       unqualified-id
> <U+007F>ELF<U+0002><U+0001><U+0001> <U+0000><U+0000><U+0000><U+0000>...
> ^
> /home/Dark/Downloads/anope-2.0.6/include/version:2:208: error: source file is
>       not valid UTF-8

Yes, you seem to have a file called "version" in your include path, and
you need to either rename it, or remove the directory containing the
file from your include path.

Unfortunately recent versions of libc++ include the standards-mandated
<version> header [1], which will now by default conflict with any file
named as such in your project.

See also https://bugs.freebsd.org/236192.

-Dimitry

[1] https://en.cppreference.com/w/cpp/header/version

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 223 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20190619/fdb1eaf0/attachment.sig>


More information about the freebsd-current mailing list