qemu-riscv64-static: missing auxilliary variables

Bug #1942884 reported by Heinrich Schuchardt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qemu (Ubuntu)
Expired
Wishlist
Unassigned

Bug Description

Since glibc-2.33 on RISC-V the following auxilliary variables are expected, commit 15b38ffc104a ("riscv: Get cache information through sysconf")

AT_L1I_CACHESIZE
AT_L1I_CACHEGEOMETRY
AT_L1I_CACHEGEOMETRY
AT_L1D_CACHESIZE
AT_L1D_CACHEGEOMETRY
AT_L1D_CACHEGEOMETRY
AT_L2_CACHESIZE
AT_L2_CACHEGEOMETRY
AT_L2_CACHEGEOMETRY

If these do not exist, command getconf will return "undefined". Other programs rely on a numeric value for the cache line size returned by getconf. One example is the installer of package libhmsbeagle.

A definition of ARCH_DLINFO for QEMU's RISC-V emulation is needed.

Best regards

Heinrich

tags: added: fr-1682
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Hi Heinrich,
while the report seems fine to me that isn't a bug but a feature request and this one in particular isn't one that Ubuntu would usually develop/carry on its own - instead we'd usually contact upstream and integrate the solution once available.

I've checked qemu git and the issue tracker but there was no recent issue / commit that would have covered this (the closest were some changes to the init code for BSD, but not what we want) to chime in or backport.

Therefore I think the best way forward would be to report this to upstream [1] and depending when it is added there we can consider just picking it up via a merge or if we want to also backport it to some releases.

Once you reported it there let us link the issue here so that it is more easy to track.

P.S. If I misunderstood you and you have or know about a patch that achieves this then let us know and we can help driving it to upstream discussions and then the same aforementioned path from there.

[1]: https://gitlab.com/qemu-project/qemu/-/issues

Changed in qemu (Ubuntu):
status: New → Incomplete
importance: Undecided → Wishlist
Revision history for this message
Heinrich Schuchardt (xypron) wrote :

Hello Christian,

yes, I have to push a patch upstreams first before we can add it to the Ubuntu package.

Best regards

Heinrich

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for qemu (Ubuntu) because there has been no activity for 60 days.]

Changed in qemu (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.