2024-01-06 16:46 UTC-0500 Ron Pinkas <ronpinkas/AT/gmail/com>
* winmake/find_bc.bat
Moved BCC_LIB generation to :FOUND
Reynaldo, this shouldd fix your BCC_LIB problem.
Em 06/01/2024 18:47, Ron Pinkas escreveu:
2024-01-06 16:46 UTC-0500 Ron Pinkas <ronpinkas/AT/gmail/com>
* winmake/find_bc.bat
Moved BCC_LIB generation to :FOUND
Reynaldo, this shouldd fix your BCC_LIB problem.
Ok, thank you,
Reynaldo Henrique
--
O software antiv�rus AVG realizou uma checagem de v�rus neste e-mail. www.avg.com
Reynaldo Henrique wrote:
Em 06/01/2024 18:47, Ron Pinkas escreveu:Please do NOT set BCC_LIB manally ;)
2024-01-06 16:46 UTC-0500 Ron Pinkas <ronpinkas/AT/gmail/com>
* winmake/find_bc.bat
Moved BCC_LIB generation to :FOUND
Reynaldo, this shouldd fix your BCC_LIB problem.
Reynaldo Henrique wrote:
Em 06/01/2024 18:47, Ron Pinkas escreveu:
2024-01-06 16:46 UTC-0500 Ron Pinkas <ronpinkas/AT/gmail/com>
* winmake/find_bc.bat
Moved BCC_LIB generation to :FOUND
Reynaldo, this shouldd fix your BCC_LIB problem.
Please do NOT set BCC_LIB manally ;)
Thanks, but still give the same errors. I updated my xharbour sources
and it apears the sane errors.
Thanks,
Reynaldo Henrique
--
O software antiv�rus AVG realizou uma checagem de v�rus neste e-mail. www.avg.com
Reynaldo Henrique wrote:
Reynaldo Henrique wrote:
Em 06/01/2024 18:47, Ron Pinkas escreveu:Please do NOT set BCC_LIB manally ;)
2024-01-06 16:46 UTC-0500 Ron Pinkas <ronpinkas/AT/gmail/com>
* winmake/find_bc.bat
Moved BCC_LIB generation to :FOUND
Reynaldo, this shouldd fix your BCC_LIB problem.
Thanks, but still give the same errors. I updated my xharbour sources
and it apears the sane errors.
Thanks,
Reynaldo Henrique
--
O software antivírus AVG realizou uma checagem de vírus neste e-mail.
www.avg.com
Mmm sorry, please show latest functios.log
Em 06/01/2024 19:43, Ron Pinkas escreveu:
Reynaldo Henrique wrote:
Reynaldo Henrique wrote:
Em 06/01/2024 18:47, Ron Pinkas escreveu:
2024-01-06 16:46 UTC-0500 Ron Pinkas <ronpinkas/AT/gmail/com>
* winmake/find_bc.bat
Moved BCC_LIB generation to :FOUND
Reynaldo, this shouldd fix your BCC_LIB problem.
Please do NOT set BCC_LIB manally ;)
Thanks, but still give the same errors. I updated my xharbour sources
and it apears the sane errors.
Thanks,
Reynaldo Henrique
--
O software antiv�rus AVG realizou uma checagem de v�rus neste e-mail. www.avg.com
Mmm sorry, please show latest functios.log
here you are:
*** START [C:\xharbour\make_bc.bat](all)
*** started [C:\xharbour\winmake\find_bc.bat]
*** started(bcc32) [C:\xharbour\winmake\found_cc.bat]
*** Raw Arguments: (strLen CC_DIR _CC_DIR_LEN)
*** Raw Arguments: [strLen] [CC_DIR] [_CC_DIR_LEN] [] []
*** Parsed [2] :strLen( CC_DIR=c:\borland\BCC770 _CC_DIR_LEN=18 )
+++ Entry point: strLen('CC_DIR' '_CC_DIR_LEN')(2)
:strLen(CC_DIR _CC_DIR_LEN)
:isValidVarName(_CC_DIR_LEN)
:value(CC_DIR str)
:isValidVarName(str)
--- Exit point: strLen CC_DIR _CC_DIR_LEN
*** Ret: 0 0
*** ended[0] [C:\xharbour\winmake\found_cc.bat]
*** finished[0] [C:\xharbour\winmake\find_bc.bat]
*** END [C:\xharbour\make_bc.bat]
thanks,
Reynaldo Henrique
Pleaae show log again, after: 2024-01-06 21:26 UTC-0500 Ron Pinkas <ronpinkas/AT/gmail/com>Mmm sorry, please show latest functios.log
here you are:
*** START [C:\xharbour\make_bc.bat](all)
*** started [C:\xharbour\winmake\find_bc.bat]
*** started(bcc32) [C:\xharbour\winmake\found_cc.bat]
*** Raw Arguments: (strLen CC_DIR _CC_DIR_LEN)
*** Raw Arguments: [strLen] [CC_DIR] [_CC_DIR_LEN] [] []
*** Parsed [2] :strLen( CC_DIR=c:\borland\BCC770 _CC_DIR_LEN=18 )
+++ Entry point: strLen('CC_DIR' '_CC_DIR_LEN')(2)
:strLen(CC_DIR _CC_DIR_LEN)
:isValidVarName(_CC_DIR_LEN)
:value(CC_DIR str)
:isValidVarName(str)
--- Exit point: strLen CC_DIR _CC_DIR_LEN
*** Ret: 0 0
*** ended[0] [C:\xharbour\winmake\found_cc.bat]
*** finished[0] [C:\xharbour\winmake\find_bc.bat]
*** END [C:\xharbour\make_bc.bat]
thanks,
Reynaldo Henrique
Pleaae show log again, after: 2024-01-06 21:26 UTC-0500 Ron PinkasRon, Now it is working fine. I build xHarbour fine.
<ronpinkas/AT/gmail/com>
here is the funtions.log:
*** START [C:\Users\rhfsy\xharbour\make_bc.bat](all)
*** started [C:\Users\rhfsy\xharbour\winmake\find_bc.bat]
*** started(bcc32) [C:\Users\rhfsy\xharbour\winmake\found_cc.bat]
*** Raw Arguments: (strLen CC_DIR _CC_DIR_LEN)
*** Raw Arguments: [strLen] [CC_DIR] [_CC_DIR_LEN] [] []
*** Parsed [2] :strLen( CC_DIR=c:\borland\BCC770 _CC_DIR_LEN=18 )
+++ Entry point: strLen('CC_DIR' '_CC_DIR_LEN')(2)
:strLen(CC_DIR _CC_DIR_LEN)
:isValidVarName(_CC_DIR_LEN)
:value(CC_DIR str)
:isValidVarName(str)
--- Exit point: strLen CC_DIR _CC_DIR_LEN
*** Ret: 0 0
*** ended[0] [C:\Users\rhfsy\xharbour\winmake\found_cc.bat]
EXIT BCC_LIB: c:\borland\bcc770\lib
*** finished[0] [C:\Users\rhfsy\xharbour\winmake\find_bc.bat]
*** END[0] [C:\Users\rhfsy\xharbour\make_bc.bat]
Can you build with bcc32c.exe successfully? If yes, can I see your
bcc32c.cfg and the exact commands are you using?
Enrico, I can build xHarbour with bcc32c (CLANG) 7.73 without any problem.
Here Is the bcc32c.cfg: working on bcc102\bin:
-isystem @\..\include\dinkumware64
-L@\..\lib\win32c\debug
-L@\..\lib\win32c\release
-L@\..\lib\win32c\release\psdk
-Xdriver -Qunused-arguments
Pay attention, it is not the bcc32c 7.70 (CLANG), I am using the bcc32c
7.73
Il 07/01/2024 12:14, Reynaldo Henrique ha scritto:
Ron, Now it is working fine. I build xHarbour fine.
Can you build with bcc32c.exe successfully? If yes, can I see your
bcc32c.cfg and the exact commands are you using?
Ron, Now it is working fine. I build xHarbour fine.
-isystem @\..\include\dinkumware64
Why are you using BCC64 include files for BCC32 compiler? Should not you
use dinkumware directory (without "64")?
Now, only the calldll.c problem remains...
Now, only the calldll.c problem remains...
I manage to compile it commenting out this line:
#include "hbapiitm.h"
Does it make sense?
Does it make sense?
No, probably not. I think doing so I have excluded all the rest of the
code, I don't know why exactly. :-(
Just add -DNODLL to BOTH C and Harbour commands.
Il 07/01/2024 21:16, Ron Pinkas ha scritto:
Does it make sense?
No, probably not. I think doing so I have excluded all the rest of the code, I don't know why exactly. :-(
Just add -DNODLL to BOTH C and Harbour commands.
I don't want to exclude calldll.c module. I have excluded it by mistake. Anyway, I prepare a reduced sample that produces the error if compiled
with bcc32c.exe:
typedef union
{
double Double;
} RESULT;
int main()
{
RESULT Res;
asm volatile ( "" : "=r" ( Res ) );
return 0;
}
Can you try it and let me know if you get the same error?
Embarcadero C++ 7.70 for Win32 Copyright (c) 2012-2023 Embarcadero Technologies, Inc.
dllcall.c:
fatal error: error in backend: Access past stack top!
bcc32c.exe: error: clang frontend command failed with exit code 70 (use -Xdriver -v to see invocation)
Embarcadero Technologies Inc. bcc32c version 5.0.2
(f0862325.b014dc86.38289) (based on LLVM 5.0.2)
Target: i686-pc-windows-omf
Thread model: posix
InstalledDir: e:\FW\Temp\BCC77\bin
bcc32c.exe: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source,and associated run script.
dllcall.c:
bcc32c.exe: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at: bcc32c.exe: note: diagnostic msg: C:\Users\ENRICO~1\AppData\Local\Temp\dllcall-4a8cec.c
Wrote crash dump file "C:\Users\ENRICO~1\AppData\Local\Temp\bcc32c.exe-0966b3.dmp"
0x00000000 (0x02FEE794 0x01A7D690 0x00000001 0x00000000) <unknown module> 0x00AAC019 (0x00007FFF 0x00000000 0x00010100 0x13D10C00)
0x0190623D (0x00000000 0x00010100 0x13D10C00 0x022A0A70)
Il 07/01/2024 20:42, Enrico Maria Giordano ha scritto:
Now, only the calldll.c problem remains...
I manage to compile it commenting out this line:
#include "hbapiitm.h"
Does it make sense?
No, probably not. I think doing so I have excluded all the rest of the
code, I don't know why exactly. :-(
Anyway, I prepare a reduced sample
dllcall.c is a very low level file that must be adjusted to each new compiler. It is offering a very specialized and complex feature that
allows calling dll functions without static declaraion. AFAIR we don't
need this feature, f.e. 64bit builds do not have it. In order to
support it we need someone with tthis specialized knowledge to address
it.
dllcall.c is a very low level file that must be adjusted to each new compiler. It is offering a very specialized and complex feature that
allows calling dll functions without static declaraion. AFAIR we don't
need this feature, f.e. 64bit builds do not have it. In order to
support it we need someone with tthis specialized knowledge to address
it.
One final (I hope) thing: I can build xHarbour for bcc32c.exe now, but I
had to add to my batch this:
SET CFLAGS=-w-
It's ok or it is better to add -w- to makefile.bc?
Il 07/01/2024 22:09, Ron Pinkas ha scritto:
dllcall.c is a very low level file that must be adjusted to each new compiler. It is offering a very specialized and complex feature that
allows calling dll functions without static declaraion. AFAIR we don't
need this feature, f.e. 64bit builds do not have it. In order to
support it we need someone with tthis specialized knowledge to address
it.
To be clear, are you proposing to disable dllcall.c for every compiler
or just for bcc32c.exe, other than 64 bit compilers?
One final (I hope) thing: I can build xHarbour for bcc32c.exe now, but I
had to add to my batch this:
SET CFLAGS=-w-
It's ok or it is better to add -w- to makefile.bc?
Adding -w- to makefile.bc is ok, nut I prefer we keep seeing warnings. Warnings do not break compilattion and may provide important info.
To be clear, are you proposing to disable dllcall.c for every compiler
or just for bcc32c.exe, other than 64 bit compilers?
Disable only for compilers that can't compile it. :)
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 718 |
| Nodes: | 16 (2 / 14) |
| Uptime: | 138:52:29 |
| Calls: | 12,136 |
| Calls today: | 4 |
| Files: | 15,019 |
| Messages: | 6,519,989 |