Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sun-jre-bin and gcc
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
sasq
Apprentice
Apprentice


Joined: 09 Sep 2005
Posts: 234
Location: Poland

PostPosted: Mon Jul 16, 2007 7:49 pm    Post subject: sun-jre-bin and gcc Reply with quote

Howdy.

Why sun-jre-bin-1.6.0.01-r1 package requires gcc-3.3.6-r1 as a dependency? I have gcc-4.1.1-r3 - why I have to install additionally that older version of GCC only for emerging Java, which is BINARY package, and doesn't require any compiling? :| Is it the one of that Portage's infamous bulky dependencies?
_________________
SasQ
Back to top
View user's profile Send private message
Alex_Ram
n00b
n00b


Joined: 16 Jul 2007
Posts: 1
Location: Russia

PostPosted: Mon Jul 16, 2007 10:15 pm    Post subject: Reply with quote

Try to emerge this package with --nodeps option.
Back to top
View user's profile Send private message
alistair
Retired Dev
Retired Dev


Joined: 15 Jul 2005
Posts: 869

PostPosted: Tue Jul 17, 2007 1:59 am    Post subject: Reply with quote

emerge -av libstdc++-v3

I believe this will solve your problem
_________________
______________
Help the gentoo-java project. Visit Gentoo Java Project

what good are admin powers if you don't abuse them for personal gain - mark_alec
Back to top
View user's profile Send private message
phlexx
n00b
n00b


Joined: 11 Jul 2006
Posts: 42

PostPosted: Mon Jul 23, 2007 6:47 pm    Post subject: Reply with quote

try this:

Code:
# echo "=sys-devel/gcc-3.3*" >> /etc/portage/package.mask
# emerge virtual/libstdc++


"emerge virtual/libstdc++" should now pull in sys-libs/libstdc++-v3.
Back to top
View user's profile Send private message
sasq
Apprentice
Apprentice


Joined: 09 Sep 2005
Posts: 234
Location: Poland

PostPosted: Thu Jul 26, 2007 6:07 pm    Post subject: Reply with quote

But why I need this if I only want to emerge BINARY package of sun-jre-bin? I don't want to compile the whole 24MB gcc-3.3.6-r1 package if I have already gcc-4.1.1-r3 in my system and I see some libstdc++.so too :/ [I see, but Portage doesn't ;P]. Couldn't it simply use my existing, newer libstdc++ ?? o_O

Alex_Ram wrote:
Try to emerge this package with --nodeps option.

I'll try. But won't it break my system?

EDIT: It doesn't work :/
Code:
>>> /opt/sun-jre-bin-1.6.0.02/lib/i386/client/libjsig.so -> ../libjsig.so
/usr/portage/eclass/java-vm-2.eclass: line 41: java-config-2: command not found
/usr/portage/eclass/java-vm-2.eclass: line 135: java-config-2: command not found
 *  sun-jre-bin-1.6.0.02 set as the default system-vm.
 * JREs and 1.5+ JDKs are not supported for use with generation-1.
 * This is because generation-1 is only for use for building packages.
 * Only generation-2 should be used by end-users,
 * where all JREs and JDKs will be available

 * No system nsplugin currently set.
 * Setting nsplugin to sun-jre-bin-1.6...
!!! Error: Can't load module java-nsplugin
/usr/portage/eclass/java-vm-2.eclass: line 107:   534 Unicestwiony            eselect java-nsplugin set ${extra_args} ${VMHANDLE}
 * You can change nsplugin with eselect java-nsplugin.
 * Updating desktop mime database ...

 * Some parts of Sun's JDK require  virtual/lpr to be installed.
 * Be careful which Java libraries you attempt to use.

 * Beginning with 1.5.0.10 the hotspot vm can use epoll
 * The epoll-based implementation of SelectorProvider is not selected by
 * default.
 * Use java -Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.EPollSelectorProvider
>>> Regenerating /etc/ld.so.cache...
>>> dev-java/sun-jre-bin-1.6.0.02 merged.
>>> Recording dev-java/sun-jre-bin in "world" favorites file...

