Bug #18661 2012-07-10 19:06

taiki

C::B Project in the root of a partition

I work on a encrypted Truecypt partition which only contain my project so it was directly in the root.

This situation create strange bugs like:

- modify header don't recompile files that use it

- even if nothing changed, compile the project will relink it

I can easily reproduce the bug even with a default console project without any change.

I'm sorry for my bad english, I hope that this bug isn't already submited.

Ask for details if you need any.

Category
Compiler
Group
Platform:Windows
Status
Open
Close date
 
Assigned to
 
taiki 2012-07-10 19:14

Forgot configuration details:

Windows 7 ultimate 64bit

C::B 10.05 compiled May 27 2010

Truecrypt 7.1

taiki 2012-07-22 08:30

Reproductible with the build 8150

ollydbg 2012-07-24 14:35

I suggest that you can supply a minimal sample project, so that we can test it. Thanks.

taiki 2012-07-24 15:11

Here is a TrueCrypt partition: https://dl.dropbox.com/u/12087072/code%20blocks%20bug

Password: CodeBlock

Mount it then try to compile the project. Compile it again, it'll re-link it

Now, try to modify main.h, main.c won't be recompiled.

Can you reproduce the bug?

taiki 2012-08-11 07:45

New link for the True crypt partition: http://www.mediafire.com/?tngj5dtcfcljkwc

mortenmacfly 2012-08-11 09:17

For the record:

- When I hit compile it always gets re-linked

- When I change main.c it becomes re-compiled (!) and then re-linked

- When I change main.h it becomes just re-linked.

What exactly do you complain on this? (Just to make sure I understand the issue.)

taiki 2012-08-11 09:27

Issues are:

- relink when not needed (may be long on big project)

- edit main.h won't update defines (the example code printf the define. If you change it, the main.c won't be updated so it'll keep the old value)

Recompile when main.c is updated isn't a problem (in my point of view).

mortenmacfly 2012-08-11 10:12

OK - understood and its reproducible. For now, it doesn't not happen if you just create a sub-folder. Do this as a work-around, if possible.,

I'm afraid the reason is a third party component we use (depslib)... maybe not so easy to fix and actually should be done by the vendor.

taiki 2012-08-15 17:38

Okay, have I to report the bug to the vendor? If yes, can I have details on what to report? (which API)

mortenmacfly 2012-08-15 18:27

I tried to contact the vendor myself, but found out that the library is several years old and the vendor is no more. :-(

It used from another OpenSource project called "JAM".

You can try to find out yourself - its the depslib in the compiler plugin directory. It ships with a "main" (not compiled into the plugin) which can be used to make a stand-alone version for testing.