Hi,Esden,Yannick
Thank you for your help,I have reinstalled everything for paparazzi.However,I still get the warning"gcc: warning: couldn't understand kern.osversion '14.5.0"while it is making for paparazzi and building for sim.And the paparazzi still can't work properly.Meanwhile,the building for ap which doesn't appear the warning.I suspect that it is a problem about the gcc compiler.
Since I have installed the newest gcc(5.2.0)with home-brew,the command"brew list gcc"returns:
/usr/local/Cellar/gcc/5.2.0/bin/.DS_Store
/usr/local/Cellar/gcc/5.2.0/bin/c++-5
/usr/local/Cellar/gcc/5.2.0/bin/cpp-5
/usr/local/Cellar/gcc/5.2.0/bin/g++-5
/usr/local/Cellar/gcc/5.2.0/bin/gcc-5
/usr/local/Cellar/gcc/5.2.0/bin/gcc-ar-5
.....
But the command"gcc -v"returns:
gcc: warning: couldn’t understand kern.osversion ‘14.5.0(here is the very same warning of the building)
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-apple-darwin12.4.0/4.9.0/lto-wrapper
Target: x86_64-apple-darwin12.4.0
Configured with: ../gcc-4.9-20130811/configure --enable-languages=fortran,c++
Thread model: posix
gcc version 4.9.0 20130811 (experimental) (GCC)
Why the version it is using which is not what is installed with homebrew?BTW I have added the path of the gcc5.2(export PATH=/usr/local/Cellar/gcc/5.2.0/bin:$PATH) to bash_profile.
On Monday, September 28, 2015 6:39 AM, Piotr Esden-Tempski <address@hidden> wrote:
Thanks Yannick for commenting, this is exactly what I meant with stale libraries. You need to recompile all ocaml libraries with new xcode after upgrade, this is what the warning says. Downgrading is not the right solution.
Cheers,
Piotr
On 27 sept. 2015, at 10:54, Tom hardson <address@hidden> wrote:
Hi,Esden,
I found that the warning about:"ld: warning: object file (ml_gtk_drag.o) was built for newer OSX version (10.10) than being linked (10.4)” is a bug of the newest Xcode(7.0).And I have fixed it with a downgrade of Xcode from v7.0 to v6.4.So,I wonder if the warning about"gcc: warning: couldn’t understand kern.osversion ’14.5.0" is also caused by an improper version of gcc compiler(gcc-arm-none-eabi-4_9-2015q3-20150921-mac)?And what's the version of your gcc for your paparazzi on mac?Thank you!
The fact is that ml_gtk (labelgtk2) depends on the libraries built beforehand. e.g:
$ otool -L /opt/local/lib/ocaml/site-lib/stublibs/dlllablgtk2.so
… tons of libs
$ otool -L /opt/local/lib/ocaml/site-lib/stublibs/dllivy-ocaml.so
/opt/local/lib/ocaml/site-lib/stublibs/dllivy-ocaml.so:
/opt/local/lib/libivy.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1213.0.0)
if you move to a newer Xcode (command line tools),
$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 7.0.0 (clang-700.0.72)
Target: x86_64-apple-darwin14.5.0
Thread model: posix
then you have to re-compile all dependents (by hand, homebrew, or macports)
With regards to gcc-arm-none-eabi, I think that the one that’s known to work with ppz is the one provided with ubuntu (4.9.3.2014q4-0trusty12). Macports provides arm-none-eabi-gcc @5.1.0 , I don’t know if it’s reliable.
—
Y.
_______________________________________________
Paparazzi-devel mailing list
address@hiddenhttps://lists.nongnu.org/mailman/listinfo/paparazzi-devel
_______________________________________________
Paparazzi-devel mailing list
address@hiddenhttps://lists.nongnu.org/mailman/listinfo/paparazzi-devel