Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 70475 - emerge jsch fails - line 22 of ebuild referenced
Summary: emerge jsch fails - line 22 of ebuild referenced
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-08 09:39 UTC by Jamie Saker
Modified: 2004-12-18 14:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jamie Saker 2004-11-08 09:39:50 UTC
emerge -uD world wants to build jsch, but jsch failes immediately. possibly an issue in the ebuild?

Reproducible: Always
Steps to Reproduce:
1. emerge -uD world (wants to add jsch)
2. emerge hits jsch; breaks on error detailed
3. emerge halted

Actual Results:  


core ~ # emerge -uD world
Calculating world dependencies ...done!
>>> emerge (1 of 28) dev-java/jsch-0.1.18 to /
>>> md5 src_uri ;-) jsch-0.1.18.zip
>>> Unpacking source...
>>> Unpacking jsch-0.1.18.zip to /var/tmp/portage/jsch-0.1.18/work
>>> Source unpacked.
/usr/portage/dev-java/jsch/jsch-0.1.18.ebuild: line 22: 10985 Killed           
      ant ${antflags}

!!! ERROR: dev-java/jsch-0.1.18 failed.
!!! Function src_compile, Line 26, Exitcode 137
!!! compilation failed
!!! If you need support, post the topmost build error, NOT this status message.



Expected Results:  
emerged jsch and moved on to remainder of world

line 22 of jsch ebuild refers to local antflags="dist" - not sure if there's an
error in config file or error is only reporting failure here due to it being
error handling portion of cfg. actual error (reported above) rather terse.

src_compile() {
    local antflags="dist"
    use doc && antflags="${antflags} javadoc"
    use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
    ant ${antflags} || die "compilation failed"
}



Portage 2.0.51-r3 (default-linux/x86/2004.0, gcc-3.4.2, glibc-2.3.4.20041102-r0,
2.6.7-hardened-r9 i686)
=================================================================
System uname: 2.6.7-hardened-r9 i686 AMD Duron(tm) processor
Gentoo Base System version 1.6.5
distcc 2.18 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux-headers-2.4.19-r1,sys-kernel/linux-headers-2.4.22
Libtools: sys-devel/libtool-1.5.2-r6
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe -fstack-protector -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fstack-protector -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://mirrors.tds.net/gentoo rsync://gentoo.seren.com/gentoo
ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://mirror.tucdemonic.org/gentoo/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acpi apache2 apm arts avi berkdb bitmap-fonts cdr crypt cups dba encode
esd f77 fam foomaticdb fortran gd gdbm gif gpm gtk2 hardened imlib innodb java
jpeg jpg junit kde kms ldap libg++ libwww mad mikmod mmx motif mpeg mysql nas
ncurses nls odbc oggvorbis opengl oss pam pdflib perl png postgres python qt
quicktime readline samba sdl slang spell ssl svga tcltk tcpd tiff truetype x86
xml2 xmms xv zlib"
Comment 1 Jan Brinkmann (RETIRED) gentoo-dev 2004-12-04 07:56:15 UTC
System uname: 2.6.7-hardened-r9 i686 AMD Duron(tm) processor

do you have grsecurity enabled? it seems that it's related to that, maybe javac which is called by ant gets killed?  i had the same problem, you have to use for example 'chpax' to disable the 'non-executable pages' feature on the java binaries.

Comment 2 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2004-12-18 14:06:10 UTC
The 2.6.7, 2.6.8-rc1 and 2.6.8-rc2 trees contain a regression which prevents java from working. Please upgrade.

Furthermore, if you run grsecurity or other hardened features, make certain you don't restrict the java JITer (it creates and executes code on the heap).

If the problem persists on a kernel free of so-called "hardened" features, please reopen the bug.