Author Topic: The 15 november 2006 build is out.  (Read 36189 times)

Offline Acki

  • Multiple posting newcomer
  • *
  • Posts: 100
Re: The 15 november 2006 build is out.
« Reply #15 on: November 16, 2006, 07:19:58 pm »
Sorry my english.

When I compile any file and try compile it again - it compile again.
Same with build. Thus Build like Rebuild.  :(

In Code::Blocks Debug:
[14:49:57.171]: Scanned 0 files for #includes, cache used 0, cache updated 0
I have the same problem !!!
If I build all (ctrl + F11) and then just do a build (ctrl + F9) without any changes to the whole project it'll compile all files again !!!

I'm using C::B from this thread with GNU-GCC compiler latest version !!!
My OS is Win2000sp3 !!!

This is really annoying, as far as I'm working on a really huge project (Irrlicht) that compiles about 15 minutes, just if I only change one single source file !!!

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2813
Re: The 15 november 2006 build is out.
« Reply #16 on: November 16, 2006, 07:56:24 pm »
I have two examples:

test.cbp exibits the behavior described. It will compile even when no changes have been made.

Test2.cbp does not exibit the constant compile problem.

The directory structures are exactly the same:
Wierd!

test.cbp
Code
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="5" />
<Project>
<Option title="test" />
<Option pch_mode="2" />
<Option default_target="" />
<Option compiler="gcc" />
<Option virtualFolders="" />
<Build>
<Target title="Release">
<Option output=".\test.exe" prefix_auto="1" extension_auto="1" />
<Option object_output="obj\Release\" />
<Option type="1" />
<Option compiler="gcc" />
<Compiler>
<Add option="-O2" />
</Compiler>
<Linker>
<Add option="-s" />
</Linker>
</Target>
</Build>
<Compiler>
<Add option="-Wall" />
</Compiler>
<Unit filename="src\main.cpp">
<Option compilerVar="CPP" />
<Option target="Release" />
</Unit>
</Project>
</CodeBlocks_project_file>

Test2.cbp
Code
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="5" />
<Project>
<Option title="Test2" />
<Option pch_mode="2" />
<Option default_target="" />
<Option compiler="gcc" />
<Option virtualFolders="" />
<Build>
<Target title="Release">
<Option output=".\Test2.exe" prefix_auto="1" extension_auto="1" />
<Option object_output="obj\Release\" />
<Option type="1" />
<Option compiler="gcc" />
<Compiler>
<Add option="-O2" />
</Compiler>
<Linker>
<Add option="-s" />
</Linker>
</Target>
</Build>
<Compiler>
<Add option="-Wall" />
</Compiler>
<Unit filename="src\main.cpp">
<Option compilerVar="CPP" />
<Option target="Release" />
</Unit>
</Project>
</CodeBlocks_project_file>



But... Look, Test2 has a .depend while test does not. Why is that?



However, when I copy Test2.depend and edit it for test.depend, it has no effect on the behavior.
Code
# depslib dependency file v1.0
1152747736 source:c:\temp\test\src\main.cpp
<iostream>

Done.. I;m stumped :^[
« Last Edit: November 16, 2006, 08:35:44 pm by Pecan »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9699
Re: The 15 november 2006 build is out.
« Reply #17 on: November 16, 2006, 08:12:46 pm »
The directory structures are exactly the same:
Wierd!
Exactly. But your samples work very well for me...?!

Edit: I've done all exactly the same except the top-level directory. But: It works! (What revision do you use?)
« Last Edit: November 16, 2006, 08:21:05 pm by MortenMacFly »
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2813
Re: The 15 november 2006 build is out.
« Reply #18 on: November 16, 2006, 08:28:54 pm »
The directory structures are exactly the same:
Wierd!
Exactly. But your samples work very well for me...?!

Edit: I've done all exactly the same except the top-level directory. But: It works! (What revision do you use?)

svn build  rev 3226 (2006-11-16 07:34:31)   gcc 3.4.4 Windows/unicode

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2813
Re: The 15 november 2006 build is out.
« Reply #19 on: November 16, 2006, 08:31:39 pm »
The directory structures are exactly the same:
Wierd!
Exactly. But your samples work very well for me...?!

Edit: I've done all exactly the same except the top-level directory. But: It works! (What revision do you use?)

What do you mean by: except the top-level directory.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9699
Re: The 15 november 2006 build is out.
« Reply #20 on: November 16, 2006, 08:32:05 pm »
svn build  rev 3226 (2006-11-16 07:34:31)   gcc 3.4.4 Windows/unicode
Right... I'm still at 3222. I wonder if this is related to the RegEx changes Thomas made?!

Edit: My Top level is not "C:\temp" but "C:\Document...blah...\Desktop".
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2813
Re: The 15 november 2006 build is out.
« Reply #21 on: November 16, 2006, 08:33:53 pm »
svn build  rev 3226 (2006-11-16 07:34:31)   gcc 3.4.4 Windows/unicode
Right... I'm still at 3222. I wonder if this is related to the RegEx changes Thomas made?!

Edit: My Top level is not "C:\temp" but "C:\Document...blah...\Desktop".

Would try DmP's test.cbp at http://forums.codeblocks.org/index.php?action=dlattach;topic=4469.0;attach=1613

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7699
    • My Best Post
Re: The 15 november 2006 build is out.
« Reply #22 on: November 16, 2006, 08:35:28 pm »
Have you done the beginner fixes like deleting all the files in obj\Release\ and the .exe file that is created.
This is an easy way to confirm write access under windows.

Tim S
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9699
Re: The 15 november 2006 build is out.
« Reply #23 on: November 16, 2006, 08:37:02 pm »
Would try DmP's test.cbp at http://forums.codeblocks.org/index.php?action=dlattach;topic=4469.0;attach=1613
Tried that too - no worries. Except the the project file is wrong - main.cpp is in the src sub-directory. This I changed and it just works fine.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2813
Re: The 15 november 2006 build is out.
« Reply #24 on: November 16, 2006, 08:41:43 pm »
Have you done the beginner fixes like deleting all the files in obj\Release\ and the .exe file that is created.
This is an easy way to confirm write access under windows.

Tim S

Affirmative. But to make sure, I deleted the entire .\obj dir .layout etc.
I left only ./src/main.cpp and ./test.cbp

I then did a rebuild. Without touching the machine (mouse only) I held my mouth just like I did with Test2 and click on the blue gear.
Damn, it built.

Jeesh. :^[   What the hell is this?
It must be something other than the cbp.

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2813
Re: The 15 november 2006 build is out.
« Reply #25 on: November 16, 2006, 08:45:54 pm »
svn build  rev 3226 (2006-11-16 07:34:31)   gcc 3.4.4 Windows/unicode
Right... I'm still at 3222. I wonder if this is related to the RegEx changes Thomas made?!

Edit: My Top level is not "C:\temp" but "C:\Document...blah...\Desktop".

Nope, I went all the way back to 3111 and it still rebuilds.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9699
Re: The 15 november 2006 build is out.
« Reply #26 on: November 16, 2006, 08:50:36 pm »
Nope, I went all the way back to 3111 and it still rebuilds.
Mmmmh... what is this?! :shock: Could you please post the whole project in a ZIP file? Maybe uploading to the forum changed the format (linefeed or stuff) which makes it not reproducible?! (Although in that case the other example in the ZIP shouldn't work, too...).
Again: It only builds one time on my machine and that's it. Next time I build C::B states "Up-to-date", just as expected. Mind removing your C::B configuration file temporarily to have a fresh-and-clean C::B?
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2813
Re: The 15 november 2006 build is out.
« Reply #27 on: November 16, 2006, 09:00:24 pm »
Could you please post the whole project in a ZIP file?

Savefile.com upload of test and Test2 from Pecan (DmP problem)
which magically compiles without human intervention.

test and Test2

test is the problem. Test2 behaves correctly.


« Last Edit: November 16, 2006, 09:02:06 pm by Pecan »

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2813
Re: The 15 november 2006 build is out.
« Reply #28 on: November 16, 2006, 09:17:04 pm »
Ok, to main.cpp, I add a line "int i=0; "and recompiled. When I hit the recompile again it said "nothing to be done."

aha!

I deleted the line, and it behaved correctly.
It has behaved correctly ever since.

ALSO, for the first time it created a .depend file.

So, the moral of the story...
choke your chicken.. no, no not that one.
Modify the file until you get a .depend file. Or some such voodoo.

« Last Edit: November 16, 2006, 09:21:33 pm by Pecan »

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2813
Re: The 15 november 2006 build is out.
« Reply #29 on: November 16, 2006, 09:28:03 pm »
I went back and looked at the time on the file that I downloaded from DmP.
It has a date and time on it that's way ahead of my system clock.

When I modified the src file. It set the date/time to my local time.
Is that why I got no depend file until I touched the file?

But why would this happen to DmP, who created the file. Or did He?

@DmP, how did  you get file main.cpp? What's the date/time of that file?
What's the date/time of your system? Can you do a build clean, modify the file and have it behave correctly?