Page 1 of 1
svn HEAD (rev 1090) does not compile on Linux
Posted: Sat Mar 24, 2012 6:59 am
by Aquous
... or at least, on my amd64 Gentoo Linux:
Â
Code: Select all
[ 15%] Building CXX object CMakeFiles/fex.dir/fex/fex/Data_Reader.cpp.o
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/fex/fex/Data_Reader.cpp: In member function ‘virtual const char* Gzip_File_Reader::read_v(void*, int)’:
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/fex/fex/Data_Reader.cpp:735:35: error: invalid conversion from ‘void*’ to ‘gzFile_s*’
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/fex/fex/Data_Reader.cpp:735:35: error: initializing argument 1 of ‘int gzread(gzFile_s*, void*, unsigned int)’
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/fex/fex/Data_Reader.cpp:739:35: error: invalid conversion from ‘void*’ to ‘gzFile_s*’
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/fex/fex/Data_Reader.cpp:739:35: error: initializing argument 1 of ‘const char* convert_gz_error(gzFile_s*)’
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/fex/fex/Data_Reader.cpp: In member function ‘virtual const char* Gzip_File_Reader: :s eek_v(int)’:
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/fex/fex/Data_Reader.cpp:749:27: error: invalid conversion from ‘void*’ to ‘gzFile_s*’
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/fex/fex/Data_Reader.cpp:749:27: error: initializing argument 1 of ‘off_t gzseek(gzFile_s*, off_t, int)’
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/fex/fex/Data_Reader.cpp:750:34: error: invalid conversion from ‘void*’ to ‘gzFile_s*’
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/fex/fex/Data_Reader.cpp:750:34: error: initializing argument 1 of ‘const char* convert_gz_error(gzFile_s*)’
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/fex/fex/Data_Reader.cpp: In member function ‘void Gzip_File_Reader::close()’:
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/fex/fex/Data_Reader.cpp:759:23: error: invalid conversion from ‘void*’ to ‘gzFile_s*’
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/fex/fex/Data_Reader.cpp:759:23: error: initializing argument 1 of ‘int gzclose(gzFile_s*)’
make[2]: *** [CMakeFiles/fex.dir/fex/fex/Data_Reader.cpp.o] Error 1
Â
I'm not a programmer so I don't even know if it's the code or my system that's broken. So I'm asking you guys. :angel:
svn HEAD (rev 1090) does not compile on Linux
Posted: Sat Mar 24, 2012 7:15 am
by Squall Leonhart
for compile related issues its better to post on the project tracker, that way bgk will recieve a notification of the new issue.
Â
anyhow hes been directed here.
svn HEAD (rev 1090) does not compile on Linux
Posted: Sun Mar 25, 2012 3:59 am
by Aquous
ok, thanks. Will do in the future [img]<fileStore.core_Emoticons>/emoticons/smile.png[/img]/emoticons/smile@2x.png 2x" width="20" height="20" />
svn HEAD (rev 1090) does not compile on Linux
Posted: Sun Mar 25, 2012 4:10 am
by bgK
Should be fixed in r1091.
svn HEAD (rev 1090) does not compile on Linux
Posted: Sun Mar 25, 2012 11:35 am
by Aquous
Yes, this problem is fixed [img]<fileStore.core_Emoticons>/emoticons/smile.png[/img]/emoticons/smile@2x.png 2x" width="20" height="20" />
However, the build now fails at another stage:
Code: Select all
[ 33%] Building C object CMakeFiles/vbamcore.dir/src/common/memgzio.c.o
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/src/common/memgzio.c:88:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/src/common/memgzio.c:89:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/src/common/memgzio.c:90:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/src/common/memgzio.c:91:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/src/common/memgzio.c:92:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/src/common/memgzio.c:93:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/src/common/memgzio.c:94:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OF'
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/src/common/memgzio.c:374:13: warning: conflicting types for 'check_header'
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/src/common/memgzio.c:374:13: error: static declaration of 'check_header' follows non-static declaration
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/src/common/memgzio.c:324:2: note: previous implicit declaration of 'check_header' was here
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/src/common/memgzio.c:427:12: error: static declaration of 'destroy' follows non-static declaration
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/src/common/memgzio.c:274:33: note: previous implicit declaration of 'destroy' was here
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/src/common/memgzio.c:651:14: error: conflicting types for 'getLong'
/var/tmp/portage/games-emulation/vbam-9999/work/vbam/src/common/memgzio.c:526:10: note: previous implicit declaration of 'getLong' was here
make[2]: *** [CMakeFiles/vbamcore.dir/src/common/memgzio.c.o] Error 1
(adding "-k" to MAKEOPTS doesn't show any more failures, so this might very well be the last one)
svn HEAD (rev 1090) does not compile on Linux
Posted: Wed Mar 28, 2012 10:26 am
by Aquous
For future reference, this second problem was a Gentoo specific problem (https://bugs.gentoo.org/show_bug.cgi?id=383179). A workaround is to set CPPFLAGS="-DOF=_Z_OF".