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

Build error with Linux #24

Open
ferrim opened this issue Jan 21, 2025 · 6 comments
Open

Build error with Linux #24

ferrim opened this issue Jan 21, 2025 · 6 comments

Comments

@ferrim
Copy link

ferrim commented Jan 21, 2025

My dream of coming to the Eclipse 4diac Winter School has vanished so I have tried 4diac-fbe and I am defeated.
On Linux I get this error:

...

Installing libressl...

-- Install configuration: "Debug"
-- Installing: /home/ferrim/4diac-fbe/build/debug/lib/pkgconfig
-- Installing: /home/ferrim/4diac-fbe/build/debug/lib/pkgconfig/libcrypto.pc
-- Installing: /home/ferrim/4diac-fbe/build/debug/lib/pkgconfig/libssl.pc
-- Installing: /home/ferrim/4diac-fbe/build/debug/lib/pkgconfig/libtls.pc
-- Installing: /home/ferrim/4diac-fbe/build/debug/lib/pkgconfig/openssl.pc
-- Installing: /home/ferrim/4diac-fbe/build/debug/etc/ssl/cert.pem
-- Installing: /home/ferrim/4diac-fbe/build/debug/etc/ssl/openssl.cnf
-- Installing: /home/ferrim/4diac-fbe/build/debug/etc/ssl/x509v3.cnf
-- Installing: /home/ferrim/4diac-fbe/build/debug/etc/ssl/certs
-- Installing: /home/ferrim/4diac-fbe/build/debug/lib/libcrypto.a
-- Installing: /home/ferrim/4diac-fbe/build/debug/lib/libssl.a
-- Installing: /home/ferrim/4diac-fbe/build/debug/bin/ocspcheck
-- Installing: /home/ferrim/4diac-fbe/build/debug/share/man/man8/ocspcheck.8
-- Installing: /home/ferrim/4diac-fbe/build/debug/bin/openssl
-- Installing: /home/ferrim/4diac-fbe/build/debug/share/man/man1/openssl.1
-- Installing: /home/ferrim/4diac-fbe/build/debug/lib/libtls.a
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/.
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./tls.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/aes.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/asn1.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/asn1t.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/bio.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/blowfish.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/bn.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/buffer.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/camellia.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/cast.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/chacha.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/cmac.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/cms.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/comp.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/conf.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/conf_api.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/crypto.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/ct.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/curve25519.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/des.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/dh.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/dsa.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/dso.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/dtls1.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/ec.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/ecdh.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/ecdsa.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/engine.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/err.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/evp.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/gost.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/hkdf.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/hmac.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/idea.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/kdf.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/lhash.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/md4.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/md5.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/modes.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/obj_mac.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/objects.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/ocsp.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/opensslconf.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/opensslfeatures.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/opensslv.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/ossl_typ.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/pem.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/pem2.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/pkcs12.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/pkcs7.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/poly1305.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/rand.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/rc2.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/rc4.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/ripemd.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/rsa.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/sha.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/safestack.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/sm3.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/sm4.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/srtp.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/ssl.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/ssl2.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/ssl23.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/ssl3.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/stack.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/tls1.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/ts.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/txt_db.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/ui.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/ui_compat.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/whrlpool.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/x509.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/x509_verify.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/x509_vfy.h
-- Installing: /home/ferrim/4diac-fbe/build/debug/include/./openssl/x509v3.h

Building paho.mqtt.c...

Extracting v1.3.6.tar.gz...

Entering '/home/ferrim/4diac-fbe/build/debug/cget/build/paho.mqtt.c/build', source dir '/home/ferrim/4diac-fbe/build/debug/cget/build/paho.mqtt.c/src'

CMake Warning (dev) in CMakeLists.txt:
No project() command is present. The top-level CMakeLists.txt file must
contain a literal, direct call to the project() command. Add a line of
code such as

project(ProjectName)

