[gdal-dev] GDAL NMAKE fatal error U1077

Jeff McKenna jmckenna at gatewaygeomatics.com
Mon Sep 22 10:27:31 PDT 2025


Hi Mazin,

It looks like you are trying to point to the v16 (VC 2019) version of 
the MrSID SDK, but your local compiler is v17 (VC 2022).

-jeff



-- 
Jeff McKenna
GatewayGeo: Developers of MS4W, & offering MapServer Consulting/Dev
co-founder of FOSS4G
http://gatewaygeo.com/



On 2025-09-22 12:48 p.m., Mazin Marwan via gdal-dev wrote:
> Hello,
> 
> I'm running into the following error while attempting to build gdal 2.4.4
> C:\build\drdc\gdal\gdal-2.4.4\frmts>cd mrsid   && nmake /nologo /f 
> makefile.vc <http://makefile.vc>   && cd ..   || exit 1
>          cl   /nologo /MP /MD /EHsc /Ox /FC /D_CRT_SECURE_NO_DEPRECATE / 
> D_CRT_NONSTDC_NO_DEPRECATE /DNDEBUG /W4 /wd4127 /wd4251 /wd4275 / 
> wd4786 /wd4100 /wd4245 /wd4206 /wd4351 /wd4611  / 
> DHAVE_SSE_AT_COMPILE_TIME /DHAVE_SSSE3_AT_COMPILE_TIME -I..\..\port -I.. 
> \..\ogr -I..\..\gcore  -I..\..\alg -I..\..\ogr\ogrsf_frmts  -I..\..\gnm 
> -I..\..\gnm\gnm_frmts -I..\..\apps /DHAVE_AVX_AT_COMPILE_TIME -I"C: 
> \build\drdc\3rdparty\x64\MrSID_DSDK-9.5.4.5047-win64- 
> vc16\Lidar_DSDK\include" -I"C: 
> \build\drdc\3rdparty\x64\MrSID_DSDK-9.5.4.5047-win64- 
> vc16\Raster_DSDK\include"  -I..\gtiff\libgeotiff -DMRSID_LVER=111 - 
> DMRSID_RVER=800 -DMRSID_J2K   -DGNM_ENABLED  -DGDAL_COMPILATION - 
> DNOMINMAX /c mrsiddataset.cpp mrsidstream.cpp
> mrsiddataset.cpp
> mrsidstream.cpp
> C:\build\drdc\3rdparty\x64\MrSID_DSDK-9.5.4.5047-win64- 
> vc16\Raster_DSDK\include\lt_platform.h(101): fatal error C1189: #error:  
> PLATFORM ERROR: unknown compiler (compiling source file mrsidstream.cpp)
> C:\build\drdc\3rdparty\x64\MrSID_DSDK-9.5.4.5047-win64- 
> vc16\Raster_DSDK\include\lt_platform.h(101): fatal error C1189: #error:  
> PLATFORM ERROR: unknown compiler (compiling source file mrsiddataset.cpp)
> NMAKE : fatal error U1077: 'cl   /nologo /MP /MD /EHsc /Ox /FC / 
> D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /DNDEBUG /W4 / 
> wd4127 /wd4251 /wd4275 /wd4786 /wd4100 /wd4245 /wd4206 /wd4351 / 
> wd4611  /DHAVE_SSE_AT_COMPILE_TIME /DHAVE_SSSE3_AT_COMPILE_TIME -I..\.. 
> \port -I..\..\ogr -I..\..\gcore  -I..\..\alg -I..\..\ogr\ogrsf_frmts  - 
> I..\..\gnm -I..\..\gnm\gnm_frmts -I..\..\apps /DHAVE_AVX_AT_COMPILE_TIME 
> -I"C:\build\drdc\3rdparty\x64\MrSID_DSDK-9.5.4.5047-win64- 
> vc16\Lidar_DSDK\include" -I"C: 
> \build\drdc\3rdparty\x64\MrSID_DSDK-9.5.4.5047-win64- 
> vc16\Raster_DSDK\include"  -I..\gtiff\libgeotiff -DMRSID_LVER=111 - 
> DMRSID_RVER=800 -DMRSID_J2K   -DGNM_ENABLED  -DGDAL_COMPILATION - 
> DNOMINMAX /c mrsiddataset.cpp mrsidstream.cpp ' : return code '0x2'
> Stop.
> NMAKE : fatal error U1077: 'for %d in ( jpeg ceos aigrid elas hfa gtiff 
> sdts raw gxf ceos2 png  dted mem jdem gif  envisat aaigrid usgsdem l1b  
> fit vrt xpm bmp rmf  nitf pcidsk airsar rs2 rcm  ilwis msgn rik 
> pcraster  leveller sgi srtmhgt idrisi  jaxapalsar ers ingr dimap  gff 
> terragen gsg cosar pds  adrg coasp tsx blx til  r northwood saga xyz 
> hf2  kmlsuperoverlay ozi ctg e00grid  zmap ngsgeoid iris map cals  safe 
> sentinel2 derived prf  sigdem ignfheightasciigrid postgisraster bsb 
> jpeg2000 ecw hdf4 hdf5 mrsid mrsid_lidar pdf netcdf grib wcs wms 
> plmosaic wmts rda eeda arg mrf ) do  cd %d  && nmake /nologo /f 
> makefile.vc <http://makefile.vc>  && cd ..  || exit 1' : return code '0x1'
> Stop.
> NMAKE : fatal error U1077: 'nmake /nologo /f makefile.vc <http:// 
> makefile.vc>' : return code '0x2'
> Stop.
> 
> This is happening when I run nmake -f makefile.vc <http://makefile.vc> 
> MSVC_VER=1929 WIN64=1
> I'm running this on Windows 11, off of "x64 Native Tools Command Prompt 
> for VS 2022"
> 
> Is anyone aware of what the platform error is and how to solve it?
> 
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev




More information about the gdal-dev mailing list