Skip to content
This repository has been archived by the owner on Dec 25, 2021. It is now read-only.

calamares fails to build #8

Closed
ahmetsevinc77 opened this issue Apr 12, 2018 · 0 comments
Closed

calamares fails to build #8

ahmetsevinc77 opened this issue Apr 12, 2018 · 0 comments

Comments

@ahmetsevinc77
Copy link

calamares fails to build from your fork. I can build ok from calamares directly. This is the error:


/home/user/customrepo/calamares/src/modules/partition/jobs/MoveFileSystemJob.cpp:125:17: error: ‘class CopySourceDevice’ has no member named ‘sectorSize’
     if ( source.sectorSize() != target.sectorSize() )
                 ^~~~~~~~~~
/home/user/customrepo/calamares/src/modules/partition/jobs/MoveFileSystemJob.cpp:125:40: error: ‘class CopyTargetDevice’ has no member named ‘sectorSize’
     if ( source.sectorSize() != target.sectorSize() )
                                        ^~~~~~~~~~
/home/user/customrepo/calamares/src/modules/partition/jobs/MoveFileSystemJob.cpp:135:32: error: ‘class CopySourceDevice’ has no member named ‘firstSector’; did you mean ‘firstByte’?
     qint64 readOffset = source.firstSector();
                                ^~~~~~~~~~~
                                firstByte
/home/user/customrepo/calamares/src/modules/partition/jobs/MoveFileSystemJob.cpp:136:33: error: ‘class CopyTargetDevice’ has no member named ‘firstSector’; did you mean ‘firstByte’?
     qint64 writeOffset = target.firstSector();
                                 ^~~~~~~~~~~
                                 firstByte
/home/user/customrepo/calamares/src/modules/partition/jobs/MoveFileSystemJob.cpp:139:17: error: ‘class CopyTargetDevice’ has no member named ‘firstSector’; did you mean ‘firstByte’?
     if ( target.firstSector() > source.firstSector() )
                 ^~~~~~~~~~~
                 firstByte
/home/user/customrepo/calamares/src/modules/partition/jobs/MoveFileSystemJob.cpp:139:40: error: ‘class CopySourceDevice’ has no member named ‘firstSector’; did you mean ‘firstByte’?
     if ( target.firstSector() > source.firstSector() )
                                        ^~~~~~~~~~~
                                        firstByte
/home/user/customrepo/calamares/src/modules/partition/jobs/MoveFileSystemJob.cpp:141:29: error: ‘class CopySourceDevice’ has no member named ‘firstSector’; did you mean ‘firstByte’?
         readOffset = source.firstSector() + source.length() - blockSize;
                             ^~~~~~~~~~~
                             firstByte
/home/user/customrepo/calamares/src/modules/partition/jobs/MoveFileSystemJob.cpp:142:30: error: ‘class CopyTargetDevice’ has no member named ‘firstSector’; did you mean ‘firstByte’?
         writeOffset = target.firstSector() + source.length() - blockSize;
                              ^~~~~~~~~~~
                              firstByte
In file included from /home/user/customrepo/calamares/src/libcalamares/DllMacro.h:22:0,
                 from /home/user/customrepo/calamares/src/libcalamares/Job.h:22,
                 from /home/user/customrepo/calamares/src/modules/partition/jobs/PartitionJob.h:22,
                 from /home/user/customrepo/calamares/src/modules/partition/jobs/MoveFileSystemJob.h:43,
                 from /home/user/customrepo/calamares/src/modules/partition/jobs/MoveFileSystemJob.cpp:43:
/home/user/customrepo/calamares/src/modules/partition/jobs/MoveFileSystemJob.cpp:149:22: error: ‘class CopySourceDevice’ has no member named ‘sectorSize’
     Q_ASSERT( source.sectorSize() > 0 );
                      ^
/home/user/customrepo/calamares/src/modules/partition/jobs/MoveFileSystemJob.cpp:150:34: error: ‘class CopySourceDevice’ has no member named ‘sectorSize’
     Q_ASSERT( blockSize * source.sectorSize() > 0 );
                                  ^
