Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dev-java/icedtea-7.2.6.5-r1 compile error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
grant123
l33t
l33t


Joined: 23 Mar 2005
Posts: 989

PostPosted: Thu Apr 14, 2016 4:55 pm    Post subject: dev-java/icedtea-7.2.6.5-r1 compile error Reply with quote

Code:
checking whether jar supports @<file> argument... ./configure: line 10518: 28991 Killed                  $JAR cf _config.jar @_config.list 1>&5 2>&1
no
checking whether jar supports stdin file arguments... ./configure: line 10529: 28993 Done                    cat _config.list
     28994 Killed                  | $JAR cf@ _config.jar 1>&5 2>&1
no
checking whether jar supports -J options at the end... ./configure: line 10541: 28997 Killed                  $JAR cf _config.jar _config.txt -J-Xmx896m 1>&5 2>&1
no
checking if an rmic executable is specified... no
checking if /usr/lib64/icedtea7/bin/rmic is a valid executable file... yes
checking if a native2ascii binary was specified... no
checking if /usr/lib64/icedtea7/bin/native2ascii is a valid executable file... yes
checking if we are using CACAO as the build VM... no
checking for x86_64-pc-linux-gnu-xsltproc... no
checking for xsltproc... /usr/bin/xsltproc
checking if the VM and compiler work together... ./configure: line 10972: 29008 Killed                  $JAVAC -cp . $JAVACFLAGS -source 5 -target 5 $CLASS 1>&5 2>&1
configure: error: Compiler failed to compile Java code.


Any ideas on this one?
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7134
Location: almost Mile High in the USA

PostPosted: Thu Apr 14, 2016 10:53 pm    Post subject: Reply with quote

If you didn't kill -9 something while compiling, likely it's the kernel. See if dmesg says the OOMkiller was at play.

Also seems recently people had PaX kill programs due to bad programming...alas not sure of the details here.
Back to top
View user's profile Send private message
grant123
l33t
l33t


Joined: 23 Mar 2005
Posts: 989

PostPosted: Fri Apr 15, 2016 1:56 pm    Post subject: Reply with quote

I enabled softmode on my hardened kernel and compiled again and it failed a little differently with this being the only error:

Code:
checking if the VM and compiler work together... ./configure: line 10972: 17431 Segmentation fault      $JAVA -classpath . $BYTECODE 1>&5 2>&1
configure: error: VM failed to run compiled class.
Back to top
View user's profile Send private message
grant123
l33t
l33t


Joined: 23 Mar 2005
Posts: 989

PostPosted: Thu Nov 24, 2016 2:08 pm    Post subject: Reply with quote

I just needed to disable softmode again and run:

Code:
# paxctl -m /usr/lib64/icedtea7/bin/java
# paxctl -m /usr/lib64/icedtea7/bin/javac
# paxctl -m /usr/lib64/icedtea7/bin/jar
# paxctl -m /usr/lib64/icedtea7/bin/javah


EDIT: Nevermind, it still fails like this:

Code:
checking if a PaX kernel is in use... yes
checking if a PaX utility was specified... no
configure: error: "No PaX utility found and running on a PaX kernel."


EDIT: Now I remember. I have to reboot into a non-hardened kernel to get this to build.
Back to top
View user's profile Send private message
grant123
l33t
l33t


Joined: 23 Mar 2005
Posts: 989

PostPosted: Thu Nov 24, 2016 10:31 pm    Post subject: Reply with quote

Should I submit a bug for this?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum