tccbin icon indicating copy to clipboard operation
tccbin copied to clipboard

update tcc-windows to mob:2024-12-30

Open kbkpbot opened this issue 10 months ago • 6 comments
trafficstars

update tcc-windows to mob:2024-12-30

kbkpbot avatar Dec 30 '24 14:12 kbkpbot

Nice! How does the Windows version match up with the others, now? It is ahead, behind, or at parity?

JalonSolov avatar Dec 30 '24 14:12 JalonSolov

To enable backtrace, v has to patch too.

diff --git a/vlib/v/gen/c/cheaders.v b/vlib/v/gen/c/cheaders.v
index 927cf260e..6b06643d6 100644
--- a/vlib/v/gen/c/cheaders.v
+++ b/vlib/v/gen/c/cheaders.v
@@ -350,9 +350,9 @@ const c_common_macros = '
        #undef TCCSKIP
        #define TCCSKIP(x)
        // #include <byteswap.h>
-       #ifndef _WIN32
+       //#ifndef _WIN32
                int tcc_backtrace(const char *fmt, ...);
-       #endif
+       //#endif
 #endif

kbkpbot avatar Dec 30 '24 14:12 kbkpbot

Nice! How does the Windows version match up with the others, now? It is ahead, behind, or at parity?

v doctor seems has some problem:

D:\v\v\v>v doctor
V full version: V 0.4.9 7eec8b1
OS: windows, Microsoft Windows 10 ҵ LTSC v19044 64 λ
Processor: 16 cpus, 64bit, little endian,

getwd: D:\v\v\v
vexe: D:\v\v\v\v.exe
vexe mtime: 2024-12-30 09:29:18

vroot: OK, value: D:\v\v\v
VMODULES: OK, value: C:\Users\DDT\.vmodules
VTMP: OK, value: C:\Users\DDT\AppData\Local\Temp\v_0

Git version: git version 2.43.0.windows.1
Git vroot status: weekly.2024.52-dirty (30 commit(s) behind V master)
.git/config present: true

CC version: Error: 'cc' is not recognized as an internal or external command,
operable program or batch file.

emcc version: Error: 'emcc' is not recognized as an internal or external command,
operable program or batch file.

thirdparty/tcc: N/A

tcc version:

D:\v\v\v>tcc -v
tcc version 0.9.28rc 2024-12-30_mob@68000c01* (x86_64 Windows)

kbkpbot avatar Dec 30 '24 14:12 kbkpbot

Definitely different from the Linux x64 version...

$ ./tcc.exe -v
tcc version 0.9.28rc 2024-07-31 HEAD@1cee0908 (x86_64 Linux)
$

JalonSolov avatar Dec 30 '24 16:12 JalonSolov

Some db related tests can not passed.

D:\v\v\v>v test vlib\orm
---- Testing... --------------------------------------------------------------------------------------------------------
 OK    [ 1/22] C:   836.5 ms, R:   190.663 ms vlib/orm/orm_fn_test.v
 OK    [ 2/22] C:   844.3 ms, R:   174.435 ms vlib/orm/orm_mut_connection_test.v
 FAIL  [ 3/22] C:  2251.5 ms, R:     0.000 ms vlib/orm/orm_option_time_test.v
>> compilation failed:
failed thirdparty object build cmd:
c++ -std=c++17 -D_DEFAULT_SOURCE   -fwrapv  -I "D:\v\v\v\thirdparty\sqlite" -L "D:\v\v\v\thirdparty\sqlite" -o "C:\Users\DDT\.vmodules\.cache\a6\a64ae9c5a98ca962c7e3f7466075d83e.module.db.sqlite.o" -c "D:\v\v\v\thirdparty\sqlite\sqlite3.cpp"
builder error: 'c++' is not recognized as an internal or external command,
operable program or batch file.


 FAIL  [ 4/22] C:  2262.6 ms, R:     0.000 ms vlib/orm/orm_create_and_drop_test.v
>> compilation failed:
failed thirdparty object build cmd:
c++ -std=c++17 -D_DEFAULT_SOURCE   -fwrapv  -I "D:\v\v\v\thirdparty\sqlite" -L "D:\v\v\v\thirdparty\sqlite" -o "C:\Users\DDT\.vmodules\.cache\a6\a64ae9c5a98ca962c7e3f7466075d83e.module.db.sqlite.o" -c "D:\v\v\v\thirdparty\sqlite\sqlite3.cpp"
builder error: 'c++' is not recognized as an internal or external command,
operable program or batch file.


 FAIL  [ 5/22] C:  2267.9 ms, R:     0.000 ms vlib/orm/orm_insert_reserved_name_test.v
>> compilation failed:
failed thirdparty object build cmd:
c++ -std=c++17 -D_DEFAULT_SOURCE   -fwrapv  -I "D:\v\v\v\thirdparty\sqlite" -L "D:\v\v\v\thirdparty\sqlite" -o "C:\Users\DDT\.vmodules\.cache\a6\a64ae9c5a98ca962c7e3f7466075d83e.module.db.sqlite.o" -c "D:\v\v\v\thirdparty\sqlite\sqlite3.cpp"
builder error: 'c++' is not recognized as an internal or external command,
operable program or batch file.


 FAIL  [ 6/22] C:  2315.7 ms, R:     0.000 ms vlib/orm/orm_custom_operators_test.v
>> compilation failed:
failed thirdparty object build cmd:
c++ -std=c++17 -D_DEFAULT_SOURCE   -fwrapv  -I "D:\v\v\v\thirdparty\sqlite" -L "D:\v\v\v\thirdparty\sqlite" -o "C:\Users\DDT\.vmodules\.cache\a6\a64ae9c5a98ca962c7e3f7466075d83e.module.db.sqlite.o" -c "D:\v\v\v\thirdparty\sqlite\sqlite3.cpp"
builder error: 'c++' is not recognized as an internal or external command,
operable program or batch file.


 FAIL  [ 7/22] C:  2478.8 ms, R:     0.000 ms vlib/orm/orm_null_test.v
>> compilation failed:
failed thirdparty object build cmd:
c++ -std=c++17 -D_DEFAULT_SOURCE   -fwrapv  -I "D:\v\v\v\thirdparty\sqlite" -L "D:\v\v\v\thirdparty\sqlite" -o "C:\Users\DDT\.vmodules\.cache\a6\a64ae9c5a98ca962c7e3f7466075d83e.module.db.sqlite.o" -c "D:\v\v\v\thirdparty\sqlite\sqlite3.cpp"
builder error: 'c++' is not recognized as an internal or external command,
operable program or batch file.


 FAIL  [ 8/22] C:  2492.5 ms, R:     0.000 ms vlib/orm/orm_fk_test.v
>> compilation failed:
failed thirdparty object build cmd:
c++ -std=c++17 -D_DEFAULT_SOURCE   -fwrapv  -I "D:\v\v\v\thirdparty\sqlite" -L "D:\v\v\v\thirdparty\sqlite" -o "C:\Users\DDT\.vmodules\.cache\a6\a64ae9c5a98ca962c7e3f7466075d83e.module.db.sqlite.o" -c "D:\v\v\v\thirdparty\sqlite\sqlite3.cpp"
builder error: 'c++' is not recognized as an internal or external command,
operable program or batch file.


 FAIL  [ 9/22] C:  2478.5 ms, R:     0.000 ms vlib/orm/orm_mut_db_test.v
>> compilation failed:
failed thirdparty object build cmd:
c++ -std=c++17 -D_DEFAULT_SOURCE   -fwrapv  -I "D:\v\v\v\thirdparty\sqlite" -L "D:\v\v\v\thirdparty\sqlite" -o "C:\Users\DDT\.vmodules\.cache\a6\a64ae9c5a98ca962c7e3f7466075d83e.module.db.sqlite.o" -c "D:\v\v\v\thirdparty\sqlite\sqlite3.cpp"
builder error: 'c++' is not recognized as an internal or external command,
operable program or batch file.


 FAIL  [10/22] C:  2478.1 ms, R:     0.000 ms vlib/orm/orm_option_array_test.v
