Patch for compiling Blender 2.76 on non-x86 architectures. #46447

Closed
opened 2015-10-11 19:33:33 +02:00 by popolon O'long · 8 comments

System Information
ArchlInux ARM on Asus Chromebook C201 (RK3288, CPU:4*Cortex-A17, GPU:Mali-764 (4 cœurs))

Blender Version
Broken: 2.76

Short description of error
Blender doesn't compile because of a not tested include in intern/cycles/util/util_optimization.h

Exact steps for others to reproduce the error
make =>
fatal error: x86intrin.h: no such file or directory

To resolve this problem

change the test:

  • if defined(_MSC_VER)
    • include <intrin.h>
  • else
    • include <x86intrin.h>

endif

to

  • if defined(_MSC_VER)
    • include <intrin.h>
  • elif defined(GNUC) && (defined(x86_64) || defined(i386))
    • include <x86intrin.h>
  • elif defined(GNUC) && defined(ARM_NEON)
  • include <arm_neon.h>

endif

Here an example of tests for more architectures: http://stackoverflow.com/questions/11228855/header-files-for-simd-intrinsics

I made the package this way for my system, works fine (full OpenGL, so no hw acceleration, but work nicely for simple scenes with LLVMpipe, need to manage to build it with OpenGL ES):

Dirty patched PKGBUILD for ARchlinux ARM:

**System Information** ArchlInux ARM on Asus Chromebook C201 (RK3288, CPU:4*Cortex-A17, GPU:Mali-764 (4 cœurs)) **Blender Version** Broken: 2.76 **Short description of error** Blender doesn't compile because of a not tested include in intern/cycles/util/util_optimization.h **Exact steps for others to reproduce the error** make => fatal error: x86intrin.h: no such file or directory **To resolve this problem** change the test: - if defined(_MSC_VER) - include <intrin.h> - else - include <x86intrin.h> # endif to - if defined(_MSC_VER) - include <intrin.h> - elif defined(__GNUC__) && (defined(__x86_64__) || defined(__i386__)) - include <x86intrin.h> - elif defined(__GNUC__) && defined(__ARM_NEON__) - include <arm_neon.h> # endif Here an example of tests for more architectures: http://stackoverflow.com/questions/11228855/header-files-for-simd-intrinsics I made the package this way for my system, works fine (full OpenGL, so no hw acceleration, but work nicely for simple scenes with LLVMpipe, need to manage to build it with OpenGL ES): * http://popolon.org/depots/ArchlinuxARM/blender-17%3A2.76-1.0001-armv7h.pkg.tar.xz Dirty patched PKGBUILD for ARchlinux ARM: * http://popolon.org/depots/ArchlinuxARM/blender-17%3A2.76-1.0001-armv7h.FULLOPENGL.quick_n_dirty_hack.txt.PKBUILD
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @Popolon

Added subscriber: @Popolon
Aaron Carlisle self-assigned this 2015-10-11 19:48:55 +02:00
Aaron Carlisle removed their assignment 2015-10-11 19:50:32 +02:00
Member

Added subscribers: @Blendify, @Sergey

Added subscribers: @Blendify, @Sergey

This issue was referenced by ea7ce7fcf4

This issue was referenced by ea7ce7fcf417c77434b67dead12002b20b3bf59f

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

Added subscriber: @brecht

Added subscriber: @brecht

Fixed now, thanks! I didn't add the arm_neon.h include since we're not using such instructions currently.

Fixed now, thanks! I didn't add the `arm_neon.h` include since we're not using such instructions currently.

This issue was referenced by blender/cycles@736d681556

This issue was referenced by blender/cycles@736d681556b7bbb22ff97a49dab589238ab6eb96
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
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
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
4 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#46447
No description provided.