protrekkr icon indicating copy to clipboard operation
protrekkr copied to clipboard

Compile error for OS X

Open narner opened this issue 9 years ago • 5 comments

When trying to compile on OS X (by running make -f makefile.macosx), I get the following error:

clang: error: unsupported option '--prefetch-loop-arrays' make: *** [ptk_ppc.o] Error 1

narner avatar Dec 22 '15 15:12 narner

Me too, I will try to find a solution

DDecoene avatar Sep 07 '16 19:09 DDecoene

@narner @DDecoene try just removing the flag from makefile.osx?

PaulBatchelor avatar Sep 09 '16 15:09 PaulBatchelor

make -f makefile.macosx 1027ms  Sun Oct 20 21:08:06 2019 g++ -c -o ptk_x86.o -O3 -ffast-math -fomit-frame-pointer -fno-rtti -I/Library/Frameworks/SDL.framework/Headers -Lsrc/extralibs/sdl_draw -Lsrc/extralibs/zlib-1.2.3 -L/library/frameworks -fno-strict-aliasing -arch i386 -D MACOSX -D GCC -D MACOSX_CORE -D MOT_SWAP -D AIFF src/ptk.cpp clang: warning: argument unused during compilation: '-Lsrc/extralibs/sdl_draw' [-Wunused-command-line-argument] clang: warning: argument unused during compilation: '-Lsrc/extralibs/zlib-1.2.3' [-Wunused-command-line-argument] clang: warning: argument unused during compilation: '-L/library/frameworks' [-Wunused-command-line-argument] In file included from src/ptk.cpp:34: In file included from src/include/ptk.h:40: src/include/../samples/wav/include/riff.h:187:67: warning: '&&' within '||' [-Wlogical-op-parentheses] data.nBitsPerSample) / 8 && ~~~~~~~~~~~~~~~~~~~~~~~~~^~ src/include/../samples/wav/include/riff.h:187:67: note: place parentheses around the '&&' expression to silence this warning data.nBitsPerSample) / 8 && ^ In file included from src/ptk.cpp:34: In file included from src/include/../files/include/../../include/ptk.h:79: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/sstream:174: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ostream:138: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ios:216: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__locale:18: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/mutex:177: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:1902:35: error: expected unqualified-id _LIBCPP_FUNC_VIS extern __ph<1> _1; ^ src/include/../files/include/../../editors/include/../../ui/include/misc_draw.h:151:12: note: expanded from macro '_1' #define _1 "\361" ^ In file included from src/ptk.cpp:34: In file included from src/include/../files/include/../../include/ptk.h:79: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/sstream:174: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ostream:138: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ios:216: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__locale:18: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/mutex:177: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:1903:35: error: expected unqualified-id _LIBCPP_FUNC_VIS extern __ph<2> _2; ^ src/include/../files/include/../../editors/include/../../ui/include/misc_draw.h:152:12: note: expanded from macro '_2' #define _2 "\362" ^ In file included from src/ptk.cpp:34: In file included from src/include/../files/include/../../include/ptk.h:79: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/sstream:174: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ostream:138: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ios:216: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__locale:18: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/mutex:177: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:1904:35: error: expected unqualified-id _LIBCPP_FUNC_VIS extern __ph<3> _3; ^ src/include/../files/include/../../editors/include/../../ui/include/misc_draw.h:153:12: note: expanded from macro '_3' #define _3 "\363" ^ In file included from src/ptk.cpp:34: In file included from src/include/../files/include/../../include/ptk.h:79: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/sstream:174: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ostream:138: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ios:216: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__locale:18: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/mutex:177: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:1905:35: error: expected unqualified-id _LIBCPP_FUNC_VIS extern __ph<4> _4; ^ src/include/../files/include/../../editors/include/../../ui/include/misc_draw.h:154:12: note: expanded from macro '_4' #define _4 "\364" ^ In file included from src/ptk.cpp:34: In file included from src/include/../files/include/../../include/ptk.h:79: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/sstream:174: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ostream:138: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ios:216: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__locale:18: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/mutex:177: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:1906:35: error: expected unqualified-id _LIBCPP_FUNC_VIS extern __ph<5> _5; ^ src/include/../files/include/../../editors/include/../../ui/include/misc_draw.h:155:12: note: expanded from macro '_5' #define _5 "\365" ^ In file included from src/ptk.cpp:34: In file included from src/include/../files/include/../../include/ptk.h:79: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/sstream:174: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ostream:138: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ios:216: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__locale:18: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/mutex:177: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:1907:35: error: expected unqualified-id _LIBCPP_FUNC_VIS extern __ph<6> _6; ^ src/include/../files/include/../../editors/include/../../ui/include/misc_draw.h:156:12: note: expanded from macro '_6' #define _6 "\366" ^ In file included from src/ptk.cpp:34: In file included from src/include/../files/include/../../include/ptk.h:79: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/sstream:174: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ostream:138: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ios:216: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__locale:18: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/mutex:177: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:1908:35: error: expected unqualified-id _LIBCPP_FUNC_VIS extern __ph<7> _7; ^ src/include/../files/include/../../editors/include/../../ui/include/misc_draw.h:157:12: note: expanded from macro '_7' #define _7 "\367" ^ In file included from src/ptk.cpp:34: In file included from src/include/../files/include/../../include/ptk.h:79: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/sstream:174: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ostream:138: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ios:216: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__locale:18: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/mutex:177: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:1909:35: error: expected unqualified-id _LIBCPP_FUNC_VIS extern __ph<8> _8; ^ src/include/../files/include/../../editors/include/../../ui/include/misc_draw.h:158:12: note: expanded from macro '_8' #define _8 "\370" ^ In file included from src/ptk.cpp:34: In file included from src/include/../files/include/../../include/ptk.h:79: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/sstream:174: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ostream:138: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ios:216: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__locale:18: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/mutex:177: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:1910:35: error: expected unqualified-id _LIBCPP_FUNC_VIS extern __ph<9> _9; ^ src/include/../files/include/../../editors/include/../../ui/include/misc_draw.h:159:12: note: expanded from macro '_9' #define _9 "\372" ^ src/ptk.cpp:51:1: error: unknown type name 'SystemSoundActionID' SystemSoundActionID WavActionID; ^ src/ptk.cpp:288:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "Cancel", ^ src/ptk.cpp:296:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "303 Units", ^ src/ptk.cpp:304:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "Synths", ^ src/ptk.cpp:312:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "Instruments", ^ src/ptk.cpp:320:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "Patterns", ^ src/ptk.cpp:328:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "All", ^ src/ptk.cpp:336:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "No", ^ src/ptk.cpp:344:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "Yes", ^ src/ptk.cpp:352:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "Synth", ^ src/ptk.cpp:360:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "Split", ^ src/ptk.cpp:368:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "Instrument", ^ src/ptk.cpp:376:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "All", ^ src/ptk.cpp:385:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "Do you really want to quit ?", ^ src/ptk.cpp:392:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "", ^ src/ptk.cpp:399:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "What do you want to Zzaapp ?", ^ src/ptk.cpp:406:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "What do you want to delete ?", ^ src/ptk.cpp:424:35: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] pic_filename = XML_get_string("files", "file", name, "value"); ^ src/ptk.cpp:424:44: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] pic_filename = XML_get_string("files", "file", name, "value"); ^ src/ptk.cpp:424:58: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] pic_filename = XML_get_string("files", "file", name, "value"); ^ src/ptk.cpp:427:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] Message_Error("XML error in files tag."); ^ src/ptk.cpp:455:35: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] pic_filename = XML_get_string("files", "file", name, "value"); ^ src/ptk.cpp:455:44: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] pic_filename = XML_get_string("files", "file", name, "value"); ^ src/ptk.cpp:455:58: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] pic_filename = XML_get_string("files", "file", name, "value"); ^ src/ptk.cpp:459:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] Message_Error("XML error in files tag."); ^ src/ptk.cpp:544:23: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] Message_Error("Can't allocate room for patterns."); ^ src/ptk.cpp:569:33: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] LOGOPIC = Load_Skin_Picture("logo"); ^ src/ptk.cpp:572:33: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] POINTER = Load_Skin_Picture("pointer"); ^ src/ptk.cpp:574:33: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] SKIN303 = Load_Skin_Picture("303"); ^ src/ptk.cpp:576:31: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] PFONT = Load_Skin_Picture("pattern_font"); ^ src/ptk.cpp:578:30: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] FONT = Load_Skin_Picture("font"); ^ src/ptk.cpp:580:34: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] FONT_LOW = Load_Skin_Picture("font"); ^ src/ptk.cpp:585:25: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] if(!Load_Font_Datas("font_datas")) return(FALSE); ^ src/ptk.cpp:629:28: error: unknown type name 'SystemSoundActionID' OSStatus CompletionRoutine(SystemSoundActionID inAction, void *UserDat) ^ src/ptk.cpp:644:11: error: variable has incomplete type 'FSRef' FSRef soundFileRef; ^ /System/Library/Frameworks/CoreFoundation.framework/Headers/CFURL.h:469:8: note: forward declaration of 'FSRef' struct FSRef; ^ src/ptk.cpp:2544:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%sa", ^ src/ptk.cpp:2545:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%sb", ^ src/ptk.cpp:2546:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%sc", ^ src/ptk.cpp:2547:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%sd", ^ src/ptk.cpp:2548:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%se", ^ src/ptk.cpp:2549:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%sf", ^ src/ptk.cpp:2550:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%sg", ^ src/ptk.cpp:2551:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%sh", ^ src/ptk.cpp:2552:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%si", ^ src/ptk.cpp:2553:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%sj", // 10 ^ src/ptk.cpp:2554:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%sk", ^ src/ptk.cpp:2555:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%sl", ^ src/ptk.cpp:2556:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%sm", ^ src/ptk.cpp:2557:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%sn", ^ src/ptk.cpp:2558:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%so", ^ src/ptk.cpp:2559:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%sp", ^ src/ptk.cpp:2560:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%sq", ^ src/ptk.cpp:2561:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%sr", ^ src/ptk.cpp:2562:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%ss", ^ src/ptk.cpp:2563:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%st", // 20 ^ src/ptk.cpp:2564:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%su", ^ src/ptk.cpp:2565:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%sv", ^ src/ptk.cpp:2566:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%sw", ^ src/ptk.cpp:2567:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%sx", ^ src/ptk.cpp:2568:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%sy", ^ src/ptk.cpp:2569:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%sz", ^ src/ptk.cpp:2570:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%s0", ^ src/ptk.cpp:2571:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%s1", ^ src/ptk.cpp:2572:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%s2", ^ src/ptk.cpp:2573:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%s3", ^ src/ptk.cpp:2574:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%s4", ^ src/ptk.cpp:2575:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%s5", ^ src/ptk.cpp:2576:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%s6", ^ src/ptk.cpp:2577:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%s7", ^ src/ptk.cpp:2578:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%s8", ^ src/ptk.cpp:2579:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%s9", ^ src/ptk.cpp:2581:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%s ", // 38 ^ src/ptk.cpp:2583:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%s.", // 40 ^ src/ptk.cpp:2584:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%sA", ^ src/ptk.cpp:2585:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%sB", ^ src/ptk.cpp:2586:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%sC", ^ src/ptk.cpp:2587:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%sD", ^ src/ptk.cpp:2588:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%sE", ^ src/ptk.cpp:2589:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%sF", ^ src/ptk.cpp:2590:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%sG", ^ src/ptk.cpp:2591:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%sH", ^ src/ptk.cpp:2592:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%sI", ^ src/ptk.cpp:2593:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%sJ", // 50 ^ src/ptk.cpp:2594:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%sK", ^ src/ptk.cpp:2595:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%sL", ^ src/ptk.cpp:2596:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%sM", ^ src/ptk.cpp:2597:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%sN", ^ src/ptk.cpp:2598:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%sO", ^ src/ptk.cpp:2599:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%sP", ^ src/ptk.cpp:2600:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%sQ", ^ src/ptk.cpp:2601:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%sR", ^ src/ptk.cpp:2602:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%sS", ^ src/ptk.cpp:2603:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%sT", // 60 ^ src/ptk.cpp:2604:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%sU", ^ src/ptk.cpp:2605:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%sV", ^ src/ptk.cpp:2606:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%sW", ^ src/ptk.cpp:2607:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%sX", ^ src/ptk.cpp:2608:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%sY", ^ src/ptk.cpp:2609:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%sZ", ^ src/ptk.cpp:2610:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%s,", // 67 ^ src/ptk.cpp:2612:5: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] "%s-", // 69 ^ src/ptk.cpp:4370:39: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] if(File_Exist_Req("%s"SLASH"%s.ptk", Dir_Mods, name)) ^ src/ptk.cpp:4411:39: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings] if(File_Exist_Req("%s"SLASH"%s.ppb", Dir_Patterns, Selection_Name)) ^ src/ptk.cpp:6149:8: error: reference to 'shuffle' is ambiguous if(shuffle > 100) shuffle = 100; ^ src/include/../../release/distrib/replay/lib/include/replay.h:365:12: note: candidate found by name lookup is 'shuffle' extern int shuffle; ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/algorithm:3122:10: note: candidate found by name lookup is 'std::__1::shuffle' void shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last, ^ src/ptk.cpp:6149:8: error: unknown type name 'shuffle' if(shuffle > 100) shuffle = 100; ^ src/ptk.cpp:6149:16: error: expected unqualified-id if(shuffle > 100) shuffle = 100; ^ src/ptk.cpp:6149:23: error: reference to 'shuffle' is ambiguous if(shuffle > 100) shuffle = 100; ^ src/include/../../release/distrib/replay/lib/include/replay.h:365:12: note: candidate found by name lookup is 'shuffle' extern int shuffle; ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/algorithm:3122:10: note: candidate found by name lookup is 'std::__1::shuffle' void shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last, ^ src/ptk.cpp:6150:19: error: expected '>' if(shuffle < 0) shuffle = 0; ^ src/ptk.cpp:6150:19: error: type name requires a specifier or qualifier src/ptk.cpp:6150:19: error: expected unqualified-id fatal error: too many errors emitted, stopping now [-ferror-limit=] 101 warnings and 20 errors generated. make: *** [ptk_x86.o] Error 1

joshhh avatar Oct 20 '19 16:10 joshhh

I do not run macOS myself. Please send a patch file or do a pull-request with a fix. Thanks

falkTX avatar Oct 20 '19 18:10 falkTX

Even with some fixes it doesn't compile cause it needs to fix a lot of code for C++11 version from deprecated codebase in ptk.cpp ptk.h too many errors appears during compilation

joshhh avatar Oct 20 '19 20:10 joshhh