>> compilation failed:
failed thirdparty object build cmd:
c++ -std=c++17 -D_DEFAULT_SOURCE   -fwrapv  -I "D:\v\v\v\thirdparty\sqlite" -L "D:\v\v\v\thirdparty\sqlite" -o "C:\Users\DDT\.vmodules\.cache\a6\a64ae9c5a98ca962c7e3f7466075d83e.module.db.sqlite.o" -c "D:\v\v\v\thirdparty\sqlite\sqlite3.cpp"
builder error: 'c++' is not recognized as an internal or external command,
operable program or batch file.


 FAIL  [11/22] C:  2481.1 ms, R:     0.000 ms vlib/orm/orm_last_id_test.v
>> compilation failed:
failed thirdparty object build cmd:
c++ -std=c++17 -D_DEFAULT_SOURCE   -fwrapv  -I "D:\v\v\v\thirdparty\sqlite" -L "D:\v\v\v\thirdparty\sqlite" -o "C:\Users\DDT\.vmodules\.cache\a6\a64ae9c5a98ca962c7e3f7466075d83e.module.db.sqlite.o" -c "D:\v\v\v\thirdparty\sqlite\sqlite3.cpp"
builder error: 'c++' is not recognized as an internal or external command,
operable program or batch file.


 FAIL  [12/22] C:  2480.8 ms, R:     0.000 ms vlib/orm/orm_order_by_custom_field_test.v
>> compilation failed:
failed thirdparty object build cmd:
c++ -std=c++17 -D_DEFAULT_SOURCE   -fwrapv  -I "D:\v\v\v\thirdparty\sqlite" -L "D:\v\v\v\thirdparty\sqlite" -o "C:\Users\DDT\.vmodules\.cache\a6\a64ae9c5a98ca962c7e3f7466075d83e.module.db.sqlite.o" -c "D:\v\v\v\thirdparty\sqlite\sqlite3.cpp"
builder error: 'c++' is not recognized as an internal or external command,
operable program or batch file.


 FAIL  [13/22] C:  2481.7 ms, R:     0.000 ms vlib/orm/orm_insert_test.v
>> compilation failed:
failed thirdparty object build cmd:
c++ -std=c++17 -D_DEFAULT_SOURCE   -fwrapv  -I "D:\v\v\v\thirdparty\sqlite" -L "D:\v\v\v\thirdparty\sqlite" -o "C:\Users\DDT\.vmodules\.cache\a6\a64ae9c5a98ca962c7e3f7466075d83e.module.db.sqlite.o" -c "D:\v\v\v\thirdparty\sqlite\sqlite3.cpp"
builder error: 'c++' is not recognized as an internal or external command,
operable program or batch file.


 FAIL  [14/22] C:  2475.8 ms, R:     0.000 ms vlib/orm/orm_interface_test.v
>> compilation failed:
failed thirdparty object build cmd:
c++ -std=c++17 -D_DEFAULT_SOURCE   -fwrapv  -I "D:\v\v\v\thirdparty\sqlite" -L "D:\v\v\v\thirdparty\sqlite" -o "C:\Users\DDT\.vmodules\.cache\a6\a64ae9c5a98ca962c7e3f7466075d83e.module.db.sqlite.o" -c "D:\v\v\v\thirdparty\sqlite\sqlite3.cpp"
builder error: 'c++' is not recognized as an internal or external command,
operable program or batch file.


 FAIL  [15/22] C:  2492.3 ms, R:     0.000 ms vlib/orm/orm_fn_calls_test.v
>> compilation failed:
failed thirdparty object build cmd:
c++ -std=c++17 -D_DEFAULT_SOURCE   -fwrapv  -I "D:\v\v\v\thirdparty\sqlite" -L "D:\v\v\v\thirdparty\sqlite" -o "C:\Users\DDT\.vmodules\.cache\a6\a64ae9c5a98ca962c7e3f7466075d83e.module.db.sqlite.o" -c "D:\v\v\v\thirdparty\sqlite\sqlite3.cpp"
builder error: 'c++' is not recognized as an internal or external command,
operable program or batch file.


 FAIL  [16/22] C:  2067.1 ms, R:     0.000 ms vlib/orm/orm_result_test.v
