ZSNES 1.51b compiling error on Linux Mint 17.1 Rebecca

General area for talk about ZSNES. The best place to ask for related questions as well as troubleshooting.

Moderator: ZSNES Mods

Post Reply
HyperHamster
New Member
Posts: 5
Joined: Thu Apr 02, 2015 5:45 am

ZSNES 1.51b compiling error on Linux Mint 17.1 Rebecca

Post by HyperHamster »

I'm new to linux so I apologize if I'm simply being ignorant but I'll try to walk you through what I do and document the problem to the best of my ability.

I download and extract the tarball using the following command

Code: Select all

tar -jxvf zsnes151bsrc.tar.bz2
I then navigate to the src directory in the now unzipped tarball

Code: Select all

cd zsnes_1_51b/src
I run the configure script, everything seems to be alright

Code: Select all

./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for nasm... nasm
checking for sdl-config... /usr/bin/sdl-config
checking for SDL - version >= 1.2.0... yes
checking for zlib - version >= 1.2.3... yes
checking for libpng - version >= 1.2.0... yes
checking if you want the zsnes debugger... yes
checking for initscr in -lcurses... yes
checking for initscr in -lncurses... yes
checking for initscr in -lpdcurses... no
checking if you want libao support... no
checking how to run the C preprocessor... gcc -E
checking for X... libraries , headers 
checking for glGetError in -lGL... yes
checking for OpenGL... yes
checking for JMA support... yes
checking for cpu info... found
checking if you want gdb friendly executable... no
checking which cpu architecture to optimize for... native
checking if you want crazy optimizations... no
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether sys/types.h defines makedev... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged


ZSNES v1.51

SDL support                   Version 1.2.15
NASM support                  NASM version 2.10.09 compiled on Dec 29 2013
zlib support                  Version 1.2.8
PNG support                   Yes, version 1.2.50
OpenGL support                Yes
JMA support                   Yes
ZSNES debugger                Enabled

The binary will be installed in /usr/local/bin

Configure complete, now type 'make' and pray.
I then run make and recieve this error

Code: Select all

make
g++  -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -D__OPENGL__ -march=native -O3 -fomit-frame-pointer -s -fno-rtti -o tools/depbuild tools/depbuild.cpp tools/fileutil.o tools/strutil.o
tools/depbuild.cpp: In function ‘void dependency_calculate(const char*, stat&)’:
tools/depbuild.cpp:168:37: error: ‘F_OK’ was not declared in this scope
     if (!access(asm_suffix.c_str(), F_OK))
                                     ^
tools/depbuild.cpp:168:41: error: ‘access’ was not declared in this scope
     if (!access(asm_suffix.c_str(), F_OK))
                                         ^
tools/depbuild.cpp: In function ‘void dependency_calculate_asm(const char*)’:
tools/depbuild.cpp:134:26: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
   system(command.c_str());
                          ^
make: *** [tools/depbuild] Error 1
If I'm simply being stupid or if this is a legitimate problem either way I'd really appreciate if somebody could help me understand what's wrong or what I'm doing wrong.
OS: Linux Mint 17.1 Rebecca 64-bit
grinvader
ZSNES Shake Shake Prinny
Posts: 5632
Joined: Wed Jul 28, 2004 4:15 pm
Location: PAL50, dood !

Re: ZSNES 1.51b compiling error on Linux Mint 17.1 Rebecca

Post by grinvader »

If F_OK isn't defined, you need another libc.
皆黙って俺について来い!!

Code: Select all

<jmr> bsnes has the most accurate wiki page but it takes forever to load (or something)
Pantheon: Gideon Zhi | CaitSith2 | Nach | kode54
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Re: ZSNES 1.51b compiling error on Linux Mint 17.1 Rebecca

Post by Nach »

Actually, ensure that depbuild.cpp contains a line: #include <unistd.h>
Near the top of it.

We have this fixed in SVN, but is missing in 1.51b.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
HyperHamster
New Member
Posts: 5
Joined: Thu Apr 02, 2015 5:45 am

Re: ZSNES 1.51b compiling error on Linux Mint 17.1 Rebecca

Post by HyperHamster »

Nach wrote:Actually, ensure that depbuild.cpp contains a line: #include <unistd.h>
Near the top of it.

We have this fixed in SVN, but is missing in 1.51b.
I've amended depbuild.cpp in the way that you said and it has created a much longer error this time that I'll have to edit a bit since it's so long even the terminal can't display it all.

Code: Select all

               ^
zstate.c:550:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   spcRamDP -= (unsigned int)SPCRAM;
               ^
zstate.c: In function ‘SaveSA1’:
zstate.c:569:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   SA1Ptr -= (unsigned int)SA1RegPCS;
             ^
zstate.c:581:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   SA1RegPCS -= (unsigned int)romdata;
                ^
zstate.c:582:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   CurBWPtr -= (unsigned int)romdata;
               ^
zstate.c:583:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   SA1BWPtr -= (unsigned int)romdata;
               ^
zstate.c:584:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   SNSBWPtr -= (unsigned int)romdata;
               ^
zstate.c: In function ‘RestoreSA1’:
zstate.c:589:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   SA1RegPCS += (unsigned int)romdata;
                ^
zstate.c:590:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   CurBWPtr += (unsigned int)romdata;
               ^
zstate.c:591:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   SA1BWPtr += (unsigned int)romdata;
               ^
zstate.c:592:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   SNSBWPtr += (unsigned int)romdata;
               ^
zstate.c:604:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   SA1Ptr += (unsigned int)SA1RegPCS;
             ^
zstate.c: In function ‘ResetState’:
zstate.c:617:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   spcPCRam += (unsigned int)SPCRAM;
               ^
zstate.c:618:15: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   spcRamDP += (unsigned int)SPCRAM;
               ^
zstate.c: In function ‘zst_load’:
zstate.c:994:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     SfxRAMMem = (unsigned int)sfxramdata + ((SfxRAMBR & 0xFF) << 16);
                 ^
zstate.c:997:33: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     SCBRrel = (SfxSCBR << 10) + (unsigned int)sfxramdata;
                                 ^
zstate.c: In function ‘savespcdata’:
zstate.c:1403:54: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
       *((unsigned short *)(ssdatst+0x25)) = spcPCRam-(unsigned int)SPCRAM; //00025h - PC Register value (1 Word)
                                                      ^
zstate.c: In function ‘zst_load_compressed’:
zstate.c:942:12: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
       fread(compressed_buffer, 1, compressed_size, fp);
            ^
In file included from zstate.c:52:0:
numconv.h: In function ‘fread3’:
numconv.h:141:8: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
   fread(uint24buf, 3, 1, fp);
        ^
zstate.c: In function ‘zst_sram_load’:
zstate.c:1052:10: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
     fread(SA1RAMArea, 1, 131072, fp);  // SA-1 sram
          ^
zstate.c:1056:26: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
   if (SETAEnable) { fread(setaramdata, 1, 4096, fp); } // SETA sram
                          ^
zstate.c:1060:23: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
   if (ramsize) { fread(sram, 1, ramsize, fp); } // normal sram
                       ^
zstate.c: In function ‘zst_sram_load_compressed’:
zstate.c:1081:14: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
         fread(compressed_buffer, 1, compressed_size, fp);
              ^
zstate.c: In function ‘OpenSramFile’:
zstate.c:1304:10: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
     fread(sram, 1, ramsize, fp);
          ^
zstate.c:1311:12: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
       fread(sram2, 1, ramsize, fp);
            ^
In file included from /usr/include/string.h:640:0,
                 from gblhdr.h:34,
                 from zstate.c:25:
In function ‘memcpy’,
    inlined from ‘copy_extra_data.constprop.11’ at zstate.c:315:9:
/usr/include/x86_64-linux-gnu/bits/string3.h:51:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer [enabled by default]
   return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
   ^
In function ‘memcpy’,
    inlined from ‘copy_extra_data.constprop.11’ at zstate.c:315:9:
/usr/include/x86_64-linux-gnu/bits/string3.h:51:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer [enabled by default]
   return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
   ^
In function ‘memcpy’,
    inlined from ‘copy_extra_data.constprop.11’ at zstate.c:315:9:
/usr/include/x86_64-linux-gnu/bits/string3.h:51:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer [enabled by default]
   return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
   ^
In function ‘memcpy’,
    inlined from ‘copy_extra_data.constprop.11’ at zstate.c:315:9:
/usr/include/x86_64-linux-gnu/bits/string3.h:51:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer [enabled by default]
   return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
   ^
In function ‘memcpy’,
    inlined from ‘copy_snes_data.constprop.21’ at zstate.c:315:9:
/usr/include/x86_64-linux-gnu/bits/string3.h:51:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer [enabled by default]
   return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
   ^
In function ‘memcpy’,
    inlined from ‘copy_state_data.constprop.5’ at zstate.c:315:9:
/usr/include/x86_64-linux-gnu/bits/string3.h:51:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer [enabled by default]
   return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
   ^
In function ‘memcpy’,
    inlined from ‘copy_state_data.constprop.5’ at zstate.c:315:9:
/usr/include/x86_64-linux-gnu/bits/string3.h:51:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer [enabled by default]
   return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
   ^
In function ‘memcpy’,
    inlined from ‘copy_state_data.constprop.5’ at zstate.c:315:9:
/usr/include/x86_64-linux-gnu/bits/string3.h:51:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer [enabled by default]
   return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
   ^
In function ‘memcpy’,
    inlined from ‘copy_state_data.constprop.5’ at zstate.c:315:9:
/usr/include/x86_64-linux-gnu/bits/string3.h:51:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer [enabled by default]
   return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
   ^
In function ‘memcpy’,
    inlined from ‘copy_state_data.constprop.5’ at zstate.c:315:9:
/usr/include/x86_64-linux-gnu/bits/string3.h:51:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer [enabled by default]
   return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
   ^
In function ‘memcpy’,
    inlined from ‘copy_state_data.constprop.5’ at zstate.c:315:9:
/usr/include/x86_64-linux-gnu/bits/string3.h:51:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer [enabled by default]
   return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
   ^
In function ‘memcpy’,
    inlined from ‘copy_state_data.constprop.5’ at zstate.c:315:9:
/usr/include/x86_64-linux-gnu/bits/string3.h:51:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer [enabled by default]
   return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
   ^
In function ‘memcpy’,
    inlined from ‘copy_state_data.constprop.5’ at zstate.c:315:9:
/usr/include/x86_64-linux-gnu/bits/string3.h:51:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer [enabled by default]
   return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
   ^
In function ‘memcpy’,
    inlined from ‘copy_state_data.constprop.5’ at zstate.c:315:9:
/usr/include/x86_64-linux-gnu/bits/string3.h:51:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer [enabled by default]
   return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
   ^
In function ‘memcpy’,
    inlined from ‘copy_state_data.constprop.5’ at zstate.c:315:9:
/usr/include/x86_64-linux-gnu/bits/string3.h:51:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer [enabled by default]
   return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
   ^
In function ‘memcpy’,
    inlined from ‘copy_state_data.constprop.5’ at zstate.c:315:9:
/usr/include/x86_64-linux-gnu/bits/string3.h:51:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer [enabled by default]
   return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
   ^
In function ‘memcpy’,
    inlined from ‘copy_state_data.constprop.5’ at zstate.c:315:9:
/usr/include/x86_64-linux-gnu/bits/string3.h:51:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer [enabled by default]
   return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
   ^
In function ‘memcpy’,
    inlined from ‘copy_state_data.constprop.5’ at zstate.c:315:9:
/usr/include/x86_64-linux-gnu/bits/string3.h:51:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer [enabled by default]
   return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
   ^
In function ‘memcpy’,
    inlined from ‘copy_state_data.constprop.5’ at zstate.c:315:9:
/usr/include/x86_64-linux-gnu/bits/string3.h:51:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer [enabled by default]
   return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
   ^
