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

added riscv fixes #2

Open
wants to merge 10 commits into
base: flatcar-4012
Choose a base branch
from
Open

added riscv fixes #2

wants to merge 10 commits into from

Conversation

ader1990
Copy link
Owner

No description provided.

fi
rust_targets="${rust_targets#,}"
echo $rust_targets
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not needed anymore

@@ -387,8 +388,8 @@ src_configure() {
enable-warnings = false
[llvm.build-config]
CMAKE_VERBOSE_MAKEFILE = "ON"
CMAKE_C_FLAGS_${cm_btype} = "${CFLAGS}"
CMAKE_CXX_FLAGS_${cm_btype} = "${CXXFLAGS}"
CMAKE_C_FLAGS_${cm_btype} = "-O2 -pipe"
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these have to stay until rust gets properly built using the portage-stable build file, to avoid these hacks

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CXXFLAGS and CFLAGS inherit the mtune=generic flag, which is not supported on the cross building for riscv64 arch

@@ -510,6 +511,26 @@ src_configure() {
linker = "${S}/cc.sh"
ar = "aarch64-cros-linux-gnu-ar"
EOF
cat <<- 'EOF' > "${S}/cc-riscv.sh"
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to make sense of a better approach here

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These two commands were also needed, as the rustc has a hardcoded value to the ar and compiler.

sudo ln -sf /usr/x86_64-pc-linux-gnu/riscv64-cros-linux-gnu/gcc-bin/13/riscv64-cros-linux-gnu-gcc /usr/bin/riscv64-sudo ln -sf /usr/libexec/gcc/riscv64-cros-linux-gnu/ar /usr/bin/riscv64-linux-gnu-ar

@@ -1,3 +1,3 @@
# Enable optimizations for common x86_64 CPUs
CFLAGS="-O2 -pipe -mtune=generic"
CFLAGS="-O2 -pipe"
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

@ader1990
Copy link
Owner Author

Current status, when running build_packages:


!!! All ebuilds that could satisfy ">=app-eselect/eselect-pinentry-0.7.4" have been masked.
!!! One of the following masked packages is required to complete your request:
- app-eselect/eselect-pinentry-0.7.4::portage-stable (masked by: ~amd64 keyword)

(dependency required by "app-crypt/pinentry-1.3.0-r2::portage-stable" [ebuild])
(dependency required by "app-crypt/gnupg-2.4.5::portage-stable" [ebuild])
(dependency required by "app-crypt/gpgme-1.23.2::portage-stable" [ebuild])
(dependency required by "app-containers/podman-5.0.2::portage-stable" [ebuild])
(dependency required by "coreos-devel/board-packages-0.0.1-r14::coreos" [ebuild])
(dependency required by "coreos-devel/board-packages" [argument])
For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.

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

Successfully merging this pull request may close these issues.

1 participant