vgmrips

The forum about vgm files
It is currently 2017-11-23, 20:40:42

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 2017-02-19, 18:46:13 

Contributors Contributors
Offline

Joined: 2016-06-24, 19:21:35
Posts: 4
I'm unable to compile VGMPlay on macOSX Sierra 10.12.3.

I installed libao using homebrew, and I've also uncommented MACOSX = 1 in the VGMPlay makefile.

I'm new to macOSX, so maybe I'm just missing a step somewhere.

Here's the compilation log
Code:
make
Compiling chips/262intf.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
Compiling chips/2151intf.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
Compiling chips/2203intf.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
In file included from chips/2203intf.c:5:
chips/mamedef.h:50:9: warning: 'M_PI' macro redefined [-Wmacro-redefined]
#define M_PI    3.14159265358979323846
        ^
/usr/include/math.h:703:9: note: previous definition is here
#define M_PI        3.14159265358979323846264338327950288   /* pi             */
        ^
2 warnings generated.
Compiling chips/2413intf.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
Compiling chips/2608intf.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
Compiling chips/2610intf.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
Compiling chips/2612intf.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
Compiling chips/3526intf.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
Compiling chips/3812intf.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
Compiling chips/8950intf.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
Compiling chips/adlibemu_opl2.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
Compiling chips/adlibemu_opl3.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
Compiling chips/ay8910.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
Compiling chips/ay_intf.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
Compiling chips/c140.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
Compiling chips/c352.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
In file included from chips/c352.c:25:
chips/mamedef.h:50:9: warning: 'M_PI' macro redefined [-Wmacro-redefined]
#define M_PI    3.14159265358979323846
        ^
/usr/include/math.h:703:9: note: previous definition is here
#define M_PI        3.14159265358979323846264338327950288   /* pi             */
        ^
2 warnings generated.
Compiling chips/c6280.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
In file included from chips/c6280.c:60:
chips/mamedef.h:50:9: warning: 'M_PI' macro redefined [-Wmacro-redefined]
#define M_PI    3.14159265358979323846
        ^
/usr/include/math.h:703:9: note: previous definition is here
#define M_PI        3.14159265358979323846264338327950288   /* pi             */
        ^
2 warnings generated.
Compiling chips/c6280intf.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
Compiling chips/dac_control.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
Compiling chips/es5503.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
chips/es5503.c:149:12: warning: equality comparison with extraneous parentheses
      [-Wparentheses-equality]
        if ((mode == MODE_SWAP) /*|| (omode == MODE_SWAP)*/)
             ~~~~~^~~~~~~~~~~~
chips/es5503.c:149:12: note: remove extraneous parentheses around the comparison
      to silence this warning
        if ((mode == MODE_SWAP) /*|| (omode == MODE_SWAP)*/)
            ~     ^           ~
chips/es5503.c:149:12: note: use '=' to turn this equality comparison into an
      assignment
        if ((mode == MODE_SWAP) /*|| (omode == MODE_SWAP)*/)
                  ^~
                  =
2 warnings generated.
Compiling chips/es5506.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
Compiling chips/emu2149.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
Compiling chips/emu2413.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
In file included from chips/emu2413.c:58:
chips/mamedef.h:50:9: warning: 'M_PI' macro redefined [-Wmacro-redefined]
#define M_PI    3.14159265358979323846
        ^
/usr/include/math.h:703:9: note: previous definition is here
#define M_PI        3.14159265358979323846264338327950288   /* pi             */
        ^
2 warnings generated.
Compiling chips/fm2612.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
In file included from chips/fm2612.c:136:
chips/mamedef.h:50:9: warning: 'M_PI' macro redefined [-Wmacro-redefined]
#define M_PI    3.14159265358979323846
        ^
/usr/include/math.h:703:9: note: previous definition is here
#define M_PI        3.14159265358979323846264338327950288   /* pi             */
        ^
2 warnings generated.
Compiling chips/fm.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
In file included from chips/fm.c:120:
chips/mamedef.h:50:9: warning: 'M_PI' macro redefined [-Wmacro-redefined]
#define M_PI    3.14159265358979323846
        ^
/usr/include/math.h:703:9: note: previous definition is here
#define M_PI        3.14159265358979323846264338327950288   /* pi             */
        ^
2 warnings generated.
Compiling chips/fmopl.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
In file included from chips/fmopl.c:71:
chips/mamedef.h:50:9: warning: 'M_PI' macro redefined [-Wmacro-redefined]
#define M_PI    3.14159265358979323846
        ^
/usr/include/math.h:703:9: note: previous definition is here
#define M_PI        3.14159265358979323846264338327950288   /* pi             */
        ^
2 warnings generated.
Compiling chips/gb.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
Compiling chips/iremga20.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
Compiling chips/k051649.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
Compiling chips/k053260.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
Compiling chips/k054539.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
In file included from chips/k054539.c:15:
chips/mamedef.h:50:9: warning: 'M_PI' macro redefined [-Wmacro-redefined]
#define M_PI    3.14159265358979323846
        ^
/usr/include/math.h:703:9: note: previous definition is here
#define M_PI        3.14159265358979323846264338327950288   /* pi             */
        ^
chips/k054539.c:155:6: warning: shifting a negative signed value is undefined
      [-Wshift-negative-value]
                -64<<8, -49<<8, -36<<8, -25<<8, -16<<8, -9<<8, -4<<8, -1<<8
                ~~~^
chips/k054539.c:155:14: warning: shifting a negative signed value is undefined
      [-Wshift-negative-value]
                -64<<8, -49<<8, -36<<8, -25<<8, -16<<8, -9<<8, -4<<8, -1<<8
                        ~~~^
chips/k054539.c:155:22: warning: shifting a negative signed value is undefined
      [-Wshift-negative-value]
                -64<<8, -49<<8, -36<<8, -25<<8, -16<<8, -9<<8, -4<<8, -1<<8
                                ~~~^
chips/k054539.c:155:30: warning: shifting a negative signed value is undefined
      [-Wshift-negative-value]
                -64<<8, -49<<8, -36<<8, -25<<8, -16<<8, -9<<8, -4<<8, -1<<8
                                        ~~~^
chips/k054539.c:155:38: warning: shifting a negative signed value is undefined
      [-Wshift-negative-value]
                -64<<8, -49<<8, -36<<8, -25<<8, -16<<8, -9<<8, -4<<8, -1<<8
                                                ~~~^
chips/k054539.c:155:45: warning: shifting a negative signed value is undefined
      [-Wshift-negative-value]
                -64<<8, -49<<8, -36<<8, -25<<8, -16<<8, -9<<8, -4<<8, -1<<8
                                                        ~~^
chips/k054539.c:155:52: warning: shifting a negative signed value is undefined
      [-Wshift-negative-value]
                -64<<8, -49<<8, -36<<8, -25<<8, -16<<8, -9<<8, -4<<8, -1<<8
                                                               ~~^
chips/k054539.c:155:59: warning: shifting a negative signed value is undefined
      [-Wshift-negative-value]
                -64<<8, -49<<8, -36<<8, -25<<8, -16<<8, -9<<8, -4<<8, -1<<8
                                                                      ~~^
10 warnings generated.
Compiling chips/multipcm.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
Compiling chips/nes_apu.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
Compiling chips/nes_intf.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
Compiling chips/np_nes_apu.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
Compiling chips/np_nes_dmc.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
chips/np_nes_dmc.c:536:6: warning: taking the absolute value of unsigned type
      'unsigned int' has no effect [-Wabsolute-value]
        if (abs(dmc->clock - DEFAULT_CLK_PAL) <= 1000)  // check for app...
            ^
chips/np_nes_dmc.c:536:6: note: remove the call to 'abs' since unsigned values
      cannot be negative
        if (abs(dmc->clock - DEFAULT_CLK_PAL) <= 1000)  // check for app...
            ^~~
2 warnings generated.
Compiling chips/np_nes_fds.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
In file included from chips/np_nes_fds.c:8:
chips/mamedef.h:50:9: warning: 'M_PI' macro redefined [-Wmacro-redefined]
#define M_PI    3.14159265358979323846
        ^
/usr/include/math.h:703:9: note: previous definition is here
#define M_PI        3.14159265358979323846264338327950288   /* pi             */
        ^
2 warnings generated.
Compiling chips/okim6258.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
Compiling chips/okim6295.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
Compiling chips/Ootake_PSG.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
In file included from chips/Ootake_PSG.c:55:
chips/mamedef.h:50:9: warning: 'M_PI' macro redefined [-Wmacro-redefined]
#define M_PI    3.14159265358979323846
        ^
/usr/include/math.h:703:9: note: previous definition is here
#define M_PI        3.14159265358979323846264338327950288   /* pi             */
        ^
2 warnings generated.
Compiling chips/panning.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
Compiling chips/pokey.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
Compiling chips/pwm.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
Compiling chips/qsound.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
Compiling chips/rf5c68.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
Compiling chips/saa1099.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
Compiling chips/segapcm.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
Compiling chips/scd_pcm.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
Compiling chips/scsp.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
Compiling chips/scspdsp.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
Compiling chips/sn76489.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
Compiling chips/sn76496.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
Compiling chips/sn764intf.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
Compiling chips/upd7759.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
Compiling chips/vsu.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
Compiling chips/ws_audio.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
Compiling chips/x1_010.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
Compiling chips/ym2151.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
In file included from chips/ym2151.c:10:
chips/mamedef.h:50:9: warning: 'M_PI' macro redefined [-Wmacro-redefined]
#define M_PI    3.14159265358979323846
        ^
/usr/include/math.h:703:9: note: previous definition is here
#define M_PI        3.14159265358979323846264338327950288   /* pi             */
        ^
2 warnings generated.
Compiling chips/ym2413.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
In file included from chips/ym2413.c:42:
chips/mamedef.h:50:9: warning: 'M_PI' macro redefined [-Wmacro-redefined]
#define M_PI    3.14159265358979323846
        ^
/usr/include/math.h:703:9: note: previous definition is here
#define M_PI        3.14159265358979323846264338327950288   /* pi             */
        ^
2 warnings generated.
Compiling chips/ym2612.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
In file included from chips/ym2612.c:28:
chips/mamedef.h:50:9: warning: 'M_PI' macro redefined [-Wmacro-redefined]
#define M_PI    3.14159265358979323846
        ^
/usr/include/math.h:703:9: note: previous definition is here
#define M_PI        3.14159265358979323846264338327950288   /* pi             */
        ^
2 warnings generated.
Compiling chips/ymdeltat.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
Compiling chips/ymf262.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
In file included from chips/ymf262.c:57:
chips/mamedef.h:50:9: warning: 'M_PI' macro redefined [-Wmacro-redefined]
#define M_PI    3.14159265358979323846
        ^
/usr/include/math.h:703:9: note: previous definition is here
#define M_PI        3.14159265358979323846264338327950288   /* pi             */
        ^
2 warnings generated.
Compiling chips/ymf271.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
In file included from chips/ymf271.c:30:
chips/mamedef.h:50:9: warning: 'M_PI' macro redefined [-Wmacro-redefined]
#define M_PI    3.14159265358979323846
        ^
/usr/include/math.h:703:9: note: previous definition is here
#define M_PI        3.14159265358979323846264338327950288   /* pi             */
        ^
2 warnings generated.
Compiling chips/ymf278b.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
In file included from chips/ymf278b.c:62:
chips/mamedef.h:50:9: warning: 'M_PI' macro redefined [-Wmacro-redefined]
#define M_PI    3.14159265358979323846
        ^
/usr/include/math.h:703:9: note: previous definition is here
#define M_PI        3.14159265358979323846264338327950288   /* pi             */
        ^
2 warnings generated.
Compiling chips/ymz280b.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
In file included from chips/ymz280b.c:33:
chips/mamedef.h:50:9: warning: 'M_PI' macro redefined [-Wmacro-redefined]
#define M_PI    3.14159265358979323846
        ^
/usr/include/math.h:703:9: note: previous definition is here
#define M_PI        3.14159265358979323846264338327950288   /* pi             */
        ^
2 warnings generated.
Compiling chips/ay8910_opl.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
Compiling chips/sn76496_opl.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
Compiling chips/ym2413hd.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
Compiling chips/ym2413_opl.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
Compiling VGMPlay.c ...
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean
      '-Wno-unused-const-variable'? [-Wunknown-warning-option]
VGMPlay.c:51:9: warning: 'CLOCK_REALTIME' macro redefined [-Wmacro-redefined]
#define CLOCK_REALTIME  0
        ^
/usr/include/time.h:154:9: note: previous definition is here
#define CLOCK_REALTIME _CLOCK_REALTIME
        ^
VGMPlay.c:52:9: warning: 'CLOCK_MONOTONIC' macro redefined [-Wmacro-redefined]
#define CLOCK_MONOTONIC 0
        ^
/usr/include/time.h:156:9: note: previous definition is here
#define CLOCK_MONOTONIC _CLOCK_MONOTONIC
        ^
VGMPlay.c:53:5: error: conflicting types for 'clock_gettime'
int clock_gettime(int clk_id, struct timespec *t)
    ^
/usr/include/time.h:177:5: note: previous declaration is here
int clock_gettime(clockid_t __clock_id, struct timespec *__tp);
    ^
In file included from VGMPlay.c:85:
./chips/mamedef.h:50:9: warning: 'M_PI' macro redefined [-Wmacro-redefined]
#define M_PI    3.14159265358979323846
        ^
/usr/include/math.h:703:9: note: previous definition is here
#define M_PI        3.14159265358979323846264338327950288   /* pi             */
        ^
VGMPlay.c:5632:41: warning: format specifies type 'unsigned short' but the
      argument has type 'UINT8' (aka 'unsigned char') [-Wformat]
  ...printf("Unknown command: %02hX\n", Command);
                              ~~~~~     ^~~~~~~
                              %02hhX
5 warnings and 1 error generated.
make: *** [obj/VGMPlay.o] Error 1


Top
 Profile  
 
 Post subject:
PostPosted: 2017-02-19, 22:13:22 

Staff Staff
Programmers Programmers
Musicians Musicians
Contributors Contributors
Offline
User avatar

Joined: 2011-12-01, 20:20:07
Posts: 2853
Location: Germany
The simplest way to fix/work around this should be to go to this line and change it to
Code:
#if 0

In order to remove most of the warnings, go to [url=https://github.com/vgmrips/vgmplay/blob/master/VGMPlay/Makefile#L90]this line
and remove the
Code:
-Wno-unused-but-set-variable
part.


Top
 Profile  
 
 Post subject:
PostPosted: 2017-02-20, 1:04:56 

Contributors Contributors
Offline

Joined: 2016-06-24, 19:21:35
Posts: 4
Thanks ValleyBell, vgmplay compiled successfully now.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group