Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 909452

Summary: dev-java/openjdk-17.0.7_p7 fails to Emerge on Risc-V Hardware
Product: Gentoo Linux Reporter: Andrew Cameron <apcameron>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED FIXED    
Severity: normal CC: riscv
Priority: Normal    
Version: unspecified   
Hardware: riscv   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Environment
Info log
pqv log
Build Log

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