Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 909452 - dev-java/openjdk-17.0.7_p7 fails to Emerge on Risc-V Hardware
Summary: dev-java/openjdk-17.0.7_p7 fails to Emerge on Risc-V Hardware
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: riscv Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-01 18:02 UTC by Andrew Cameron
Modified: 2023-07-01 20:52 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Environment (environment,158.66 KB, text/plain)
2023-07-01 18:03 UTC, Andrew Cameron
Details
Info log (info.txt,8.05 KB, text/plain)
2023-07-01 18:03 UTC, Andrew Cameron
Details
pqv log (pqv.txt,404 bytes, text/plain)
2023-07-01 18:04 UTC, Andrew Cameron
Details
Build Log (build.log.gz,64.31 KB, application/gzip)
2023-07-01 18:06 UTC, Andrew Cameron
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Cameron 2023-07-01 18:02:31 UTC
printf "\n=== Output from failing command(s) repeated here ===\n" 

=== Output from failing command(s) repeated here ===
printf "* For target hotspot_variant-server_libjvm_objs_attachListener_linux.o:\n" 
* For target hotspot_variant-server_libjvm_objs_attachListener_linux.o:
(/usr/bin/grep -v -e "^Note: including file:" <  /var/tmp/portage/dev-java/openjdk-17.0.7_p7/work/jdk17u-jdk-17.0.7-ga/build/linux-riscv64-server-release/make-support/failure-logs/hotspot_variant-server_libjvm_objs_attachListener_linux.o.log || true) | /usr/bin/head -n 15 
/var/tmp/portage/dev-java/openjdk-17.0.7_p7/work/jdk17u-jdk-17.0.7-ga/src/hotspot/os_cpu/linux_riscv/orderAccess_linux_riscv.hpp: Assembler messages:
/var/tmp/portage/dev-java/openjdk-17.0.7_p7/work/jdk17u-jdk-17.0.7-ga/src/hotspot/os_cpu/linux_riscv/orderAccess_linux_riscv.hpp:57: Error: unrecognized opcode `fence.i', extension `zifencei' required
/var/tmp/portage/dev-java/openjdk-17.0.7_p7/work/jdk17u-jdk-17.0.7-ga/src/hotspot/os_cpu/linux_riscv/orderAccess_linux_riscv.hpp:57: Error: unrecognized opcode `fence.i', extension `zifencei' required
/var/tmp/portage/dev-java/openjdk-17.0.7_p7/work/jdk17u-jdk-17.0.7-ga/src/hotspot/os_cpu/linux_riscv/orderAccess_linux_riscv.hpp:57: Error: unrecognized opcode `fence.i', extension `zifencei' required
/var/tmp/portage/dev-java/openjdk-17.0.7_p7/work/jdk17u-jdk-17.0.7-ga/src/hotspot/os_cpu/linux_riscv/orderAccess_linux_riscv.hpp:57: Error: unrecognized opcode `fence.i', extension `zifencei' required
if test `/usr/bin/wc -l < /var/tmp/portage/dev-java/openjdk-17.0.7_p7/work/jdk17u-jdk-17.0.7-ga/build/linux-riscv64-server-release/make-support/failure-logs/hotspot_variant-server_libjvm_objs_attachListener_linux.o.log` -gt 15; then echo "   ... (rest of output omitted)" ; fi 
printf "\n* All command lines available in /var/tmp/portage/dev-java/openjdk-17.0.7_p7/work/jdk17u-jdk-17.0.7-ga/build/linux-riscv64-server-release/make-support/failure-logs.\n" 

* All command lines available in /var/tmp/portage/dev-java/openjdk-17.0.7_p7/work/jdk17u-jdk-17.0.7-ga/build/linux-riscv64-server-release/make-support/failure-logs.
printf "=== End of repeated output ===\n"  
=== End of repeated output ===
if /usr/bin/grep -q "recipe for target .* failed" /var/tmp/portage/dev-java/openjdk-17.0.7_p7/work/jdk17u-jdk-17.0.7-ga/build/linux-riscv64-server-release/build.log 2> /dev/null; then printf "\n=== Make failed targets repeated here ===\n" ; /usr/bin/grep "recipe for target .* failed" /var/tmp/portage/dev-java/openjdk-17.0.7_p7/work/jdk17u-jdk-17.0.7-ga/build/linux-riscv64-server-release/build.log ; printf "=== End of repeated output ===\n" ; printf "\nHint: Try searching the build log for the name of the first failed target.\n" ; else printf "\nNo indication of failed target found.\n" ; printf "Hint: Try searching the build log for '] Error'.\n" ; fi 

No indication of failed target found.
Hint: Try searching the build log for '] Error'.
printf "Hint: See doc/building.html#troubleshooting for assistance.\n\n"
Hint: See doc/building.html#troubleshooting for assistance.
Comment 1 Andrew Cameron 2023-07-01 18:03:19 UTC
Created attachment 864980 [details]
Environment
Comment 2 Andrew Cameron 2023-07-01 18:03:57 UTC
Created attachment 864981 [details]
Info log
Comment 3 Andrew Cameron 2023-07-01 18:04:38 UTC
Created attachment 864982 [details]
pqv log
Comment 4 Andrew Cameron 2023-07-01 18:06:13 UTC
Created attachment 864983 [details]
Build Log
Comment 5 Andrew Cameron 2023-07-01 18:29:23 UTC
I am going to change my  -march to -march=rv64imafdc_zicsr_zba_zbb_zifencei 
to see if it will compile then
Comment 6 Andrew Cameron 2023-07-01 20:52:39 UTC
Changing  -march to -march=rv64imafdc_zicsr_zba_zbb_zifencei resulted in it compiling successfully