svn HEAD (rev 1090) does not compile on Linux

This particular forum is archives, bug reports should be made at https://github.com/visualboyadvance-m/v ... e-m/issues


Post Reply
Aquous
Junior Member
Posts: 5
Joined: Wed May 05, 2010 7:45 am

svn HEAD (rev 1090) does not compile on Linux

Post 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:

Squall Leonhart
Posting Freak
Posts: 1223
Joined: Tue Mar 18, 2008 9:21 am

svn HEAD (rev 1090) does not compile on Linux

Post 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.

Last edited by Squall Leonhart on Sat Mar 24, 2012 7:22 am, edited 1 time in total.
Aquous
Junior Member
Posts: 5
Joined: Wed May 05, 2010 7:45 am

svn HEAD (rev 1090) does not compile on Linux

Post 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" />

bgK
Member
Posts: 88
Joined: Thu Apr 17, 2008 3:58 pm

svn HEAD (rev 1090) does not compile on Linux

Post by bgK »

Should be fixed in r1091.

Aquous
Junior Member
Posts: 5
Joined: Wed May 05, 2010 7:45 am

svn HEAD (rev 1090) does not compile on Linux

Post 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)

Aquous
Junior Member
Posts: 5
Joined: Wed May 05, 2010 7:45 am

svn HEAD (rev 1090) does not compile on Linux

Post 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".

Post Reply