In function ‘memcpy’,
    inlined from ‘copy_state_data.constprop.5’ at zstate.c:315:9:
/usr/include/x86_64-linux-gnu/bits/string3.h:51:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer [enabled by default]
   return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
   ^
In function ‘memcpy’,
    inlined from ‘copy_state_data.constprop.5’ at zstate.c:315:9:
/usr/include/x86_64-linux-gnu/bits/string3.h:51:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer [enabled by default]
   return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
   ^
In function ‘memcpy’,
    inlined from ‘copy_state_data.constprop.5’ at zstate.c:315:9:
/usr/include/x86_64-linux-gnu/bits/string3.h:51:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer [enabled by default]
   return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
   ^
In function ‘memcpy’,
    inlined from ‘copy_state_data.constprop.5’ at zstate.c:315:9:
/usr/include/x86_64-linux-gnu/bits/string3.h:51:3: warning: call to __builtin___memcpy_chk will always overflow destination buffer [enabled by default]
   return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
   ^
In file included from /usr/include/stdio.h:937:0,
                 from gblhdr.h:70,
                 from zstate.c:25:
In function ‘fread’,
    inlined from ‘copy_state_data.constprop.6’ at zstate.c:927:26:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]
  return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);
  ^
In function ‘fread’,
    inlined from ‘copy_state_data.constprop.6’ at zstate.c:927:26:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]
  return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);
  ^
In function ‘fread’,
    inlined from ‘copy_state_data.constprop.6’ at zstate.c:927:26:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]
  return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);
  ^
In function ‘fread’,
    inlined from ‘copy_state_data.constprop.6’ at zstate.c:927:26:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]
  return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);
  ^
In function ‘fread’,
    inlined from ‘copy_state_data.constprop.6’ at zstate.c:927:26:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]
  return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);
  ^
In function ‘fread’,
    inlined from ‘copy_state_data.constprop.6’ at zstate.c:927:26:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]
  return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);
  ^
In function ‘fread’,
    inlined from ‘copy_state_data.constprop.6’ at zstate.c:927:26:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]
  return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);
  ^
In function ‘fread’,
    inlined from ‘copy_state_data.constprop.6’ at zstate.c:927:26:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]
  return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);
  ^
In function ‘fread’,
    inlined from ‘copy_state_data.constprop.6’ at zstate.c:927:26:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]
  return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);
  ^
In function ‘fread’,
    inlined from ‘copy_state_data.constprop.6’ at zstate.c:927:26:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]
  return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);
  ^
In function ‘fread’,
    inlined from ‘copy_state_data.constprop.6’ at zstate.c:927:26:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]
  return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);
  ^
In function ‘fread’,
    inlined from ‘copy_state_data.constprop.6’ at zstate.c:927:26:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]
  return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);
  ^
In function ‘fread’,
    inlined from ‘copy_state_data.constprop.6’ at zstate.c:927:26:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]
  return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);
  ^
In function ‘fread’,
    inlined from ‘copy_state_data.constprop.6’ at zstate.c:927:26:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]
  return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);
  ^
In function ‘fread’,
    inlined from ‘copy_state_data.constprop.6’ at zstate.c:927:26:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]
  return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);
  ^
In function ‘fread’,
    inlined from ‘copy_state_data.constprop.6’ at zstate.c:927:26:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]
  return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);
  ^
In function ‘fread’,
    inlined from ‘copy_state_data.constprop.6’ at zstate.c:927:26:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]
  return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);
  ^
In function ‘fread’,
    inlined from ‘copy_state_data.constprop.6’ at zstate.c:927:26:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:293:2: warning: call to ‘__fread_chk_warn’ declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer [enabled by default]
  return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream);
  ^
gcc  -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -D__OPENGL__ -march=native -O3 -fomit-frame-pointer -s -o gui/guifuncs.o -c gui/guifuncs.c
gui/guifuncs.c: In function ‘GetLoadData’:
gui/guifuncs.c:1362:34: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   GUIfileentries = main_names ? ((unsigned int)(*main_names))-2 : 0;
                                  ^
gui/guifuncs.c:1363:30: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   GUIdirentries = d_names ? ((unsigned int)(*d_names))-2 : 0;
                              ^
gui/guifuncs.c: In function ‘GUILoadManualDir’:
gui/guifuncs.c:1463:24: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     realpath_success = (int)realpath_dir(ZRomPath, GUILoadTextA, path_buff);
                        ^
gui/guifuncs.c: In function ‘LoadCustomFont’:
gui/guifuncs.c:98:12: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
       fgets(data,10,fp);        //get first line
            ^
gui/guifuncs.c:101:12: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
       fgets(data,10,fp);        //get second line
            ^
gui/guifuncs.c:104:12: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
       fgets(data,10,fp);        //get third line
            ^
gui/guifuncs.c:107:12: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
       fgets(data,10,fp);        //get fourth line
            ^
gui/guifuncs.c:110:12: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
       fgets(data,10,fp);        //get fifth line
            ^
gui/guifuncs.c: In function ‘GUIRestoreVars’:
gui/guifuncs.c:581:10: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
     fread(ComboBlHeader, 1, 23, cfg_fp);
          ^
gui/guifuncs.c:586:12: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
       fread(CombinDataGlob, 1, 66*NumComboGlob, cfg_fp);
            ^
gui/guifuncs.c: In function ‘LoadCheatSearchFile’:
gui/guifuncs.c:829:10: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
     fread(vidbuffer+129600, 1, 65536*2+32768, fp);
          ^
gui/guifuncs.c: In function ‘get_rom_name’:
gui/guifuncs.c:916:14: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
         fread(HeaderBuffer, 1, HEADER_SIZE, fp);
              ^
gui/guifuncs.c:947:16: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
           fread(HeaderBuffer, 1, INFO_LEN, fp);
                ^
gui/guifuncs.c:963:18: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
             fread(LoHead, 1, INFO_LEN, fp);
                  ^
gui/guifuncs.c:967:18: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
             fread(HiHead, 1, INFO_LEN, fp);
                  ^
gui/guifuncs.c:976:20: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
               fread(LoHead, 1, INFO_LEN, fp);
                    ^
gui/guifuncs.c:988:18: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
             fread(namebuffer, INAME_LEN, 1, fp);
                  ^
gcc  -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -D__OPENGL__ -march=native -O3 -fomit-frame-pointer -s -o linux/audio.o -c linux/audio.c
gcc  -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -D__OPENGL__ -march=native -O3 -fomit-frame-pointer -s -o linux/sdllink.o -c linux/sdllink.c
linux/sdllink.c:1297:1: warning: ‘stdcall’ attribute ignored [-Wattributes]
 {
 ^
gcc  -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -D__OPENGL__ -march=native -O3 -fomit-frame-pointer -s -o linux/gl_draw.o -c linux/gl_draw.c
linux/gl_draw.c: In function ‘gl_drawspan’:
linux/gl_draw.c:175:33: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
       unsigned short *vbuf1 = &((unsigned short *) vidbuffer)[16];
                                 ^
linux/gl_draw.c:176:33: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
       unsigned short *vbuf2 = &((unsigned short *) vidbuffer)[75036 * 2 + 16];
                                 ^
linux/gl_draw.c:241:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
              ((unsigned short *) vidbuffer) + 288);
               ^
gcc  -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -D__OPENGL__ -march=native -O3 -fomit-frame-pointer -s -o linux/sw_draw.o -c linux/sw_draw.c
g++ -o zsnes cfg.o endmem.o init.o initc.o input.o md.o patch.o ui.o vcache.o version.o zloader.o zmovie.o zpath.o zstate.o ztime.o ztimec.o chips/c4emu.o chips/c4proc.o chips/dsp1emu.o chips/dsp1proc.o chips/dsp2proc.o chips/dsp3emu.o chips/dsp3proc.o chips/dsp4emu.o chips/dsp4proc.o chips/fxemu2.o chips/fxemu2b.o chips/fxemu2c.o chips/fxtable.o chips/obc1emu.o chips/obc1proc.o chips/sa1proc.o chips/sa1regs.o chips/sdd1emu.o chips/seta10.o chips/sfxproc.o chips/st10proc.o chips/7110proc.o chips/seta11.o chips/st11proc.o cpu/dma.o cpu/dsp.o cpu/dspproc.o cpu/execute.o cpu/executec.o cpu/irq.o cpu/memory.o cpu/memtable.o cpu/spc700.o cpu/stable.o cpu/table.o cpu/tablec.o debugasm.o debugger.o gui/gui.o gui/guifuncs.o gui/menu.o effects/burn.o effects/smoke.o effects/water.o jma/7zlzma.o jma/crc32.o jma/iiostrm.o	jma/inbyte.o jma/jma.o jma/lzma.o	jma/lzmadec.o jma/winout.o jma/zsnesjma.o mmlib/mm.o mmlib/linux.o  video/makev16b.o video/makev16t.o video/makevid.o video/mode716.o video/mode716b.o video/mode716d.o video/mode716e.o video/mode716t.o video/mode7.o video/mode7ext.o video/mv16tms.o video/m716text.o video/newg162.o video/newgfx.o video/newgfx16.o video/newgfx2.o video/procvid.o video/procvidc.o video/sw_draw.o video/2xsaiw.o video/hq2x16.o video/hq2x32.o video/hq3x16.o video/hq3x32.o video/hq4x16.o video/hq4x32.o video/ntsc.o video/copyvwin.o linux/audio.o linux/battery.o linux/sdlintrf.o linux/sdllink.o linux/gl_draw.o linux/sw_draw.o linux/safelib.o zip/unzip.o zip/zpng.o  -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -D__OPENGL__ -march=native -O3 -fomit-frame-pointer -s -fno-rtti  -L/usr/local/lib -L/usr/lib  -lz -L/usr/lib/x86_64-linux-gnu -lSDL  -lpng -lm -lcurses -lGL
g++: error: cfg.o: No such file or directory
g++: error: input.o: No such file or directory
g++: error: md.o: No such file or directory
make: *** [main] Error 1
I also looked into downloading the SVN version but the WebSVN v2.0 thing that http://svn.zsnes.com uses hides the proper SVN URL.
grinvader wrote:If F_OK isn't defined, you need another libc.
As for my currently installed libc, my distribution came with the libc6 version pre-installed including the libc6-dev package but I've also installed the lib6-amd64:i386 and libc6-dev-amd64:i386 version for 64bit compatibility.
OS: Linux Mint 17.1 Rebecca 64-bit
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Re: ZSNES 1.51b compiling error on Linux Mint 17.1 Rebecca

Post by Nach »

The error you're receiving at the end is that parsegen could not compile the psr files.

Please post the output of what happens when trying to compile those files, as well as the PSR section in your Makefile.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
HyperHamster
New Member
Posts: 5
Joined: Thu Apr 02, 2015 5:45 am

Re: ZSNES 1.51b compiling error on Linux Mint 17.1 Rebecca

Post by HyperHamster »

Nach wrote:The error you're receiving at the end is that parsegen could not compile the psr files.

Please post the output of what happens when trying to compile those files, as well as the PSR section in your Makefile.
I do not know how to selectively compile just the PSR files as unfortunately I don't even know what PSR is, but here is the PSR section from my Makefile.

Code: Select all

$(PSR): parsegen.cpp
	g++  -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -D__OPENGL__ -march=native -O3 -fomit-frame-pointer -s -fno-rtti -o $@ $< -lz
Again, I'm sorry for any ignorance but I've only recently made Linux my main operating system and I've learned a lot since but certainly not enough to be anything more than a beginner.
OS: Linux Mint 17.1 Rebecca 64-bit
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Re: ZSNES 1.51b compiling error on Linux Mint 17.1 Rebecca

Post by Nach »

That's not the correct section.

Please look for a line containing %.psr, and post it and the segment below it.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
kode54
Zealot
Posts: 1140
Joined: Wed Jul 28, 2004 3:31 am
Contact:

Re: ZSNES 1.51b compiling error on Linux Mint 17.1 Rebecca

Post by kode54 »

Those pointer casting errors are due to attempting to compile the emulator to 64 bit. You must build it -m32 on 64 bit machines.
HyperHamster
New Member
Posts: 5
Joined: Thu Apr 02, 2015 5:45 am

Re: ZSNES 1.51b compiling error on Linux Mint 17.1 Rebecca

Post by HyperHamster »

Nach wrote:That's not the correct section.

Please look for a line containing %.psr, and post it and the segment below it.
Hopefully this is the right segment, and sorry for the delay.

Code: Select all

%.o %.h: %.psr $(PSR)
	./$(PSR)  -D__UNIXSDL__ -D__OPENGL__ -gcc gcc -compile -flags " -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -D__OPENGL__ -march=native -O3 -fomit-frame-pointer -s -O1" -cheader $*.h -fname $* $*.o $<
_________________________________________________________________________________________________________________________________________________________________________________________________
kode54 wrote:Those pointer casting errors are due to attempting to compile the emulator to 64 bit. You must build it -m32 on 64 bit machines.
If you could elaborate further I'd appreciate it. I've tried the -m32 flag on ./configure and make but neither will run with it. I read that it has to be added to some sort of system-wide compiling configuration file but none of what I read looked relevant.
OS: Linux Mint 17.1 Rebecca 64-bit
HyperHamster
New Member
Posts: 5
Joined: Thu Apr 02, 2015 5:45 am

Re: ZSNES 1.51b compiling error on Linux Mint 17.1 Rebecca

Post by HyperHamster »

I don't know the etiquette for double-posting on this forum but I think it's a significant enough development to merit one. I took kode54's advice and looked more into compiling 32-bit programs on 64-bit machines. Most if not all of my errors were probably due to trying to compile ZSNES as 64-bit, which I didn't even realize I was doing and I thank kode54 for pointing that out. I've installed the corresponding 32-bit version of all dev libraries required to configure ZSNES for compiling (gcc, libsdl, libc, etc), however as fate would have it I still can't get ZSNES to successfully compile. This time however I think the error is hopefully much simpler than before.

Code: Select all

./configure CC="gcc -m32"
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for gcc... gcc -m32
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc -m32 accepts -g... yes
checking for gcc -m32 option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for nasm... nasm
checking for sdl-config... /usr/bin/sdl-config
checking for SDL - version >= 1.2.0... yes
checking for zlib - version >= 1.2.3... yes
checking for libpng - version >= 1.2.0... yes
checking if you want the zsnes debugger... yes
checking for initscr in -lcurses... yes
checking for initscr in -lncurses... yes
checking for initscr in -lpdcurses... no
checking if you want libao support... no
checking how to run the C preprocessor... gcc -m32 -E
checking for X... libraries , headers 
checking for glGetError in -lGL... yes
checking for OpenGL... yes
checking for JMA support... yes
checking for cpu info... found
checking if you want gdb friendly executable... no
checking which cpu architecture to optimize for... native
checking if you want crazy optimizations... no
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether sys/types.h defines makedev... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged


ZSNES v1.51

SDL support                   Version 1.2.15
NASM support                  NASM version 2.10.09 compiled on Dec 29 2013
zlib support                  Version 1.2.8
PNG support                   Yes, version 1.2.50
OpenGL support                Yes
JMA support                   Yes
ZSNES debugger                Enabled

The binary will be installed in /usr/local/bin

Configure complete, now type 'make' and pray.
And now the output when I run make.

Code: Select all

make
g++  -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -D__OPENGL__ -march=native -O3 -fomit-frame-pointer -s -fno-rtti -o tools/depbuild tools/depbuild.cpp tools/fileutil.o tools/strutil.o
tools/depbuild.cpp: In function ‘void dependency_calculate_asm(const char*)’:
tools/depbuild.cpp:135:26: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
   system(command.c_str());
                          ^
