Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: assigning to 'OpenImageIO_v2_6_5::TextureSystem *' from incompatible type 'std::shared_ptr<TextureSystem>' #1864

Open
zwillikon opened this issue Sep 14, 2024 · 3 comments

Comments

@zwillikon
Copy link

zwillikon commented Sep 14, 2024

Problem

Actual behavior:

FAILED: src/liboslexec/CMakeFiles/oslexec.dir/shadingsys.cpp.o
/usr/lib/llvm14/bin/clang++ -DCUDA_TARGET_ARCH="sm_60" -DOIIO_DISABLE_DEPRECATED=900000 -DOIIO_HIDE_FORMAT=1 -DOSL_CUDA_VERSION="" -DOSL_EXPORTS -DOSL_FAST_MATH=1 -DOSL_INTERNAL=1 -DOSL_LLVM_FULL_VERSION="14.0.6" -DOSL_LLVM_VERSION=140 -DOSL_OPTIX_VERSION="" -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -Doslexec_EXPORTS -Doslparse=OSL_v1_14_1_oslparse -Dosoparse=OSL_v1_14_1_osoparse -I./OpenShadingLanguage/build/include -I./OpenShadingLanguage/build/src/include -I./OpenShadingLanguage/src/include -I./OpenShadingLanguage/ext/dist/include -I./OpenShadingLanguage/src/liboslexec -I./OpenShadingLanguage/src/liboslcomp -isystem /usr/lib/llvm14/include -isystem /usr/include/Imath -march=native -mtune=native -O2 -pipe -fpermissive -fno-plt -fexceptions -Wformat -Wno-deprecated-declarations -Wno-stringop-overflow -Wno-unknown-pragmas -Wno-error=incompatible-pointer-types -fPIC -Wp,-D_GLIBCXX_ASSERTIONS -Wno-template-id-cdtor -Wno-zero-as-null-pointer-constant -fPIC -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -O3 -DNDEBUG -std=c++17 -fPIC -fvisibility=hidden -Wall -Wno-unused-function -Wno-overloaded-virtual -Wno-unneeded-internal-declaration -Wno-unused-private-field -Wno-tautological-compare -Wno-unknown-pragmas -Wno-format-security -Qunused-arguments -Wunknown-warning-option -Wno-unused-local-typedefs -Wno-expansion-to-defined -Wno-bitwise-instead-of-logical -Wno-null-conversion -Wno-error=strict-overflow -fno-math-errno -fno-reciprocal-math -MD -MT src/liboslexec/CMakeFiles/oslexec.dir/shadingsys.cpp.o -MF src/liboslexec/CMakeFiles/oslexec.dir/shadingsys.cpp.o.d -o src/liboslexec/CMakeFiles/oslexec.dir/shadingsys.cpp.o -c ./OpenShadingLanguage/src/liboslexec/shadingsys.cpp
./OpenShadingLanguage/src/liboslexec/shadingsys.cpp:1204:24: error: assigning to 'OpenImageIO_v2_6_5::TextureSystem ' from incompatible type 'std::shared_ptr'
m_texturesys = TextureSystem::create(true /
shared */);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Steps to Reproduce

I could overcome this error by patching #1848 in reverse.

Versions

@lgritz
Copy link
Collaborator

lgritz commented Sep 16, 2024

./OpenShadingLanguage/src/liboslexec/shadingsys.cpp:1204:24: error: assigning to 'OpenImageIO_v2_6_5::TextureSystem ' from incompatible type 'std::shared_ptr'
m_texturesys = TextureSystem::create(true / shared */);

Thing is, that's not what's on line 1204 in 1.13.11.0.

Can you try a fresh build of OIIO and OSL 1.13.11? I suspect that maybe you don't really have the checkout you think you did.

@zwillikon
Copy link
Author

zwillikon commented Sep 16, 2024

I'm on git master (clarified in my above report)

But you are probably right that I've messed something up:

https://github.com/AcademySoftwareFoundation/OpenShadingLanguage/blob/main/src/liboslexec/shadingsys.cpp#L1233

@lgritz
Copy link
Collaborator

lgritz commented Sep 23, 2024

Is this still an issue? Did you figure out what was going wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants