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 with make #90

Closed
weiT1993 opened this issue Apr 30, 2020 · 6 comments
Closed

Error with make #90

weiT1993 opened this issue Apr 30, 2020 · 6 comments

Comments

@weiT1993
Copy link

error_logs.txt

I am trying to install qsim on a linux machine. I did

mkdir build && cd build && cmake3 ..

which successfully ran. However, running

make

in the root directory produces the above error logs. I am not an experienced C++ user, please bear with me if this is a stupid question. Thank you!

@95-martin-orion
Copy link
Collaborator

From the error logs:

This file requires compiler and library support for the ISO C++ 2011 standard.

Our Makefile assumes that C++11 is enabled - in your case, you can either:

  1. Add -std=c++11 to the CXXFLAGS line in the top-level Makefile, or
  2. Build using Bazel (the .bazelrc enforces use of C++11).

Hope that helps!

@weiT1993
Copy link
Author

error_logs.txt

Thanks, that gets me through the first errors. But there are other errors appearing now.

@95-martin-orion
Copy link
Collaborator

From the file:

error: use of deleted function
‘std::basic_ifstream<char>::basic_ifstream(const std::basic_ifstream<char>&)' {...}

This is a known error when using older versions of gcc, highlighted in issue #84. Your previous error logs indicate you are using gcc-4.8.2 -- if possible, I would recommend updating your gcc version, as we currently don't plan to support gcc-4.8.x

@sergeisakov, this shows that some subset of users may be using these older gcc versions - should we reconsider adding support for these versions?

@weiT1993
Copy link
Author

I updated to gcc-8.3.1. However, make still produces the following errors:
error_logs.txt

@95-martin-orion
Copy link
Collaborator

Hmm...that indicates that your system does not use AVX by default. That should be fine, since PR #82 added multiplexing for (AVX|SSE|basic) simulators, but obviously something's not quite right.

You can try replacing -march=native in the Makefile with -mavx2 -mfma, but if your machine doesn't support AVX then that may fail as well.

@sergeisakov, could you take a look at this? I think the Bazel tests only check the AVX case - we probably should expand them to cover SSE and basic as well.

@weiT1993
Copy link
Author

weiT1993 commented May 1, 2020

I switched to a newer Skylake server and it works now, so I am closing this issue. Thanks!

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