Harbour cross compiler GCC 13.2 Error.

298 views
Skip to first unread message

Itamar Lins

unread,
Mar 12, 2024, 12:24:05 AM3/12/24
to Harbour Users
Hi!
OS Linux.
export HB_COMPILER="mingw64"
...
/usr/bin/x86_64-w64-mingw32-gcc -I. -I../../../../../include -W -Wall -O3 -D__USE_MINGW_ANSI_STDIO=0 -DUNICODE -DHB_HAS_PCRE -I/home/itamar/dev/hb32/src/3rd/pcre -DPCRE_ST
ATIC -DHB_HAS_ZLIB -I/usr/include -oabs.o -c ../../../abs.c
In file included from ../../../../../include/hbdefs.h:51,
from ../../../../../include/hbvmpub.h:50,
from ../../../../../include/hbapi.h:55,
from ../../../abs.c:47:
/usr/include/stdio.h:77:19: error: conflicting types for ‘ssize_t’; have ‘__ssize_t’ {aka ‘long int’}
77 | typedef __ssize_t ssize_t;
| ^~~~~~~
In file included from /usr/share/mingw-w64/include/crtdefs.h:10,
from /usr/share/mingw-w64/include/stddef.h:7,
from /usr/lib/gcc/x86_64-w64-mingw32/12-win32/include/stddef.h:1,
from /usr/include/stdio.h:33:
/usr/share/mingw-w64/include/corecrt.h:45:35: note: previous declaration of ‘ssize_t’ with type ‘ssize_t’ {aka ‘long long int’}
45 | __MINGW_EXTENSION typedef __int64 ssize_t;
| ^~~~~~~
In file included from /usr/include/sys/types.h:129,
from /usr/include/stdlib.h:514,
from ../../../../../include/hbdefs.h:52:
/usr/include/bits/types/time_t.h:10:18: error: conflicting types for ‘time_t’; have ‘__time_t’ {aka ‘long int’}
10 | typedef __time_t time_t;
| ^~~~~~
/usr/share/mingw-w64/include/corecrt.h:138:20: note: previous declaration of ‘time_t’ with type ‘time_t’ {aka ‘long long int’}
138 | typedef __time64_t time_t;
| ^~~~~~
In file included from ../../../../../include/hbdefs.h:73:
/usr/include/stdint.h:90:33: error: conflicting types for ‘uintptr_t’; have ‘long unsigned int’
90 | typedef unsigned long int uintptr_t;
| ^~~~~~~~~
/usr/share/mingw-w64/include/corecrt.h:75:44: note: previous declaration of ‘uintptr_t’ with type ‘uintptr_t’ {aka ‘long long unsigned int’}
75 | __MINGW_EXTENSION typedef unsigned __int64 uintptr_t;
| ^~~~~~~~~
/usr/include/stdint.h:106: warning: "__INT64_C" redefined
106 | # define __INT64_C(c) c ## L
|
<built-in>: note: this is the location of the previous definition
/usr/include/stdint.h:107: warning: "__UINT64_C" redefined
107 | # define __UINT64_C(c) c ## UL
|
<built-in>: note: this is the location of the previous definition
make[3]: *** [../../../../../config/rules.mk:88: abs.o] Erro 1
make[2]: *** [../../config/lib.mk:68: descend] Erro 2
make[1]: *** [../config/dir.mk:68: rtl.inst] Erro 2
make: *** [config/dir.mk:68: src.inst] Erro 2

Best regards,
Itamar M. Lins Jr.

Itamar Lins

unread,
Mar 12, 2024, 12:29:36 AM3/12/24
to Harbour Users
Hi!

root@itamar-desktop:/home/itamar/dev/hb32# x86_64-w64-mingw32-gcc -v
Using built-in specs.
COLLECT_GCC=x86_64-w64-mingw32-gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-w64-mingw32/12-win32/lto-wrapper
Target: x86_64-w64-mingw32
Configured with: ../../src/configure --build=x86_64-linux-gnu --prefix=/usr --includedir='/usr/include' --mandir='/usr/share/man' --infodir='/usr/share/info' --sysconfdir=/
etc --localstatedir=/var --disable-option-checking --disable-silent-rules --libdir='/usr/lib/x86_64-linux-gnu' --libexecdir='/usr/lib/x86_64-linux-gnu' --disable-maintainer
-mode --disable-dependency-tracking --prefix=/usr --enable-shared --enable-static --disable-multilib --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --l
ibdir=/usr/lib --enable-libstdcxx-time=yes --with-tune=generic --with-headers --enable-version-specific-runtime-libs --enable-fully-dynamic-string --enable-libgomp --enable
-languages=c,c++,fortran,objc,obj-c++,ada --enable-lto --enable-threads=win32 --program-suffix=-win32 --program-prefix=x86_64-w64-mingw32- --target=x86_64-w64-mingw32 --wit
h-as=/usr/bin/x86_64-w64-mingw32-as --with-ld=/usr/bin/x86_64-w64-mingw32-ld --enable-libatomic --enable-libstdcxx-filesystem-ts=yes --enable-dependency-tracking SED=/bin/s
ed
Thread model: win32
Supported LTO compression algorithms: zlib zstd
gcc version 12-win32 (GCC)

Best regards,
Itamar M. Lins Jr.
Reply all
Reply to author
Forward
0 new messages