All of lore.kernel.org
 help / color / mirror / Atom feed
* openjdk-7 and gcc v5
@ 2015-10-29 23:00 Bruce, Henry
  2015-10-30  0:43 ` Khem Raj
  0 siblings, 1 reply; 6+ messages in thread
From: Bruce, Henry @ 2015-10-29 23:00 UTC (permalink / raw)
  To: openembedded-devel@lists.openembedded.org

Many thanks to contributors who fixed openjdk build issues introduced by gcc v5 and for maintainers for pushing the updates.
However one problem remains: openjdk build fails in openjdk/jdk/make/java/nio due to -static compiler flag being used in conjunction with -pthread giving error
/usr/bin/ld: cannot find -lpthread
/usr/bin/ld: cannot find -lc

I fixed this by removing -static flag from Makefile. Not sure of this was the right thing to do (so I didn't submit patch) but it worked for me. 
I added the following to the an openjdk bbappend and it fixed the build and resulting jre is running OK.

do_configure_append() {
	gcc -v 2>&1 | grep 5\..
	if [ "$?" == "0" ]; then
		sed -i s/-static// ${B}/openjdk/jdk/make/java/nio/Makefile
	fi
}

Regards,

Henry Bruce



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-12-15 10:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-29 23:00 openjdk-7 and gcc v5 Bruce, Henry
2015-10-30  0:43 ` Khem Raj
2015-11-03 18:18   ` Bruce, Henry
2015-11-03 19:32     ` Khem Raj
2015-11-05 19:21       ` Bruce, Henry
2015-12-15 10:06         ` Huang, Jie (Jackie)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.