| Summary: | Problem compiling qt-3.2.3 using gcc-3.3.3_pre20040408-r1 | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Maciej J. Woloszyk <matofesi> |
| Component: | [OLD] GCC Porting | Assignee: | PPC Porters <ppc> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | lu_zero |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | PPC | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Maciej J. Woloszyk
2004-06-17 13:59:15 UTC
Locally qt built, anyway there are known issue with this gcc version and I'm going to replace it asap. I did the second attempt. I've reemerged the GCC, then reemerged glibc with it. Next was the qt - hoped it to be some glitch with glibc. Unfortunatelly it still failes to compile. I did some investigation then and I found something that absolutely amazes me. Compilation failed when uic was trying to compile some .ui file to .cpp. The command used is something like that: /path/to/qt/bin/uic filename.ui -L /path/to/qt/plugins -i filename.h -o filename.cpp If the command is run from the ebuild it segfaults. If however I change dir to the point where the .ui file is and compile it with ../../bin/uic filename.ui -L ../../plugins -i filename.h -o filename.cpp it compiles succesfully. Next i did some checking and I found that the problem is -L flag and it's parameter - plugin dir with some .so libraries. I've been moving it to different places in the filesystem to find that if the path starts from directory in root that is placed (alphabetically) before /usr then uic works fine. It also works if plugins are somewhere in /usr itself. But if I place it somewhere below (i created /uss directory for testing) and there actually is any .so file inside uic fails. It looks to me that the problem is either with uic itself or one of the libraries it is linked to. Any suggestion qould be highly appreciated. After some time I did the next attempt. This time I've installed stage1 tarball into empty directory and did the chrooted bootstrap and then emerge system. Next I emerged xorg-x11 and tried to emerge qt (3.3.2 this time). Unfortunately compilation crashes at the axactly same place as before - during uic of some .ui files. After this I start to think that it might be something with my system in general (kernel or something - this is the only thing that is unchanged from previous attempts) so any additional suggestions aould be highly appreciated. Deamn me. I forgot to add the -fno-strict-aliasing flag when doing cleen bootstrap. I've added the flag, re-bootstrapped again and compiled qt without any problems. If there are no other suggestions or thoughts in this topic then I thing that the bug can be closed. I guess we can close the bug Closing, gcc-3.4.1 is ~ppc now please remember to use -fno-strict-aliasing |