Ultimaker / libArcus

Communication library between internal components for Ultimaker software
GNU Lesser General Public License v3.0
72 stars 81 forks source link

error: packages failed to build: arcus-5.0.0-2 #146

Closed Frigyes06 closed 2 years ago

Frigyes06 commented 2 years ago
==> Starting build()...
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Setting BUILD_SHARED_LIBS to ON
-- Generating compile commands to /home/frigyes/.cache/paru/clone/arcus/src/build/compile_commands.json
-- Setting POSITION_INDEPENDENT_CODE: ON
-- Setting C++17 support with extensions off and standard required
-- Found Protobuf: /usr/lib/libprotobuf.so (found suitable version "3.21.5", minimum required is "3.17.1") 
-- Enabling threading support for Arcus
-- Found Threads: TRUE  
-- Setting SKIP_BUILD_RPATH for target Arcus to FALSE
-- Setting BUILD_WITH_INSTALL_RPATH for target Arcus to FALSE
-- Setting INSTALL_RPATH_USE_LINK_PATH for target Arcus to TRUE
-- Setting install RPATH for target Arcus to $ORIGIN/;$ORIGIN/$<$<PLATFORM_ID:Linux>:usr/bin>;$ORIGIN/$<$<PLATFORM_ID:Linux>:usr/bin/lib>;$ORIGIN/$<$<PLATFORM_ID:Darwin>:../lib>
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
-- Setting Python version to 3.10. Set Python_VERSION if you want to compile against an other version.
-- Found Python: /usr/bin/python3.10 (found suitable exact version "3.10.6") found components: Interpreter Development Development.Module Development.Embed 
-- Linking and building  against Python 3.10.6
-- Found SIP version: 4.19.25
-- Setting SKIP_BUILD_RPATH for target pyArcus to FALSE
-- Setting BUILD_WITH_INSTALL_RPATH for target pyArcus to FALSE
-- Setting INSTALL_RPATH_USE_LINK_PATH for target pyArcus to TRUE
-- Setting install RPATH for target pyArcus to $ORIGIN/;$ORIGIN/$<$<PLATFORM_ID:Linux>:usr/bin>;$ORIGIN/$<$<PLATFORM_ID:Linux>:usr/bin/lib>;$ORIGIN/$<$<PLATFORM_ID:Darwin>:../lib>;$ORIGIN/$<$<PLATFORM_ID:Darwin>:../Resources/lib/>;$ORIGIN/../../
-- Enabling threading support for pyArcus
-- SIP: Generating pyproject.toml
-- SIP: Generating source files
'/usr/bin/cmake' '-E' 'env' 'PYTHONPATH=::/home/frigyes/.cache/paru/clone/arcus/src/build' '/Scripts/sip-build' '--pep484-pyi' '--no-protected-is-public'
No such file or directory
-- SIP: Touching the source files
-- SIP: Collecting the generated source files
-- SIP: Collecting the user specified source files
-- SIP: Linking the interface target against the shared library
-- SIP: Installing Python module and PEP 484 file in /usr/lib/python3.10/site-packages
-- Configuring done
-- Generating done
-- Build files have been written to: /home/frigyes/.cache/paru/clone/arcus/src/build
[5/9] Building CXX object CMakeFiles/Arcus.dir/src/Socket.cpp.o
In file included from /home/frigyes/.cache/paru/clone/arcus/src/libArcus-5.0.0/src/Socket.cpp:20:
/home/frigyes/.cache/paru/clone/arcus/src/libArcus-5.0.0/src/Socket_p.h: In member function 'void Arcus::Socket::Private::sendMessage(const Arcus::MessagePtr&)':
/home/frigyes/.cache/paru/clone/arcus/src/libArcus-5.0.0/src/Socket_p.h:365:50: warning: 'int google::protobuf::MessageLite::ByteSize() const' is deprecated: Please use ByteSizeLong() instead [-Wdeprecated-declarations]
  365 |         uint32_t message_size = message->ByteSize();
      |                                 ~~~~~~~~~~~~~~~~~^~
In file included from /usr/include/google/protobuf/generated_enum_util.h:38,
                 from /usr/include/google/protobuf/generated_enum_reflection.h:47,
                 from /usr/include/google/protobuf/generated_message_reflection.h:46,
                 from /usr/include/google/protobuf/message.h:124,
                 from /home/frigyes/.cache/paru/clone/arcus/src/libArcus-5.0.0/src/Socket_p.h:41:
/usr/include/google/protobuf/message_lite.h:381:7: note: declared here
  381 |   int ByteSize() const { return internal::ToIntSize(ByteSizeLong()); }
      |       ^~~~~~~~
[9/9] Linking CXX shared library pyArcus.so
FAILED: pyArcus.so 
: && /usr/bin/c++ -fPIC -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/home/frigyes/.cache/paru/clone/arcus/src=/usr/src/debug -flto=auto -fno-fat-lto-objects  -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -shared -Wl,-soname,pyArcus.so -o pyArcus.so CMakeFiles/sip_pyArcus.dir/python/PythonMessage.cpp.o  -Wl,-rpath,/home/frigyes/.cache/paru/clone/arcus/src/build::::::::::::  libArcus.so.5.0.0  /usr/lib/libprotobuf.so  /usr/lib/libpython3.10.so && cd /home/frigyes/.cache/paru/clone/arcus/src/build && /usr/bin/cmake -E env PYTHONPATH=::/home/frigyes/.cache/paru/clone/arcus/src/build /Scripts/sip-build --pep484-pyi --no-protected-is-public && /usr/bin/cmake -E touch /home/frigyes/.cache/paru/clone/arcus/src/build/pyArcus/pyArcus/sippyArcuspart0.cpp
No such file or directory
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'arcus-5.0.0-2': 
error: packages failed to build: arcus-5.0.0-2
jellespijker commented 2 years ago

If you want to build Arcus as part of Cura, please follow the instructions provided by the wiki: https://github.com/Ultimaker/Cura/wiki/Running-Cura-from-Source

If you want to develope Arcus standalone keep in mind that we now us Conan to manage our dependencies and at a first glance it seems that you do not. The readme should contain the new instructions.

Does this answer your issue?

jellespijker commented 2 years ago

It also seems that you are using sip 4.x Which is an indication that you're not using the latest build scripts. Since the python module has been moved to it's own repository: https://GitHub.com/Ultimaker/pyArcus

And we now require SIP 6.5 or higher

Please pull in the latest main branch.

Frigyes06 commented 2 years ago

I am trying to update my Aur package, but it isn't working. The Aur points here.

jellespijker commented 2 years ago

The AUR isn't maintained by us, you would have to add a comment there.

We do provide AppImages for our Linux users. I will close this issue for the above-mentioned reason.

@MariMakes fyi