Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VER_BUILDNUMBER define missing in old build tools #362

Closed
df7be opened this issue Nov 30, 2024 · 6 comments
Closed

VER_BUILDNUMBER define missing in old build tools #362

df7be opened this issue Nov 30, 2024 · 6 comments

Comments

@df7be
Copy link

df7be commented Nov 30, 2024

This seemed to exists since some weeks ago.
Older revisions make no trouble.

C:\harbour\core-master>gcc --version
gcc (GCC) 4.6.2
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

C:\harbour\core-master>make
! Building Harbour 3.2.0dev from source - https://harbour.github.io
! MAKE: make 3.81 sh.exe
! HB_HOST_PLAT: win (x86_64) HB_SHELL: nt
! HB_PLATFORM: win (x86) (auto-detected)
! HB_COMPILER: mingw (v46) (auto-detected: C:/MingW32/bin/)
! Component: 'zlib' found in C:/harbour/core-master/src/3rd/zlib (local)
! Component: 'pcre' found in C:/harbour/core-master/src/3rd/pcre (local)
! Component: 'gpm' not supported on win platform
! Component: 'slang' not found. Configure with HB_WITH_SLANG.
! Component: 'curses' not found. Configure with HB_WITH_CURSES.
! Component: 'x11' not found. Configure with HB_WITH_X11.
! Component: 'wattcp/watt-32' not supported on win platform
make[1]: Für das Ziel »all« ist nichts zu tun.
make[1]: Für das Ziel »all« ist nichts zu tun.
make[1]: Für das Ziel »all« ist nichts zu tun.
! 'hbdossrl' library skipped (platform or compiler not supported)
gcc -I. -I../../../../../../include -Wmissing-braces -Wreturn-type -Wformat -Wimplicit-int -Wimplicit-function-declaration -O3 -fomit-frame-pointer -march=i586 -mtune=pentiumpro -DUNICODE -IC:/harbour/core-master/src/3rd/zlib -DPNG_NO_STDIO -DPNG_ARM_NEON_OPT=0 -opng.o -c ../../../png.c

gcc -I. -I../../../../../include -W -Wall -O3 -fomit-frame-pointer -march=i586 -mtune=pentiumpro -DUNICODE -ohbstrbm.o -c ../../../hbstrbm.c
gcc -I. -I../../../../../include -W -Wall -O3 -fomit-frame-pointer -march=i586 -mtune=pentiumpro -DUNICODE -ohbstrbm_dyn.o -DHB_DYNLIB -c ../../../hbstrbm.c
gcc -I. -I../../../../../include -W -Wall -O3 -fomit-frame-pointer -march=i586 -mtune=pentiumpro -DUNICODE -ohbtrace.o -c ../../../hbtrace.c
gcc -I. -I../../../../../include -W -Wall -O3 -fomit-frame-pointer -march=i586 -mtune=pentiumpro -DUNICODE -ohbtrace_dyn.o -DHB_DYNLIB -c ../../../hbtrace.c
gcc -I. -I../../../../../include -W -Wall -O3 -fomit-frame-pointer -march=i586 -mtune=pentiumpro -DUNICODE -ohbver.o -c ../../../hbver.c
../../../hbver.c: In function 'hb_iswinbuild':
../../../hbver.c:897:68: error: 'VER_BUILDNUMBER' undeclared (first use in this function)
../../../hbver.c:897:68: note: each undeclared identifier is reported only once for each function it appears in
make[3]: *** [hbver.o] Fehler 1
make[2]: *** [descend] Fehler 2
make[1]: *** [common] Fehler 2
make: *** [src] Fehler 2

Fehler ==> Error
Für das Ziel »all« ist nichts zu tun.
==> for target >x< nothing to do

With regards,
MNI TNX, 73 es 55 de
DF7BE, Wilfried

@alcz
Copy link
Contributor

alcz commented Dec 4, 2024

VER_BUILDNUMBER def was introduced ages ago... Windows 2000. I understand that you need this specific compiler toolchain because of reasons. I'll add a workaround in next commit, it's not a big deal.

@df7be
Copy link
Author

df7be commented Dec 4, 2024

