×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    May 2006
    Posts
    6

    Question carbide.vs: Bug in invocation of mwccsym2.exe?

    Hi all,

    I try to get the tests for STL-Port running. There exists in the path stlport\STLport-4.5.1\test\regression a file named epoc.mmp. This is the project I tried to import and build in VS2003 via carbide.vs. Import is ok, but if I try to build it I will get this output:

    Code:
    Updating epoc.mmp based on Deb_S60_30_WINSCW
    Update of mmp file not needed
    WINS (emulator) build
    ------ Build started: Project: epoc, Configuration: Deb_S60_30_WINSCW Win32 ------
    
    Performing Pre-Build Event...
    * Current build configuration: WINSCW UDEB
    Converting multi-icons...
    Compiling...
    epocroot = \Symbian\9.1\S60_3rd\
    * mwccsym2.exe -g -O0 -inline off -sym codeview_new -wchar_t off -align 4 -warnings on -w nohidevirtual,nounusedexpr -msgstyle gcc -enum int -str pool -exc ms -nostdinc -d _DEBUG -d _UNICODE -d  "__SYMBIAN32__" -d  "__SERIES60_30__" -d  "__SERIES60_3X__" -d  "__SUPPORT_CPP_EXCEPTIONS__" -d  "__EXE__" -d  "__WINSCW__" -d  "__WINS__" -d  "__CW32__" -d  "_DEBUG" -d  "_UNICODE" -cwd source -i- -i "C:\Symbian\9.1\S60_3rd\\epoc32\include\stlport" -i "C:\Symbian\9.1\S60_3rd\\epoc32\include\libc" -i "C:\Symbian\9.1\S60_3rd\\epoc32\include"  -i C:\Symbian\9.1\S60_3rd\epoc32\include\variant -include symbian_os_v9.1.hrh -c ".\vec8.cpp" -o "Deb_S60_30_WINSCW\InvalidFilePath.o"
    Error in CW compilation: Illegal characters in path.
    epoc : error PRJ0003 : Error spawning 'cl.exe'.
    
    Build log was saved at "file://c:\STLport-4.5.1\test\regression\Deb_S60_30_WINSCW\BuildLog.htm"
    epoc - 1 error(s), 0 warning(s)
    
    
    ---------------------- Done ----------------------
    
        Build: 0 succeeded, 1 failed, 0 skipped
    Interesting thing is that it will be built on console, but not with carbide.vs. Also it tries to output the object in a file called "InvalidFilePath.o", which shouldn't be ok.
    If I set e.g. the compiler option "-v" for showing version infos, it will at least try to compile all files, but of course still into the false object files and furthermore this creates other problems in the toolchain. This is only a part of the output that appears:

    Code:
    Updating epoc.mmp based on Deb_S60_30_WINSCW
    Update of mmp file not needed
    WINS (emulator) build
    ------ Build started: Project: epoc, Configuration: Deb_S60_30_WINSCW Win32 ------
    
    Performing Pre-Build Event...
    * Current build configuration: WINSCW UDEB
    Converting multi-icons...
    Compiling...
    epocroot = \Symbian\9.1\S60_3rd\
    * mwccsym2.exe -g -O0 -inline off -sym codeview_new -wchar_t off -align 4 -warnings on -w nohidevirtual,nounusedexpr -msgstyle gcc -enum int -str pool -exc ms -nostdinc -d _DEBUG -d _UNICODE -d  "__SYMBIAN32__" -d  "__SERIES60_30__" -d  "__SERIES60_3X__" -d  "__SUPPORT_CPP_EXCEPTIONS__" -d  "__EXE__" -d  "__WINSCW__" -d  "__WINS__" -d  "__CW32__" -d  "_DEBUG" -d  "_UNICODE" -cwd source -i- -i "C:\Symbian\9.1\S60_3rd\\epoc32\include\stlport" -i "C:\Symbian\9.1\S60_3rd\\epoc32\include\libc" -i "C:\Symbian\9.1\S60_3rd\\epoc32\include"  -i C:\Symbian\9.1\S60_3rd\epoc32\include\variant -include symbian_os_v9.1.hrh -c -v -o "Deb_S60_30_WINSCW\-v.o"
    Errors caused tool to abort.
    Nokia Codewarrior C/C++ Compiler for Windows/x86.
    Copyright (c) 2005, Nokia Corporation
    All rights reserved.
    Version 3.2.3 build 451 (Build 451)
    Runtime Built: Oct 19 2005 19:16:55
    Contents of (command-line defines):
    ===============
    #pragma symbian
    #pragma codeviewpro9compatible off
    #define _DEBUG 1
    #define _UNICODE 1
    #define __SYMBIAN32__ 1
    #define __SERIES60_30__ 1
    #define __SERIES60_3X__ 1
    #define __SUPPORT_CPP_EXCEPTIONS__ 1
    #define __EXE__ 1
    #define __WINSCW__ 1
    #define __WINS__ 1
    #define __CW32__ 1
    #define _DEBUG 1
    #define _UNICODE 1
    #include "symbian_os_v9.1.hrh"
    #pragma warn_largeargs on
    ===============
    mwccsym2.exe: Output filenames found without source; 'Deb_S60_30_WINSCW\-v.o' not accepted
    mwccsym2.exe: Nothing to do:  no source or object files specified
    epocroot = \Symbian\9.1\S60_3rd\
    * mwccsym2.exe -g -O0 -inline off -sym codeview_new -wchar_t off -align 4 -warnings on -w nohidevirtual,nounusedexpr -msgstyle gcc -enum int -str pool -exc ms -nostdinc -d _DEBUG -d _UNICODE -d  "__SYMBIAN32__" -d  "__SERIES60_30__" -d  "__SERIES60_3X__" -d  "__SUPPORT_CPP_EXCEPTIONS__" -d  "__EXE__" -d  "__WINSCW__" -d  "__WINS__" -d  "__CW32__" -d  "_DEBUG" -d  "_UNICODE" -cwd source -i- -i "C:\Symbian\9.1\S60_3rd\\epoc32\include\stlport" -i "C:\Symbian\9.1\S60_3rd\\epoc32\include\libc" -i "C:\Symbian\9.1\S60_3rd\\epoc32\include"  -i C:\Symbian\9.1\S60_3rd\epoc32\include\variant -include symbian_os_v9.1.hrh -c ".\vec8.cpp" -o "Deb_S60_30_WINSCW\InvalidFilePath.o"
    epocroot = \Symbian\9.1\S60_3rd\
    * mwccsym2.exe -g -O0 -inline off -sym codeview_new -wchar_t off -align 4 -warnings on -w nohidevirtual,nounusedexpr -msgstyle gcc -enum int -str pool -exc ms -nostdinc -d _DEBUG -d _UNICODE -d  "__SYMBIAN32__" -d  "__SERIES60_30__" -d  "__SERIES60_3X__" -d  "__SUPPORT_CPP_EXCEPTIONS__" -d  "__EXE__" -d  "__WINSCW__" -d  "__WINS__" -d  "__CW32__" -d  "_DEBUG" -d  "_UNICODE" -cwd source -i- -i "C:\Symbian\9.1\S60_3rd\\epoc32\include\stlport" -i "C:\Symbian\9.1\S60_3rd\\epoc32\include\libc" -i "C:\Symbian\9.1\S60_3rd\\epoc32\include"  -i C:\Symbian\9.1\S60_3rd\epoc32\include\variant -include symbian_os_v9.1.hrh -c ".\vec7.cpp" -o "Deb_S60_30_WINSCW\InvalidFilePath.o"
    epocroot = \Symbian\9.1\S60_3rd\
    * mwccsym2.exe -g -O0 -inline off -sym codeview_new -wchar_t off -align 4 -warnings on -w nohidevirtual,nounusedexpr -msgstyle gcc -enum int -str pool -exc ms -nostdinc -d _DEBUG -d _UNICODE -d  "__SYMBIAN32__" -d  "__SERIES60_30__" -d  "__SERIES60_3X__" -d  "__SUPPORT_CPP_EXCEPTIONS__" -d  "__EXE__" -d  "__WINSCW__" -d  "__WINS__" -d  "__CW32__" -d  "_DEBUG" -d  "_UNICODE" -cwd source -i- -i "C:\Symbian\9.1\S60_3rd\\epoc32\include\stlport" -i "C:\Symbian\9.1\S60_3rd\\epoc32\include\libc" -i "C:\Symbian\9.1\S60_3rd\\epoc32\include"  -i C:\Symbian\9.1\S60_3rd\epoc32\include\variant -include symbian_os_v9.1.hrh -c ".\vec6.cpp" -o "Deb_S60_30_WINSCW\InvalidFilePath.o"
    epocroot = \Symbian\9.1\S60_3rd\
    * mwccsym2.exe -g -O0 -inline off -sym codeview_new -wchar_t off -align 4 -warnings on -w nohidevirtual,nounusedexpr -msgstyle gcc -enum int -str pool -exc ms -nostdinc -d _DEBUG -d _UNICODE -d  "__SYMBIAN32__" -d  "__SERIES60_30__" -d  "__SERIES60_3X__" -d  "__SUPPORT_CPP_EXCEPTIONS__" -d  "__EXE__" -d  "__WINSCW__" -d  "__WINS__" -d  "__CW32__" -d  "_DEBUG" -d  "_UNICODE" -cwd source -i- -i "C:\Symbian\9.1\S60_3rd\\epoc32\include\stlport" -i "C:\Symbian\9.1\S60_3rd\\epoc32\include\libc" -i "C:\Symbian\9.1\S60_3rd\\epoc32\include"  -i C:\Symbian\9.1\S60_3rd\epoc32\include\variant -include symbian_os_v9.1.hrh -c ".\vec5.cpp" -o "Deb_S60_30_WINSCW\InvalidFilePath.o"
    epocroot = \Symbian\9.1\S60_3rd\
    * mwccsym2.exe -g -O0 -inline off -sym codeview_new -wchar_t off -align 4 -warnings on -w nohidevirtual,nounusedexpr -msgstyle gcc -enum int -str pool -exc ms -nostdinc -d _DEBUG -d _UNICODE -d  "__SYMBIAN32__" -d  "__SERIES60_30__" -d  "__SERIES60_3X__" -d  "__SUPPORT_CPP_EXCEPTIONS__" -d  "__EXE__" -d  "__WINSCW__" -d  "__WINS__" -d  "__CW32__" -d  "_DEBUG" -d  "_UNICODE" -cwd source -i- -i "C:\Symbian\9.1\S60_3rd\\epoc32\include\stlport" -i "C:\Symbian\9.1\S60_3rd\\epoc32\include\libc" -i "C:\Symbian\9.1\S60_3rd\\epoc32\include"  -i C:\Symbian\9.1\S60_3rd\epoc32\include\variant -include symbian_os_v9.1.hrh -c ".\vec4.cpp" -o "Deb_S60_30_WINSCW\InvalidFilePath.o"
    epocroot = \Symbian\9.1\S60_3rd\
    .
    .
    .
    
    Build log was saved at "file://c:\STLport-4.5.1\test\regression\Deb_S60_30_WINSCW\BuildLog.htm"
    epoc - 313 error(s), 12 warning(s)
    
    
    ---------------------- Done ----------------------
    
        Build: 0 succeeded, 1 failed, 0 skipped
    Any clues?

    Cheers,

    Timo

  2. #2
    Super Contributor
    Join Date
    Sep 2004
    Posts
    1,048

    Re: carbide.vs: Bug in invocation of mwccsym2.exe?

    Seems that the code and .mmp file etc that you tried to import are quite old and not compatible at least with the new 3.0 SDK (import most like proposed a project of type Classic when you imported?) so unless you have done a lot of manual work to set things right, it will not work with the 3.0 SDK.

    First thing to do is to get an older SDK - not sure which - and try with that.

  3. #3
    Registered User
    Join Date
    May 2006
    Posts
    6

    Re: carbide.vs: Bug in invocation of mwccsym2.exe?

    No, it is really a bug in the toolchain of carbide.vs, because it already works with that SDK on the console. But I have found out if I change the directory names that it contains no "-" in the whole path, carbide.vs won't make trouble any longer.
    This is quite nasty and cost me some time for investigation! :-/

    Cheers,

    Timo

  4. #4
    Registered User
    Join Date
    Oct 2006
    Posts
    9

    Re: carbide.vs: Bug in invocation of mwccsym2.exe?

    Hi Timo,
    I meet the same problem as yours.
    What I already done :
    I renamed my source directory from "pjlib-test" to "pjlib_test"(because mwccsym2.exe unable to use the character "-" in the command line).
    And I changed manually the SOURCEPATH in .mmp in the same way.

    output from carbide .vs from visual studio 2003 looks like this

    Code:
    MMP update not selected
    WINS (emulator) build
    ------ Rebuild All started: Project: pjlib_test, Configuration: Deb_S60_30_WINSCW Win32 ------
    
    Deleting intermediate files and output files for project 'pjlib_test', configuration 'Deb_S60_30_WINSCW|Win32'.
    Performing Pre-Build Event...
    * Current build configuration: WINSCW UDEB
    Converting multi-icons...
    Compiling...
    epocroot = \Symbian\9.1\S60_3rd\
    * mwccsym2.exe -g -O0 -inline off -sym codeview_new -wchar_t off -align 4 -warnings on -w nohidevirtual,nounusedexpr -msgstyle gcc -enum int -str pool -exc ms -nostdinc -d _DEBUG -d _UNICODE -d  "__SYMBIAN32__" -d  "__SERIES60_30__" -d  "__SERIES60_3X__" -d  "__SUPPORT_CPP_EXCEPTIONS__" -d  "__EXE__" -d  "__WINSCW__" -d  "__WINS__" -d  "__CW32__" -d  "_DEBUG" -d  "_UNICODE" -d  "PJ_M_I386=1" -d  "PJ_SYMBIAN=1" -d  "PJ_IMPORTING" -cwd source -i- -i "C:\Diplomarbeit\pjsip\pjlib\include" -i "C:\Symbian\9.1\S60_3rd\\epoc32\include" -i "C:\Symbian\9.1\S60_3rd\\epoc32\include\libc"  -i C:\Symbian\9.1\S60_3rd\epoc32\include\variant -include symbian_os_v9.1.hrh -c .\pjlib_test.uid.cpp -o "Deb_S60_30_WINSCW\pjlib_test.uid.o"
    epocroot = \Symbian\9.1\S60_3rd\
    
    * mwccsym2.exe -g -O0 -inline off -sym codeview_new -wchar_t off -align 4 -warnings on -w nohidevirtual,nounusedexpr -msgstyle gcc -enum int -str pool -exc ms -nostdinc -d _DEBUG -d _UNICODE -d  "__SYMBIAN32__" -d  "__SERIES60_30__" -d  "__SERIES60_3X__" -d  "__SUPPORT_CPP_EXCEPTIONS__" -d  "__EXE__" -d  "__WINSCW__" -d  "__WINS__" -d  "__CW32__" -d  "_DEBUG" -d  "_UNICODE" -d  "PJ_M_I386=1" -d  "PJ_SYMBIAN=1" -d  "PJ_IMPORTING" -cwd source -i- -i "C:\Diplomarbeit\pjsip\pjlib\include" -i "C:\Symbian\9.1\S60_3rd\\epoc32\include" -i "C:\Symbian\9.1\S60_3rd\\epoc32\include\libc"  -i C:\Symbian\9.1\S60_3rd\epoc32\include\variant -include symbian_os_v9.1.hrh -c "\diplomarbeit\pjsip\pjlib\src\pjlib-test\main_symbian.cpp" -o "Deb_S60_30_WINSCW\InvalidFilePath.o"
    Errors caused tool to abort.
    mwccsym2.exe: alert: Specified file '\diplomarbeit\pjsip\pjlib\src\pjlib-test\main_symbian.cpp' not found
    mwccsym2.exe: alert: Operating system error:
    mwccsym2.exe: alert: Das System kann den angegebenen Pfad nicht finden.
    pjlib_test : error PRJ0002 : error result returned from 'cl.exe'.
    
    Build log was saved at "file://c:\Diplomarbeit\pjsip\symbian\Deb_S60_30_WINSCW\BuildLog.htm"
    pjlib_test - 1 error(s), 0 warning(s)
    
    
    ---------------------- Done ----------------------
    
        Rebuild All: 0 succeeded, 1 failed, 0 skipped
    Do you know where carbide .vs get the directory "\diplomarbeit\pjsip\pjlib\src\pjlib-test\main_symbian.cpp" as a parameter for the command line mwccsym2.exe ?

    this is my .mmp

    Code:
    TARGET                                  pjlib_test.exe 
    TARGETTYPE                              exe 
    UID                                     0x100039CE 0x10004299 
    VENDORID                                0x70000001 
    macro                                   PJ_M_I386=1 PJ_SYMBIAN=1 PJ_IMPORTING 
    SOURCEPATH                              ..\pjlib\src\pjlib_test 
    SOURCE                        util.c 
    SOURCE                        udp_echo_srv_sync.c 
    SOURCE                        udp_echo_srv_ioqueue.c 
    SOURCE                        timestamp.c 
    SOURCE                        timer.c 
    SOURCE                        thread.c 
    SOURCE                        test.c 
    SOURCE                        string_test.c 
    SOURCE                        sock_perf.c 
    SOURCE                        sock.c 
    SOURCE                        sleep.c 
    SOURCE                        select.c 
    SOURCE                        rbtree.c 
    SOURCE                        rand.c 
    SOURCE                        pool_perf.c 
    SOURCE                        pool.c 
    SOURCE                        os.c 
    SOURCE                        mutex.c 
    SOURCE                        main_symbian.cpp 
    SOURCE                        list.c 
    SOURCE                        ioq_unreg.c 
    SOURCE                        ioq_udp.c 
    SOURCE                        ioq_tcp.c 
    SOURCE                        ioq_perf.c 
    SOURCE                        file.c 
    SOURCE                        fifobuf.c 
    SOURCE                        exception.c 
    SOURCE                        errno.c 
    SOURCE                        echo_clt.c 
    SOURCE                        atomic.c 
    
    SYSTEMINCLUDE                           ..\pjlib\include 
    SYSTEMINCLUDE                           \epoc32\include 
    SYSTEMINCLUDE                           \epoc32\include\libc 
    LIBRARY                                 pjlib.lib 
    LIBRARY                                 esock.lib 
    LIBRARY                                 insock.lib 
    LIBRARY                                 charconv.lib 
    LIBRARY                                 euser.lib 
    LIBRARY                                 estlib.lib 
    STATICLIBRARY                           ecrt0.lib 
    CAPABILITY                              None
    also in .mmp i have SOURCEPATH ..\pjlib\src\pjlib_test, not ..\pjlib\src\pjlib-test.
    So the source directory should be "\diplomarbeit\pjsip\pjlib\src\pjlib_test\main_symbian.cpp", instead of "\diplomarbeit\pjsip\pjlib\src\pjlib-test\main_symbian.cpp"
    I'm confused now.
    Timo, do you still remember, where did you make the changes? the directory name(done)? SOURCEPATH in .mmp file(done)? and maybe ... somewhere else?
    Any help or suggestion would be appreciated.
    When you need the other files, I'm ready to post it.

    Thanks,
    anton

  5. #5
    Registered User
    Join Date
    Nov 2006
    Posts
    2

    Re: carbide.vs: Bug in invocation of mwccsym2.exe?

    I also have the same problem, and IMO it's REALLY REALLY BAD to disallow "-" in the directory names. My solution is simple, switch to CodeWarrior personal edition evaluation version which works like charm. :D

    (Before you frame me, I'm in no way associated with MetroWerks)

  6. #6
    Registered User
    Join Date
    Apr 2005
    Posts
    25

    Re: carbide.vs: Bug in invocation of mwccsym2.exe?

    Hi,

    you also have to correct the include directories for the VS 2003. Go to

    Project -> Properties -> C/C++ -> General and correct the "Additional Include Directories" field.

Similar Threads

  1. Carbide.vs 2.0.1 and 2.0.2 Tips and Known Issues
    By mitts in forum Symbian Tools & SDKs
    Replies: 15
    Last Post: 2008-05-05, 11:57
  2. Request for input on Carbide.vs 2.0 Help
    By mitts in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2006-01-10, 09:16
  3. A bug: setColor with offscreen graphics - PLEASE, REPLY THIS TIME
    By palmcrust in forum Mobile Java General
    Replies: 11
    Last Post: 2003-12-04, 12:43
  4. Firmware bug or code bug displaying list on 3650
    By blackjack75 in forum Mobile Java General
    Replies: 2
    Last Post: 2003-09-24, 19:52
  5. Replies: 8
    Last Post: 2003-07-11, 12:56

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×