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

Fix the -march issue for riscv64 #210

Merged
merged 1 commit into from
Apr 8, 2022
Merged

Conversation

tekkamanninja
Copy link
Contributor

There is an issue on riscv64 system when compiling it natively:
gcc: error: '-march=native': ISA string must begin with rv32 or rv64

This patch set HOST_MARCH= like ia64 to resolve the issue.

Signed-off-by: Wei Fu wefu@redhat.com

@tekkamanninja
Copy link
Contributor Author

the error message detail is
gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -std=gnu11 -funsigned-char -fvisibility=hidden -specs=/builddir/build/BUILD/efivar-38/src/include/gcc.specs -fno-merge-constants -fPIC -DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE -I/builddir/build/BUILD/efivar-38/src/include/ -DEFIVAR_BUILD_ENVIRONMENT -march=native -c -o makeguids.o makeguids.c
gcc: error: '-march=native': ISA string must begin with rv32 or rv64
make[1]: *** [/builddir/build/BUILD/efivar-38/src/include/rules.mk:56: makeguids.o] Error 1
make[1]: Leaving directory '/builddir/build/BUILD/efivar-38/src'

@tekkamanninja
Copy link
Contributor Author

Hi @frozencemetery
any suggestion for this fix ? Could you help me ?

Copy link
Member

@frozencemetery frozencemetery left a comment

Choose a reason for hiding this comment

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

Thanks for your patience.

There is an issue on riscv64 system when compiling it natively:
gcc: error: '-march=native': ISA string must begin with rv32 or rv64

This patch set HOST_MARCH= like ia64 to resolve the issue.

Signed-off-by: Wei Fu <wefu@redhat.com>
@tekkamanninja
Copy link
Contributor Author

Thanks for your patience.

Great thanks for your help :-)

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.

None yet

2 participants