Hello alcz,
This is urgent, i use Windows 11 (as a lot's of users in the world) with MinGW32, Harbour runs with my application "CLLOG" and HWGUI with an older revision of Harbour at its best.
I'll wait for your next commit and check.

MNI TNX, 73 es 55 de DF7BE, Wilfried

alcz added a commit to alcz/harbour that referenced this issue Dec 4, 2024
  * src/common/hbver.c
    ! added lacking VER_BUILDNUMBER definition that is missing
      in very old compiler sets/SDKs (pre Windows 2000),
      noticed by DF7BE - Wilfried Brunken in harbour#362

  * README.md
    * slightly updated list of supported compilers and
      examples to mention MSVC for ARM64 and Clang

  * ChangeLog.txt
    * hb_scan -> hb_hscan in prev
@alcz
Copy link
Contributor

alcz commented Dec 4, 2024

This issue should be fixed. Your MinGW32 is very old, it can probably target systems older than Windows 2000, so it's headers lack VER_BUILDNUMBER, but of course the executable will run on Windows 11. If your build is successful you can paste a result of harbour /build command

@df7be
Copy link
Author

df7be commented Dec 4, 2024

Hello alcz,
the compile process stops with another error,
because the sqlite3 software is not installed on the system.
For my work the missing of this library is not
relevant, all other Harbour libraries needed for
my HWGUI application "CLLOG" are available
(Runs now again at its best).

The autodetect function to skip sqlite3
if not available, seems not to be present.

For some other missing components a message
is displayed, for example:
! Component: 'slang' not found. Configure with HB_WITH_SLANG.
! Component: 'curses' not found. Configure with HB_WITH_CURSES.
! Component: 'x11' not found. Configure with HB_WITH_X11.

With regards,
MNI TNX, 73 es 55 de
DF7BE, Wilfried

gcc -Wl,--nxcompat -Wl,--dynamicbase -L../../../../../lib/win/mingw -L../../../../../lib/3rd/win/mingw -o ..........\bin\win\mingw\hbi18n.exe hbi18n.o -lhbcplr -lhbdebug -lhbmainstd -lharbour-32 -lunicows -lwinmm -lkernel32 -luser32 -lws2_32 -liphlpapi -ladvapi32 -lgdi32
../bin/win/mingw/hbmk2.exe ../contrib/make.hb first
! Started package build...
! Calculating build order for 67 projects...
! Warning: 'hbmk2 --hbinfo' failed with exit code 20
C:\harbour\core-master\bin\win\mingw\hbmk2 -quiet -width=0 -autohbm- @hbpre -inc ../contrib/hbmzip/3rd/minizip/minizip.hbp @hbpost
C:\harbour\core-master\bin\win\mingw\hbmk2 -quiet -width=0 -autohbm- @hbpre -inc -hbdyn ../contrib/hbmzip/3rd/minizip/minizip.hbp @hbpost ../contrib/hbmzip/3rd/minizip/minizip.hbc
hbmk2[minizip]: Exit status: 50: stop requested
C:\harbour\core-master\bin\win\mingw\hbmk2 -quiet -width=0 -autohbm- @hbpre -inc ../contrib/hbbz2/3rd/bz2/bz2.hbp @hbpost
C:\harbour\core-master\bin\win\mingw\hbmk2 -quiet -width=0 -autohbm- @hbpre -inc -hbdyn ../contrib/hbbz2/3rd/bz2/bz2.hbp @hbpost ../contrib/hbbz2/3rd/bz2/bz2.hbc
hbmk2[bz2]: Exit status: 50: stop requested
C:\harbour\core-master\bin\win\mingw\hbmk2 -quiet -width=0 -autohbm- @hbpre -inc ../contrib/hbwin/hbwin.hbp @hbpost
C:\harbour\core-master\bin\win\mingw\hbmk2 -quiet -width=0 -autohbm- @hbpre -inc -hbdyn ../contrib/hbwin/hbwin.hbp @hbpost ../contrib/hbwin/hbwin.hbc
Creating library file: ../lib/win/mingw/libhbwin_dll.a
C:\harbour\core-master\bin\win\mingw\hbmk2 -quiet -width=0 -autohbm- @hbpre -inc ../contrib/hbxpp/hbxpp.hbp @hbpost
C:\harbour\core-master\bin\win\mingw\hbmk2 -quiet -width=0 -autohbm- @hbpre -inc -hbdyn ../contrib/hbxpp/hbxpp.hbp @hbpost ../contrib/hbxpp/hbxpp.hbc
Creating library file: ../lib/win/mingw/libhbxpp_dll.a
C:\harbour\core-master\bin\win\mingw\hbmk2 -quiet -width=0 -autohbm- @hbpre -inc ../contrib/hbfship/hbfship.hbp @hbpost
C:\harbour\core-master\bin\win\mingw\hbmk2 -quiet -width=0 -autohbm- @hbpre -inc -hbdyn ../contrib/hbfship/hbfship.hbp @hbpost ../contrib/hbfship/hbfship.hbc
Creating library file: ../lib/win/mingw/libhbfship_dll.a
C:\harbour\core-master\bin\win\mingw\hbmk2 -quiet -width=0 -autohbm- @hbpre -inc ../contrib/hbtip/hbtip.hbp @hbpost
C:\harbour\core-master\bin\win\mingw\hbmk2 -quiet -width=0 -autohbm- @hbpre -inc -hbdyn ../contrib/hbtip/hbtip.hbp @hbpost ../contrib/hbtip/hbtip.hbc
Creating library file: ../lib/win/mingw/libhbtip_dll.a
C:\harbour\core-master\bin\win\mingw\hbmk2 -quiet -width=0 -autohbm- @hbpre -inc ../contrib/hbct/hbct.hbp @hbpost
C:\harbour\core-master\bin\win\mingw\hbmk2 -quiet -width=0 -autohbm- @hbpre -inc -hbdyn ../contrib/hbct/hbct.hbp @hbpost ../contrib/hbct/hbct.hbc
Creating library file: ../lib/win/mingw/libhbct_dll.a
C:\harbour\core-master\bin\win\mingw\hbmk2 -quiet -width=0 -autohbm- @hbpre -inc 3rd/sqlite3/sqlite3.hbp @hbpost
../../../../../contrib/3rd/sqlite3/sqlite3.c: In function 'btreeParseCellAdjustSizeForOverflow.isra.110':
../../../../../contrib/3rd/sqlite3/sqlite3.c:70961:1: error: unable to find a register to spill in class 'DREG'
../../../../../contrib/3rd/sqlite3/sqlite3.c:70961:1: error: this is the insn:
(insn 15 14 16 2 (parallel [
(set (reg:SI 0 ax [98])
(udiv:SI (reg:SI 0 ax [92])
(reg:SI 6 bp [94])))
(set (reg:SI 2 cx [97])
(umod:SI (reg:SI 0 ax [92])
(reg:SI 6 bp [94])))
(clobber (reg:CC 17 flags))
]) ../../../../../contrib/3rd/sqlite3/sqlite3.c:70952 278 {*udivmodsi4}
(expr_list:REG_DEAD (reg:SI 6 bp [94])
(expr_list:REG_DEAD (reg:SI 0 ax [92])
(expr_list:REG_UNUSED (reg:SI 0 ax [98])
(expr_list:REG_UNUSED (reg:CC 17 flags)
(nil))))))
../../../../../contrib/3rd/sqlite3/sqlite3.c:70961: confused by earlier errors, bailing out
hbmk2[sqlite3]: Error: Running C/C++ compiler. 1
hbmk2[sqlite3]: Exit status: 6: failed in compilation (Harbour, C compiler, Resource compiler)
! Finished package build...
make[1]: *** [first] Fehler 6
make: *** [contrib] Fehler 2

@alcz alcz changed the title Urgent ! Error compiling Harbour from todays code snapshot (2024-11-30) VER_BUILDNUMBER define missing in old build tools Dec 4, 2024
@alcz
Copy link
Contributor

alcz commented Dec 4, 2024

set HB_WITH_SQLITE3=no should prevent sqlite from building. Thanks for these reports.

@alcz alcz closed this as completed Dec 4, 2024
@df7be
Copy link
Author

df7be commented Dec 5, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants