Author Topic: CodeBlocks compiling fail  (Read 30618 times)

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7608
    • My Best Post
Re: CodeBlocks compiling fail
« Reply #30 on: January 04, 2012, 10:21:14 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++ 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 je_rem_y

  • Multiple posting newcomer
  • *
  • Posts: 15
Re: CodeBlocks compiling fail
« Reply #31 on: January 04, 2012, 11:03:27 pm »
The new patch still works well on Arch Linux.

But if I start codeblocks with "codeblocks -v" I get this message :
Code
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).

Yes, it is due to the patch.

You're right I recompiled wxgtk with "--with-regex=builtin" and I just have this error :
Code
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 ?
« Last Edit: January 05, 2012, 03:09:43 am by je_rem_y »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: CodeBlocks compiling fail
« Reply #32 on: January 05, 2012, 09:17:50 am »
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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline je_rem_y

  • Multiple posting newcomer
  • *
  • Posts: 15
Re: CodeBlocks compiling fail
« Reply #33 on: January 05, 2012, 12:50:10 pm »
Ok, but this error with the patch :
Code
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 ?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: CodeBlocks compiling fail
« Reply #34 on: January 05, 2012, 01:24:27 pm »
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!]

Offline je_rem_y

  • Multiple posting newcomer
  • *
  • Posts: 15
Re: CodeBlocks compiling fail
« Reply #35 on: January 08, 2012, 07:26:16 pm »
It seems to not work but I don't know if my test is ok (I'm not a developer ;) ).

Code
#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;
}

Offline Alpha

  • Developer
  • Lives here!
  • *****
  • Posts: 1513
Re: CodeBlocks compiling fail
« Reply #36 on: January 08, 2012, 08:33:11 pm »
Unless I am mistaken, these are Code::Blocks macros (not preprocessor macros).
Try testing them in pre/post-build steps.

Offline je_rem_y

  • Multiple posting newcomer
  • *
  • Posts: 15
Re: CodeBlocks compiling fail
« Reply #37 on: January 09, 2012, 02:34:22 am »
It doesn't work too...

Offline je_rem_y

  • Multiple posting newcomer
  • *
  • Posts: 15
Re: CodeBlocks compiling fail
« Reply #38 on: February 06, 2012, 02:20:23 am »
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 ;)