visualfc / liteide

LiteIDE is a simple, open source, cross-platform Go IDE.
GNU Lesser General Public License v2.1
7.52k stars 966 forks source link

Build errors #866

Closed SergeyDjam closed 6 years ago

SergeyDjam commented 6 years ago

Please answer these questions before submitting your issue. Thanks!

What version of LiteIDE are you using (LiteIDE About - Version and Build Qt Version)?

LiteIDE x33 Qt5 5.6.1

What version of Go are you using (go version)?

go version go1.9 linux/amd64

What operating system and processor architecture are you using(go env)?

go env GOARCH="amd64" GOBIN="" GOEXE="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOOS="linux" GOPATH="/home/admin/go" GORACE="" GOROOT="/usr/lib64/golang-cross" GOTOOLDIR="/usr/lib64/golang-cross/pkg/tool/linux_amd64" GCCGO="/usr/bin/gccgo" CC="gcc" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build878857618=/tmp/go-build -gno-record-gcc-switches" CXX="g++" CGO_ENABLED="1" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config"

What did you do?

build
qmake-qt4
make
....
cd diff_match_patch/ && /usr/bin/make -f Makefile 
make[3]: Entering directory '/home/admin/rpmbuild/BUILD/liteide-x33/liteidex/src/3rdparty/diff_match_patch'
g++ -c -pipe -std=gnu++0x -O2 -Wa,--compress-debug-sections -gdwarf-4 -fvar-tracking-assignments -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fno-delete-null-pointer-checks -fstack-protector --param=ssp-buffer-size=4 -fPIC -fno-strict-aliasing -DPIC -fPIC -g1 -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -Wall -W -D_REENTRANT -DLITEAPP_LIBRARY -DIDE_LIBRARY_BASENAME=\"lib\" -DQT_NO_CAST_TO_ASCII -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/lib/qt4/mkspecs/linux-g++ -I. -I/usr/lib/qt4/include/QtCore -I/usr/lib/qt4/include/QtGui -I/usr/lib/qt4/include -I../../api -I../../api/liteapi -I../../utils -I../../3rdparty -I.moc/release-shared -o .obj/release-shared/diff_match_patch.o diff_match_patch.cpp
diff_match_patch.cpp: In member function 'QString Diff::toString() const':
diff_match_patch.cpp:69:37: error: format not a string literal and no format arguments [-Werror=format-security]
       + prettyText + QString("\")")));
                                     ^
diff_match_patch.cpp: In member function 'int diff_match_patch::match_bitap(const QString&, const QString&, int)':
diff_match_patch.cpp:1454:40: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses]
         rd[j] = ((rd[j + 1] << 1) | 1) & charMatch
                                        ^
cc1plus: some warnings being treated as errors
make[3]: *** [Makefile:224: .obj/release-shared/diff_match_patch.o] Error 1
make[3]: Leaving directory '/home/admin/rpmbuild/BUILD/liteide-x33/liteidex/src/3rdparty/diff_match_patch'
make[2]: *** [Makefile:485: sub-diff_match_patch-make_default-ordered] Error 2
make[2]: Leaving directory '/home/admin/rpmbuild/BUILD/liteide-x33/liteidex/src/3rdparty'
make[1]: *** [Makefile:81: sub-3rdparty-make_default-ordered] Error 2
make[1]: Leaving directory '/home/admin/rpmbuild/BUILD/liteide-x33/liteidex/src'
make: *** [Makefile:39: sub-src-make_default-ordered] Error 2
error: Неверный код возврата из /var/tmp/rpm-tmp.64259 (%build)

Ошибки сборки пакетов:
    Неверный код возврата из /var/tmp/rpm-tmp.64259 (%build)

If possible, provide a recipe for reproducing the error.

What did you expect to see?

What did you see instead?

what fix this problem?

SergeyDjam commented 6 years ago

Thank you