News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

CodeBlocks compiling fail

Started by je_rem_y, January 03, 2012, 02:42:20 AM

Previous topic - Next topic

stahta01

Quote from: oBFusCATed on January 04, 2012, 09:49:17 PM
It enables wx logging, I think and you get lots of annoying dialogs :)

Yes, it was rather obvious.
I take you DO NOT have a Mac.

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

je_rem_y

#31
Quote from: je_rem_y on January 04, 2012, 05:54:09 PM
The new patch still works well on Arch Linux.

But if I start codeblocks with "codeblocks -v" I get this message :
17:46:29: Invalid regular expression '\[([A-z]:)(.*) @ ([0-9]+)\]': Fin d'intervalle invalide
17:46:29: Invalid regular expression '[0-9]+[ ]+([A-Fa-f0-9]+)[ ]+[A-Fa-f0-9]+[ ]+(.*)\[([A-z]:)(.*) @ ([0-9]+)\]': Fin d'intervalle invalide
17:46:29: Invalid regular expression '[ ]([A-z]+.*)[ ]+\[([A-z]:)(.*) @ ([0-9]+)\]': Fin d'intervalle invalide
17:46:29: Invalid regular expression '([A-z0-9]+)[ ]+(0x[0-9A-Fa-f]+)[ ]+(.*)': Fin d'intervalle invalide
17:46:32: Invalid regular expression '\$TO_ABSOLUTE_PATH{([^}]*)}': Contenu invalide de \{\}
17:46:32: Invalid regular expression '\$TO_83_PATH{([^}]*)}': Contenu invalide de \{\}
17:46:32: Invalid regular expression '\$REMOVE_QUOTES{([^}]*)}': Contenu invalide de \{\}
17:46:37: can't open file 'plugin_find_broken_files.script' (error 2: Aucun fichier ou dossier de ce type)
17:46:37: can't open file '/usr/local/share/codeblocks/scripts/plugin_find_broken_files.script' (error 2: Aucun fichier ou dossier de ce type)
17:46:37: can't open file '' (error 2: Aucun fichier ou dossier de ce type)


I don't know if it's due to the patch or not (I hope not).

Quote from: oBFusCATed on January 04, 2012, 06:11:27 PM
Yes, it is due to the patch.

You're right I recompiled wxgtk with "--with-regex=builtin" and I just have this error :
17:46:37: can't open file 'plugin_find_broken_files.script' (error 2: Aucun fichier ou dossier de ce type)
17:46:37: can't open file '/usr/local/share/codeblocks/scripts/plugin_find_broken_files.script' (error 2: Aucun fichier ou dossier de ce type)
17:46:37: can't open file '' (error 2: Aucun fichier ou dossier de ce type)


It is significant/serious or not ?

MortenMacFly

Quote from: je_rem_y on January 04, 2012, 11:03:27 PM
It is significant/serious or not ?
No, that's not an issue. C::B searches on several common path's for registered scripts to open (i.e. to allow portable mode). If that fails because a folder is not present you see this warning, but only  in verbose mode. Maybe we should check the path before trying to open it to avoid this message... but really: This is not an error.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

je_rem_y

Ok, but this error with the patch :
17:46:29: Invalid regular expression '\[([A-z]:)(.*) @ ([0-9]+)\]': Fin d'intervalle invalide
17:46:29: Invalid regular expression '[0-9]+[ ]+([A-Fa-f0-9]+)[ ]+[A-Fa-f0-9]+[ ]+(.*)\[([A-z]:)(.*) @ ([0-9]+)\]': Fin d'intervalle invalide
17:46:29: Invalid regular expression '[ ]([A-z]+.*)[ ]+\[([A-z]:)(.*) @ ([0-9]+)\]': Fin d'intervalle invalide
17:46:29: Invalid regular expression '([A-z0-9]+)[ ]+(0x[0-9A-Fa-f]+)[ ]+(.*)': Fin d'intervalle invalide
17:46:32: Invalid regular expression '\$TO_ABSOLUTE_PATH{([^}]*)}': Contenu invalide de \{\}
17:46:32: Invalid regular expression '\$TO_83_PATH{([^}]*)}': Contenu invalide de \{\}
17:46:32: Invalid regular expression '\$REMOVE_QUOTES{([^}]*)}': Contenu invalide de \{\}
17:46:37: can't open file 'plugin_find_broken_files.script' (error 2: Aucun fichier ou dossier de ce type)
17:46:37: can't open file '/usr/local/share/codeblocks/scripts/plugin_find_broken_files.script' (error 2: Aucun fichier ou dossier de ce type)
17:46:37: can't open file '' (error 2: Aucun fichier ou dossier de ce type)


Is it an issue ?

oBFusCATed

You can test it yourself, by using a TO_ABSOLUTE_PATH or TO_83_PATH macro in your project and then you can check the full log if the macro has worked. If it has worked, then the patch is OK.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

je_rem_y

It seems to not work but I don't know if my test is ok (I'm not a developer ;) ).

#include <iostream>

#if defined(TO_ABSOLUTE_PATH)
#   define MESSAGE "OK"
#else
#   define MESSAGE "NOT OK"
#endif

using namespace std;

int main() {
    cout << MESSAGE << endl;
    return 0;
}


Alpha

Unless I am mistaken, these are Code::Blocks macros (not preprocessor macros).
Try testing them in pre/post-build steps.

je_rem_y


je_rem_y

I have reported the wxWidgets problem to Arch developer. wxWidgets has been updated (compiled with "--with-regex=builtin") and codeblocks compile now  8)

I don't know if the problem is fixed in codeblocks code for those who don't compile wxWidgets with "--with-regex=builtin" but if not it would be nice that this is done ;)