>> compilation failed:
failed thirdparty object build cmd:
c++ -std=c++17 -D_DEFAULT_SOURCE   -fwrapv  -I "D:\v\v\v\thirdparty\sqlite" -L "D:\v\v\v\thirdparty\sqlite" -o "C:\Users\DDT\.vmodules\.cache\a6\a64ae9c5a98ca962c7e3f7466075d83e.module.db.sqlite.o" -c "D:\v\v\v\thirdparty\sqlite\sqlite3.cpp"
builder error: 'c++' is not recognized as an internal or external command,
operable program or batch file.


 FAIL  [17/22] C:  2089.2 ms, R:     0.000 ms vlib/orm/orm_references_test.v
>> compilation failed:
failed thirdparty object build cmd:
c++ -std=c++17 -D_DEFAULT_SOURCE   -fwrapv  -I "D:\v\v\v\thirdparty\sqlite" -L "D:\v\v\v\thirdparty\sqlite" -o "C:\Users\DDT\.vmodules\.cache\a6\a64ae9c5a98ca962c7e3f7466075d83e.module.db.sqlite.o" -c "D:\v\v\v\thirdparty\sqlite\sqlite3.cpp"
builder error: 'c++' is not recognized as an internal or external command,
operable program or batch file.


 FAIL  [18/22] C:  1417.3 ms, R:     0.000 ms vlib/orm/orm_serial_attribute_test.v
>> compilation failed:
failed thirdparty object build cmd:
c++ -std=c++17 -D_DEFAULT_SOURCE   -fwrapv  -I "D:\v\v\v\thirdparty\sqlite" -L "D:\v\v\v\thirdparty\sqlite" -o "C:\Users\DDT\.vmodules\.cache\a6\a64ae9c5a98ca962c7e3f7466075d83e.module.db.sqlite.o" -c "D:\v\v\v\thirdparty\sqlite\sqlite3.cpp"
builder error: 'c++' is not recognized as an internal or external command,
operable program or batch file.


 FAIL  [19/22] C:  1495.1 ms, R:     0.000 ms vlib/orm/orm_sql_or_blocks_test.v
>> compilation failed:
failed thirdparty object build cmd:
c++ -std=c++17 -D_DEFAULT_SOURCE   -fwrapv  -I "D:\v\v\v\thirdparty\sqlite" -L "D:\v\v\v\thirdparty\sqlite" -o "C:\Users\DDT\.vmodules\.cache\a6\a64ae9c5a98ca962c7e3f7466075d83e.module.db.sqlite.o" -c "D:\v\v\v\thirdparty\sqlite\sqlite3.cpp"
builder error: 'c++' is not recognized as an internal or external command,
operable program or batch file.


 FAIL  [20/22] C:  1416.7 ms, R:     0.000 ms vlib/orm/orm_string_interpolation_in_where_test.v
>> compilation failed:
failed thirdparty object build cmd:
c++ -std=c++17 -D_DEFAULT_SOURCE   -fwrapv  -I "D:\v\v\v\thirdparty\sqlite" -L "D:\v\v\v\thirdparty\sqlite" -o "C:\Users\DDT\.vmodules\.cache\a6\a64ae9c5a98ca962c7e3f7466075d83e.module.db.sqlite.o" -c "D:\v\v\v\thirdparty\sqlite\sqlite3.cpp"
builder error: 'c++' is not recognized as an internal or external command,
operable program or batch file.


 FAIL  [21/22] C:  1488.0 ms, R:     0.000 ms vlib/orm/orm_sum_type_insert_test.v
>> compilation failed:
failed thirdparty object build cmd:
c++ -std=c++17 -D_DEFAULT_SOURCE   -fwrapv  -I "D:\v\v\v\thirdparty\sqlite" -L "D:\v\v\v\thirdparty\sqlite" -o "C:\Users\DDT\.vmodules\.cache\a6\a64ae9c5a98ca962c7e3f7466075d83e.module.db.sqlite.o" -c "D:\v\v\v\thirdparty\sqlite\sqlite3.cpp"
builder error: 'c++' is not recognized as an internal or external command,
operable program or batch file.


 FAIL  [22/22] C:  1362.6 ms, R:     0.000 ms vlib/orm/orm_test.v
