×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Jan 2007
    Posts
    8

    Strange Compilation error: "fatal error: error writing to -: Invalid argument"

    Hello fellows,

    I have a problem in compiling from the console for GCCE. I got the following error message which I don´t know what generates it:

    Assembler messages:
    FATAL: can't create ..\\..\\..\\..\\..\\..\\..\\Symbian\\9.1\\S60_3rd_MR_2\\EPOC32\\BUILD\\Projects\\Smaato\\Trunk\\Client\\Symbian\\Series_60\\DatabaseEngine\\DATABASEENGINES60_30\\GCCE\\UREL\\Symbia
    nRecordsDatabase.o: No such file or directory
    src\\Symbianrecordsdatabase.cpp:69: fatal error: error writing to -: Invalid argument
    compilation terminated.

    The problem is that that line is just the end of the file, the only character there is ´}´ so I don´t really know what to do. I have even comented all functions bodyes (so that i end up whith clean cpp file with just one empty class declaration and previously included .h files) but again i get the same error. The code compiles succesfully for WINSCW in both cases but for GCCE platform there's no success. Here's the output from clean build from the console:

    Code:
    D:\Projects\Smaato\Trunk\Client\Symbian\Series_60\DatabaseEngine>abld build gcce
      make -r  -f "\Symbian\9.1\S60_3rd_MR_2\EPOC32\BUILD\Projects\Smaato\Trunk\Client\Symbian\Series_60\DatabaseEngine\EXPORT.make" EXPORT VERBOSE=-s
    Nothing to do
      make -r  -f "\Symbian\9.1\S60_3rd_MR_2\EPOC32\BUILD\Projects\Smaato\Trunk\Client\Symbian\Series_60\DatabaseEngine\GCCE.make" MAKEFILE VERBOSE=-s
    perl -S makmake.pl  -D \Projects\Smaato\Trunk\Client\Symbian\Series_60\DatabaseEngine\DATABASEENGINES60_30 GCCE
    WARNING: Frozen .DEF file \Projects\Smaato\Trunk\Client\Symbian\Series_60\EABI\SomaDatabaseEngine_0x2000A23F.DEF not found - project not frozen
      make -r  -f "\Symbian\9.1\S60_3rd_MR_2\EPOC32\BUILD\Projects\Smaato\Trunk\Client\Symbian\Series_60\DatabaseEngine\GCCE.make" LIBRARY VERBOSE=-s
    make -s  -r -f "\Symbian\9.1\S60_3rd_MR_2\EPOC32\BUILD\Projects\Smaato\Trunk\Client\Symbian\Series_60\DatabaseEngine\DATABASEENGINES60_30\GCCE\DATABASEENGINES60_30.GCCE" LIBRARY
    Not attempting to create "..\..\..\..\..\..\..\Symbian\9.1\S60_3rd_MR_2\EPOC32\RELEASE\ARMV5\LIB\SomaDatabaseEngine_0x2000A23F.dso"
    from frozen .DEF file, since EXPORTUNFROZEN specified.
      make -r  -f "\Symbian\9.1\S60_3rd_MR_2\EPOC32\BUILD\Projects\Smaato\Trunk\Client\Symbian\Series_60\DatabaseEngine\GCCE.make" RESOURCE CFG=UDEB VERBOSE=-s
    make -s  -r -f "\Symbian\9.1\S60_3rd_MR_2\EPOC32\BUILD\Projects\Smaato\Trunk\Client\Symbian\Series_60\DatabaseEngine\DATABASEENGINES60_30\GCCE\DATABASEENGINES60_30.GCCE" RESOURCEUDEB
      make -r  -f "\Symbian\9.1\S60_3rd_MR_2\EPOC32\BUILD\Projects\Smaato\Trunk\Client\Symbian\Series_60\DatabaseEngine\GCCE.make" RESOURCE CFG=UREL VERBOSE=-s
    make -s  -r -f "\Symbian\9.1\S60_3rd_MR_2\EPOC32\BUILD\Projects\Smaato\Trunk\Client\Symbian\Series_60\DatabaseEngine\DATABASEENGINES60_30\GCCE\DATABASEENGINES60_30.GCCE" RESOURCEUREL
      make -r  -f "\Symbian\9.1\S60_3rd_MR_2\EPOC32\BUILD\Projects\Smaato\Trunk\Client\Symbian\Series_60\DatabaseEngine\GCCE.make" TARGET CFG=UDEB VERBOSE=-s
    make -s  -r -f "\Symbian\9.1\S60_3rd_MR_2\EPOC32\BUILD\Projects\Smaato\Trunk\Client\Symbian\Series_60\DatabaseEngine\DATABASEENGINES60_30\GCCE\DATABASEENGINES60_30.GCCE" UDEB
    Databaseobject.cpp
    src\\Databaseobject.cpp: In function `ErrorCode GetObjectName(void*, char*, RecordSize*)':
    src\\Databaseobject.cpp:233: warning: comparison between signed and unsigned integer expressions
    Objectdatabase.cpp
    src\\Objectdatabase.cpp: In function `RecordID GetDeletedIndex(ObjectsDatabase*)':
    src\\Objectdatabase.cpp:583: warning: converting of negative value `-0x00000000000000000' to `RecordID'
    src\\Objectdatabase.cpp: In function `ErrorCode MergeSearchResults(void*, void*, SetOperation, void**)':
    src\\Objectdatabase.cpp:1179: warning: unused variable 'resultSet'
    src\\Objectdatabase.cpp: In function `ErrorCode SetObject(void*, void*, bool, bool, bool, bool)':
    src\\Objectdatabase.cpp:1243: warning: unused variable 'count'
    src\\Objectdatabase.cpp: In function `ErrorCode GetDBObject(void*, void*)':
    src\\Objectdatabase.cpp:1394: warning: unused variable 'err'
    src\\Objectdatabase.cpp:1395: warning: unused variable 'getObject'
    src\\Objectdatabase.cpp: In function `ErrorCode GetAllObjects(void*, void**, int)':
    src\\Objectdatabase.cpp:1419: warning: unused variable 'err'
    src\\Objectdatabase.cpp:1421: warning: unused variable 'currIndex'
    src\\Objectdatabase.cpp:1460: warning: unused variable 'PropertyID'
    src\\Objectdatabase.cpp: In function `ErrorCode Search(void*, void*, void*, Sorting, void**, char*, void*, SetOperation)':
    src\\Objectdatabase.cpp:1639: warning: comparison between signed and unsigned integer expressions
    src\\Objectdatabase.cpp:1721: warning: comparison between signed and unsigned integer expressions
    src\\Objectdatabase.cpp:1737: warning: unused variable 'curPropName'
    src\\Objectdatabase.cpp:1836: warning: unused variable 'PropertyID'
    src\\Objectdatabase.cpp:1954: warning: unused variable 'PropertyID'
    src\\Objectdatabase.cpp:2105: warning: converting of negative value `-0x00000000000000000' to `RecordID'
    src\\Objectdatabase.cpp:2129: warning: comparison between signed and unsigned integer expressions
    src\\Objectdatabase.cpp:2143: warning: unused variable 'StayID'
    src\\Objectdatabase.cpp:1604: warning: unused variable 'i'
    src\\Objectdatabase.cpp:1605: warning: unused variable 'max'
    src\\Objectdatabase.cpp: In function `ErrorCode SetDBProperty(void*, char*, char*, PropertyType, void*, RecordSize, bool, bool)':
    src\\Objectdatabase.cpp:2456: warning: unused variable 'err'
    src\\Objectdatabase.cpp:2458: warning: unused variable 'aDataSize'
    src\\Objectdatabase.cpp: At global scope:
    src\\Objectdatabase.cpp:29: warning: 'void MemoryFree(void*)' defined but not used
    src\\Objectdatabase.cpp:442: warning: 'int ComparePropertyName(ObjectProperty*, ObjectProperty*)' defined but not used
    src\\Objectdatabase.cpp:501: warning: 'int ComparePropertyValue(const ObjectProperty*, const ObjectProperty*)' defined but not used
    src\\Objectdatabase.cpp:1042: warning: 'void CalculateSubsetLength(ObjectsDatabase*, SubSet*, Sorting)' defined but not used
    Symbianrecordsdatabase.cpp
    Assembler messages:
    FATAL: can't create ..\\..\\..\\..\\..\\..\\..\\Symbian\\9.1\\S60_3rd_MR_2\\EPOC32\\BUILD\\Projects\\Smaato\\Trunk\\Client\\Symbian\\Series_60\\DatabaseEngine\\DATABASEENGINES60_30\\GCCE\\UDEB\\Symbia
    nRecordsDatabase.o: No such file or directory
    src\\Symbianrecordsdatabase.cpp:69: fatal error: error writing to -: Invalid argument
    compilation terminated.
    make[1]: *** [..\..\..\..\..\..\..\Symbian\9.1\S60_3rd_MR_2\EPOC32\BUILD\Projects\Smaato\Trunk\Client\Symbian\Series_60\DatabaseEngine\DATABASEENGINES60_30\GCCE\UDEB\SymbianRecordsDatabase.o] Error 1
    make: *** [TARGETDATABASEENGINES60_30] Error 2
      make -r  -f "\Symbian\9.1\S60_3rd_MR_2\EPOC32\BUILD\Projects\Smaato\Trunk\Client\Symbian\Series_60\DatabaseEngine\GCCE.make" TARGET CFG=UREL VERBOSE=-s
    make -s  -r -f "\Symbian\9.1\S60_3rd_MR_2\EPOC32\BUILD\Projects\Smaato\Trunk\Client\Symbian\Series_60\DatabaseEngine\DATABASEENGINES60_30\GCCE\DATABASEENGINES60_30.GCCE" UREL
    Databaseobject.cpp
    src\\Databaseobject.cpp: In function `ErrorCode GetObjectName(void*, char*, RecordSize*)':
    src\\Databaseobject.cpp:233: warning: comparison between signed and unsigned integer expressions
    Objectdatabase.cpp
    src\\Objectdatabase.cpp: In function `RecordID GetDeletedIndex(ObjectsDatabase*)':
    src\\Objectdatabase.cpp:583: warning: converting of negative value `-0x00000000000000000' to `RecordID'
    src\\Objectdatabase.cpp: In function `ErrorCode MergeSearchResults(void*, void*, SetOperation, void**)':
    src\\Objectdatabase.cpp:1179: warning: unused variable 'resultSet'
    src\\Objectdatabase.cpp: In function `ErrorCode SetObject(void*, void*, bool, bool, bool, bool)':
    src\\Objectdatabase.cpp:1243: warning: unused variable 'count'
    src\\Objectdatabase.cpp: In function `ErrorCode GetDBObject(void*, void*)':
    src\\Objectdatabase.cpp:1394: warning: unused variable 'err'
    src\\Objectdatabase.cpp:1395: warning: unused variable 'getObject'
    src\\Objectdatabase.cpp: In function `ErrorCode GetAllObjects(void*, void**, int)':
    src\\Objectdatabase.cpp:1605: warning: unused variable 'max'
    src\\Objectdatabase.cpp: In function `ErrorCode SetDBProperty(void*, char*, char*, PropertyType, void*, RecordSize, bool, bool)':
    src\\Objectdatabase.cpp:2456: warning: unused variable 'err'
    src\\Objectdatabase.cpp:2458: warning: unused variable 'aDataSize'
    src\\Objectdatabase.cpp: At global scope:
    src\\Objectdatabase.cpp:29: warning: 'void MemoryFree(void*)' defined but not used
    src\\Objectdatabase.cpp:442: warning: 'int ComparePropertyName(ObjectProperty*, ObjectProperty*)' defined but not used
    src\\Objectdatabase.cpp:501: warning: 'int ComparePropertyValue(const ObjectProperty*, const ObjectProperty*)' defined but not used
    src\\Objectdatabase.cpp:1042: warning: 'void CalculateSubsetLength(ObjectsDatabase*, SubSet*, Sorting)' defined but not used
    Symbianrecordsdatabase.cpp
    Assembler messages:
    FATAL: can't create ..\\..\\..\\..\\..\\..\\..\\Symbian\\9.1\\S60_3rd_MR_2\\EPOC32\\BUILD\\Projects\\Smaato\\Trunk\\Client\\Symbian\\Series_60\\DatabaseEngine\\DATABASEENGINES60_30\\GCCE\\UREL\\Symbia
    nRecordsDatabase.o: No such file or directory
    src\\Symbianrecordsdatabase.cpp:69: fatal error: error writing to -: Invalid argument
    compilation terminated.
    make[1]: *** [..\..\..\..\..\..\..\Symbian\9.1\S60_3rd_MR_2\EPOC32\BUILD\Projects\Smaato\Trunk\Client\Symbian\Series_60\DatabaseEngine\DATABASEENGINES60_30\GCCE\UREL\SymbianRecordsDatabase.o] Error 1
    make: *** [TARGETDATABASEENGINES60_30] Error 2
      make -r  -f "\Symbian\9.1\S60_3rd_MR_2\EPOC32\BUILD\Projects\Smaato\Trunk\Client\Symbian\Series_60\DatabaseEngine\GCCE.make" FINAL CFG=UDEB VERBOSE=-s
      make -r  -f "\Symbian\9.1\S60_3rd_MR_2\EPOC32\BUILD\Projects\Smaato\Trunk\Client\Symbian\Series_60\DatabaseEngine\GCCE.make" FINAL CFG=UREL VERBOSE=-s
    Last edited by Evgeniz; 2007-04-12 at 12:07.

  2. #2
    Registered User
    Join Date
    Jan 2007
    Posts
    8

    Re: Strange Compilation error: fatal error: error writing to -: Invalid argument

    And also i forgot to mention, that when this error occurs the conpilations seems to break. I mean that there some cpp files that also have to be compiled but the build process never reaches them. When i put the cpp file which generates this strange error at the end of source files list in my mmp file, the other cpp get compiled but again the compilation breaks after this file.

  3. #3
    Registered User
    Join Date
    Nov 2003
    Posts
    8

    Re: Strange Compilation error: fatal error: error writing to -: Invalid argument

    This error is due to a long file path. You should move your .mmp file up the directory tree.

  4. #4
    Registered User
    Join Date
    May 2007
    Location
    India
    Posts
    197

    Re: Strange Compilation error: fatal error: error writing to -: Invalid argument

    Thanks it worked with me.
    Last edited by Digish; 2007-05-31 at 07:10.

  5. #5
    Super Contributor
    Join Date
    May 2005
    Location
    Hyderabad,India
    Posts
    704

    Re: Strange Compilation error: fatal error: error writing to -: Invalid argument

    Hi,

    As filio said, check your application directory. and move your application to your SDK's Series60Ex folder and try it.

    regards,
    eswar

Similar Threads

  1. error writing to -: Invalid argument
    By phoneynk in forum Symbian C++
    Replies: 2
    Last Post: 2007-03-18, 00:49
  2. Strange Compilation error
    By stefano.garusi in forum Symbian C++
    Replies: 7
    Last Post: 2006-10-09, 12:54
  3. Invalid argument error, why's it happening?
    By InfiniteCorridor in forum Python
    Replies: 0
    Last Post: 2006-09-06, 20:01
  4. D211 with RH7.3
    By fiveam in forum Multimodecards
    Replies: 3
    Last Post: 2003-02-24, 09:06
  5. Problem with Nokia D211 Linux Drivers
    By fiveam in forum Multimodecards
    Replies: 1
    Last Post: 1970-01-01, 02:00

Posting Permissions

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