Bug 177655
| Summary: | Java fails. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | David Woodhouse <dwmw2> | ||||
| Component: | gcc | Assignee: | Jakub Jelinek <jakub> | ||||
| Status: | CLOSED RAWHIDE | QA Contact: | |||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | rawhide | CC: | aph, caolanm, overholt, tromey | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | powerpc | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | 4.1.0-0.15 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2006-01-18 08:05:00 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
David Woodhouse
2006-01-12 18:09:49 UTC
A fresh install, i.e. one without a ~/.openoffice.org2.0 I assume. Can you move ~/.openoffice.org2.0 out of the way and verify that without a ~/.openoffice.org2.0 and running openoffice.org that this problem exists. I'm ok under ix86 so there may be some libgcj ppc related cock-up here, in which case I'll have to put together a simple dlopen libgcj and call java_vm yadda yadda to test the ppc libgcj Yes, it was a clean install with an empty home directory. Created attachment 123153 [details]
g++ java.cxx -lgcj ; ./a.out
[root@net2-102 javatest]# ./a.out ./a.out: error while loading shared libraries: /usr/lib/libgcj.so.7: R_PPC_REL24 relocation at 0xf791e420 for symbol `__ashldi3' out of range This looks rather like libgcj has been built without -fPIC. I don't know what might have caused that. I will have a look if anyone wants me to, but you'll have to provide a box. There are 2 text relocations on ppc32:
01136420 006aae0a R_PPC_REL24 00000000 __ashldi3 + 0
01136648 0069420a R_PPC_REL24 00000000 __lshrdi3 + 0
both from libffi:
01136060 T ffi_prep_args_SYSV
01136310 T ffi_call_SYSV
01136430 T ffi_closure_SYSV
01136660 T GC_hblk_fl_from_blocks
Apparently a result of buggy FreeBSD libffi patch:
2005-07-19 Andreas Tobler <a.tobler>
* Makefile.am (nodist_libffi_la_SOURCES): Add POWERPC_FREEBSD.
* Makefile.in: Regenerate.
* include/Makefile.in: Likewise.
* testsuite/Makefile.in: Likewise.
* configure.ac: Add POWERPC_FREEBSD rules.
* configure: Regenerate.
* src/powerpc/ffitarget.h: Add POWERPC_FREEBSD rules.
(FFI_SYSV_TYPE_SMALL_STRUCT): Define.
* src/powerpc/ffi.c: Add flags to handle small structure returns
in ffi_call_SYSV.
Will fix tomorrow.
(ffi_prep_cif_machdep): Handle small structures for SYSV 4 ABI.
Aka FFI_SYSV.
(ffi_closure_helper_SYSV): Likewise.
* src/powerpc/ppc_closure.S: Add return types for small structures.
* src/powerpc/sysv.S: Add bits to handle small structures for
final SYSV 4 ABI.
Should be fixed in libgcj-4.1.0-0.15 in rawhide. (In reply to comment #8) > Should be fixed in libgcj-4.1.0-0.15 in rawhide. Things (ex. /usr/bin/gij) work for me on ppc again. Thanks! |