near the top of the file, but after cmake_minimum_required().

CMake is pretending there is a "project(Project)" command on the first
line.
This warning is for project developers. Use -Wno-dev to suppress it.

-- The C compiler identification is GNU 13.2.0
-- The CXX compiler identification is GNU 13.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/ferrim/4diac-fbe/toolchains/x86_64-linux-musl/bin/x86_64-linux-musl-gcc - 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: /home/ferrim/4diac-fbe/toolchains/x86_64-linux-musl/bin/x86_64-linux-musl-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Deprecation Warning at CMakeLists.txt:15 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.

Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.

-- CMake version: 3.25.2
-- CMake system name: Linux
-- Timestamp is 1970-01-01T00:00:00Z
CMake Error at /home/ferrim/4diac-fbe/toolchains/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:411 (message):
Unknown keywords given to FIND_PACKAGE_HANDLE_STANDARD_ARGS(): " rpm
-qp[ildc] PACKAGE.rpm

  Manipulate RPM packages
  
  Commands:
  	-i	Install package
  	-qp	Query package
  	-qpi	Show information
  	-qpl	List contents
  	-qpd	List documents
  	-qpc	List config files
  /usr/bin/pkg-config: line 8: /usr/bin/-pkg-config: No such file or directory
  result: 

127"
Call Stack (most recent call first):
/home/ferrim/4diac-fbe/toolchains/share/cmake-3.25/Modules/FindPkgConfig.cmake:99 (find_package_handle_standard_args)
/home/ferrim/4diac-fbe/toolchains/share/cmake-3.25/Modules/FindOpenSSL.cmake:149 (find_package)
src/CMakeLists.txt:190 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/ferrim/4diac-fbe/build/debug/cget/build/paho.mqtt.c/build/CMakeFiles/CMakeOutput.log".

/home/ferrim/4diac-fbe/toolchains/etc/cget/cget.sh: Exiting with exit status 1 due to error
./compile.sh: Dependencies of configuration 'debug' failed
./compile.sh: Exiting due to error

Any suggestions?
Thanks

@jwalt
Copy link
Contributor

jwalt commented Jan 22, 2025

Can you tell me more about your system? What Linux distribution (including version) do you use? What command(s) did you use to acquire 4diac-fbe?

@ferrim
Copy link
Author

ferrim commented Jan 22, 2025

Thank you Jörg,
my distribution is Fedora 41 Cinnamon kernel 6.12.9-200.fc41.x86_64 #1 SMP PREEMPT_DYNAMIC and I use this command:

git clone https://github.com/eclipse-4diac/4diac-fbe -b release --recurse-submodules

I try the -b develop but same error

HTH

@jwalt
Copy link
Contributor

jwalt commented Jan 29, 2025

Hmm okay, seems like cmake picks up something from your fedora environment which I can't check since I don't have access to any RPM-based distribution. I have an idea for a temporary workaround, can you try adding the following line to configurations/debug.txt (or any other build config you are trying to build):

PKG_CONFIG_EXECUTABLE=/bin/false

@jwalt jwalt closed this as completed Jan 29, 2025
@jwalt jwalt reopened this Jan 29, 2025
@ferrim
Copy link
Author

ferrim commented Jan 29, 2025

Hello Jörg,
I tried the workaround "on the fly" on my Fedora distro and it seems to work.
In the meantime I also tried 4diac-fbe on a virtual machine with Ubuntu 24.04.1 and it works so I'm really satisfied and thanks to the whole team for your extraordinary work.

@ferrim ferrim closed this as completed Jan 29, 2025
@jwalt jwalt reopened this Jan 30, 2025
@jwalt
Copy link
Contributor

jwalt commented Jan 30, 2025

Ok, great. I leave this open so I can implement a proper fix in a future release. Until then the workaround should have no downsides.

@ferrim
Copy link
Author

ferrim commented Jan 30, 2025

Wow, wonderful!

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