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

Incompatibility Issue with gcc-multilib on ARM Architecture (M1 Mac) #4163

Open
feyruzb opened this issue Feb 5, 2024 · 2 comments
Open
Assignees
Labels
analyzer 📈 Related to the analyze commands (analysis driver) dev env ⛑️ Development environment documentation 📖 Changes to documentation. platform-macOS 🍎

Comments

@feyruzb
Copy link
Contributor

feyruzb commented Feb 5, 2024

Describe the bug
Encountering compatibility issues with gcc-multilib on ARM architecture (M1 Mac) within a virtualized Ubuntu environment.

CodeChecker version
CodeChecker analyzer version: 6.23.1
CodeChecker web version: 6.23.1
Git tag information: 6.23.1

To Reproduce
Steps to reproduce the behavior:

1)Setup an Ubuntu virtual machine on an M1 Mac.
2)Attempt to install gcc-multilib using "sudo apt-get install gcc-multilib".
3)Encounter error: "Package 'gcc-multilib' has no installation candidate".

or

1)On an ARM-based system, attempt to install development tools with: sudo apt-get install clang clang-tidy cppcheck g++ build-essential curl gcc-multilib git python3-dev python3-venv python3-setuptools.
2)Notice the failure specifically for gcc-multilib with an error: "gcc-multilib: command not found".

Expected behaviour
Expected gcc-multilib to install successfully, or require guidance on alternative approaches for ARM architecture.

Desktop (please complete the following information)

  • OS: [linux]
  • Browser: [firefox]
  • Version: [115.5.0esr(64-bit)]

Additional context
This issue arises during the installation of gcc-multilib on ARM-based systems, like the M1 Mac

@whisperity whisperity added dev env ⛑️ Development environment documentation 📖 Changes to documentation. analyzer 📈 Related to the analyze commands (analysis driver) platform-macOS 🍎 labels Feb 6, 2024
@bruntib
Copy link
Contributor

bruntib commented Feb 20, 2024

gcc-multilib package is required for the logger module in CodeChecker, so the logger tool compiles to 32bit platforms too. I believe, this 32bit platform support will not be needed in your environment and you can turn this off during the installation process as it's mentioned in the "Notes" section of this documentation: https://github.com/Ericsson/codechecker?tab=readme-ov-file#linux. Could you try building CodeChecker with this command?
BUILD_LOGGER_64_BIT_ONLY=YES make package

@feyruzb
Copy link
Contributor Author

feyruzb commented Mar 11, 2024

Neither setting BUILD_LOGGER_64_BIT_ONLY nor using BUILD_LOGGER_64_BIT_ONLY=YES in the 'make package' command resolves the issue. However, Mr. Gabor's omit_logger patch effectively fixes it.
omit_logger.patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer 📈 Related to the analyze commands (analysis driver) dev env ⛑️ Development environment documentation 📖 Changes to documentation. platform-macOS 🍎
Projects
None yet
Development

No branches or pull requests

4 participants