Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GCC 3.3
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... , 10, 11, 12  Next  
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Niko_K
Guru
Guru


Joined: 19 Sep 2002
Posts: 484
Location: Rietz/Tirol

PostPosted: Sun Jun 15, 2003 6:36 am    Post subject: QT Reply with quote

Hi,

I had the same problems with qt!
Try to build QT-3.2_beta1, that worked for me (although I use the Hammer patch)

Niko
_________________
Meine Homepage
Back to top
View user's profile Send private message
Niko_K
Guru
Guru


Joined: 19 Sep 2002
Posts: 484
Location: Rietz/Tirol

PostPosted: Sun Jun 15, 2003 6:42 pm    Post subject: It's impossible to install a java-jdk (or sdk) Reply with quote

I've got a BIG problem!
I want to install a Java-Environment with gcc3.3, but that seems completely impossilbe!
Sun-jdk won't emerge, because of a sandbox problem (or whatever, look at the link I posted above). Blackdown-Jdk installs, but without writing any files. My system unpacks the source, prints out an error message continues and then finishes ebuilding correctly, but without installing any files (just directories)!
Is there something that I can do about it?

Niko
_________________
Meine Homepage
Back to top
View user's profile Send private message
scrill
n00b
n00b


Joined: 14 Jun 2003
Posts: 2

PostPosted: Mon Jun 16, 2003 11:33 pm    Post subject: Re: qt-3.1.2-r3 Reply with quote

scrill wrote:
Hello

Thanks to many of the informative posts in this topic, I was successfully able to bootstap a gcc3.3 system from scratch. I ran into the common issues much like everyone else....having to compile grub from cvs, applying patches to ncurses/pam-login, etc. Thanks to your expertise, I was able to get past those problems. However, I have come up against an issue which I have noticed that no one else seems to be having, so I thought I'd ask for help.

When building the dependencies for an "emerge kde", I got a compile error when emerging qt-3.1.2-r3.

Code:

XRender enabled.
Xft auto-detection... (-L/usr/lib/mysql -I/usr/include/mysql)
  Found libXft.a in /usr/X11R6/lib
  Found libXft.so in /usr/lib
  Found X11/Xft/Xft.h in /usr/X11R6/include
  Found X11/Xft/Xft.h in /usr/include
head: `-1' option is obsolete; use `-n 1'
Try `head --help' for more information.
grep: write error: Broken pipe
head: `-1' option is obsolete; use `-n 1'
Try `head --help' for more information.
  Found Xft version .
  Could not find X11/Xft/XftFreetype.h anywhere in  /usr/include/mysql /usr/X11R6/include /usr/include /include
Xft disabled.
Xft support cannot be enabled due to functionality tests!
 Turn on verbose messaging (-v) to ./configure to see the final report.
 If you believe this message is in error you may use the continue
 switch (-continue) to ./configure to continue.

!!! ERROR: x11-libs/qt-3.1.2-r3 failed.
!!! Function src_compile, Line 113, Exitcode 101
!!! (no error message)


I manually searched my entire filesystem and could not find a trace of XftFreetype.h. I then re-emerged xft hoping that would solve the problem, which it did not. I haven't been able to find anyone with a similar issue and don't know how to proceed. Any help would be greatly appreciated.


Found out what the problem is. Apparently, head no longer supports -1. Had to write a wapper script to make head backwards compatible. This solved a build problem with qt and arts.

Code:

mv /usr/bin/head /usr/bin/head.new


Then put this in file /usr/bin/head and make it executable.

Code:

#!/usr/bin/perl

$num = shift @ARGV;
$num =~ s/[-n]//g;
$cmd = "/usr/bin/head.new -n$num ".join(" ", @ARGV);

print `$cmd`;
Back to top
View user's profile Send private message
ebrostig
Bodhisattva
Bodhisattva


Joined: 20 Jul 2002
Posts: 3152
Location: Orlando, Fl

PostPosted: Wed Jun 18, 2003 8:32 pm    Post subject: Re: It's impossible to install a java-jdk (or sdk) Reply with quote

Niko_K wrote:
I've got a BIG problem!
I want to install a Java-Environment with gcc3.3, but that seems completely impossilbe!
Sun-jdk won't emerge, because of a sandbox problem (or whatever, look at the link I posted above). Blackdown-Jdk installs, but without writing any files. My system unpacks the source, prints out an error message continues and then finishes ebuilding correctly, but without installing any files (just directories)!
Is there something that I can do about it?

Niko


Well, I have recompiled sun-j2sdk (which is the one you should emerge) several times without a problem using gcc 3.3. Don't use anything else if you want to recompile the java environment with gcc 3.3

Before you do this, I would recommend that you add 'nptl' to your USE flags and re-emerge glibc to include native POSIX threading, i.e instead of seeing x number of java processes when you start a java program, you will see only one process. Threading is done inside this process and not as separate processes. Works great.

Erik
_________________
'Yes, Firefox is indeed greater than women. Can women block pops up for you? No. Can Firefox show you naked women? Yes.'
Back to top
View user's profile Send private message
superleon
n00b
n00b


Joined: 30 Oct 2002
Posts: 10

PostPosted: Thu Jun 19, 2003 6:28 am    Post subject: Reply with quote

I used gcc3.3 and glibc2.3.2-r2 and met big trouble. I could not emerge xfree4.3-r3 or xfree4.3-r2.Here is last messages I got :

install in lib/Xrender done
make[3]: Leaving directory `/var/tmp/portage/xfree-4.3.0-r3/work/xc/lib/Xrender'
installing in lib/Xft1...
make[3]: Entering directory `/var/tmp/portage/xfree-4.3.0-r3/work/xc/lib/Xft1'
install -c -m 0755 libXft.so.1.1
/var/tmp/portage/xfree-4.3.0-r3/image//usr/X11R6/lib
+ rm -f /var/tmp/portage/xfree-4.3.0-r3/image//usr/X11R6/lib/libXft.so.1
+ ln -s libXft.so.1.1
/var/tmp/portage/xfree-4.3.0-r3/image//usr/X11R6/lib/libXft.so.1
install in lib/Xft1 done
make[3]: Leaving directory `/var/tmp/portage/xfree-4.3.0-r3/work/xc/lib/Xft1'
installing in lib/Xft...
make[3]: Entering directory `/var/tmp/portage/xfree-4.3.0-r3/work/xc/lib/Xft'
rm -f xftdpy.o unshared/xftdpy.o
gcc -m32 -c -ansi -pedantic -Wno-return-type -w -I/usr/include/freetype2
-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations -Wnested-externs -I../.. -I../../exports/include
-Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE
-D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE
-DFUNCPROTO=15 -DNARROWPROTO -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API
-DFREETYPE2 -mno-mmx xftdpy.c -o unshared/xftdpy.o
xftdpy.c: In function `_XftDefaultInit':
xftdpy.c:380: error: `FC_HINT_STYLE' undeclared (first use in this function)
xftdpy.c:380: error: (Each undeclared identifier is reported only once
xftdpy.c:380: error: for each function it appears in.)
xftdpy.c: In function `XftDefaultSubstitute':
xftdpy.c:478: error: `FC_HINT_STYLE' undeclared (first use in this function)
make[3]: *** [xftdpy.o] error 1
make[3]: Leaving directory `/var/tmp/portage/xfree-4.3.0-r3/work/xc/lib/Xft'
make[2]: *** [install] error 2
make[2]: Leaving directory `/var/tmp/portage/xfree-4.3.0-r3/work/xc/lib'
make[1]: *** [install] error 2
make[1]: Leaving directory `/var/tmp/portage/xfree-4.3.0-r3/work/xc'
make: *** [install] error 2

!!! ERROR: x11-base/xfree-4.3.0-r3 failed.
!!! Function src_install, Line 531, Exitcode 2
!!! (no error message)


I hope somebody can tell me what is probelm. I am almost mad these days by this error and can't get X working now .
Back to top
View user's profile Send private message
Niko_K
Guru
Guru


Joined: 19 Sep 2002
Posts: 484
Location: Rietz/Tirol

PostPosted: Thu Jun 19, 2003 7:50 am    Post subject: Re Reply with quote

@ebrostig:
I use "nptl" and my glibc uses it by default (IUSE-Flags in ebuild). I know that sun-j2sdk works, but there is a jdk as a dependency and that is my problem. I can't install any jdk-1.4.xxx (haven't tried IBM-jdk so far).
Is there the possiblity to compile the sun-j2sdk without a java-jdk?
Blackdown-jdk compiles on my system, but there is a problem with src_unpack. It finishes the merge, but it doesn't install any files at all (only directories)!

@superleon:
Have you tried to change your USE and/or CFLAGS?
_________________
Meine Homepage
Back to top
View user's profile Send private message
vibidoo
Guru
Guru


Joined: 27 Nov 2002
Posts: 394

PostPosted: Thu Jun 19, 2003 10:50 am    Post subject: Reply with quote

Niko_K

