forth32 / huaweicalc

Huawei modem unlock code calculator
GNU General Public License v3.0
92 stars 43 forks source link

Ошибка при сборке пакета #3

Open petRUShka opened 8 years ago

petRUShka commented 8 years ago

Делаю qmake, make. На выходе ошибка:

g++ -c -pipe -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I. -isystem /usr/include/qt -isystem /usr/include/qt/QtWidgets -isystem /usr/include/qt/QtGui -isystem /usr/include/qt/QtCore -I. -I. -I/usr/lib/qt/mkspecs/linux-g++ -o encrypt_4.o encrypt_4.cpp
encrypt_4.cpp: In function ‘void enc4_sub_1(char*, int*)’:
encrypt_4.cpp:207:54: error: narrowing conversion of ‘4023233417u’ from ‘unsigned int’ to ‘int’ inside { } [-Wnarrowing]
 int hc[]={0x67452301,0xEFCDAB89,0x98BADCFE,0x10325476};
                                                      ^
encrypt_4.cpp:207:54: error: narrowing conversion of ‘2562383102u’ from ‘unsigned int’ to ‘int’ inside { } [-Wnarrowing]
encrypt_4.cpp:209:120: error: narrowing conversion of ‘128’ from ‘int’ to ‘char’ inside { } [-Wnarrowing]
                  0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0,   0, 0,0 };
                                                                                                                        ^
Makefile:645: recipe for target 'encrypt_4.o' failed
make: *** [encrypt_4.o] Error 1
petRUShka commented 8 years ago

Версия g++

g++ -v                                                                                                                                                                                2 ↵
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/6.1.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --disable-multilib --disable-werror --enable-checking=release
Thread model: posix
gcc version 6.1.1 20160501 (GCC) 

Версии make и qmake

─➤  make --version
GNU Make 4.1
Built for x86_64-unknown-linux-gnu
Copyright (C) 1988-2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

─➤  qmake --version
QMake version 3.0
Using Qt version 5.6.0 in /usr/lib
ValdikSS commented 8 years ago

See #4