Skip to content

Compile Error #32

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

Open
Toxican opened this issue Dec 1, 2024 · 1 comment
Open

Compile Error #32

Toxican opened this issue Dec 1, 2024 · 1 comment

Comments

@Toxican
Copy link

Toxican commented Dec 1, 2024

Hello!

I got an compiling error while installing package from AUR - same error occurs on manual compile.

[ 85%] Building CXX object CMakeFiles/g13d.dir/g13_stick.cpp.o /home/tox/.cache/yay/g13/src/g13-git/g13_stick.cpp: In Elementfunktion »void G13::G13_Stick::RemoveZone(const G13::G13_StickZone&)«: /home/tox/.cache/yay/g13/src/g13-git/g13_stick.cpp:76:42: Fehler: »std::vector<G13::G13_StickZone>::iterator« kann nicht nach »const char*« umgewandelt werden 76 | m_zones.erase(std::remove(m_zones.begin(), m_zones.end(), target), m_zones.end()); | ~~~~~~~~~~~~~^~ | | | std::vector<G13::G13_StickZone>::iterator In Datei, eingebunden von /usr/include/c++/14.2.1/cstdio:42, von /usr/include/c++/14.2.1/ext/string_conversions.h:45, von /usr/include/c++/14.2.1/bits/basic_string.h:4154, von /usr/include/c++/14.2.1/string:54, von /home/tox/.cache/yay/g13/src/g13-git/g13_keys.hpp:8, von /home/tox/.cache/yay/g13/src/g13-git/g13_action.hpp:9, von /home/tox/.cache/yay/g13/src/g13-git/g13_manager.hpp:9, von /home/tox/.cache/yay/g13/src/g13-git/g13_device.hpp:8, von /home/tox/.cache/yay/g13/src/g13-git/g13.hpp:5, von /home/tox/.cache/yay/g13/src/g13-git/g13_stick.cpp:4: /usr/include/stdio.h:158:32: Anmerkung: Argument 1 von »int remove(const char*)« wird initialisiert 158 | extern int remove (const char *__filename) __THROW; | ~~~~~~~~~~~~^~~~~~~~~~ make[3]: *** [CMakeFiles/g13d.dir/build.make:219: CMakeFiles/g13d.dir/g13_stick.cpp.o] Fehler 1 make[2]: *** [CMakeFiles/Makefile2:125: CMakeFiles/g13d.dir/all] Fehler 2 make[1]: *** [CMakeFiles/Makefile2:132: CMakeFiles/g13d.dir/rule] Fehler 2 make: *** [Makefile:137: g13d] Fehler 2 make: Verzeichnis „/home/tox/.cache/yay/g13/src/build“ wird verlassen ==> FEHLER: Ein Fehler geschah in build(). Breche ab... -> Fehler beim Erstellen: g13-exit status 4 -> Die folgenden Pakete konnten nicht installiert werden. Ein manueller Eingriff ist erforderlich: g13-git - exit status 4

@beagle70
Copy link

New git user here, just wanted to add I'm having a similar issue. Installing on Manjaro through Pamac. Used this same process on my last PC build and it went flawlessly. Thought I'd add this in for help. If I missed something or am posting this in the wrong space, let me know. See below:

[ 85%] Building CXX object CMakeFiles/g13d.dir/g13_stick.cpp.o
[ 92%] Building CXX object CMakeFiles/g13d.dir/helper.cpp.o
/var/tmp/pamac-build-wizard/g13/src/g13-git/g13_stick.cpp: In member function ‘void G13::G13_Stick::RemoveZone(const G13::G13_StickZone&)’:
/var/tmp/pamac-build-wizard/g13/src/g13-git/g13_stick.cpp:76:42: error: cannot convert ‘std::vectorG13::G13_StickZone::iterator’ to ‘const char*’
76 | m_zones.erase(std::remove(m_zones.begin(), m_zones.end(), target), m_zones.end());
| ~~~~~~~~~~~~~^~
| |
| std::vectorG13::G13_StickZone::iterator
In file included from /usr/include/c++/14.2.1/cstdio:42,
from /usr/include/c++/14.2.1/ext/string_conversions.h:45,
from /usr/include/c++/14.2.1/bits/basic_string.h:4154,
from /usr/include/c++/14.2.1/string:54,
from /var/tmp/pamac-build-wizard/g13/src/g13-git/g13_keys.hpp:8,
from /var/tmp/pamac-build-wizard/g13/src/g13-git/g13_action.hpp:9,
from /var/tmp/pamac-build-wizard/g13/src/g13-git/g13_manager.hpp:9,
from /var/tmp/pamac-build-wizard/g13/src/g13-git/g13_device.hpp:8,
from /var/tmp/pamac-build-wizard/g13/src/g13-git/g13.hpp:5,
from /var/tmp/pamac-build-wizard/g13/src/g13-git/g13_stick.cpp:4:
/usr/include/stdio.h:158:32: note: initializing argument 1 of ‘int remove(const char*)’
158 | extern int remove (const char *__filename) __THROW;
| ~~~~~~~~~~~~^~~~~~~~~~
make[3]: *** [CMakeFiles/g13d.dir/build.make:219: CMakeFiles/g13d.dir/g13_stick.cpp.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [CMakeFiles/Makefile2:125: CMakeFiles/g13d.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:132: CMakeFiles/g13d.dir/rule] Error 2
make: *** [Makefile:137: g13d] Error 2
make: Leaving directory '/var/tmp/pamac-build-wizard/g13/src/build'
==> ERROR: A failure occurred in build().
Aborting...

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