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

Build error. std::memmove warning. Specified bound exceeds maximum object size. #4628

Closed
craftmaster1231 opened this issue May 5, 2023 · 6 comments

Comments

@craftmaster1231
Copy link
Contributor

craftmaster1231 commented May 5, 2023

Environment
Compiling on Fedora release 38 .
GNU Make 4.4
cmake version 3.26.3
c++ (GCC) 13.1.1 20230426 (Red Hat 13.1.1-1)

Issue
Build error on Building CXX object submodules/manifold/src/collider/CMakeFiles/collider.dir/src/collider.cpp.o

because of std::memmove warning.
Specified bound exceeds maximum object size.

So, here is what I did.

Cloned project:

git clone https://github.com/openscad/openscad.git
git submodule update --init --recursive

Got Dependencies:

sudo ./scripts/uni-get-dependencies.sh

Checked dependencies:

./scripts/check-dependencies.sh
image

Fixed qscintilla2 with:

sudo dnf install qscintilla-qt6
sudo dnf install qscintilla-qt6-devel
image

Then ran:

mkdir build && cd build && cmake .. -DEXPERIMENTAL=1
to generate Makefile, but gon an error:
image

Fixed it with:
sudo dnf install cairo-devel

Then run cmake again.

Some screenshots:
image
image
image
image

After all, I ran make:

make

Here are screenshots of error:
image
image
image

@thehans
Copy link
Member

thehans commented May 5, 2023

Openscad is still built against Qt5, I don't believe it works with Qt6 yet.

But the error looks like it is deep within manifold code which has its own git repo, included as a git submodule, and may need to be reported upstream there.

I would recommend to first test a build with EXPERIMENTAL=OFF, to separate manifold build issues from the rest of openscad build.

@craftmaster1231
Copy link
Contributor Author

Openscad is still built against Qt5, I don't believe it works with Qt6 yet.

But the error looks like it is deep within manifold code which has its own git repo, included as a git submodule, and may need to be reported upstream there.

I would recommend to first test a build with EXPERIMENTAL=OFF, to separate manifold build issues from the rest of openscad build.

Tried with EXPERIMENTAL=OFF
Got an error:
image
Should i try to #include <cstdint> and push that change on success?

@craftmaster1231
Copy link
Contributor Author

Openscad is still built against Qt5, I don't believe it works with Qt6 yet.
But the error looks like it is deep within manifold code which has its own git repo, included as a git submodule, and may need to be reported upstream there.
I would recommend to first test a build with EXPERIMENTAL=OFF, to separate manifold build issues from the rest of openscad build.

Tried with EXPERIMENTAL=OFF Got an error: image Should i try to #include <cstdint> and push that change on success?

Why am I first person catching that simple type of error?

@thehans
Copy link
Member

thehans commented May 5, 2023

Why am I first person catching that simple type of error?

You aren't #4626

@craftmaster1231
Copy link
Contributor Author

craftmaster1231 commented May 5, 2023

Why am I first person catching that simple type of error?

You aren't #4626

Checked for "cstdint" word only in Issues, not Pull Requests. Just missed.
Thanks!

@craftmaster1231
Copy link
Contributor Author

craftmaster1231 commented May 5, 2023

Everything compiled perfectly after adding
#include <cstdint> to src/glview/OpenGLContext.cc
and passing -DEXPERIMENTAL=OFF to cmake.

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

No branches or pull requests

2 participants