/home/user/customrepo/calamares/src/modules/partition/jobs/MoveFileSystemJob.cpp:152:55: error: ‘class CopySourceDevice’ has no member named ‘sectorSize’
     void* buffer = malloc( size_t( blockSize * source.sectorSize() ) );
                                                       ^~~~~~~~~~
/home/user/customrepo/calamares/src/modules/partition/jobs/MoveFileSystemJob.cpp:157:23: error: ‘class CopySourceDevice’ has no member named ‘readSectors’
         rval = source.readSectors( buffer, readOffset + blockSize * blocksCopied * copyDir, blockSize );
                       ^~~~~~~~~~~
/home/user/customrepo/calamares/src/modules/partition/jobs/MoveFileSystemJob.cpp:161:23: error: ‘class CopyTargetDevice’ has no member named ‘writeSectors’; did you mean ‘writeData’?
         rval = target.writeSectors( buffer, writeOffset + blockSize * blocksCopied * copyDir, blockSize );
                       ^~~~~~~~~~~~
                       writeData
/home/user/customrepo/calamares/src/modules/partition/jobs/MoveFileSystemJob.cpp:179:105: error: ‘class CopySourceDevice’ has no member named ‘firstSector’; did you mean ‘firstByte’?
 = copyDir > 0 ? readOffset + blockSize * blocksCopied : source.firstSector();
                                                                ^~~~~~~~~~~
                                                                                                         firstByte
/home/user/customrepo/calamares/src/modules/partition/jobs/MoveFileSystemJob.cpp:180:107: error: ‘class CopyTargetDevice’ has no member named ‘firstSector’; did you mean ‘firstByte’?
  copyDir > 0 ? writeOffset + blockSize * blocksCopied : target.firstSector();
                                                                ^~~~~~~~~~~
                                                                                                           firstByte
/home/user/customrepo/calamares/src/modules/partition/jobs/MoveFileSystemJob.cpp:182:23: error: ‘class CopySourceDevice’ has no member named ‘readSectors’
         rval = source.readSectors( buffer, lastBlockReadOffset, lastBlock );
                       ^~~~~~~~~~~
/home/user/customrepo/calamares/src/modules/partition/jobs/MoveFileSystemJob.cpp:185:27: error: ‘class CopyTargetDevice’ has no member named ‘writeSectors’; did you mean ‘writeData’?
             rval = target.writeSectors( buffer, lastBlockWriteOffset, lastBlock );
                           ^~~~~~~~~~~~
                           writeData
/home/user/customrepo/calamares/src/modules/partition/jobs/MoveFileSystemJob.cpp: In member function ‘bool MoveFileSystemJob::rollbackCopyBlocks(Report&, CopyTargetDevice&, CopySourceDevice&)’:
/home/user/customrepo/calamares/src/modules/partition/jobs/MoveFileSystemJob.cpp:206:47: error: ‘class CopyTargetDevice’ has no member named ‘firstSector’; did you mean ‘firstByte’?
     qint64 undoSourceFirstSector = origTarget.firstSector();
                                               ^~~~~~~~~~~
                                               firstByte
/home/user/customrepo/calamares/src/modules/partition/jobs/MoveFileSystemJob.cpp:207:46: error: ‘class CopyTargetDevice’ has no member named ‘firstSector’; did you mean ‘firstByte’?
     qint64 undoSourceLastSector = origTarget.firstSector() + origTarget.sectorsWritten() - 1;
                                              ^~~~~~~~~~~
                                              firstByte
/home/user/customrepo/calamares/src/modules/partition/jobs/MoveFileSystemJob.cpp:207:73: error: ‘class CopyTargetDevice’ has no member named ‘sectorsWritten’; did you mean ‘setBytesWritten’?
 4 undoSourceLastSector = origTarget.firstSector() + origTarget.sectorsWritten() - 1;
                                                                ^~~~~~~~~~~~~~
                                                                         setBytesWritten
/home/user/customrepo/calamares/src/modules/partition/jobs/MoveFileSystemJob.cpp:209:47: error: ‘class CopySourceDevice’ has no member named ‘firstSector’; did you mean ‘firstByte’?
     qint64 undoTargetFirstSector = origSource.firstSector();
                                               ^~~~~~~~~~~
                                               firstByte
