Blender failed to build due to error C4133 with MSVC on windows #79412

Closed
opened 2020-07-31 05:16:28 +02:00 by Lin Gao · 5 comments

Environment:
VS 2019 + Windows Server 2016

Issue description:
We tried to build Blender using VS2019 on Windows Server 2016. It failed to build due to error C4133: 'function': incompatible types - from 'eGPUDataFormat *' to 'uint *' . We use latest commit 742ad5a and latest dependencies lib win64_vc15 version 62464. Could you please help take a look at this? Thanks in advance!

Repro steps:

  1. git clone git://git.blender.org/blender.git F:\gitP\blender.git
  2. cd F:\tools\blender\lib\win64_vc15
  3. svn.exe cleanup
  4. svn.exe update
  5. Open a VS 2019 x64 command prompt and browse to F:\gitP\blender.git\build_amd64
  6. set CL=/D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING
  7. msbuild /p:Platform=x64 /p:Configuration=Release Blender.sln /t:Rebuild /p:BuildInParallel=true

Actual result:
F:\gitP\blender.git\source\blender\blenkernel\intern\image_gpu.c(183,64): error C4133: 'function': incompatible types - from 'eGPUDataFormat *' to 'uint *' [F:\gitP\blender.git\build_amd64\source\blender\blenkernel\bf_blenkernel.vcxproj]
F:\gitP\blender.git\source\blender\blenkernel\intern\image_gpu.c(183,77): error C4133: 'function': incompatible types - from 'eGPUTextureFormat *' to 'uint *' [F:\gitP\blender.git\build_amd64\source\blender\blenkernel\bf_blenkernel.vcxproj]
F:\gitP\blender.git\source\blender\imbuf\intern\util_gpu.c(196,59): error C4133: 'function': incompatible types - from 'eGPUDataFormat *' to 'uint *' [F:\gitP\blender.git\build_amd64\source\blender\imbuf\bf_imbuf.vcxproj]
F:\gitP\blender.git\source\blender\imbuf\intern\util_gpu.c(196,72): error C4133: 'function': incompatible types - from 'eGPUTextureFormat *' to 'uint *' [F:\gitP\blender.git\build_amd64\source\blender\imbuf\bf_imbuf.vcxproj]
Done Building Project "F:\gitP\blender.git\build_amd64\source\blender\imbuf\bf_imbuf.vcxproj" (Rebuild target(s)) -- FAILED.
Done Building Project "F:\gitP\blender.git\build_amd64\source\blender\imbuf\bf_imbuf.vcxproj.metaproj" (Rebuild target(s)) -- FAILED.

Environment: VS 2019 + Windows Server 2016 Issue description: We tried to build Blender using VS2019 on Windows Server 2016. It failed to build due to error C4133: 'function': incompatible types - from 'eGPUDataFormat *' to 'uint *' . We use latest commit 742ad5a and latest dependencies lib win64_vc15 version 62464. Could you please help take a look at this? Thanks in advance! Repro steps: 1. git clone git://git.blender.org/blender.git F:\gitP\blender.git 2. cd F:\tools\blender\lib\win64_vc15 3. svn.exe cleanup 4. svn.exe update 5. Open a VS 2019 x64 command prompt and browse to F:\gitP\blender.git\build_amd64 6. set _CL_=/D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING 7. msbuild /p:Platform=x64 /p:Configuration=Release Blender.sln /t:Rebuild /p:BuildInParallel=true Actual result: F:\gitP\blender.git\source\blender\blenkernel\intern\image_gpu.c(183,64): error C4133: 'function': incompatible types - from 'eGPUDataFormat *' to 'uint *' [F:\gitP\blender.git\build_amd64\source\blender\blenkernel\bf_blenkernel.vcxproj] F:\gitP\blender.git\source\blender\blenkernel\intern\image_gpu.c(183,77): error C4133: 'function': incompatible types - from 'eGPUTextureFormat *' to 'uint *' [F:\gitP\blender.git\build_amd64\source\blender\blenkernel\bf_blenkernel.vcxproj] F:\gitP\blender.git\source\blender\imbuf\intern\util_gpu.c(196,59): error C4133: 'function': incompatible types - from 'eGPUDataFormat *' to 'uint *' [F:\gitP\blender.git\build_amd64\source\blender\imbuf\bf_imbuf.vcxproj] F:\gitP\blender.git\source\blender\imbuf\intern\util_gpu.c(196,72): error C4133: 'function': incompatible types - from 'eGPUTextureFormat *' to 'uint *' [F:\gitP\blender.git\build_amd64\source\blender\imbuf\bf_imbuf.vcxproj] Done Building Project "F:\gitP\blender.git\build_amd64\source\blender\imbuf\bf_imbuf.vcxproj" (Rebuild target(s)) -- FAILED. Done Building Project "F:\gitP\blender.git\build_amd64\source\blender\imbuf\bf_imbuf.vcxproj.metaproj" (Rebuild target(s)) -- FAILED.
Author

Added subscriber: @spacelg

Added subscriber: @spacelg
Author
[build.log](https://archive.blender.org/developer/F8732274/build.log)
Member

Added subscriber: @JacquesLucke

Added subscriber: @JacquesLucke
Member

I think this has been fixed yesterday. Please try the latest version. Also, this bug tracker is not really for build issues. Those are handled either on https:*devtalk.blender.org or in https:*blender.chat in the #blender-coders channel.

I think this has been fixed yesterday. Please try the latest version. Also, this bug tracker is not really for build issues. Those are handled either on https:*devtalk.blender.org or in https:*blender.chat in the #blender-coders channel.
Member

Changed status from 'Needs Triage' to: 'Archived'

Changed status from 'Needs Triage' to: 'Archived'
Jacques Lucke self-assigned this 2020-07-31 10:26:02 +02:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser Project (Legacy)
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#79412
No description provided.