You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Friday, February 20th 2004, 1:57am

Konstruct: Forcing a particular compiler

Hello,

I've just finished building a linux system following the book at www.linuxfromscratch.org. I decided to go my own way from there, and it's gone well so far. The most recent think to be attempted is KDE 3.2. I started using konstruct, which apart from a few missing dependencies which I solved as they arose, it's been building quietly for the last 4 hours... then it stopped. The problem is one of those 'cannot convert data type x to data type y', and on looking around I see that using gcc 2.x is preffered over 3.x, which I have ignored. Since it's fairly likely to be the problem, can I force konstruct to use a specific compiler?

For the kernel I used 'make CC=/opt/gcc-2..... [target]'. If I do that for 'make install' in the konstruct/meta/kde directory, will it work the same? I noticed the compiling lines begin with 'g++' and not 'gcc', so is there a different variable I need to set?

Thanks for any help...

2

Friday, February 20th 2004, 7:37am

KDE and dependencies compile fine with gcc 3.x. You can define CC and CXX for Konstruct within gar.conf.mk. And don't mix gcc 2.x with gcc 3.x output, that's binary incompatible for C++.

3

Friday, February 20th 2004, 11:10pm

You're right the other compiler made no difference. In the end I had to just remove the troublesome package (kdesdk) from the makefile, and it went fine from then on (KDE is now running fine, very impressive too).