why cause this error when :GM

92 views
Skip to first unread message

aj3423

unread,
Jun 24, 2010, 1:37:47 PM6/24/10
to ex...@googlegroups.com
Error detected while processing function exUtility#GCCMake..exUtility#Terminal:
line  23:
E492: Not an editor command: gcc_entry_s.mk  & pause
Press ENTER or type command to continue


this error occurs when i try to compile with :GM,    i've installed both "MinGW" and "make", and added them to  enviroment variable PATH. 
i'm creating a single gcc project and i've copied the gcc_entry_s.mk,  gcc_config.mk, gcc_rule.mk to project root folder, and filled gcc_entry_s.mk with paths

how can i fix this?

thanks.


Wu Jie

unread,
Jun 24, 2010, 8:26:02 PM6/24/10
to exVim
Hi,

Would you mind to try compile it through the command window? Here
are the steps:

1: Open the command window in windows.
2: Go to the directory where you put the gcc_entry_s.mk.
3: type 'make -f gcc_entry_s.mk'

Then give me your result.
> gcc_entry_s.mkwith paths

aj3423

unread,
Jun 25, 2010, 9:41:23 AM6/25/10
to ex...@googlegroups.com
hi, here's my output for command make

G:\workspace\UI>make -f gcc_entry_s.mk
creating _build/gcc/Win32/Debug/deps/AJ_UI/.\Layout/Layout.d...
process_begin: CreateProcess(NULL, d:\ex/tools/msys/1.0/bin/mkdir -p ./_build/gcc/Win32/Debug/deps/AJ_UI, ...) failed.
make (e=2): 系统找不到指定的文件。
creating _build/gcc/Win32/Debug/deps/AJ_UI/.\Layout/FitLayout.d...
process_begin: CreateProcess(NULL, d:\ex/tools/msys/1.0/bin/mkdir -p ./_build/gcc/Win32/Debug/deps/AJ_UI, ...) failed.
make (e=2): 系统找不到指定的文件。
creating _build/gcc/Win32/Debug/deps/AJ_UI/.\Layout/ColumnLayout.d...
process_begin: CreateProcess(NULL, d:\ex/tools/msys/1.0/bin/mkdir -p ./_build/gcc/Win32/Debug/deps/AJ_UI, ...) failed.
make (e=2): 系统找不到指定的文件。
creating _build/gcc/Win32/Debug/deps/AJ_UI/.\Layout/BorderLayout.d...
process_begin: CreateProcess(NULL, d:\ex/tools/msys/1.0/bin/mkdir -p ./_build/gcc/Win32/Debug/deps/AJ_UI, ...) failed.
make (e=2): 系统找不到指定的文件。
creating _build/gcc/Win32/Debug/deps/AJ_UI/.\Layout/AbsoluteLayout.d...
process_begin: CreateProcess(NULL, d:\ex/tools/msys/1.0/bin/mkdir -p ./_build/gcc/Win32/Debug/deps/AJ_UI, ...) failed.
make (e=2): 系统找不到指定的文件。
creating _build/gcc/Win32/Debug/deps/AJ_UI/.\widget/ThunkComponent.d...
process_begin: CreateProcess(NULL, d:\ex/tools/msys/1.0/bin/mkdir -p ./_build/gcc/Win32/Debug/deps/AJ_UI, ...) failed.
make (e=2): 系统找不到指定的文件。
creating _build/gcc/Win32/Debug/deps/AJ_UI/.\widget/Container.d...
process_begin: CreateProcess(NULL, d:\ex/tools/msys/1.0/bin/mkdir -p ./_build/gcc/Win32/Debug/deps/AJ_UI, ...) failed.
make (e=2): 系统找不到指定的文件。
creating _build/gcc/Win32/Debug/deps/AJ_UI/.\widget/Component.d...
process_begin: CreateProcess(NULL, d:\ex/tools/msys/1.0/bin/mkdir -p ./_build/gcc/Win32/Debug/deps/AJ_UI, ...) failed.
make (e=2): 系统找不到指定的文件。
creating _build/gcc/Win32/Debug/deps/AJ_UI/./main.d...
process_begin: CreateProcess(NULL, d:\ex/tools/msys/1.0/bin/mkdir -p ./_build/gcc/Win32/Debug/deps/AJ_UI, ...) failed.
make (e=2): 系统找不到指定的文件。
-------------------
delete errs:
-------------------
    |--   ./_build/gcc/Win32/Debug/logs/errors/AJ_UI.err
process_begin: CreateProcess(NULL, d:\ex/tools/msys/1.0/bin/rm -f ./_build/gcc/Win32/Debug/logs/errors/AJ_UI.err, ...) failed.
make (e=2): 系统找不到指定的文件。
make: *** [clean-errs] Error 2

aj3423

unread,
Jun 28, 2010, 6:16:01 AM6/28/10
to ex...@googlegroups.com
i found this's cause because i didn't install msys, an i tried install it and tried :GM again,  another error occurs in a popup console:

-------------------
delete errs:
-------------------
    |--   ./_build/gcc/Win32/Debug/logs/errors/Store.err
compiling main.cpp...
make: *** [_build/gcc/Win32/Debug/objs/Store/./main.o] Error 1
请按任意键继续. . .

aj3423

unread,
Jun 28, 2010, 6:18:18 AM6/28/10
to ex...@googlegroups.com
and why it takes about 30 seconds before the error imformation appears, i'm just compiling  3 small files.

Wu Jie

unread,
Jun 28, 2010, 6:43:23 AM6/28/10
to exVim
the error shows you have compile error in your code. and the error
will store in ./_build/gcc/Win32/Debug/logs/errors/Store.err
Basically, exvim will get the error and open by exQuickFix.

I don't known why it takes 30 seconds. :(

aj3423

unread,
Jun 28, 2010, 7:29:32 AM6/28/10
to ex...@googlegroups.com
there're 3 lines in  ./_build/gcc/Win32/Debug/logs/errors/Store.err

1.
2. <<<<<< Store_Debug.exe: 'Store' 
3. >>>>>> 

but no exQuickFix window displayed...

Wu Jie

unread,
Jul 1, 2010, 2:39:27 AM7/1/10
to exVim
I will send you a small simple project that used :GM this weekend.
Hope that can help you.

aj3423

unread,
Jul 3, 2010, 2:52:48 PM7/3/10
to ex...@googlegroups.com
would you please send me the sample?
thank you very much.

2010/7/1 Wu Jie <kara...@gmail.com>
--
You received this message because you are subscribed to the Google Groups "exVim" group.
To post to this group, send email to ex...@googlegroups.com.
To unsubscribe from this group, send email to exvim+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/exvim?hl=en.


Wu Jie

unread,
Jul 4, 2010, 8:35:12 AM7/4/10
to exVim
I've send you the samples.

On Jul 4, 2:52 am, aj3423 <aj3...@gmail.com> wrote:
> would you please send me the sample?
> thank you very much.
>
> 2010/7/1 Wu Jie <karas...@gmail.com>
>
>
>
> > I will send you a small simple project that used :GM this weekend.
> > Hope that can help you.
>
> > On Jun 28, 7:29 pm, aj3423 <aj3...@gmail.com> wrote:
> > > there're 3 lines in  ./_build/gcc/Win32/Debug/logs/errors/Store.err
>
> > > 1.
> > > 2. <<<<<< Store_Debug.exe: 'Store'
> > > 3. >>>>>>
>
> > > but no exQuickFix window displayed...
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "exVim" group.
> > To post to this group, send email to ex...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > exvim+un...@googlegroups.com <exvim%2Bunsu...@googlegroups.com>.

aj3423

unread,
Jul 4, 2010, 8:53:14 AM7/4/10
to ex...@googlegroups.com
Thank you very much. I tried the single project, followed these steps:
1. put it into my  G:\workspace\single.project
2. double click single.project.vimentry without modify anything,  
3. use :GM to compile

a cmd window popups which displays:

creating _build/gcc/Win32/Debug/deps/single_project/./main.d...(this took almost 25 second)
-------------------
delete errs:
-------------------
    |--   ./_build/gcc/Win32/Debug/logs/errors/single_project.err
compiling main.cpp...
-------------------
linking:
-------------------
    |--   _build/gcc/Win32/Debug/objs/single_project/./main.o
generate _build/gcc/Win32/Debug/bin/single_project_Debug.exe
Post Build...
Post Build single_project...
请按任意键继续. . .

the .exe is generated, but it still took so long,  my pc isn't slow, cpu 2.5g, 3g memory. the same program compiled with vc6 tooks 1 second.
where can i put some debug code to print what it's doing during the 25 second?
thanks.

aj3423

unread,
Jul 6, 2010, 8:12:00 AM7/6/10
to ex...@googlegroups.com
I looked int gcc_rule_s.mk, this line takes 8 seconds

line: 630    $(RM) $(FullPath_Errs)




Wu Jie

unread,
Jul 8, 2010, 11:39:34 AM7/8/10
to exVim
The $(RM) just use rm command, I really don't know what make it slow :
( . I can't reproduce it in my PCs ...

On Jul 6, 8:12 pm, aj3423 <aj3...@gmail.com> wrote:
> I looked int *gcc_rule_s.mk*, this line takes *8* seconds
>
> line: 630 $(RM) $(FullPath_Errs)

Wu Jie

unread,
Jul 8, 2010, 11:44:14 AM7/8/10
to exVim
By the way, you really need :GM and those gcc files for compiling ?
recently I choose CMake instead, it works fine for me. There are
plenty tools and methods to enhance makefile for compiling, google use
scon compile its v8 engine, CMake is another choice. jam and bjam is
popular when you work with boost library. So I guess you still can use
these alternate tools for compiling if the :GM not work well in your
machine.

aj3423

unread,
Jul 8, 2010, 12:26:19 PM7/8/10
to ex...@googlegroups.com
I used to work with visual studio and know few about how to make project manually, cause it's all done by the IDE.  Now I come to Vim,,, I'm looking for a convenient way to build the project,  one command to compile and display errors in quickfix window.
Thank you for the response and the recommendation for CMake, I'll give it a shot.

2010/7/8 Wu Jie <kara...@gmail.com>
--
You received this message because you are subscribed to the Google Groups "exVim" group.
To post to this group, send email to ex...@googlegroups.com.
To unsubscribe from this group, send email to exvim+un...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages