SQLite User Forum

fatal error u1077 return code ’0x2’ while compiling sqlite
Login

fatal error u1077 return code '0x2' while compiling sqlite

(1) By sameer liaqat (iiviir_sam) on 2022-10-07 09:39:25 [link] [source]

Hi Sqlite Masters,

I am getting this error when i run this(nmake /f ..\Makefile.msc test TOP=..)  command using native tools command prompt vs for 2022. This error occur when :

sqlite3.c
Generating Code...
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.33.31629\bin\HostX86\x86\cl.EXE"' : return code '0x2'
Stop.

what is the issue please help.

(2) By Warren Young (wyoung) on 2022-10-07 09:56:48 in reply to 1 [source]

That's a secondary error. nmake is simply telling you that the compiler returned an error, which is code 2. Since the search term "code" now pulls up every VSCode web page in the world, I've failed to find out what that even means.

However, I can be reasonably sure that what the compiler said before this is what matters, not nmake's frustrated throwing-up-of-hands following it.

(3) By sameer liaqat (iiviir_sam) on 2022-10-07 10:45:12 in reply to 2 [link] [source]

Okay sir. Thank you for reply. but my sqlite3.exe is generate and working with cli. can you please explain one last thing how i can change threadsafe = 2. i try and search but did not understand how i can. please