tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] SQLite miscompiles on Windows 32-bit


From: Jonathan Newman
Subject: Re: [Tinycc-devel] SQLite miscompiles on Windows 32-bit
Date: Mon, 17 Dec 2018 12:04:12 +0000

Christian- since it does build correctly in some configurations (win64 single-threaded, and I'm told Linux builds are okay too) I would say the issue is solely with TCC.
Even if changes to SQLite were the best way to solve it, I think it would first be necessary to trace the root cause of this and determine exactly why win32 builds are miscompiling.

On Sun, 16 Dec 2018 at 07:30, Christian Jullien <address@hidden> wrote:

Jonathan,

 

I second you for a full SQLite support with tcc. You may also ping SQLite guys to see if they see an interest to support tcc in their toolchain. Maybe they can do halt the road adapting the source code so that it better compiles with tcc?

 

From: Tinycc-devel [mailto:tinycc-devel-bounces+eligis=address@hidden] On Behalf Of Jonathan Newman
Sent: dimanche 16 décembre 2018 04:28
To: address@hidden
Subject: [Tinycc-devel] SQLite miscompiles on Windows 32-bit

 

Hello everyone,

I reported this a few months ago, but since there has been recent activity and I've now prepared a test setup, I thought it would be worth checking to see if anyone can investigate again.

 

Using the latest mob revision:

 

* Single-threaded (SQLITE_THREADSAFE=0) 64-bit builds of SQLite work OK

* Multi-threaded 64-bit builds fail with undefined symbol '__faststorefence'

* Any 32-bit build succeeds, but the result segfaults.

 

I've prepared a test setup including a Powershell script (test.ps1) that simply builds and runs each possible configuration:

 

 

(External link instead of attachment, since it's ~2MB)

 

sqlite3.c has been slightly modified from the official release to avoid the need to juggle different Windows headers around- an unmodified file demonstrates exactly the same behaviour.

 

Many thanks to anyone who can track it down...

_______________________________________________
Tinycc-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

reply via email to

[Prev in Thread] Current Thread [Next in Thread]