Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build from "master" branch #2197

Closed
SchweinDeBurg opened this issue May 4, 2024 · 4 comments
Closed

Unable to build from "master" branch #2197

SchweinDeBurg opened this issue May 4, 2024 · 4 comments

Comments

@SchweinDeBurg
Copy link

I've just got the following error message:

FAILED: colorer/CMakeFiles/colorer.dir/src/pcolorer2/FarEditorSet.cpp.o 
ccache /usr/bin/g++ -DUNICODE -D_UNICODE -D__unix__ -Dcolorer_EXPORTS -I/home/elijah/.local/rpmbuild/BUILD/far2l/utils/include -I/home/elijah/.local/rpmbuild/BUILD/far2l/colorer/src/Colorer-library/src -I/home/elijah/.local/rpmbuild/BUILD/far2l/colorer/src/Colorer-library/src/src -I/home/elijah/.local/rpmbuild/BUILD/far2l/colorer/src/pcolorer2 -I/home/elijah/.local/rpmbuild/BUILD/far2l/colorer/src -I/home/elijah/.local/rpmbuild/BUILD/far2l/colorer/../WinPort -I/home/elijah/.local/rpmbuild/BUILD/far2l/colorer/../far2l/far2sdk -I/home/elijah/.local/rpmbuild/BUILD/far2l/x86_64-redhat-linux-gnu/Colorer-library/src -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -march=native -mtune=native -fasynchronous-unwind-tables -mno-aes  -w -Wall -fPIC -Wno-unused-function -D_FILE_OFFSET_BITS=64 -ffunction-sections -fdata-sections -Wl,--gc-sections -DWINPORT_REGISTRY -O2 -g -DNDEBUG -std=c++17 -fPIC -fvisibility=hidden -MD -MT colorer/CMakeFiles/colorer.dir/src/pcolorer2/FarEditorSet.cpp.o -MF colorer/CMakeFiles/colorer.dir/src/pcolorer2/FarEditorSet.cpp.o.d -o colorer/CMakeFiles/colorer.dir/src/pcolorer2/FarEditorSet.cpp.o -c /home/elijah/.local/rpmbuild/BUILD/far2l/colorer/src/pcolorer2/FarEditorSet.cpp
/home/elijah/.local/rpmbuild/BUILD/far2l/colorer/src/pcolorer2/FarEditorSet.cpp: In member function 'void FarEditorSet::LoadUserHrc(const UnicodeString*, ParserFactory*)':
/home/elijah/.local/rpmbuild/BUILD/far2l/colorer/src/pcolorer2/FarEditorSet.cpp:1407:76: error: invalid conversion from 'const w2char*' {aka 'const char16_t*'} to 'const XMLCh*' {aka 'const short unsigned int*'} [-fpermissive]
 1407 |     uXmlInputSource dfis = XmlInputSource::newInstance(filename->getW2Chars(),
      |                                                        ~~~~~~~~~~~~~~~~~~~~^~
      |                                                                            |
      |                                                                            const w2char* {aka const char16_t*}
In file included from /home/elijah/.local/rpmbuild/BUILD/far2l/colorer/src/pcolorer2/FarEditorSet.cpp:1:
/home/elijah/.local/rpmbuild/BUILD/far2l/colorer/src/Colorer-library/src/colorer/xml/XmlInputSource.h:26:51: note:   initializing argument 1 of 'static uXmlInputSource XmlInputSource::newInstance(const XMLCh*, const XMLCh*)'
   26 |   static uXmlInputSource newInstance(const XMLCh* path, const XMLCh* base);
      |                                      ~~~~~~~~~~~~~^~~~
ninja: build stopped: subcommand failed.
@ctapmex
Copy link
Contributor

ctapmex commented May 4, 2024

What kind of environment do you have? OS, compiler version.

@SchweinDeBurg
Copy link
Author

What kind of environment do you have? OS, compiler version

Fedora Linux with GCC 9.3.1, but can try GCC 12.3 or Clang 17.0.6.

@ctapmex
Copy link
Contributor

ctapmex commented May 4, 2024

fedora № ?
we checked on fedora 40, and no errors

@SchweinDeBurg
Copy link
Author

I've found the root cause of my problem -- installed Xerces-C++ library is too old.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants