×

Discussion Board

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

    Cant compile anything from commandline

    When I try to compile project from commandline the following happens:
    bldmake bldfiles
    - OK
    abld build winscw
    - The following errors appear:

    make -r -f "\Symbian\7.0s\SDK\EPOC32\BUILD\temp\testProj\common\debug\bld\EXPORT.make" EXPORT VERBOSE=-s
    make: Error -- `EXPORTDIRS' not found, and can't be made
    make -r -f "\Symbian\7.0s\SDK\EPOC32\BUILD\temp\testProj\common\debug\bld\WINSCW.make" MAKEFILE VERBOSE=-s
    make: \Symbian\7.0s\SDK\EPOC32\BUILD\temp\testProj\common\debug
    \bld\WINSCW.make: line 6: Error -- Expecting macro or rule defn, found neither

    make -r -f "\Symbian\7.0s\SDK\EPOC32\BUILD\temp\testProj\common\debug\bld\WINSCW.make" LIBRARY VERBOSE=-s
    make: \Symbian\7.0s\SDK\EPOC32\BUILD\temp\testProj\common\debug
    \bld\WINSCW.make: line 6: Error -- Expecting macro or rule defn, found neither

    etc..

    The error:
    "\bld\WINSCW.make: line 6: Error -- Expecting macro or rule defn, found neither"
    comes many times after that.

    The strange thing is that my environemnt worked before my computer was updated/moved to other domain.
    Currectly i can compile files in CW IDE, but i need cmdline to get DEF files done.
    I have tried:
    - test compiling in my computer as different user
    - compared env variables to another working environment.
    - checked any of the files/dirs under "SDK" or "testProj" is not write protected.

    Any idea what might be wrong? What else could I do?

    I use winXP SP1, CW2.8, Active perl 5.8.6.

    Heres contents of my WINSCW.make, Is something generated incorrectly?
    /* copy paste begin */
    # set Path for custom builds using GCC - must set Path and PATH
    Path:=C:\Symbian\7.0s\SDK\EPOC32\gcc\bin;$(Path)
    PATH:=$(Path)

    # prevent MAKEFLAGS variable from upsetting calls to NMAKE
    unexport MAKEFLAGS

    ERASE = @erase 2>>nul


    ifdef EFREEZE_ALLOW_REMOVE
    REMOVEMACRO := EFREEZE_ALLOW_REMOVE=-remove
    endif


    CLEAN : CLEANRFTSFCOPY

    CLEANMAKEFILE : CLEANMAKEFILERFTSFCOPY

    CLEANALL : CLEANALLRFTSFCOPY

    FINAL : FINALRFTSFCOPY

    FREEZE : FREEZERFTSFCOPY

    LIBRARY : LIBRARYRFTSFCOPY

    MAKEFILE : MAKEFILERFTSFCOPY

    RESOURCE : RESOURCERFTSFCOPY

    SAVESPACE : SAVESPACERFTSFCOPY

    TARGET : TARGETRFTSFCOPY

    LISTING : LISTINGRFTSFCOPY

    WHATMAKEFILE : WHATMAKEFILERFTSFCOPY

    WHAT : WHATRFTSFCOPY

    TIDY :
    @echo Nothing to do


    ROMFILE :


    MAKEFILERFTSFCOPY_FILES= \
    "\Symbian\7.0s\SDK\EPOC32\BUILD\temp\testProj\common\fcopy\bld\RFTSFCOPY\WINSCW\RFTSFCOPY.WINSCW" \
    "\Symbian\7.0s\SDK\EPOC32\BUILD\temp\testProj\common\fcopy\bld\RFTSFCOPY\WINSCW\RFTSFCOPY.UID.CPP"

    MAKEFILERFTSFCOPY :
    perl -S makmake.pl $(NO_DEPENDENCIES) -D \temp\testProj\common\fcopy\bld\RFTSFCOPY WINSCW

    CLEANMAKEFILERFTSFCOPY :
    -$(ERASE) $(MAKEFILERFTSFCOPY_FILES)

    WHATMAKEFILERFTSFCOPY :
    @echo $(MAKEFILERFTSFCOPY_FILES)

    TARGETRFTSFCOPY :
    $(MAKE) $(VERBOSE) $(KEEPGOING) -r -f "\Symbian\7.0s\SDK\EPOC32\BUILD\temp\testProj\common\fcopy\bld\RFTSFCOPY\WINSCW\RFTSFCOPY.WINSCW" $(CFG)

    SAVESPACERFTSFCOPY :
    $(MAKE) $(VERBOSE) $(KEEPGOING) -r -f "\Symbian\7.0s\SDK\EPOC32\BUILD\temp\testProj\common\fcopy\bld\RFTSFCOPY\WINSCW\RFTSFCOPY.WINSCW" $(CFG) CLEANBUILD$(CFG)

    LISTINGRFTSFCOPY :
    $(MAKE) $(VERBOSE) $(KEEPGOING) -r -f "\Symbian\7.0s\SDK\EPOC32\BUILD\temp\testProj\common\fcopy\bld\RFTSFCOPY\WINSCW\RFTSFCOPY.WINSCW" MAKEWORK$(CFG) LISTING$(CFG)$(SOURCE)

    FINALRFTSFCOPY :
    @rem do nothing

    CLEANALLRFTSFCOPY :
    perl -S ermdir.pl \Symbian\7.0s\SDK\EPOC32\BUILD\temp\testProj\common\fcopy\bld\RFTSFCOPY\WINSCW\

    CLEANRFTSFCOPY :
    $(MAKE) $(VERBOSE) $(KEEPGOING) -r -f "\Symbian\7.0s\SDK\EPOC32\BUILD\temp\testProj\common\fcopy\bld\RFTSFCOPY\WINSCW\RFTSFCOPY.WINSCW" CLEAN$(CFG)

    RESOURCERFTSFCOPY :
    $(MAKE) $(VERBOSE) $(KEEPGOING) -r -f "\Symbian\7.0s\SDK\EPOC32\BUILD\temp\testProj\common\fcopy\bld\RFTSFCOPY\WINSCW\RFTSFCOPY.WINSCW" RESOURCE$(CFG)

    LIBRARYRFTSFCOPY :
    $(MAKE) $(VERBOSE) $(KEEPGOING) -r -f "\Symbian\7.0s\SDK\EPOC32\BUILD\temp\testProj\common\fcopy\bld\RFTSFCOPY\WINSCW\RFTSFCOPY.WINSCW" LIBRARY

    FREEZERFTSFCOPY :
    $(MAKE) $(VERBOSE) $(KEEPGOING) -r -f "\Symbian\7.0s\SDK\EPOC32\BUILD\temp\testProj\common\fcopy\bld\RFTSFCOPY\WINSCW\RFTSFCOPY.WINSCW" FREEZE $(REMOVEMACRO)

    WHATRFTSFCOPY :
    @$(MAKE) $(VERBOSE) $(KEEPGOING) -r -s -f "\Symbian\7.0s\SDK\EPOC32\BUILD\temp\testProj\common\fcopy\bld\RFTSFCOPY\WINSCW\RFTSFCOPY.WINSCW" WHAT$(CFG)

    ROMFILERFTSFCOPY :
    @$(MAKE) $(VERBOSE) $(KEEPGOING) -r -f "\Symbian\7.0s\SDK\EPOC32\BUILD\temp\testProj\common\fcopy\bld\RFTSFCOPY\WINSCW\RFTSFCOPY.WINSCW" ROMFILE >> \Symbian\7.0s\SDK\EPOC32\ROM\temp\testProj\common\fcopy\bld\WINSCW.IBY



    /* copypaste end */

  2. #2
    Nokia Developer Expert
    Join Date
    Oct 2004
    Location
    Austin, TX USA
    Posts
    271
    You say it worked before your machine was updated/moved to another domain. Were there any other updates involved, other than logging into a different domain? Do you have any network folders in your PATH?

    Regards,

    Matt Pinsonneault
    Nokia Developer Support

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

    Re: Cant compile anything from commandline

    I recently had this error when installing a new development environment.

    The problem was resolved by removing a path from my PATH environment variable. Do you have this path? If so, try removing it.....

    C:\Program Files\ARM\RVD\Core\1.8.1\464\win_32-pentium\bin

    I think that this is installed by the RealView tools. If you don't have them installed, it seems likely that something else in your path is causing the problem.

    Cheers,
    Jim

  4. #4
    Registered User
    Join Date
    Feb 2007
    Posts
    1

    Smile Re: Cant compile anything from commandline

    This could sound odd, but I had the same issue and the root cause was that my path variable "epoc32\gcc\bin" and "epoc32\tools", was at the END of the path , as soon as I put in the BEGINNING of the path, the issue was solved.

    Regards.

    Liber AC

  5. #5
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,693

    Re: Cant compile anything from commandline

    You might have some other GCC installations then.

  6. #6
    Registered User
    Join Date
    Sep 2007
    Posts
    2

    Wink Re: Cant compile anything from commandline

    I had the same problem and wasn't able to compile anything from the commandline when I installed a SDK for the first time and the path variable wasn't set up.

    As lcastillo said, the issue is fixed when the <EPOCROOT>\epoc32\tools and <EPOCROOT>\epoc32\gcc\bin are placed at the BEGINNING of the path variable.

    PATH (Old)

    C:\Perl\bin;
    C:\WINDOWS\system32;
    C:\WINDOWS;
    C:\WINDOWS\System32\Wbem;
    C:\Program Files\ARM\bin\win_32-pentium;
    C:\Program Files\ARM\RVD\Core\1.8.1\497\win_32-pentium\bin;
    C:\Program Files\ARM\RVCT\Programs\2.2\503\win_32-pentium;
    C:\Program Files\ARM\Utilities\FLEXlm\9.2\release\win_32-pentium;
    <EPOCROOT>\epoc32\tools;
    <EPOCROOT>\epoc32\gcc\bin;

    Path (New - works!)

    <EPOCROOT>\epoc32\tools;
    <EPOCROOT>\epoc32\gcc\bin;
    C:\Perl\bin;
    C:\WINDOWS\system32;
    C:\WINDOWS;
    C:\WINDOWS\System32\Wbem;
    C:\Program Files\ARM\bin\win_32-pentium;
    C:\Program Files\ARM\RVD\Core\1.8.1\497\win_32-pentium\bin;
    C:\Program Files\ARM\RVCT\Programs\2.2\503\win_32-pentium;
    C:\Program Files\ARM\Utilities\FLEXlm\9.2\release\win_32-pentium;

    Where <EPOCROOT> depends on which SDK is installed.

Posting Permissions

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