Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 101369 - swt fails to compile on amd64, can't find /opt/sun-jdk-1.4.2.08/jre/lib/amd64
Summary: swt fails to compile on amd64, can't find /opt/sun-jdk-1.4.2.08/jre/lib/amd64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-04 11:49 UTC by Joshua
Modified: 2005-08-04 23:40 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 Joshua 2005-08-04 11:49:14 UTC
"emerge -av swt" fails.  I think this is because, for some reason, the sun-jdk
ebuild asks for the file j2sdk-1_4_2_08-linux-i586.bin instead of
j2sdk-1_4_2_08-linux-ia64.bin, so there is no /opt/sun-jdk-1.4.2.08/jre/lib/amd64.

Reproducible: Always
Steps to Reproduce:
1.emerge -av swf
2.
3.




>>> emerge (1 of 1) dev-java/swt-3.1 to /
>>> md5 files   ;-) swt-3.1.ebuild
>>> md5 files   ;-) files/build-3.1_pre7.xml
>>> md5 files   ;-) files/SWTMessages.properties
>>> md5 files   ;-) files/build.xml
>>> md5 files   ;-) files/cairo.patch
>>> md5 files   ;-) files/build-3.1.xml
>>> md5 files   ;-) files/digest-swt-3.1
>>> md5 src_uri ;-) swt-3.1-gtk-linux-x86_64.zip
>>> Unpacking source...
>>> Unpacking swt-3.1-gtk-linux-x86_64.zip to /var/tmp/portage/swt-3.1/work
Unpacking src.zip to /var/tmp/portage/swt-3.1/work
>>> Source unpacked.
Building AWT library
cc -O -Wall -DSWT_VERSION=3138  -DLINUX -DGTK -I/opt/sun-jdk-1.4.2.08/include
-I/opt/sun-jdk-1.4.2.08/include/linux -fpic -DSWT_PTR_SIZE_64   -c -o swt_awt.o
swt_awt.c
ld -L/opt/sun-jdk-1.4.2.08/jre/lib/amd64 -ljawt -shared -s -o
libswt-awt-gtk-3138.so swt_awt.o
ld: cannot find -ljawt
make: *** [libswt-awt-gtk-3138.so] Error 1

!!! ERROR: dev-java/swt-3.1 failed.
!!! Function src_compile, Line 101, Exitcode 2
!!! Failed to build AWT support
!!! If you need support, post the topmost build error, NOT this status message.
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-08-04 11:55:58 UTC
I can't see sun-jdk-1.4.2.08 marked for amd64 at all.. and btw ia64 has 
nothing to do with amd64. 
 
You probably added ~x86 to package.keywords for that ebuild or to make.conf? 
 
In such a case you're on your own. 
 
Comment 2 Joshua 2005-08-04 12:22:06 UTC
Bugger, sorry, I'm retarded, C&Ping blindly.  There is no amd64 JDK, thanks.

I don't have ~x86 anywhere, but I do have x86 (no ~) in make.conf; would that be
the problem?

Comment 3 Joshua 2005-08-04 13:17:39 UTC
Using blackdown-jdk instead of sun-jdk allows it to compile.
Comment 4 Petteri Räty (RETIRED) gentoo-dev 2005-08-04 23:33:50 UTC
(In reply to comment #2)
> Bugger, sorry, I'm retarded, C&Ping blindly.  There is no amd64 JDK, thanks.
> 
> I don't have ~x86 anywhere, but I do have x86 (no ~) in make.conf; would that be
> the problem?
> 

If you are on a amd64 profile, I think that is a huge problem.


Comment 5 Petteri Räty (RETIRED) gentoo-dev 2005-08-04 23:40:45 UTC
Sorry. Forgot to add that posting emerge info greatly helps in these kinds of
situations because we can easily see information about your system instead of
guessing.