D: [iurt_root_command] chroot RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument RTNETLINK answers: Invalid argument Installing /home/pterjan/rpmbuild/SRPMS/virtualmoon-6.0-6.mga7.src.rpm Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.vzYxly + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf virtualmoon-6.0-src + /usr/bin/tar -xof - + /usr/bin/gzip -dc /home/pterjan/rpmbuild/SOURCES/virtualmoon-6.0-src.tgz + STATUS=0 + '[' 0 -ne 0 ']' + cd virtualmoon-6.0-src + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'warning: %apply_patches is deprecated, try %autopatch -p[01] instead' warning: %apply_patches is deprecated, try %autopatch -p[01] instead + /usr/bin/patch -U -s -p1 -b --suffix .0000 --fuzz=0 -i /home/pterjan/rpmbuild/SOURCES/virtualmoon.build.patch + /usr/bin/patch -U -s -p1 -b --suffix .0001 --fuzz=0 -i /home/pterjan/rpmbuild/SOURCES/virtualmoon-6.0-mga-cairo-unit.patch + /usr/bin/patch -U -s -p1 -b --suffix .0002 --fuzz=0 -i /home/pterjan/rpmbuild/SOURCES/virtualmoon-nostrip.diff + sed -i -e 's!destdir/lib!destdir/lib64!g' install.sh + sed -i -e 's!../pixmaps/!!' -e 's!.xpm!!' -e 's!Astronomy!Astronomy;!' Installer/Linux/vmapro/share/applications/cclun.desktop Installer/Linux/vmapro/share/applications/virtualmoon.desktop + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.VMANwC + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd virtualmoon-6.0-src + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + ./configure lazarus=/usr/lib64/lazarus using fpcbin in /usr/bin using fpc units in /usr/share/fpcsrc using Lazarus in /usr/lib64/lazarus installing in /tmp/virtualmoon fpcmake options: -q create virtualmoon/component/libsql/Makefile create virtualmoon/component/synapse/source/lib/Makefile create virtualmoon/component/downloaddialog/Makefile create virtualmoon/component/uniqueinstance/Makefile create virtualmoon/component/enhedits/Makefile create virtualmoon/component/glscene/Lazarus/Makefile create virtualmoon/component/Makefile create virtualmoon/library/Makefile create virtualmoon/Makefile create datlun/Makefile create photlun/Makefile create weblun/Makefile create cclun/Makefile create ./Makefile You can now run make then make install To crosscompile from Linux to Windows: make OS_TARGET=win32 CPU_TARGET=i386 make install_win + make -j1 FPCOPT=-g make -C virtualmoon all make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/virtualmoon-6.0-src/virtualmoon' make -C component all make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/virtualmoon-6.0-src/virtualmoon/component' make -C libsql all make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/virtualmoon-6.0-src/virtualmoon/component/libsql' /usr/bin/rm -f lib/x86_64-linux-gtk2/libsql.ppu /usr/bin/mkdir -p lib/x86_64-linux-gtk2 /usr/bin/ppcx64 -g -dLCL -dLCLgtk2 -MObjFPC -Sgi -Xs -CX -XX -Fujansql/ -Fu/usr/lib64/lazarus/lcl/units/x86_64-linux/ -Fu/usr/lib64/lazarus/lcl/units/x86_64-linux/gtk2/ -Fu/usr/lib64/lazarus/packager/units/x86_64-linux/ -Fu./ -Fi./ -FE. -FUlib/x86_64-linux-gtk2 -Cg -dx86_64 libsql.pas Note: DWARF debug information cannot be used with smart linking on this target, switching to static linking Free Pascal Compiler version 3.0.4 [2018/03/20] for x86_64 Copyright (c) 1993-2017 by Florian Klaempfl and others Target OS: Linux for x86-64 Compiling libsql.pas Compiling sqlcomponents.pas Compiling passql.pas Compiling sqlsupport.pas sqlsupport.pas(284,40) Warning: Implicit string type conversion with potential data loss from "WideString" to "AnsiString" sqlsupport.pas(284,18) Warning: Implicit string type conversion from "AnsiString" to "WideString" Compiling utf8util.pas passql.pas(569,71) Warning: Symbol "DecimalSeparator" is deprecated passql.pas(917,22) Warning: Conversion between ordinals and pointers is not portable passql.pas(917,22) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead. passql.pas(972,15) Warning: Conversion between ordinals and pointers is not portable passql.pas(972,15) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead. passql.pas(2132,30) Warning: Implicit string type conversion from "AnsiString" to "UnicodeString" passql.pas(2210,37) Warning: Implicit string type conversion with potential data loss from "WideString" to "AnsiString" Compiling pasmysql.pas Compiling libmysql.pas pasmysql.pas(426,32) Warning: Conversion between ordinals and pointers is not portable pasmysql.pas(724,17) Warning: Conversion between ordinals and pointers is not portable pasmysql.pas(729,26) Warning: Conversion between ordinals and pointers is not portable pasmysql.pas(730,56) Warning: Conversion between ordinals and pointers is not portable pasmysql.pas(745,30) Warning: Conversion between ordinals and pointers is not portable pasmysql.pas(751,35) Warning: Conversion between ordinals and pointers is not portable pasmysql.pas(757,42) Warning: Conversion between ordinals and pointers is not portable pasmysql.pas(767,24) Warning: Conversion between ordinals and pointers is not portable Compiling passqlite.pas Compiling libsqlite.pas Compiling libsqlite3.pas passqlite.pas(303,30) Warning: Conversion between ordinals and pointers is not portable passqlite.pas(834,26) Warning: Implicit string type conversion from "AnsiString" to "WideString" passqlite.pas(857,13) Warning: Implicit string type conversion with potential data loss from "WideString" to "AnsiString" passqlite.pas(1053,23) Warning: Conversion between ordinals and pointers is not portable passqlite.pas(1064,23) Warning: Conversion between ordinals and pointers is not portable passqlite.pas(1095,23) Warning: Conversion between ordinals and pointers is not portable passqlite.pas(1105,25) Warning: Conversion between ordinals and pointers is not portable passqlite.pas(1133,23) Warning: Conversion between ordinals and pointers is not portable passqlite.pas(1143,25) Warning: Conversion between ordinals and pointers is not portable passqlite.pas(1175,42) Warning: Conversion between ordinals and pointers is not portable passqlite.pas(1182,26) Warning: Conversion between ordinals and pointers is not portable passqlite.pas(1211,43) Warning: Conversion between ordinals and pointers is not portable passqlite.pas(1215,23) Warning: Conversion between ordinals and pointers is not portable passqlite.pas(1230,43) Warning: Conversion between ordinals and pointers is not portable passqlite.pas(1235,23) Warning: Conversion between ordinals and pointers is not portable passqlite.pas(1249,50) Warning: Conversion between ordinals and pointers is not portable passqlite.pas(1261,51) Warning: Conversion between ordinals and pointers is not portable passqlite.pas(1825,18) Warning: Function result does not seem to be set Compiling pasthreadedsqlite.pas pasthreadedsqlite.pas(141,24) Warning: Symbol "Resume" is deprecated pasthreadedsqlite.pas(170,19) Warning: Implicit string type conversion with potential data loss from "WideString" to "AnsiString" pasthreadedsqlite.pas(229,19) Warning: Implicit string type conversion with potential data loss from "WideString" to "AnsiString" pasthreadedsqlite.pas(249,19) Warning: Function result does not seem to be set pasthreadedsqlite.pas(293,57) Warning: Implicit string type conversion from "AnsiString" to "WideString" Compiling pasodbc.pas Compiling libodbc32.pas pasodbc.pas(648,22) Warning: Conversion between ordinals and pointers is not portable 10573 lines compiled, 2.3 sec 41 warning(s) issued 1 note(s) issued make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/virtualmoon-6.0-src/virtualmoon/component/libsql' make -C synapse/source/lib all make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/virtualmoon-6.0-src/virtualmoon/component/synapse/source/lib' /usr/bin/rm -f lib/x86_64-linux-gtk2/synapse.ppu /usr/bin/ppcx64 -g -MObjFPC -O1 -Sgi -Fu/usr/lib64/lazarus/packager/units/x86_64-linux/ -Fu./ -Fi./ -FE. -FUlib/x86_64-linux-gtk2 -Cg -dx86_64 synapse.pas Free Pascal Compiler version 3.0.4 [2018/03/20] for x86_64 Copyright (c) 1993-2017 by Florian Klaempfl and others Target OS: Linux for x86-64 Compiling synapse.pas Compiling blcksock.pas Compiling synafpc.pas Compiling synsock.pas ssfpc.inc(698,26) Warning: Symbol "HostToNet" is deprecated ssfpc.inc(808,18) Warning: Symbol "HostToNet" is deprecated ssfpc.inc(868,25) Warning: Symbol "NetToHost" is deprecated Compiling synautil.pas synautil.pas(580,51) Warning: Symbol "TimeSeparator" is deprecated synautil.pas(1832,43) Warning: Symbol "ShortMonthNames" is deprecated synautil.pas(1833,42) Warning: Symbol "ShortMonthNames" is deprecated Compiling synacode.pas Compiling synaip.pas Compiling ftpsend.pas Compiling httpsend.pas Compiling synaser.pas synaser.pas(2319,41) Warning: range check error while evaluating constants (4294967295 must be between -2147483648 and 2147483647) 14323 lines compiled, 2.4 sec 7 warning(s) issued make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/virtualmoon-6.0-src/virtualmoon/component/synapse/source/lib' make -C downloaddialog all make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/virtualmoon-6.0-src/virtualmoon/component/downloaddialog' /usr/bin/rm -f lib/x86_64-linux-gtk2/downldialog.ppu /usr/bin/ppcx64 -g -dLCL -dLCLgtk2 -O1 -MObjFPC -Sgi -Fu/usr/lib64/lazarus/lcl/units/x86_64-linux/ -Fu/usr/lib64/lazarus/lcl/units/x86_64-linux/gtk2/ -Fu../synapse/source/lib/lib/x86_64-linux-gtk2/ -Fu/usr/lib64/lazarus/packager/units/x86_64-linux/ -Fu/usr/lib64/lazarus/components/lazutils/lib/x86_64-linux -Fu/usr/lib64/lazarus/ideintf/units/x86_64-linux/gtk2 -Fu./ -Fi./ -FE. -FUlib/x86_64-linux-gtk2 -Cg -dx86_64 downldialog.pas Free Pascal Compiler version 3.0.4 [2018/03/20] for x86_64 Copyright (c) 1993-2017 by Florian Klaempfl and others Target OS: Linux for x86-64 Compiling downldialog.pas Compiling downloaddialog.pas downloaddialog.pas(206,11) Error: Identifier not found "systoutf8" downloaddialog.pas(341,24) Warning: Symbol "Resume" is deprecated downloaddialog.pas(370,24) Warning: Symbol "Resume" is deprecated downloaddialog.pas(535) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted make[3]: *** [Makefile:1247: downldialog.ppu] Error 1 make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/virtualmoon-6.0-src/virtualmoon/component/downloaddialog' make[2]: *** [Makefile:1791: downloaddialog_all] Error 2 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/virtualmoon-6.0-src/virtualmoon/component' make[1]: *** [Makefile:1700: component_all] Error 2 make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/virtualmoon-6.0-src/virtualmoon' make: *** [Makefile:1571: virtualmoon_all] Error 2 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.VMANwC (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.VMANwC (%build) I: [iurt_root_command] ERROR: chroot