tools/depbuild gcc -m32 " -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -D__OPENGL__ -march=native -O3 -fomit-frame-pointer -s" nasm " -w-orphan-labels -D__UNIXSDL__ -f elf -DELF -D__OPENGL__ -O1" cfg.o endmem.o init.o initc.o input.o md.o patch.o ui.o vcache.o version.o zloader.o zmovie.o zpath.o zstate.o ztime.o ztimec.o chips/c4emu.o chips/c4proc.o chips/dsp1emu.o chips/dsp1proc.o chips/dsp2proc.o chips/dsp3emu.o chips/dsp3proc.o chips/dsp4emu.o chips/dsp4proc.o chips/fxemu2.o chips/fxemu2b.o chips/fxemu2c.o chips/fxtable.o chips/obc1emu.o chips/obc1proc.o chips/sa1proc.o chips/sa1regs.o chips/sdd1emu.o chips/seta10.o chips/sfxproc.o chips/st10proc.o chips/7110proc.o chips/seta11.o chips/st11proc.o cpu/dma.o cpu/dsp.o cpu/dspproc.o cpu/execute.o cpu/executec.o cpu/irq.o cpu/memory.o cpu/memtable.o cpu/spc700.o cpu/stable.o cpu/table.o cpu/tablec.o debugasm.o debugger.o gui/gui.o gui/guifuncs.o gui/menu.o effects/burn.o effects/smoke.o effects/water.o jma/7zlzma.o jma/crc32.o jma/iiostrm.o	jma/inbyte.o jma/jma.o jma/lzma.o	jma/lzmadec.o jma/winout.o jma/zsnesjma.o mmlib/mm.o mmlib/linux.o  video/makev16b.o video/makev16t.o video/makevid.o video/mode716.o video/mode716b.o video/mode716d.o video/mode716e.o video/mode716t.o video/mode7.o video/mode7ext.o video/mv16tms.o video/m716text.o video/newg162.o video/newgfx.o video/newgfx16.o video/newgfx2.o video/procvid.o video/procvidc.o video/sw_draw.o video/2xsaiw.o video/hq2x16.o video/hq2x32.o video/hq3x16.o video/hq3x32.o video/hq4x16.o video/hq4x32.o video/ntsc.o video/copyvwin.o linux/audio.o linux/battery.o linux/sdlintrf.o linux/sdllink.o linux/gl_draw.o linux/sw_draw.o linux/safelib.o zip/unzip.o zip/zpng.o > makefile.dep
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
sh: 1: -pipe: not found
./parsegen  -D__UNIXSDL__ -D__OPENGL__ -gcc gcc -m32 -compile -flags " -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__  -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  -D__OPENGL__ -march=native -O3 -fomit-frame-pointer -s -O1" -cheader cfg.h -fname cfg cfg.o cfg.psr
Config file handler creator by Nach (C) 2005-2007

Usage:
parsegen [options] <output> <input>


Options:

  -Ddefine   Define a processor director. Example: -D__WIN32__
             Can specify multiple defines.

  -cheader   Create a C/C++ header with the following name.
             Example: -cheader cfgvars.h

  -fname     Use the following name for the main functions.
             Example: -fname math
             Would make init_cfg_vars become init_math_vars the
             happens to write_cfg_vars and read_cfg_vars.

  -compile   Compiles output instead of outputting C file.

  -gcc       Use with -compile. Parameter passed in the name of
             the C compiler to use, it should be GCC based.
             It will not work with MSVC based compilers.

  -flags     Use with -compile. Flags passed as next parameter
             are passed to the C compiler.
             Example: -flags "-O3 -march=pentium3 -ggdb3"


make: *** [cfg.o] Error 1
I'm thinking some of the errors might be due to my environment still being primarily set up for 64-bit since from what I've read Ubuntu derived systems seems to be pretty lousy when it comes to 64-bit to 32-bit and vice versa compiling on the same environment.
OS: Linux Mint 17.1 Rebecca 64-bit
Post Reply