Could you post you USE and Cflags ?

because I have the same problem than SuperLeon

Thanks
Back to top
View user's profile Send private message
Niko_K
Guru
Guru


Joined: 19 Sep 2002
Posts: 484
Location: Rietz/Tirol

PostPosted: Thu Jun 19, 2003 1:10 pm    Post subject: Reply with quote

Hmm,

I don't think that posting my CFLAGS and USE Flags would help.
Also because I can't copy and paste them at the moment (no Desktop Environment installed at the moment)!

I think that it helped for me to change the "-O3" to "-O2"!

Niko
_________________
Meine Homepage
Back to top
View user's profile Send private message
superleon
n00b
n00b


Joined: 30 Oct 2002
Posts: 10

PostPosted: Thu Jun 19, 2003 1:45 pm    Post subject: Reply with quote

Niko_K

My USE flags is "mmx 3dnow" .Quite simple I think. And my CFLAGS is "-march=athlon-xp -o3 -pipe" .I hardwares are ahtlon-xp 1800+ oc 1900mhz ,512m ram,WD 80g, epox 8rda+ and ati9100.
Back to top
View user's profile Send private message
Niko_K
Guru
Guru


Joined: 19 Sep 2002
Posts: 484
Location: Rietz/Tirol

PostPosted: Thu Jun 19, 2003 3:55 pm    Post subject: Reply with quote

Change your USE Flags to "-march=athlon-xp -O2 -pipe" and try it again!

Are you really sure that you want that "less speed"?
I changed my CFLAGS (and USE-Flags) recently (-> RTFM) and my system seems to be much faster, ...
Niko
_________________
Meine Homepage
Back to top
View user's profile Send private message
ebrostig
Bodhisattva
Bodhisattva


Joined: 20 Jul 2002
Posts: 3152
Location: Orlando, Fl

PostPosted: Thu Jun 19, 2003 10:37 pm    Post subject: Reply with quote

Well, I don't have sun-jdk installed, but sun-j2sdk.
So yes, you should be able to compile sun-j2sdk without sun-jdk. Try to remove java from your USE flag prior to emergeing sun-j2sdk

I also doubt that glibc 2.3.2-r2 uses nptl by default. See the ebuild:
Code:

use_nptl() {
        # Enable NPTL support if:
        # - We have 'nptl' in USE
        # - We have linux-2.5 or later kernel (should prob check for 2.4.20 ...)
        if [ -n "`use nptl`" -a "`get_KV`" -ge "`KV_to_int ${MIN_NPTL_KV}`"  ]


So unless you have nptl in your USE flag, it will not install it.
_________________
'Yes, Firefox is indeed greater than women. Can women block pops up for you? No. Can Firefox show you naked women? Yes.'
Back to top
View user's profile Send private message
Niko_K
Guru
Guru


Joined: 19 Sep 2002
Posts: 484
Location: Rietz/Tirol

PostPosted: Fri Jun 20, 2003 11:50 am    Post subject: Okay Reply with quote

Okay, I really needed the "nptl" in my USE Flags to compile glibc with nptl, but it was not possible for me to install sun-j2sdk without a jdk installed.

Maybe you did something like this to install sun-j2sdk without a jdk:
Code:
emerge sun-j2sdk (installs blackdown-jdk and sun-j2sdk)
emerge -C blackdown-jdk (remove it again, because sun-j2sdk also provides a jdk)

However, I can't install any jdk, which is a dependency of sun-j2sdk (see ebuild)

Niko
_________________
Meine Homepage
Back to top
View user's profile Send private message
darkcoder
Apprentice
Apprentice


Joined: 09 May 2003
Posts: 253
Location: San Juan, PR

PostPosted: Tue Jun 24, 2003 4:53 am    Post subject: Reply with quote

The problem emerging sdk or jdks in .bin format resides in the tail command (part of textutils). Apparently this package had some problems with gcc-3.3 or gibc 2.3.2-r2 or mix of them. When replacing the tail command with a copy compiled with a gcc-3.2 machine it worked without problem.

Trying different USE options. Will tell later.
_________________
Not bleeding edge.... No pain no game :twisted:
Back to top
View user's profile Send private message
stefanwa
Tux's lil' helper
Tux's lil' helper


Joined: 09 Dec 2002
Posts: 140

PostPosted: Tue Jun 24, 2003 5:14 am    Post subject: Reply with quote

I have problems with gtk+-2.2.2-r1
There was a thread about this problem (Unsupported TGA...), but the only solution was to emerge gcc-2.3.2 again and compile it with this version. Did someone manage to get this working with 3.3? All of my system is now 3.3 and I don't want to revert back.
Back to top
View user's profile Send private message
heijs
Apprentice
Apprentice


Joined: 12 Jun 2002
Posts: 174
Location: Groningen

PostPosted: Tue Jun 24, 2003 6:50 am    Post subject: Reply with quote

Your problem is related to glib-2.2.2

You could try to emerge gcc-3.3 without the hammer patch and emerge glib-2.2.2 again. That could do the trick for you, but I'm not sure...
Back to top
View user's profile Send private message
stefanwa
Tux's lil' helper
Tux's lil' helper


Joined: 09 Dec 2002
Posts: 140

PostPosted: Tue Jun 24, 2003 8:54 am    Post subject: Reply with quote

heijs wrote:
Your problem is related to glib-2.2.2

You could try to emerge gcc-3.3 without the hammer patch and emerge glib-2.2.2 again. That could do the trick for you, but I'm not sure...


No need to reemerge gcc-3.3. I emerged glib-2 only with "-march=athlon-xp -O2 -pipe" and tried gtk+ with this flags afterwards - it worked!! :)
Back to top
View user's profile Send private message
silverter
Guru
Guru