/home/user/customrepo/calamares/src/modules/partition/jobs/MoveFileSystemJob.cpp:210:46: error: ‘class CopySourceDevice’ has no member named ‘firstSector’; did you mean ‘firstByte’?
     qint64 undoTargetLastSector = origSource.firstSector() + origTarget.sectorsWritten() - 1;
                                              ^~~~~~~~~~~
                                              firstByte
/home/user/customrepo/calamares/src/modules/partition/jobs/MoveFileSystemJob.cpp:210:73: error: ‘class CopyTargetDevice’ has no member named ‘sectorsWritten’; did you mean ‘setBytesWritten’?
 4 undoTargetLastSector = origSource.firstSector() + origTarget.sectorsWritten() - 1;
                                                                ^~~~~~~~~~~~~~
                                                                         setBytesWritten
/home/user/customrepo/calamares/src/modules/partition/jobs/MoveFileSystemJob.cpp:212:21: error: ‘class CopyTargetDevice’ has no member named ‘firstSector’; did you mean ‘firstByte’?
     if ( origTarget.firstSector() > origSource.firstSector() )
                     ^~~~~~~~~~~
                     firstByte
/home/user/customrepo/calamares/src/modules/partition/jobs/MoveFileSystemJob.cpp:212:48: error: ‘class CopySourceDevice’ has no member named ‘firstSector’; did you mean ‘firstByte’?
     if ( origTarget.firstSector() > origSource.firstSector() )
                                                ^~~~~~~~~~~
                                                firstByte
/home/user/customrepo/calamares/src/modules/partition/jobs/MoveFileSystemJob.cpp:215:44: error: ‘class CopyTargetDevice’ has no member named ‘firstSector’; did you mean ‘firstByte’?
         undoSourceFirstSector = origTarget.firstSector() + origSource.length() - origTarget.sectorsWritten();
                                            ^~~~~~~~~~~
                                            firstByte
/home/user/customrepo/calamares/src/modules/partition/jobs/MoveFileSystemJob.cpp:215:93: error: ‘class CopyTargetDevice’ has no member named ‘sectorsWritten’; did you mean ‘setBytesWritten’?
  = origTarget.firstSector() + origSource.length() - origTarget.sectorsWritten();
                                                                ^~~~~~~~~~~~~~
                                                                                             setBytesWritten
/home/user/customrepo/calamares/src/modules/partition/jobs/MoveFileSystemJob.cpp:216:43: error: ‘class CopyTargetDevice’ has no member named ‘firstSector’; did you mean ‘firstByte’?
         undoSourceLastSector = origTarget.firstSector() + origSource.length() - 1;
                                           ^~~~~~~~~~~
                                           firstByte
/home/user/customrepo/calamares/src/modules/partition/jobs/MoveFileSystemJob.cpp:218:44: error: ‘class CopySourceDevice’ has no member named ‘lastSector’; did you mean ‘lastByte’?
         undoTargetFirstSector = origSource.lastSector() - origTarget.sectorsWritten() + 1;
                                            ^~~~~~~~~~
                                            lastByte
/home/user/customrepo/calamares/src/modules/partition/jobs/MoveFileSystemJob.cpp:218:70: error: ‘class CopyTargetDevice’ has no member named ‘sectorsWritten’; did you mean ‘setBytesWritten’?
   undoTargetFirstSector = origSource.lastSector() - origTarget.sectorsWritten() + 1;
                                                                ^~~~~~~~~~~~~~
                                                                      setBytesWritten
/home/user/customrepo/calamares/src/modules/partition/jobs/MoveFileSystemJob.cpp:219:43: error: ‘class CopySourceDevice’ has no member named ‘lastSector’; did you mean ‘lastByte’?
         undoTargetLastSector = origSource.lastSector();
                                           ^~~~~~~~~~
                                           lastByte
make[2]: *** [src/modules/partition/CMakeFiles/calamares_viewmodule_partition.dir/build.make:907: src/modules/partition/CMakeFiles/calamares_viewmodule_partition.dir/jobs/MoveFileSystemJob.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1937: src/modules/partition/CMakeFiles/calamares_viewmodule_partition.dir/all] Error 2
make: *** [Makefile:141: all] Error 2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants