Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Compiler and project file changes in latest SVN.

<< < (3/5) > >>

Urxae:

--- Quote from: rickg22 on November 28, 2005, 06:35:25 pm ---
--- Quote from: Urxae on November 28, 2005, 06:28:51 pm ---By the way, is it really a good idea to put all C::B SDK headers into a precompiled header and have pretty much everything depend on it? One change to macrosmanager.h and it's an almost full rebuild :(.

--- End quote ---

Doh :P what do you think the precompiled headers were for? PCH or not, a change in the SDK headers will require a full rebuild. My full rebuild takes about 7 mins with PCH, 11 minutes without.

--- End quote ---

No, a change in the SDK headers doesn't necessarily mean a full rebuild without PCHs. If a header isn't included directly or indirectly into a .cpp file, that .cpp doesn't need to be recompiled if (only) that header changes. A relink should take care of the problem.
By the way, my full rebuild takes over an hour typically. Not everyone has a new computer, and in fact I use a fairly old laptop. :(
Because of the time requirements I usually run C::B compiles that involve the precompiled headers in the background at a lower priority, which of course only adds to the required time...
If anyone knows a non-cygwin Windows version of distcc that would be very helpful, as there's also a less old non-laptop computer in the house...

rickg22:
OUCH... sorry to hear that.

Edit: Look what I found! :)

http://lists.samba.org/archive/distcc/2005q4/003192.html

A patch for distcc to make it mingw friendly! :) Now you only have to recompile distcc... :?

mandrav:

--- Quote from: Urxae on November 28, 2005, 06:28:51 pm ---I did. But I'd just finished a long recompile and didn't feel like doing one again, especially if I wasn't sure it'd work.
How did you fix it, by the way? Is there an option to add a library to the "" search path? I wouldn't be surprised if there was, I'd just like to know what it is as I searched for it and couldn't find it a while back.
I'd look at the commit in detail, but it's a mixed one with lots of changes...

--- End quote ---

Look at the gcc options, specifically [-I-]. Here.
For gcc-4.0+ this has been deprecated and [-iquote] should be used. Here.


--- Quote from: Urxae on November 28, 2005, 06:28:51 pm ---By the way, is it really a good idea to put all C::B SDK headers into a precompiled header and have pretty much everything depend on it? One change to macrosmanager.h and it's an almost full rebuild :(.
I myself usually use pchs only for stuff that actually doesn't change for large amounts of time only: windows.h and headers for libraries like wxWidgets and Boost.
They're meant to cut down compilation time, but if you put your own (changing) stuff in there they may actually increase it by increasing dependencies.

--- End quote ---

Yes, that's what PCHs are for. But if you 're using the SVN version, you must be prepared for a few rebuilds now and then. Even without PCHs, a change in configmanager.h would still require a full rebuild...

Urxae:

--- Quote from: rickg22 on November 28, 2005, 07:09:13 pm ---Look what I found! :)

http://lists.samba.org/archive/distcc/2005q4/003192.html

A patch for distcc to make it mingw friendly! :) Now you only have to recompile distcc... :?

--- End quote ---

Unfortunately, the fact that the changes are in #ifdef __CYGWIN32__ doesn't bode well :(. Apparently when they say mingw on the distcc site they mean the one from cygwin.
 
I tried anyway:
./configure (ran from msys) doesn't work:
--- Code: ---checking for socklen_t... no
checking for socklen_t equivalent... configure: error: Cannot find a type to use in place of socklen_t
--- End code ---

I had to some CFLAGS and create a dummy sys/sockets.h that just #includes <ws2tcpip> (winsock 2 header which typedefs socklen_t), but then the configure script ran.
Unfortunately make definitely didn't, it gave about 691 lines of error messages on the first file it tried to compile :shock:.
Haven't been able to fix this :(. Looks like no distcc for Windows users that don't want to install cygwin...

rickg22:
Why not post a bug report on the distcc site? Annoy those guys until they get it working ;-)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version