>>> No packages selected for removal by clean
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.
 * GNU info directory index is up-to-date.

_________________
SasQ
Back to top
View user's profile Send private message
tryn
Guru
Guru


Joined: 21 Dec 2002
Posts: 325
Location: 39.885° N. -88.913° W.

PostPosted: Fri Jul 27, 2007 2:09 am    Post subject: Reply with quote

Maybe you can't emerge that package now. From what I can see that version is no longer in portage. Look here
I see three packages listed there and that is not one of them. The only one that I see is this one ( sun-jre-bin-1.6.0.02 ) that is listed as a ( 1.6 )

I have the version ( sun-jre-bin-1.6.0.02 ) with ( gcc 4.1.2 ) and that is the only version of ( gcc ) that I have.
Back to top
View user's profile Send private message
sasq
Apprentice
Apprentice


Joined: 09 Sep 2005
Posts: 234
Location: Poland

PostPosted: Sat Jul 28, 2007 1:47 am    Post subject: Reply with quote

After portage update:

Code:
# emerge -pvt sun-jre-bin

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[ebuild   R   ] dev-java/sun-jre-bin-1.6.0.02  USE="X alsa -nsplugin*" 0 kB
[ebuild  N    ]  virtual/libstdc++-3.3  0 kB
[ebuild  N    ]  dev-java/java-config-1.3.7  15 kB
[ebuild  N    ]  dev-java/java-config-2.0.33-r1  25 kB
[ebuild  N    ]   dev-java/java-config-wrapper-0.13  7 kB
[ebuild  N    ]    app-portage/portage-utils-0.1.28  78 kB
[ebuild  NS   ]  sys-devel/gcc-3.3.6-r1  USE="fortran gtk nls (-altivec) -bootstrap -boundschecking -build -doc -gcj (-hardened) -ip28 -ip32r10k (-multilib) -multislot (-n32) (-n64) -nocxx -nopie -nossp -objc -test -vanilla" 23,534 kB


So it still demands libstdc++-3.3 and gcc-3.3.6-r1 for me instead of my gcc-4.1.1 :-(
Strange as sh*t :-\
_________________
SasQ
Back to top
View user's profile Send private message
sasq
Apprentice
Apprentice


Joined: 09 Sep 2005
Posts: 234
Location: Poland

PostPosted: Wed Aug 01, 2007 3:59 pm    Post subject: Reply with quote

I've tried to emerge that gcc-3.3 anyway, but even then it stops me with error :cry:
I've lost the last hope to emerge that Java crap :-/

Code:
In file included from print-rtl1.c:32:
/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/flags.h:30: error: syntax error before numeric constant
make[2]: *** [print-rtl1.o] Error 1
make[2]: *** Waiting for unfinished tasks....
warning: structure `reg_info_def' used but not defined
warning: structure `die_struct' used but not defined
warning: structure `basic_block_def' used but not defined
echo timestamp > s-gtype
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/build/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/build/gcc'
make: *** [bootstrap-lean] Error 2

!!! ERROR: sys-devel/gcc-3.3.6-r1 failed.
Call stack:
  ebuild.sh, line 1621:   Called dyn_compile
  ebuild.sh, line 973:   Called qa_call 'src_compile'
  ebuild.sh, line 44:   Called src_compile
  ebuild.sh, line 1311:   Called toolchain_src_compile
  toolchain.eclass, line 26:   Called gcc_src_compile
  toolchain.eclass, line 1546:   Called gcc_do_make
  toolchain.eclass, line 1420:   Called die

!!! emake failed with bootstrap-lean
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/sys-devel/gcc-3.3.6-r1/temp/build.log'.


WTF is with that Portage nowadays?? :-/ There are more and more error-prone ebuilds than in the past...
_________________
SasQ
Back to top
View user's profile Send private message
bos_mindwarp
Apprentice
Apprentice


Joined: 19 Oct 2002
Posts: 275
Location: stockholm, sweden

PostPosted: Thu Aug 02, 2007 3:51 pm    Post subject: Reply with quote

I have this problem as well, portage is getting retarded indeed.
Back to top
View user's profile Send private message
jonnevers
Veteran
Veteran


Joined: 02 Jan 2003
Posts: 1594
Location: Gentoo64 land

PostPosted: Thu Aug 02, 2007 5:39 pm    Post subject: Reply with quote

bos_mindwarp wrote:
I have this problem as well, portage is getting retarded indeed.

then do something about it and help.

if I wanted to emerge sun-jre-bin, portage would just use my gcc 4.1 install NOT requiring gcc-3.

Code:
user host ~ $ e sun-jre-bin

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] dev-java/sun-jre-bin-1.6.0.02  USE="X alsa (-nsplugin)" 0 kB

Total: 1 package (1 new), Size of downloads: 0 kB

Code:
user host ~ $ e -C gcc sun-jdk

>>> These are the packages that would be unmerged:

 dev-java/sun-jdk
    selected: 1.6.0.02 1.5.0.12
   protected: none
     omitted: none


!!! 'sys-devel/gcc' is part of your system profile.
!!! Unmerging it may be damaging to your system.


 sys-devel/gcc
    selected: 4.1.1-r3
   protected: none
     omitted: none

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.


perhaps if you didn't call portage retarded or claim the sky is falling in regards to portage, i'd be more willing to help figure out *your* problem.

does emerge'ing sun-jdk exhibit the same behavior?
Back to top
View user's profile Send private message
sasq
Apprentice
Apprentice


Joined: 09 Sep 2005
Posts: 234
Location: Poland

PostPosted: Thu Aug 02, 2007 6:34 pm    Post subject: Reply with quote

jonnevers wrote:
if I wanted to emerge sun-jre-bin, portage would just use my gcc 4.1 install NOT requiring gcc-3.


I would like Portage do the same for me... But you have seen my output - it ignores my gcc-4.1.1 and requires gcc 3. I have done emerge --sync today and it still requires it, and throws me an error upon gcc compiling.

jonnevers wrote:
perhaps if you didn't call portage retarded or claim the sky is falling in regards to portage, i'd be more willing to help figure out *your* problem.


I would appreciate it. But if I don't know what to do, I can only complain.

jonnevers wrote:
does emerge'ing sun-jdk exhibit the same behavior?


Code:
# USE="nsplugin" emerge sun-jdk -pvt

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[ebuild  N    ] dev-java/sun-jdk-1.5.0.12  USE="X alsa nsplugin -doc -examples -jce" 48,483 kB
[ebuild  N    ]  dev-java/java-config-1.3.7  15 kB
[ebuild  N    ]  dev-java/java-config-2.0.33-r1  25 kB
[ebuild  N    ]   dev-java/java-config-wrapper-0.13  7 kB
[ebuild  N    ]    app-portage/portage-utils-0.1.28  78 kB

Total: 5 packages (5 new), Size of downloads: 48,606 kB


Seems like sun-jdk can regognize gcc 4.
_________________
SasQ
Back to top
View user's profile Send private message
Taglia
Apprentice
Apprentice


Joined: 05 Nov 2004
Posts: 244

PostPosted: Fri Aug 03, 2007 9:13 am    Post subject: Reply with quote

I have a similar problem.

If i want to install jdk 1.5.0 I get

Code:

vortexmind / # emerge -upv jdk

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] app-portage/portage-utils-0.1.28  78 kB
[ebuild  N    ] dev-java/java-config-wrapper-0.13  7 kB
[ebuild  N    ] dev-java/java-config-2.0.33-r1  25 kB
[ebuild  N    ] dev-java/java-config-1.3.7  15 kB
[ebuild  N    ] dev-java/sun-jdk-1.5.0.12  USE="X alsa -doc -examples -jce -nsplugin" 48,483 kB
[ebuild  N    ] virtual/jdk-1.5.0  0 kB

Total: 6 packages (6 new), Size of downloads: 48,606 kB


But if i wanted 1.6.0 (~x86) and act accordingly on package.keywords
Code:

virtual/jdk ~x86
dev-java/sun-jdk ~x86


I get
Code:

vortexmind / # emerge -upv sun-jdk

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  NS   ] sys-devel/gcc-3.3.6-r1  USE="fortran gtk nls (-altivec) -bootstrap -boundschecking -build -doc -gcj (-hardened) -ip28 -ip32r10k (-multilib) -multislot (-n32) (-n64) -nocxx -nopie -nossp -objc -test -vanilla" 23,534 kB
[ebuild  N    ] app-portage/portage-utils-0.1.28  78 kB
[ebuild  N    ] dev-java/java-config-wrapper-0.13  7 kB
[ebuild  N    ] virtual/libstdc++-3.3  0 kB
[ebuild  N    ] dev-java/java-config-2.0.33-r1  25 kB
[ebuild  N    ] dev-java/java-config-1.3.7  15 kB
[ebuild  N    ] dev-java/sun-jdk-1.6.0.02  USE="X alsa -doc -examples -jce -nsplugin" 57,040 kB

Total: 7 packages (6 new, 1 in new slot), Size of downloads: 80,696 kB


I think I would merge 1.5.0 for now (i need them both anyway) but I don't understand that gcc :))
_________________
Taglia
./ do NOT click ...
./ Mentecritica: Non esistono questioni di principio
Back to top
View user's profile Send private message
jonnevers
Veteran
Veteran


Joined: 02 Jan 2003
Posts: 1594
Location: Gentoo64 land

PostPosted: Fri Aug 03, 2007 1:17 pm    Post subject: Reply with quote

to the people in this thread, what portage version are you all using? what gentoo profile?

maybe this is an x86 thing, as I said before my amd64 does not exhibit this behavior.

to the poster right above this, you aren't using the *-bin package so you are going to have to be careful in the future.

java 1.6 does contain source code, though just for javac and I'm not 100% it is recompilable in the 1.6 deliverable but perhaps it is and this is what is bringing the the gcc-3 (though I highly doubt it).

but once 1.7 becomes the standard, things like compiling the Sun JVM at emerge time won't be so foreign.

@Taglia: please provide a 'emerge -tpv sun-jdk' as I don't see anything in that emerge list that would require gcc, something else is pinging it.

there is this section of sun-jdk-1.6.0.02.ebuild, that contains a reference to gcc:
Code:
    if use nsplugin; then
        local plugin_dir="ns7-gcc29"
        if has_version '>=sys-devel/gcc-3' ; then
            plugin_dir="ns7"
        fi

        if use x86 ; then
            install_mozilla_plugin /opt/${P}/jre/plugin/i386/$plugin_dir/libjavaplugin_oji.so
        else
            eerror "No plugin available for amd64 arch"
        fi
    fi
Back to top
View user's profile Send private message
sasq
Apprentice
Apprentice


Joined: 09 Sep 2005
Posts: 234
Location: Poland

PostPosted: Fri Aug 03, 2007 3:22 pm    Post subject: Reply with quote

jonnevers wrote:
what portage version are you all using?

The most recent, I think: 2.1.2.11
This system has been installed recently, not further than a month ago.
And emerge --sync done a few days ago.

jonnevers wrote:
what gentoo profile?

default-linux/x86/2007.0

jonnevers wrote:
this is what is bringing the the gcc-3 (though I highly doubt it).

Me too, since I'm trying to emerge BINARY version of Java Runtime [so, it's compiled already].
_________________
SasQ
Back to top
View user's profile Send private message
Taglia
Apprentice
Apprentice


Joined: 05 Nov 2004
Posts: 244

PostPosted: Sun Aug 05, 2007 1:28 pm    Post subject: Reply with quote

jonnevers wrote:
to the people in this thread, what portage version are you all using? what gentoo profile?


portage : sys-apps/portage-2.1.2.11
profile: default-linux/x86/2007.0/desktop

jonnevers wrote:
to the poster right above this, you aren't using the *-bin package so you are going to have to be careful in the future.

So you advice me to use bin packages?

jonnevers wrote:

@Taglia: please provide a 'emerge -tpv sun-jdk' as I don't see anything in that emerge list that would require gcc, something else is pinging it.


Here is it
Code:

vortexmind ~ # emerge -tpv sun-jdk

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[ebuild  N    ] dev-java/sun-jdk-1.6.0.02  USE="X alsa -doc -examples -jce -nspl                        ugin" 57,040 kB
[ebuild  N    ]  virtual/libstdc++-3.3  0 kB
[ebuild  N    ]  dev-java/java-config-1.3.7  15 kB
[ebuild  N    ]  dev-java/java-config-2.0.33-r1  25 kB
[ebuild  N    ]   dev-java/java-config-wrapper-0.13  7 kB
[ebuild  N    ]    app-portage/portage-utils-0.1.28  78 kB
[ebuild  NS   ]  sys-devel/gcc-3.3.6-r1  USE="fortran gtk nls (-altivec) -bootst                        rap -boundschecking -build -doc -gcj (-hardened) -ip28 -ip32r10k (-multilib) -mu                        ltislot (-n32) (-n64) -nocxx -nopie -nossp -objc -test -vanilla" 23,534 kB

Total: 7 packages (6 new, 1 in new slot), Size of downloads: 80,696 kB

It seems that libstdc++ triggers the slotted gcc compilation.
_________________
Taglia
./ do NOT click ...
./ Mentecritica: Non esistono questioni di principio
Back to top
View user's profile Send private message
sasq
Apprentice
Apprentice


Joined: 09 Sep 2005
Posts: 234
Location: Poland

PostPosted: Tue Aug 14, 2007 1:33 pm    Post subject: Reply with quote

Yes, it's libstdc++, because it's specified as a runtime dependency in sun-jre-bin-1.6.0.02.ebuild, only for x86 [that's why jonnevers doesn't noticed this problem]. Look:
Code:
RDEPEND="
        sys-libs/glibc
        x86? ( =virtual/libstdc++-3.3 )  <---------------- HERE
        alsa? ( media-libs/alsa-lib )
        X? (
                x11-libs/libX11
                x11-libs/libXext
                x11-libs/libXi
                x11-libs/libXp
                x11-libs/libXtst
        )"


If there isn't other way, I could emerge that gcc and libstdc++ stuff, but... I cant! :( There is a compilation error while emerging gcc, which I mentioned above, and I don't know how to solve it :/
_________________
SasQ
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Tue Aug 14, 2007 4:52 pm    Post subject: Reply with quote

I only have gcc-4 installed on my machines, and this is how I keep it that way.
Code:
# echo "=sys-devel/gcc-3*" >> /etc/portage/package.mask

The reason sun-jdk wants to pull in gcc-3 is not to compile with it, but to link with the C++ library that gcc provides.

If you mask gcc, then only the library will get installed as a dependency.


ps. You can thank Sun, Adobe, Ati, and other providers of closed source packages for compiling their software using obsolete compilers and C++ libraries ...
Back to top
View user's profile Send private message
pizzach
Apprentice
Apprentice


Joined: 28 Aug 2006
Posts: 195

PostPosted: Thu Aug 30, 2007 5:12 pm    Post subject: Reply with quote

Who was the smartie pants who made java jdk dependant on the 3.3 series. Given that most people have moved onto the 4.1 series, that was just asking for problems since You can _not_ compile gcc-3.3* with with any compiler >=3.4. You can however compile gcc-3.4* with gcc-4.1*. -_-; I wonder if there is a news bulletin on another page someweher.
Back to top
View user's profile Send private message
mark_alec
Bodhisattva
Bodhisattva


Joined: 11 Sep 2004
Posts: 6066
Location: Melbourne, Australia

PostPosted: Wed Sep 19, 2007 6:53 am    Post subject: Reply with quote

Moved from Portage & Programming to Duplicate Threads.

See https://forums.gentoo.org/viewtopic-t-577369.html
_________________
www.gentoo.org.au || #gentoo-au
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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