-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 Compiling Drake on Yosemite: gfortran: warning: couldn't understand kern.osversion '14.3.0 ld: -rpath can only be used when targeting Mac OS X 10.5 or later #981
Comments
it looks like you’re only have trouble building avl (which you probably don’t actually need — it computes aerodynamics coefficients). one work-around is to skip building avl by commenting it out in drake-distro/tobuild.txt . as far as actually resolving the problem… is it possible that you’ve upgraded the mac since you build avl last? maybe try doing On Apr 12, 2015, at 3:09 PM, Robert Katzschmann notifications@github.com wrote:
|
I commented out ‘avl'. Same problem now for running make ‘xfoil': Here is the output from running the make VERBOSE=1 for 'avl': tarqu:drake-distro rkk$ cd avl/ BUILD_PREFIX: /Users/rkk/drake-distro/build create the temporary build directory if neededrun CMake to generate and configure the build scriptsRe-run cmake no build system arguments and here running make verbose for xfoil: tarqu:xfoil rkk$ make clean BUILD_PREFIX: /Users/rkk/drake-distro/build create the temporary build directory if neededrun CMake to generate and configure the build scriptsRe-run cmake no build system arguments
Warning: Rank mismatch in argument 'hh' at (1) (scalar and rank-1)
Warning: Rank mismatch in argument 'hh' at (1) (scalar and rank-1) |
based on a quick google, it looks like you probably forgot to install the updated command-line tools after update xcode. try this on your command line:
then try again. (fwiw - avl and xfoil are ying and yang, i should have told you to take both out of your build.) On Apr 12, 2015, at 4:03 PM, Robert Katzschmann notifications@github.com wrote:
|
i will close this assuming it is resolved. if you can confirm, that would be much appreciated. reopen the issue if it is not resolved. |
Commenting out xfoil and rerunning the make of drake gives me this error: CMake Error at cmake/mex.cmake:274 (message):
Call Stack (most recent call first): Matlab tells me this:
What can I do to get the mex options adjusted? Where in CMakeLists shall i make an adjustment? I regards to avl and xfoil: On Apr 14, 2015, at 02:30, Russ Tedrake notifications@github.com wrote: i will close this assuming it is resolved. if you can confirm, that would be much appreciated. reopen the issue if it is not resolved. — |
the mex -setup line output looks good. but if you have changed it, you will have to rerun make configure in the offending directory. not sure about the gfortran issue. we have other machine running yosemite and compiling it aok. it would definitely be good to figure this one out. On Apr 14, 2015, at 4:08 AM, Robert Katzschmann notifications@github.com wrote:
|
I haven’t changed the setup of the mex, I just ran mex -setup and got the output I pasted into my previous email. It still gives me that error. -- found mex: /Applications/MATLAB_R2014b.app/bin/mex CMake Warning at cmake/mex.cmake:18 (message): CMake Warning at cmake/mex.cmake:18 (message): CMake Warning at cmake/mex.cmake:18 (message): CMake Warning at cmake/mex.cmake:18 (message): CMake Warning at cmake/mex.cmake:18 (message): CMake Warning at cmake/mex.cmake:18 (message): CMake Warning at cmake/mex.cmake:18 (message): CMake Warning at cmake/mex.cmake:18 (message): CMake Warning at cmake/mex.cmake:18 (message): CMake Warning at cmake/mex.cmake:18 (message): CMake Warning at cmake/mex.cmake:18 (message): CMake Warning at cmake/mex.cmake:18 (message): CMake Warning at cmake/mex.cmake:18 (message): CMake Error at cmake/mex.cmake:257 (get_compiler_version): CMake Error at cmake/mex.cmake:274 (message):
Call Stack (most recent call first): -- Configuring incomplete, errors occurred! I am not sure how I should do this here to fix the problem:
On Apr 14, 2015, at 12:08, Russ Tedrake notifications@github.com wrote: the mex -setup line output looks good. but if you have changed it, you will have to rerun make configure in the offending directory. not sure about the gfortran issue. we have other machine running yosemite and compiling it aok. it would definitely be good to figure this one out. On Apr 14, 2015, at 4:08 AM, Robert Katzschmann notifications@github.com wrote:
— |
can you run On Apr 14, 2015, at 6:21 AM, Robert Katzschmann notifications@github.com wrote:
|
tarqu:drake rkk$ /Applications/MATLAB_R2014b.app/bin/mex -v pod-build/dummy.c dont have dummy.c… On Apr 14, 2015, at 12:24, Russ Tedrake notifications@github.com wrote: can you run On Apr 14, 2015, at 6:21 AM, Robert Katzschmann notifications@github.com wrote:
— |
it gets created during the build with a simple
|
tarqu:drake rkk$ /Applications/MATLAB_R2014b.app/bin/mex -v pod-build/dummy.c Options file details
CXX="/usr/bin/xcrun -sdk macosx10.9 clang" LINKOPTIM : -OBuilding with 'Xcode with Clang'. On Apr 14, 2015, at 12:29, Russ Tedrake notifications@github.com wrote: it gets created during the build with a simple
— |
that all looks fine to me. we'd have to step in and figure out why this line is failing:
On Apr 14, 2015, at 6:43 AM, Robert Katzschmann notifications@github.com wrote:
|
I am in Italy, back on Monday at MIT, lets do it then in person or can I do any more debugging from here?
|
Good News: I started off from scratch by cloning drake [rigidbody] again into a new folder, running all of the steps in the installation guide and got it all to compile without commenting out any of the submodules. I think the problem might have been that the gcc dependency for avl was not correcty installed and also not correctly linked (because of gcc49 being linked). and the rerun fixed that. See details below: UPDATING HOMEBREW PREREQUESITES: To force the link and overwrite all conflicting files: To list all files that would be deleted: Possible conflicting files are: FIX BREW LINK OF GCC: tarqu:drake-distro rkk$ brew unlink gcc49 To force the link and overwrite all conflicting files: To list all files that would be deleted: RERUNNING HOMEBREW PREREQS INSTALL: I am now running On Apr 14, 2015, at 20:25, Robert Katzschmann robert@katzschmann.de wrote: I am in Italy, back on Monday at MIT, lets do it then in person or can I do any more debugging from here? On Apr 14, 2015, at 1:33 PM, Russ Tedrake <notifications@github.com mailto:notifications@github.com> wrote:
|
Excellent. Thanks for posting the resolution |
I had similar errors (in xfoil, but also in avl). For me, removing drake-distro/pod-build/avl-prefix and drake-distro/pod-build/download-avl-prefix and rerunning make avl fixed avl. xfoil got fixed after doing the unlink/link thing for gcc, but I'm betting that I could have also just deleted the prefix folders for xfoil. |
Problems compiling drake:
[100%] Building Fortran object src/CMakeFiles/avl.dir/second_g77.f.o
gfortran: warning: couldn't understand kern.osversion '14.3.0
Warning: Nonexistent include directory "/Users/rkk/drake-distro/avl/pod-build/include"
Linking Fortran executable ../bin/avl
gfortran: warning: couldn't understand kern.osversion '14.3.0
ld: -rpath can only be used when targeting Mac OS X 10.5 or later
collect2: error: ld returned 1 exit status
make[4]: *** [bin/avl] Error 1
make[3]: *** [src/CMakeFiles/avl.dir/all] Error 2
make[2]: *** [all] Error 2
make[1]: *** [all] Error 2
make: *** [all] Error 2
I am running Mac OS X Yosemite...
To describe what I did: I was 53 commits behind on the drake/rigidbody repo, so I ran
$ git pull
Then I made sure my prerequisites are all there, X11 was missing, so I installed that one. Also followed the steps here:
https://github.com/RobotLocomotion/drake/wiki/Homebrew, and added this line:
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/X11/lib/pkgconfig
to my ~/.bash_profile
I googled the make error and found http://stackoverflow.com/questions/26486163/gcc-4-9-1-in-os-x-yosemite-gcc-warning-couldn-t-understand-kern-osversion-1
My command line tools are up to date, so that does not help.
Any idea what I can do to get over this compile error?
Thanks
The text was updated successfully, but these errors were encountered: