Hello,
I'd like to compile PureData with 64bit building tools on msys2, here is my gcc version:
$ gcc -v Using built-in specs. COLLECT_GCC=C:\msys64\mingw64\bin\gcc.exe COLLECT_LTO_WRAPPER=C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/lto-wrapper.exe Target: x86_64-w64-mingw32 Configured with: ../gcc-6.2.0/configure --prefix=/mingw64 --with-local-prefix=/mingw64/local --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --with-native-system-header-dir=/mingw64/x86_64-w64-mingw32/include --libexecdir=/mingw64/lib --enable-bootstrap --with-arch=x86-64 --with-tune=generic --enable-languages=c,lto,c++,objc,obj-c++,fortran,ada --enable-shared --enable-static --enable-libatomic --enable-threads=posix --enable-graphite --enable-fully-dynamic-string --enable-libstdcxx-time=yes --disable-libstdcxx-pch --disable-libstdcxx-debug --disable-isl-version-check --enable-lto --enable-libgomp --disable-multilib --enable-checking=release --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --with-libiconv --with-system-zlib --with-gmp=/mingw64 --with-mpfr=/mingw64 --with-mpc=/mingw64 --with-isl=/mingw64 --with-pkgversion='Rev2, Built by MSYS2 project' --with-bugurl=https://sourceforge.net/projects/msys2 --with-gnu-as --with-gnu-ld Thread model: posix gcc version 6.2.0 (Rev2, Built by MSYS2 project)
I don't get why gcc is saying this:
gcc -DPACKAGE_NAME="pd" -DPACKAGE_TARNAME="pd" -DPACKAGE_VERSION="0.47.1" -DPACKAGE_STRING="pd\ 0.47.1" -DPACKAGE_BUGREPORT="" -DPACKAGE_URL="" -DPACKAGE="pd" -DVERSION="0.47.1" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DLT_OBJDIR=".libs/" -DSTDC_HEADERS=1 -DHAVE_ALLOCA=1 -DHAVE_FCNTL_H=1 -DHAVE_LIMITS_H=1 -DHAVE_MALLOC_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TIMEB_H=1 -DHAVE_UNISTD_H=1 -Dvfork=fork -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_STDLIB_H=1 -DHAVE_REALLOC=1 -DRETSIGTYPE=void -DHAVE_DUP2=1 -DHAVE_FLOOR=1 -DHAVE_GETCWD=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_MEMMOVE=1 -DHAVE_MEMSET=1 -DHAVE_POW=1 -DHAVE_SQRT=1 -DHAVE_STRCHR=1 -DHAVE_STRERROR=1 -DHAVE_STRRCHR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -I. -DPD -DINSTALL_PREFIX="/usr" -g -O2 -MT pd-g_canvas.o -MD -MP -MF .deps/pd-g_canvas.Tpo -c -o pd-g_canvas.o `test -f 'g_canvas.c' || echo './'`g_canvas.c g_canvas.c:47:10: warning: 'canvas_class' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes] t_class *canvas_class; ^~~~~~~~~~~~ g_canvas.c:65:39: error: initializer element is not constant static t_symbol *canvas_newfilename = &s_; ^ g_canvas.c:66:40: error: initializer element is not constant static t_symbol *canvas_newdirectory = &s_; ^ g_canvas.c:71:6: warning: 'canvas_updatewindowlist' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes] void canvas_updatewindowlist( void) ^~~~~~~~~~~~~~~~~~~~~~~ g_canvas.c:98:6: warning: 'canvas_setargs' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes] void canvas_setargs(int argc, t_atom *argv) ^~~~~~~~~~~~~~
...
<snip>
...
g_canvas.c:1280:6: warning: 'canvas_redrawallfortemplatecanvas' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes] void canvas_redrawallfortemplatecanvas(t_canvas *x, int action) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ g_canvas.c: In function 'check_exists': g_canvas.c:1386:5: warning: implicit declaration of function 'u8_utf8toucs2' [-Wimplicit-function-declaration] u8_utf8toucs2(ucs2path, MAXPDSTRING, pathbuf, MAXPDSTRING-1); ^~~~~~~~~~~~~ g_canvas.c:1387:19: warning: implicit declaration of function '_waccess' [-Wimplicit-function-declaration] return (0 == _waccess(ucs2path, 0)); ^~~~~~~~ g_canvas.c: At top level: g_canvas.c:1536:5: warning: 'canvas_open' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes] int canvas_open(t_canvas *x, const char *name, const char *ext, ^~~~~~~~~~~ g_canvas.c:1563:5: warning: 'canvas_path_iterate' redeclared without dllimport attribute after being referenced with dll linkage int canvas_path_iterate(t_canvas*x, t_canvas_path_iterator fun, void *user_data) ^~~~~~~~~~~~~~~~~~~ g_canvas.c:1650:10: warning: 'pd_checkglist' redeclared without dllimport attribute after being referenced with dll linkage t_glist *pd_checkglist(t_pd *x) ^~~~~~~~~~~~~ make[2]: *** [Makefile:871: pd-g_canvas.o] Error 1
<end of shell paste>
Am I missing something there?