Joined: 10 Apr 2002
Posts: 491
Location: Ulm, DE

PostPosted: Tue Jul 01, 2003 8:27 am    Post subject: Re: Okay Reply with quote

Niko_K wrote:
Okay, I really needed the "nptl" in my USE Flags to compile glibc with nptl, but it was not possible for me to install sun-j2sdk without a jdk installed.

Maybe you did something like this to install sun-j2sdk without a jdk:
Code:
emerge sun-j2sdk (installs blackdown-jdk and sun-j2sdk)
emerge -C blackdown-jdk (remove it again, because sun-j2sdk also provides a jdk)

However, I can't install any jdk, which is a dependency of sun-j2sdk (see ebuild)

Niko

Have you finally gotten sun-j2sdk installed? I got blackdown-jdk installed but when I start emerging sun-j2sdk-1.4.1-r1, it crashes with an error message that I can only post when I get home this evening, it's related to blackdown-java not working properlly with my glibd+nptl, I *think*. That's why i wanted to know if you got around this problem.

thanks and regards,
_________________
-- A Guru was once a Beginner --
Back to top
View user's profile Send private message
Niko_K
Guru
Guru


Joined: 19 Sep 2002
Posts: 484
Location: Rietz/Tirol

PostPosted: Tue Jul 01, 2003 2:00 pm    Post subject: No Reply with quote

No, I didn't get it to work until now!
I trie it with several jdks, but no one of them worked.

Sun-jdks (even the new 1.4.2) produce sandbox errors and blackdown won't unpack it's source correctly!
I don't know why there are such problems!

Has anyone here managed to install any jdk (or sdk)?
Niko
_________________
Meine Homepage
Back to top
View user's profile Send private message
silverter
Guru
Guru


Joined: 10 Apr 2002
Posts: 491
Location: Ulm, DE

PostPosted: Tue Jul 01, 2003 3:00 pm    Post subject: Re: No Reply with quote

Niko_K wrote:
[...]
Sun-jdks (even the new 1.4.2) produce sandbox errors and blackdown won't unpack it's source correctly!
[...]
Niko

where did u get the ebuilds for sun-j2sdk-1.4.2 from? Does is compile from source or it's bin?

thanks and regards,
_________________
-- A Guru was once a Beginner --
Back to top
View user's profile Send private message
Lovechild
Advocate
Advocate


Joined: 17 May 2002
Posts: 2858
Location: Århus, Denmark

PostPosted: Tue Jul 01, 2003 3:33 pm    Post subject: Reply with quote

I think he copied the old ones over :)
Back to top
View user's profile Send private message
Niko_K
Guru
Guru


Joined: 19 Sep 2002
Posts: 484
Location: Rietz/Tirol

PostPosted: Tue Jul 01, 2003 5:13 pm    Post subject: Re: No Reply with quote

silverter wrote:
Niko_K wrote:
[...]
Sun-jdks (even the new 1.4.2) produce sandbox errors and blackdown won't unpack it's source correctly!
[...]
Niko

where did u get the ebuilds for sun-j2sdk-1.4.2 from? Does is compile from source or it's bin?

thanks and regards,

I think it compiles from bin, ...
The ebuild told me to download the .bin File

Niko
_________________
Meine Homepage
Back to top
View user's profile Send private message
skeptic
n00b
n00b


Joined: 12 Jun 2003
Posts: 2

PostPosted: Tue Jul 08, 2003 5:09 pm    Post subject: Re: No Reply with quote

Niko_K wrote:
silverter wrote:
Niko_K wrote:
[...]
Sun-jdks (even the new 1.4.2) produce sandbox errors and blackdown won't unpack it's source correctly!
[...]
Niko

where did u get the ebuilds for sun-j2sdk-1.4.2 from? Does is compile from source or it's bin?

thanks and regards,

I think it compiles from bin, ...
The ebuild told me to download the .bin File

Niko


The problem for a number of ebuilds appears to be that the syntax for the 'tail' command has changed.

The syntax that everybody uses in the ebuild scripts is: tail -# or tail +#
where # is a decimal number. For some reason (maybe posix compatibility), this syntax is being phased out and you have to use
tail -n # instead. This broke a number of ebuilds, and in particular the
blackdown one, when I was bootstrapping my system on GCC 3.3

I imagine that when tail is compiled w/ GCC 3.2 the ebuild is set up so
that it still accepts the old syntax.

By the way, thanks to everyone who posted on the list. I wouldn't have
made it the whole way through the build without several key posts.
Back to top
View user's profile Send private message
Niko_K
Guru
Guru


Joined: 19 Sep 2002
Posts: 484
Location: Rietz/Tirol

PostPosted: Wed Jul 09, 2003 9:03 am    Post subject: Solution Reply with quote

HI,

I found some solutions!
First see this one:
http://bugs.gentoo.org/show_bug.cgi?id=23116
I didn't test it, but it seems to work for some people.

I personally wrote to wrappers for /usr/bin/tail and /usr/bin/head.
HowTo setup the wrapper (works also for tail):
Code:
mv /usr/bin/head /usr/bin/head.new
nano -w /usr/bin/head

Type the follwong in nano and save the file:
Code:
#!/usr/bin/perl

$num = shift @ARGV;
$num =~ s/[-n]//g;
$cmd = "/usr/bin/head.new -n$num ".join(" ", @ARGV);

print `$cmd`;

That should fix the problem,
Niko
_________________
Meine Homepage
Back to top
View user's profile Send private message
Halanegri
Guru
Guru


Joined: 03 Mar 2003
Posts: 351
Location: Reykjavík, Iceland

PostPosted: Wed Jul 09, 2003 6:47 pm    Post subject: Reply with quote

I am in the process of installing an extra Gentoo system on another partition(to use gcc-3.3, don't want to risk screwing up). I modified the latest gcc and glibc ebuilds on my system to include "x86" so they would be used when bootstraping.

The bootstrap and emerge system went fine, but then I did "emerge xfree" and it couldn't compile on of its dependancies named x11-misc/ttmkfdir-3.0.9. I managed to fix it by removing -O2 from my make.conf. -O and -O1 also didn't work, so there is some cflag implied by -O that's causing the trouble.

Anyway, I emerged ttmkfdir-3.0.9 without -O2, then changed it back and I was able to finish emerging xfree. I got a few errors trying to compile gentoo-sources, but using Andrew's patches got it working. It's emerging gnome now.....

I am using gcc-3.3 and glibc-2.3.2-r2, on an AMD Duron 900MHz with the following cflags:

CFLAGS="-march=athlon -O2 -pipe -fomit-frame-pointer -ffast-math -fforce-addr -falign-functions=4 -fprefetch-loop-arrays"

If you run into compilation errors, try losing some cflags first like I did before trying anything else(e.g. trying a different version of the package). Hope this helps anyone.
Back to top
View user's profile Send private message
bakkus
n00b
n00b


Joined: 17 Dec 2002
Posts: 33

PostPosted: Thu Jul 10, 2003 12:43 am    Post subject: Reply with quote

Niko: The wrappers for head and tail make sun-jdk work like charm under GCC 3.3! Thank you SO much!

My system is now bootstrapped using GCC 3.3 and GlibC 3.2.3-r2, but with ntpl off (Maybe I'll do this later).
The only problem so far (system and working X including Nvidia-kernel and GLX + ALSA) was (as usual) ttmkfdir.
I'm surprised noone has posted a fixed ebuild for this. From what I understand, it shouldn't be too hard to filter out the -O* flags. Oh, well.. I'm going to run this as far as it goes, the next project being KDE 3.1, Gnome, and thereafter various apps.

Thanks a lot for a thread absolutely PACKED with tons of useful info.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Goto page Previous  1, 2, 3 ... , 10, 11, 12  Next
Page 11 of 12

 
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