>> compilation failed:
failed thirdparty object build cmd:
c++ -std=c++17 -D_DEFAULT_SOURCE   -fwrapv  -I "D:\v\v\v\thirdparty\sqlite" -L "D:\v\v\v\thirdparty\sqlite" -o "C:\Users\DDT\.vmodules\.cache\a6\a64ae9c5a98ca962c7e3f7466075d83e.module.db.sqlite.o" -c "D:\v\v\v\thirdparty\sqlite\sqlite3.cpp"
builder error: 'c++' is not recognized as an internal or external command,
operable program or batch file.


------------------------------------------------------------------------------------------------------------------------
To reproduce just failure 1 run:    "D:\v\v\v\v.exe"  "D:\v\v\v\vlib\orm\orm_option_time_test.v"
To reproduce just failure 2 run:    "D:\v\v\v\v.exe"  "D:\v\v\v\vlib\orm\orm_create_and_drop_test.v"
To reproduce just failure 3 run:    "D:\v\v\v\v.exe"  "D:\v\v\v\vlib\orm\orm_custom_operators_test.v"
To reproduce just failure 4 run:    "D:\v\v\v\v.exe"  "D:\v\v\v\vlib\orm\orm_insert_reserved_name_test.v"
To reproduce just failure 5 run:    "D:\v\v\v\v.exe"  "D:\v\v\v\vlib\orm\orm_null_test.v"
To reproduce just failure 6 run:    "D:\v\v\v\v.exe"  "D:\v\v\v\vlib\orm\orm_fk_test.v"
To reproduce just failure 7 run:    "D:\v\v\v\v.exe"  "D:\v\v\v\vlib\orm\orm_mut_db_test.v"
To reproduce just failure 8 run:    "D:\v\v\v\v.exe"  "D:\v\v\v\vlib\orm\orm_option_array_test.v"
To reproduce just failure 9 run:    "D:\v\v\v\v.exe"  "D:\v\v\v\vlib\orm\orm_last_id_test.v"
To reproduce just failure 10 run:    "D:\v\v\v\v.exe"  "D:\v\v\v\vlib\orm\orm_order_by_custom_field_test.v"
To reproduce just failure 11 run:    "D:\v\v\v\v.exe"  "D:\v\v\v\vlib\orm\orm_insert_test.v"
To reproduce just failure 12 run:    "D:\v\v\v\v.exe"  "D:\v\v\v\vlib\orm\orm_interface_test.v"
To reproduce just failure 13 run:    "D:\v\v\v\v.exe"  "D:\v\v\v\vlib\orm\orm_fn_calls_test.v"
To reproduce just failure 14 run:    "D:\v\v\v\v.exe"  "D:\v\v\v\vlib\orm\orm_result_test.v"
To reproduce just failure 15 run:    "D:\v\v\v\v.exe"  "D:\v\v\v\vlib\orm\orm_references_test.v"
To reproduce just failure 16 run:    "D:\v\v\v\v.exe"  "D:\v\v\v\vlib\orm\orm_serial_attribute_test.v"
To reproduce just failure 17 run:    "D:\v\v\v\v.exe"  "D:\v\v\v\vlib\orm\orm_sql_or_blocks_test.v"
To reproduce just failure 18 run:    "D:\v\v\v\v.exe"  "D:\v\v\v\vlib\orm\orm_string_interpolation_in_where_test.v"
To reproduce just failure 19 run:    "D:\v\v\v\v.exe"  "D:\v\v\v\vlib\orm\orm_sum_type_insert_test.v"
To reproduce just failure 20 run:    "D:\v\v\v\v.exe"  "D:\v\v\v\vlib\orm\orm_test.v"
Summary for all V _test.v files: 19 failed, 2 passed, 21 total. Elapsed time: 4256 ms, on 15 parallel jobs. Comptime: 44453 ms. Runtime: 365 ms.

I think we should add sqlite to thirdparty.

kbkpbot avatar Dec 31 '24 00:12 kbkpbot

Definitely different from the Linux x64 version...

$ ./tcc.exe -v
tcc version 0.9.28rc 2024-07-31 HEAD@1cee0908 (x86_64 Linux)
$

Yes, Windows version has some bug, https://github.com/vlang/v/issues/20665 So I fix this at tcc, and we need a updated tcc for windows.

kbkpbot avatar Dec 31 '24 00:12 kbkpbot