View previous topic :: View next topic |
Author |
Message |
davidgurvich Veteran
Joined: 23 Apr 2004 Posts: 1063
|
Posted: Tue Aug 01, 2006 2:57 am Post subject: |
|
|
New addition to common problems fixed the issue
Code: | java-check-environment virtual_provides |
Seems gcj-jdk adds PROVIDES that is incompatible with the new java environment. |
|
Back to top |
|
|
geki Advocate
Joined: 13 May 2004 Posts: 2387 Location: Germania
|
Posted: Wed Aug 30, 2006 11:16 pm Post subject: |
|
|
I hit an annoying bug in gcj-4.2:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28096
edit
another nasty workaround. you are a lucky one if your cpu got sse2 (for double precision instructions).
sse will not suffice I guess. the double precision instructions are missing there. _________________ hear hear |
|
Back to top |
|
|
geki Advocate
Joined: 13 May 2004 Posts: 2387 Location: Germania
|
Posted: Thu Aug 31, 2006 12:05 pm Post subject: |
|
|
I arrived at my last package to test with gcj-4.2 before keywording. _________________ hear hear |
|
Back to top |
|
|
Child_of_Sun_24 l33t
Joined: 28 Jul 2004 Posts: 601
|
Posted: Thu Aug 31, 2006 2:32 pm Post subject: |
|
|
Hi @all
I had got an interesting Problem with gcj-jdk-4.1:
I have Compiled all the stuff for Azureus 2.5.0.0 with the jdk, and it runs very well (A big thank you to all that developed it) but everytime i started Azureus the Process gij (Which is from the jdk package) steals about 65% of my cpu (I have seen this with top) But not only when Azureus starts, it uses it during azureus runs.
My System seems to work normal, so i haven't seen it for a while, but then i tried to start watching a movie on my pc, and then it was terrible, mplayer said that my System is to slow and lags, xine lags, and so on.
Now i tried the actual gcj-4.2.0_alpha20060826 snapshot and it works great, gij only uses 65% during Azureus startup and the it goes down to 3.5%, and i can watch movies normally.
Only wanted to say it, because i think it's a bug in 4.1.1, when you need some additional infos then tell me what you need and i will tell it.
CoS24 |
|
Back to top |
|
|
geki Advocate
Joined: 13 May 2004 Posts: 2387 Location: Germania
|
Posted: Thu Aug 31, 2006 2:58 pm Post subject: |
|
|
That is known. gij-4.1.1 increased to 100% after half a day / day.
Though, mplayer still worked fine here.
gcj-4.2 has many improvements. though, two very annoying bugs.
I hope when some distros move to gcj-4.2 they will be fixed. _________________ hear hear |
|
Back to top |
|
|
Child_of_Sun_24 l33t
Joined: 28 Jul 2004 Posts: 601
|
Posted: Thu Aug 31, 2006 5:30 pm Post subject: |
|
|
Ok, that's good, will it be fixed ?
And another Question, which bugs does 4.2.0 have ?
Thanks,
CoS24 |
|
Back to top |
|
|
geki Advocate
Joined: 13 May 2004 Posts: 2387 Location: Germania
|
Posted: Thu Aug 31, 2006 5:47 pm Post subject: |
|
|
I did not run azureus long enough.
for these two gcj-4.2 bugs see first post. _________________ hear hear |
|
Back to top |
|
|
Child_of_Sun_24 l33t
Joined: 28 Jul 2004 Posts: 601
|
Posted: Thu Aug 31, 2006 11:02 pm Post subject: |
|
|
Ok, have seen it, but i don't understand it, but i hope it won't disturb me with azureus, until now it runs really great.
CoS24 |
|
Back to top |
|
|
LinuxMan Tux's lil' helper
Joined: 18 Sep 2004 Posts: 83 Location: Ukraine / Ternopil
|
Posted: Fri Sep 01, 2006 7:18 pm Post subject: |
|
|
Hello. I use gcj-4.1.1 from overlay. My system is AMD64 3000+, 1024MB RAM and 1024MB SWAP. When i try to compile azureus-2.5.0.0 it fine compile Azureus2.jar but when they build native library compiler eats all my ram and swap and after 3 hours give me a hard lock . All others java programs compile fine and fast. Here is my log:
Code: | emerge azureus
Calculating dependencies... done!
>>> Emerging (1 of 1) net-p2p/azureus-2.5.0.0 to /
* Azureus_2.5.0.0_source.zip MD5 ;-) ... [ ok ]
* Azureus_2.5.0.0_source.zip RMD160 ;-) ... [ ok ]
* Azureus_2.5.0.0_source.zip SHA1 ;-) ... [ ok ]
* Azureus_2.5.0.0_source.zip SHA256 ;-) ... [ ok ]
* Azureus_2.5.0.0_source.zip size ;-) ... [ ok ]
* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
* checking Azureus_2.5.0.0_source.zip ;-) ... [ ok ]
* Your CXXFLAGS contains "-fvisibility-inlines-hidden" which can break packages.
*
* Before you file a bug, please remove these flags and
* re-compile the package in question as well as all its dependencies
* Using: gcj-jdk-4.1
>>> Unpacking source...
>>> Unpacking Azureus_2.5.0.0_source.zip to /var/tmp/portage/azureus-2.5.0.0/work/azureus
* Applying various patches (bugfixes/updates) ...
* azureus-cache-size.patch ... [ ok ]
* azureus-no-restart.patch ... [ ok ]
* azureus-remove-manifest-classpath.patch ... [ ok ]
* azureus-remove-win32-osx-platforms.patch ... [ ok ]
* azureus-remove-win32-PlatformManagerUpdateChecker.patch ... [ ok ]
* Done with patching
* Applying gcj-4.2-jsse.diff ... [ ok ]
>>> Source unpacked.
Rewriting ./build.xml
>>> Compiling source in /var/tmp/portage/azureus-2.5.0.0/work/azureus ...
Buildfile: build.xml
init:
[echo] Building Azureus2.jar...
[mkdir] Created dir: /var/tmp/portage/azureus-2.5.0.0/work/azureus/dist
compile:
[javac] Compiling 1956 source files to /var/tmp/portage/azureus-2.5.0.0/work/azureus
jar:
[jar] Building jar: /var/tmp/portage/azureus-2.5.0.0/work/azureus/dist/Azureus2.jar
BUILD SUCCESSFUL
Total time: 1 minute 1 second
>>> Source compiled.
>>> Test phase [not enabled]: net-p2p/azureus-2.5.0.0
>>> Install azureus-2.5.0.0 into /var/tmp/portage/azureus-2.5.0.0/image/ category net-p2p
* Checking for at least 900MBytes RAM ... [ ok ]
* Create native library from jar ...
* build: /usr/share/azureus/lib/libAzureus2.jar.so
Exiting on signal 2
/usr/portage/local/layman/java-gcj-overlay/net-p2p/azureus/azureus-2.5.0.0.ebuild: src_install aborted; exiting.
sandbox: Caught signal 2 in pid 21200
|
_________________ SORRY FOR MY VERY VERY VERY VERY BAD ENGLISH |
|
Back to top |
|
|
geki Advocate
Joined: 13 May 2004 Posts: 2387 Location: Germania
|
Posted: Fri Sep 01, 2006 7:49 pm Post subject: |
|
|
I built 2.4.0.2 on my laptop, p4m/1.6GHz 512MB ram/swap in 90mins.
though, not in X. still, you guys manage it to fail with double sized ram/swap.
I am impressed. _________________ hear hear |
|
Back to top |
|
|
geki Advocate
Joined: 13 May 2004 Posts: 2387 Location: Germania
|
Posted: Fri Sep 01, 2006 8:03 pm Post subject: |
|
|
well, what I mean is:
- you could try w/o X running
- otherwise edit the ebuild, drop the '900' from skip-cachejar check, redigest
what else i am wondering about
Quote: | BUILD SUCCESSFUL
Total time: 1 minute 1 second |
should be ~25 seconds
got no ant-core native libraries? _________________ hear hear |
|
Back to top |
|
|
LinuxMan Tux's lil' helper
Joined: 18 Sep 2004 Posts: 83 Location: Ukraine / Ternopil
|
Posted: Fri Sep 01, 2006 8:05 pm Post subject: |
|
|
So i posted there becouse i think that something broken _________________ SORRY FOR MY VERY VERY VERY VERY BAD ENGLISH |
|
Back to top |
|
|
LinuxMan Tux's lil' helper
Joined: 18 Sep 2004 Posts: 83 Location: Ukraine / Ternopil
|
Posted: Fri Sep 01, 2006 8:13 pm Post subject: |
|
|
1) Reinstall ant-core
2) Change ebuild and redigest
3) Got Total time: 1 minute 11 seconds
4) Ctrl+C _________________ SORRY FOR MY VERY VERY VERY VERY BAD ENGLISH |
|
Back to top |
|
|
LinuxMan Tux's lil' helper
Joined: 18 Sep 2004 Posts: 83 Location: Ukraine / Ternopil
|
Posted: Sat Sep 02, 2006 1:20 pm Post subject: |
|
|
Ok. Today i try an experiment. Run system without any daemons and run emerge in 12:56(GMT +2). Emerge ended in 16:06(also GMT +2). Here is log:
Code: | [31;01m*[0m Your CXXFLAGS contains "-fvisibility-inlines-hidden" which can break packages.
[31;01m*[0m
[31;01m*[0m Before you file a bug, please remove these flags and
[31;01m*[0m re-compile the package in question as well as all its dependencies
[32;01m*[0m Using: gcj-jdk-4.1
>>> Unpacking source...
>>> Unpacking Azureus_2.5.0.0_source.zip to /var/tmp/portage/azureus-2.5.0.0/work/azureus
[32;01m*[0m Applying various patches (bugfixes/updates) ...
[32;01m*[0m azureus-cache-size.patch ...
[A[120C [34;01m[ [32;01mok[34;01m ][0m
[32;01m*[0m azureus-no-restart.patch ...
[A[120C [34;01m[ [32;01mok[34;01m ][0m
[32;01m*[0m azureus-remove-manifest-classpath.patch ...
[A[120C [34;01m[ [32;01mok[34;01m ][0m
[32;01m*[0m azureus-remove-win32-osx-platforms.patch ...
[A[120C [34;01m[ [32;01mok[34;01m ][0m
[32;01m*[0m azureus-remove-win32-PlatformManagerUpdateChecker.patch ...
[A[120C [34;01m[ [32;01mok[34;01m ][0m
[32;01m*[0m Done with patching
[32;01m*[0m Applying gcj-4.2-jsse.diff ...
[A[120C [34;01m[ [32;01mok[34;01m ][0m
>>> Source unpacked.
Rewriting ./build.xml
>>> Compiling source in /var/tmp/portage/azureus-2.5.0.0/work/azureus ...
Buildfile: build.xml
init:
[echo] Building Azureus2.jar...
[mkdir] Created dir: /var/tmp/portage/azureus-2.5.0.0/work/azureus/dist
compile:
[javac] Compiling 1956 source files to /var/tmp/portage/azureus-2.5.0.0/work/azureus
jar:
[jar] Building jar: /var/tmp/portage/azureus-2.5.0.0/work/azureus/dist/Azureus2.jar
BUILD SUCCESSFUL
Total time: 59 seconds
>>> Source compiled.
>>> Test phase [not enabled]: net-p2p/azureus-2.5.0.0
>>> Install azureus-2.5.0.0 into /var/tmp/portage/azureus-2.5.0.0/image/ category net-p2p
[32;01m*[0m Checking for at least 900MBytes RAM ...
[A[120C [34;01m[ [32;01mok[34;01m ][0m
[32;01m*[0m Create native library from jar ...
[32;01m*[0m build: /usr/share/azureus/lib/libAzureus2.jar.so
{standard input}: Assembler messages:
{standard input}:2503267: Warning: end of file not at end of a line; newline inserted
{standard input}:2503875: Error: unknown pseudo-op: `.lfb17'
gcj: Internal error: Killed (program jc1)
Please submit a full bug report.
See <URL:http://bugs.gentoo.org/> for instructions.
!!! ERROR: net-p2p/azureus-2.5.0.0 failed.
Call stack:
ebuild.sh, line 1543: Called dyn_install
ebuild.sh, line 1017: Called src_install
azureus-2.5.0.0.ebuild, line 73: Called java-pkg_dojar 'dist/Azureus2.jar'
java-utils-2.eclass, line 282: Called java-pkg_cachejar_
java-utils-2.eclass, line 2147: Called die
!!! failed to create native library
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! When you file a bug report, please include the following information:
GENTOO_VM=gcj-jdk-4.1 CLASSPATH="" JAVA_HOME="/opt/gcj-4.1.1"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER="javac"
and of course, the output of emerge --info |
What the hell? _________________ SORRY FOR MY VERY VERY VERY VERY BAD ENGLISH |
|
Back to top |
|
|
geki Advocate
Joined: 13 May 2004 Posts: 2387 Location: Germania
|
Posted: Sat Sep 02, 2006 1:24 pm Post subject: |
|
|
What are your cflags? _________________ hear hear |
|
Back to top |
|
|
LinuxMan Tux's lil' helper
Joined: 18 Sep 2004 Posts: 83 Location: Ukraine / Ternopil
|
Posted: Sat Sep 02, 2006 1:27 pm Post subject: |
|
|
CFLAGS="-O2 -march=k8 -fomit-frame-pointer -pipe -fno-ident -frename-registers -msse3"
CXXFLAGS="${CFLAGS} -fvisibility-inlines-hidden"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=both"
I think these not very aggressive _________________ SORRY FOR MY VERY VERY VERY VERY BAD ENGLISH |
|
Back to top |
|
|
geki Advocate
Joined: 13 May 2004 Posts: 2387 Location: Germania
|
Posted: Sat Sep 02, 2006 1:33 pm Post subject: |
|
|
nothing that blows up code. _________________ hear hear |
|
Back to top |
|
|
LinuxMan Tux's lil' helper
Joined: 18 Sep 2004 Posts: 83 Location: Ukraine / Ternopil
|
Posted: Sat Sep 02, 2006 1:43 pm Post subject: |
|
|
So what i need to do? Maybe azureus-2.5 broken? Or i need update gcj to 4.2.0alpha? _________________ SORRY FOR MY VERY VERY VERY VERY BAD ENGLISH |
|
Back to top |
|
|
geki Advocate
Joined: 13 May 2004 Posts: 2387 Location: Germania
|
Posted: Sat Sep 02, 2006 1:48 pm Post subject: |
|
|
nothing is broken. may be oc or bad ram?!
what you see is when you do not have enough ram.
I wonder what -fno-ident is useful for... _________________ hear hear |
|
Back to top |
|
|
LinuxMan Tux's lil' helper
Joined: 18 Sep 2004 Posts: 83 Location: Ukraine / Ternopil
|
Posted: Sat Sep 02, 2006 1:54 pm Post subject: |
|
|
geki wrote: | nothing is broken. may be oc or bad ram?!
what you see is when you do not have enough ram.
I wonder what -fno-ident is useful for... |
My RAM is 100% normal(that sayed memtest86+). And ram is always enough for me. This is first case when there ended _________________ SORRY FOR MY VERY VERY VERY VERY BAD ENGLISH |
|
Back to top |
|
|
LinuxMan Tux's lil' helper
Joined: 18 Sep 2004 Posts: 83 Location: Ukraine / Ternopil
|
Posted: Sat Sep 02, 2006 6:34 pm Post subject: |
|
|
Ok. I try updaye gcj to 4.2.0, but ebuild of both gcj and gcj-jdk depend on fastjar package, but i can't find they not in portage, not in overlays. Where is this ebuild? If build gcj without fastjar, gcj don't work normal _________________ SORRY FOR MY VERY VERY VERY VERY BAD ENGLISH |
|
Back to top |
|
|
Uzytkownik Guru
Joined: 31 Oct 2004 Posts: 399 Location: Bay Area, US
|
Posted: Sat Sep 02, 2006 9:48 pm Post subject: |
|
|
Code: | # eix fastjar
* dev-java/fastjar [1]
Available versions: 3.4.3 3.4.4_pre20060608
[1] /usr/local/overlays/java-experimental
|
|
|
Back to top |
|
|
Child_of_Sun_24 l33t
Joined: 28 Jul 2004 Posts: 601
|
Posted: Sun Sep 03, 2006 12:27 am Post subject: |
|
|
@LinuxMan
I have had this Problem with gcc-4.2.0, i don't know how i have solved it, but i had to switch often with java-config-1, java-config-2 and gcj-config, during the different configs, i have rebooted my System twice.
At the end the Problem was solved.
And fastjar, is in the java-experimental-overlay:
svn co http://overlays.gentoo.org/svn/proj/java/java-experimental-overlay/
Think you must set it in front of migrated-java-experimental-overlay in the make.conf.
CoS24 |
|
Back to top |
|
|
LinuxMan Tux's lil' helper
Joined: 18 Sep 2004 Posts: 83 Location: Ukraine / Ternopil
|
Posted: Sun Sep 03, 2006 9:54 am Post subject: |
|
|
Thank you, Child_of_Sun_24 and Uzytkownik. Btw, in fastjar keyword is ~x86. I think that need add ~amd64 _________________ SORRY FOR MY VERY VERY VERY VERY BAD ENGLISH |
|
Back to top |
|
|
LinuxMan Tux's lil' helper
Joined: 18 Sep 2004 Posts: 83 Location: Ukraine / Ternopil
|
Posted: Sun Sep 03, 2006 10:33 am Post subject: |
|
|
Ok. I update gcj to 4.2.0. Now any program compiled with these gcj don't. They say:
/lib/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /opt/gcj-4.2.0_alpha20060826/lib/libgcj.so.
My GCC is 4.1.1 and i don't wan't to update to unstable version _________________ SORRY FOR MY VERY VERY VERY VERY BAD ENGLISH |
|
Back to top |
|
|
|