Re: [gentoo-user] openjdk 17 on 32 bit systems

2024-05-18 Thread Matthias Hanft
netfab wrote:
> 
> You should open a bug

[X] Done: https://bugs.gentoo.org/932157

Thank you for your help!

-Matt



Re: [gentoo-user] openjdk 17 on 32 bit systems

2024-05-18 Thread netfab



You should open a bug. '-Wl,-z,notext' flag may be needed to be added
somewhere in the build system. From man ld :
> text
> notext
> textoff
>  Report an error if DT_TEXTREL is set, i.e., if the
>  position-independent or shared object has dynamic
>  relocations in read-only sections.
>  Don’t report an error if notext or textoff.

There have been relatively recent examples of patches being added in
portage for this kind of errors, see for example :
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=91c36206566e9aebaa0d374752188acca1e49190





Re: [gentoo-user] openjdk 17 on 32 bit systems

2024-05-18 Thread Matthias Hanft
netfab wrote:
> 
> Can you post the entire build log somewhere (or maybe as attachment) ?

I have put it at https://download.hanft.de/build.log

-Matt



Re: [gentoo-user] openjdk 17 on 32 bit systems

2024-05-18 Thread netfab
Le 18/05/24 à 09:58, Matthias Hanft a tapoté :
> netfab schrieb:
> > 
> > Is this up-to-date ? What is your version of sys-devel/binutils ?
> 
> Yes, everything else is up-to-date:
> 

Can you post the entire build log somewhere (or maybe as attachment) ?





Re: [gentoo-user] openjdk 17 on 32 bit systems

2024-05-18 Thread Matthias Hanft
netfab schrieb:
> 
> Is this up-to-date ? What is your version of sys-devel/binutils ?

Yes, everything else is up-to-date:

gentoo ~ # uname -a
Linux gentoo 6.6.21-gentoo #3 SMP PREEMPT_DYNAMIC Sat May  4 19:18:38 CEST 2024 
i686 Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz GenuineIntel GNU/Linux
gentoo ~ # eshowkw binutils
Keywords for sys-devel/binutils:
  |   |   u  |
  | a   a p s l r   a |   n  |
  | m   r h   p p   i o i s l m m | e u s| r
  | d a m p p c a x a o s 3 p 6 i | a s l| e
  | 6 r 6 p p 6 r 8 6 n c 9 h 8 p | p e o| p
  | 4 m 4 a c 4 c 6 4 g v 0 a k s | i d t| o
--+---+--+---
[...]
--+---+--+---
   [I]2.42-r1 | + ~ ~ ~ ~ ~ ~ + ~ ~ ~ ~ ~ ~ ~ | 7 o 2.42 | gentoo
--+---+--+---
  | o o o o o o o o o o o o o o o | 7 o  | gentoo
gentoo ~ # eshowkw gcc
Keywords for sys-devel/gcc:
   |   |   u   |
   | a   a p s l r   a |   n   |
   | m   r h   p p   i o i s l m m | e u s | r
   | d a m p p c a x a o s 3 p 6 i | a s l | e
   | 6 r 6 p p 6 r 8 6 n c 9 h 8 p | p e o | p
   | 4 m 4 a c 4 c 6 4 g v 0 a k s | i d t | o
---+---+---+---
[...]
---+---+---+---
[I]13.2.1_p20240210| + + + + + + + + ~ ~ ~ ~ ~ ~ ~ | 8 o 13| gentoo
   13.2.1_p20240503| ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ | 8 o   | gentoo
   13.2.1_p20240510| o o o o o o o o o o o o o o o | 8 #   | gentoo
  13.3.| o o o o o o o o o o o o o o o | 8 o   | gentoo
---+---+---+---
gentoo ~ # eshowkw glibc
Keywords for sys-libs/glibc:
|   |   u |
| a   a p s l r   a |   n |
| m   r h   p p   i o i s l m m | e u s   | r
| d a m p p c a x a o s 3 p 6 i | a s l   | e
| 6 r 6 p p 6 r 8 6 n c 9 h 8 p | p e o   | p
| 4 m 4 a c 4 c 6 4 g v 0 a k s | i d t   | o
+---+-+---
[...]
[I]2.38-r13 | + + + + + + + + ~ ~ ~ ~ ~ ~ ~ | 8 o | gentoo
   2.39-r4  | ~ ~ ~ ~ ~ ~ ~ ~ - ~ ~ ~ ~ ~ ~ | 8 # | gentoo
   2.39-r5  | ~ ~ ~ ~ ~ ~ ~ ~ - ~ ~ ~ ~ ~ ~ | 8 o | gentoo
   2.39-r6  | o o o o o o o o o o o o o o o | 8 # | gentoo
    | o o o o o o o o o o o o o o o | 8 o | gentoo

-Matt



Re: [gentoo-user] openjdk 17 on 32 bit systems

2024-05-18 Thread netfab
Hi,

Le 18/05/24 à 09:31, Matthias Hanft a tapoté :
> I'm keeping a (virtual) pretty old 32-bit Gentoo alive [...]

Is this up-to-date ? What is your version of sys-devel/binutils ?





[gentoo-user] openjdk 17 on 32 bit systems

2024-05-18 Thread Matthias Hanft
Hi,

I'm keeping a (virtual) pretty old 32-bit Gentoo alive (just for playing
and testing).  Everything works fine - except installing a JRE in order
to execute some .jar files.

openjdk-jre-bin and openjdk-bin aren't available for x86, so I guess I
have to install openjdk (stable 17.0.10_p7).  But that doesn't work:

--- cut here ---

[...]
/usr/lib/gcc/i686-pc-linux-gnu/13/../../../../i686-pc-linux-gnu/bin/ld:
/var/tmp/portage/dev-java/openjdk-17.0.10_p7/work/jdk17u-jdk-17.0.10-ga/build/linux-x86-server-release/hotspot/variant-server/libjvm/objs/adaptiveSizePolicy.o:
 warning: relocation in read-only section
`.text'
/usr/lib/gcc/i686-pc-linux-gnu/13/../../../../i686-pc-linux-gnu/bin/ld: 
read-only segment has dynamic relocations
collect2: error: ld returned 1 exit status
gmake[3]: *** [lib/CompileJvm.gmk:144: 
/var/tmp/portage/dev-java/openjdk-17.0.10_p7/work/jdk17u-jdk-17.0.10-ga/build/linux-x86-server-release/support/modules_libs/java.base/server/libjvm.so]
 Error 1
gmake[3]: Leaving directory 
'/var/tmp/portage/dev-java/openjdk-17.0.10_p7/work/jdk17u-jdk-17.0.10-ga/make/hotspot'
gmake[2]: *** [make/Main.gmk:252: hotspot-server-libs] Error 2
gmake[2]: Leaving directory 
'/var/tmp/portage/dev-java/openjdk-17.0.10_p7/work/jdk17u-jdk-17.0.10-ga'
ERROR: Build failed for target 'bootcycle-images' in configuration 
'linux-x86-server-release' (exit code 2)

--- cut here ---

I have already played with CFLAGS (-Wno-error) and USE flags (headless-awt
and jbootstrap), but to no avail.

Any hints how to get this working?

Thanks,

-Matt