-
Notifications
You must be signed in to change notification settings - Fork 415
Mac/LLVM Compilation Issues #161
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
Comments
This was caused by a missing header file, and should be fixed in 4623695. Interestingly this caused no problem with GCC on Ubuntu. We don't actively test with LLVM on Mac, so you may encounter other issues. If so, please let us know. |
Thanks for the fix for the above fails. I am now seeing the following after pulling your latest update. Error as follows: ##################### Thanks, |
Also another missing header, which should be fixed in c893656. I've re-named this issue to reflect the general problem, and I'll leave it open for any more problems. |
alrighty, sounds good. Here is the next one. Let me know if there is another intelligent way to keep collecting these errors, but step through the make process till end so you can fix everything once :) clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated |
The free issue should be fixed with 0f128de. I don't have access to Mac to test on, so I'm not sure there is a better way. |
Alrighty. No Problem. Here are next set of errors I saw - /Users/akrish/Applications/vtr-verilog-to-routing/vpr/SRC/base/place_and_route.c:616:37: error: use of undeclared identifier 'floor' Should be some missing math header or something, but im really not sure. Thanks, |
Fixed in 1772b1c. It seems that Ubuntu implicitly includes most of these headers in other header files, while Mac does not. So the fix is always fairly straight forward, we just need include the appropriate header file. |
Well that is very unfortunate for ppl like me who depend on mac to do some opensource work in our industry.. Anyways, here is the next one - /Users/akrish/Applications/vtr-verilog-to-routing/vpr/SRC/base/vpr_api.c:278:36: error: use of undeclared identifier 'sqrt' |
Fixed in 2276288. |
We now actively test building VTR with GCC 4.9/5/6 and LLVM 3.6/3.8 on linux (see buildbot). Hopefully this will prevent these types of issues from creeping into the code base in the future. |
Uh oh!
There was an error while loading. Please reload this page.
I am seeing the following erros while "make" from VTR root
#1
Users/akrish/Applications/vtr-verilog-to-routing/libvtrutil/src/vtr_error.h:25:21: error: implicit instantiation of undefined template 'std::__1::basic_string<char, std::__1::char_traits, std::_1::allocator >'
std::string filename;
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/iosfwd:193:33: note: template is declared here
class _LIBCPP_TYPE_VIS_ONLY basic_string;
^
In file included from /Users/akrish/Applications/vtr-verilog-to-routing/libvtrutil/src/vtr_math.cpp:4:
#2
Users/akrish/Applications/vtr-verilog-to-routing/libvtrutil/src/vtr_math.cpp:33:15: error: no matching constructor for initialization of 'vtr::VtrError'
throw VtrError("linear_interpolate_or_extrapolate: cannot interpolate/extrapolate based on less than 2 (x,y) pairs", FILE, LINE);
Steps to Reproduce (for bugs)
Your Environment
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 8.0.0 (clang-800.0.38)
Target: x86_64-apple-darwin16.0.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
Any help regarding this please ?
Thanks,
AK
The text was updated successfully, but these errors were encountered: