px4 / homebrew-px4 Goto Github PK
View Code? Open in Web Editor NEWPX4-related Homebrew formula for developers using OS X
PX4-related Homebrew formula for developers using OS X
Current latest release version is 1.6.0, and our bottle is still 1.5.0. @LorenzMeier is this something you can update?
I am not sure where to register this issue I am afraid, so noting it here as the closest approximation.
~ % brew install px4-sim-gazebo
...
==> Downloading https://ghcr.io/v2/homebrew/core/ode/blobs/sha256:333320201f493ecb42eb9754a8c73d8490aa8d0155129865384fe2faf2706482
Already downloaded: /Users/nsowatsk/Library/Caches/Homebrew/downloads/ec7045e34722cb960dc9207ec13fa50e60a618d00353233d4846bcf93e134f55--ode--0.16.2.big_sur.bottle.tar.gz
Warning: Building gtk+ from source as the bottle needs:
- HOMEBREW_CELLAR: /usr/local/Cellar (yours is /usr/local/homebrew/Cellar)
- HOMEBREW_PREFIX: /usr/local (yours is /usr/local/homebrew)
==> Downloading https://bug757187.bugzilla-attachments.gnome.org/attachment.cgi?id=331173
==> Downloading from https://bugzilla.gnome.org/attachment.cgi?id=331173
######################################################################## 100.0%
Error: SHA256 mismatch
Expected: ce5adf1a019ac7ed2a999efb65cfadeae50f5de8663638c7f765f8764aa7d931
Actual: b542466d48ed6cb24d0ef448b0c0b0239607cecbd225cb19f1b40ad604cc33e8
File: /Users/nsowatsk/Library/Caches/Homebrew/downloads/dc411894f2c180133d2ff4aa9ed75117b145ffba55c0e7b176240f19427d4b2b--attachment_331173.xz
To retry an incomplete download, remove the file above.
==> Patching
==> ./bootstrap
Last 15 lines from /Users/mijarven/Library/Logs/Homebrew/kconfig-frontends/01.bootstrap:
2018-08-14 01:12:29 +0300
./bootstrap
Running libtoolize...
./bootstrap: line 5: libtoolize: command not found
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/px4/homebrew-px4/issues
These open issues may also help:
Cannot install kconfig-frontends https://github.com/PX4/homebrew-px4/issues/26
libtoolize exists in a path
MBP:kconfig-frontends-3.7.0.0 mijarven$ which libtoolize
/usr/local/bin/libtoolize
10.13.6 High Sierra
The formula is giving / warnings due to the java dependency, it's now deprecated in favor of openjdk
Warning: Calling depends_on :java is deprecated! Use "depends_on "openjdk@11", "depends_on "openjdk@8" or "depends_on "openjdk" instead.
Please report this issue to the px4/px4 tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
We need to update our formulas to target openjdk
, according to the jMAVSim
repo we need Java 8 or greater
I get plugin errors running SITL using Gazebo with model plugins...
HEADLESS=1 make px4_sitl gazebo_solo
Err] [Plugin.hh:180] Failed to load plugin /Users/dlw/src/Firmware/build/px4_sitl_default/build_gazebo/libgazebo_multirotor_base_plugin.dylib: dlopen(/Users/dlw/src/Firmware/build/px4_sitl_default/build_gazebo/libgazebo_multirotor_base_plugin.dylib, 9): Library not loaded: /usr/local/opt/glog/lib/libglog.0.3.5.dylib Referenced from: /usr/local/opt/opencv/lib/libopencv_sfm.3.4.dylib Reason: image not found
Fixed this installing glog:
brew install glog
Is there a dependency missing or did I botch up my install somehow?
More details here: http://discuss.px4.io/t/error-running-sitl-gazebo-headless-on-macos-with-plugins/8857
==> Tapping ardupilot/px4
Cloning into '/usr/local/Homebrew/Library/Taps/ardupilot/homebrew-px4'...
remote: Enumerating objects: 242, done.
remote: Total 242 (delta 0), reused 0 (delta 0), pack-reused 242
Receiving objects: 100% (242/242), 305.35 KiB | 4.85 MiB/s, done.
Resolving deltas: 100% (137/137), done.
Error: Invalid formula: /usr/local/Homebrew/Library/Taps/ardupilot/homebrew-px4/kconfig-frontends.rb
kconfig-frontends: Calling a Formula#patches definition is disabled! Use 'patch do' block calls instead.
Please report this issue to the ardupilot/px4 tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
/usr/local/Homebrew/Library/Taps/ardupilot/homebrew-px4/kconfig-frontends.rb:23Error: Cannot tap ardupilot/px4: invalid syntax in tap!
px4-dev installs are currently broken due to ant.
related to:
Homebrew/homebrew-core#44608
ant installations are failing due to an missing dependency on bel 6.3.1
ζ brew install px4-dev
==> Installing px4-dev from px4/px4
==> Installing dependencies for px4/px4/px4-dev: ant, astyle, bash-completion, cmake, fastcdr, fastrtps, gcc-arm-none-eabi, genromfs, kconfig-frontends and ninja
==> Installing px4/px4/px4-dev dependency: ant
==> Downloading https://www.apache.org/dyn/closer.cgi?path=ant/binaries/apache-ant-1.10.7-bin.tar.xz
Already downloaded: /Users/dlw/Library/Caches/Homebrew/downloads/eff485c9fc5bf11232b26b3ae7f6c062a4edd8cd0e3d8a4e5a7f549521050ecb--apache-ant-1.10.7-bin.tar.xz
==> Downloading https://www.apache.org/dyn/closer.cgi?path=ant/ivy/2.4.0/apache-ivy-2.4.0-bin.tar.gz
==> Downloading from https://www-us.apache.org/dist/ant/ivy/2.4.0/apache-ivy-2.4.0-bin.tar.gz
######################################################################## 100.0%
==> Downloading https://www.apache.org/dyn/closer.cgi?path=commons/bcel/binaries/bcel-6.3.1-bin.tar.gz
==> Downloading from https://www-us.apache.org/dist/commons/bcel/binaries/bcel-6.3.1-bin.tar.gz
curl: (22) The requested URL returned error: 404 Not Found
Trying a mirror...
==> Downloading https://www-eu.apache.org/dist/commons/bcel/binaries/bcel-6.3.1-bin.tar.gz
curl: (22) The requested URL returned error: 404 Not Found
Trying a mirror...
==> Downloading https://www-us.apache.org/dist/commons/bcel/binaries/bcel-6.3.1-bin.tar.gz
curl: (22) The requested URL returned error: 404 Not Found
Error: An exception occurred within a child process:
DownloadError: Failed to download resource "ant--bcel"
Download failed: https://www-us.apache.org/dist/commons/bcel/binaries/bcel-6.3.1-bin.tar.gz
==> Installing px4-dev from px4/px4
==> Installing dependencies for px4/px4/px4-dev: fastrtps
==> Installing px4/px4/px4-dev dependency: fastrtps
==> Downloading http://px4-tools.s3.amazonaws.com/fastrtps-v1.5.0p.tar.gz
######################################################################## 100.0%
==> Patching
patching file CMakeLists.txt
patch unexpectedly ends in middle of line
Hunk #1 succeeded at 373 with fuzz 1.
==> cmake -DTHIRDPARTY=ON -DBUILD_JAVA=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr/local/Cellar/fastrtps/1.5.0 ..
==> make
Last 15 lines from /Users/meteor/Library/Logs/Homebrew/fastrtps/02.make:
[ 86%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/rtps/builtin/data/ReaderProxyData.cpp.o
[ 88%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/rtps/flowcontrol/ThroughputController.cpp.o
[ 89%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/rtps/flowcontrol/ThroughputControllerDescriptor.cpp.o
[ 90%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/rtps/flowcontrol/FlowController.cpp.o
[ 91%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/rtps/exceptions/Exception.cpp.o
[ 92%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/rtps/attributes/PropertyPolicy.cpp.o
[ 93%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/rtps/common/Token.cpp.o
[ 94%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/xmlparser/XMLParserCommon.cpp.o
[ 95%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/xmlparser/XMLProfileElementParser.cpp.o
[ 96%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/xmlparser/XMLEndpointParser.cpp.o
[ 97%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/xmlparser/XMLProfileParser.cpp.o
[ 98%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/__/__/thirdparty/tinyxml2/tinyxml2.cpp.o
[100%] Linking CXX shared library libfastrtps.dylib
[100%] Built target fastrtps
make: *** [all] Error 2
My laptop is MacBook Pro 16"(2020)
and using macOS Catalina 10.15.7 now.
I've been following this guide : https://dev.px4.io/v1.11/en/setup/dev_env_mac.html#common-tools
While doing brew install px4-dev
, the error below has occurred.
✘ songunsuk@sams-MacBookPro ~ brew install px4-dev
==> Installing px4-dev from px4/px4
==> Downloading https://homebrew.bintray.com/bottles/openjdk-15.0.1.catalina.bot
Already downloaded: /Users/songunsuk/Library/Caches/Homebrew/downloads/355a80454da4f90367777654ba877fba8c22ddfca371cedc39c3ef0724a2b334--openjdk-15.0.1.catalina.bottle.tar.gz
==> Downloading https://www.apache.org/dyn/closer.lua?path=ant/ivy/2.5.0/apache-
Already downloaded: /Users/songunsuk/Library/Caches/Homebrew/downloads/4db50de19f1cbf8e566630b0b94213336416c6f10533a1e84d094e2f1e2d054a--apache-ivy-2.5.0-bin.tar.gz
==> Downloading https://www.apache.org/dyn/closer.lua?path=commons/bcel/binaries
Already downloaded: /Users/songunsuk/Library/Caches/Homebrew/downloads/222d3991dff4242f666efb012609c563ee961b6c39dbe96e26dcf156b030c8ba--bcel-6.5.0-bin.tar.gz
==> Downloading https://www.apache.org/dyn/closer.lua?path=ant/binaries/apache-a
Already downloaded: /Users/songunsuk/Library/Caches/Homebrew/downloads/b981c4f0bf945c4618c4b3ea9d9a163ee6adb924eff92784fa28b2e8f144657e--apache-ant-1.10.9-bin.tar.xz
==> Downloading https://homebrew.bintray.com/bottles/astyle-3.1.catalina.bottle.
Already downloaded: /Users/songunsuk/Library/Caches/Homebrew/downloads/5d1fce73203cc1c1088892784aebe18a7347e5db872f4ad3bff79655349f8341--astyle-3.1.catalina.bottle.1.tar.gz
==> Downloading https://homebrew.bintray.com/bottles/bash-completion-1.3_3.catal
Already downloaded: /Users/songunsuk/Library/Caches/Homebrew/downloads/21be184d6ca40d06076f8150eb737bf9e3213ffaeecce6c91c096f06014e7218--bash-completion-1.3_3.catalina.bottle.tar.gz
==> Downloading https://homebrew.bintray.com/bottles/zstd-1.4.8.catalina.bottle.
Already downloaded: /Users/songunsuk/Library/Caches/Homebrew/downloads/a16872669b3c44c7c203136bae527db54657b773317bc025dfd638294dd7a4e1--zstd-1.4.8.catalina.bottle.tar.gz
==> Downloading https://homebrew.bintray.com/bottles/ccache-4.1.catalina.bottle.
Already downloaded: /Users/songunsuk/Library/Caches/Homebrew/downloads/9694f882d662d03f258e3f79eb6624a98993659d5e1e01a3fa8a399153b56b5b--ccache-4.1.catalina.bottle.tar.gz
==> Downloading https://github.com/discoteq/flock/releases/download/v0.4.0/flock
Already downloaded: /Users/songunsuk/Library/Caches/Homebrew/downloads/0199e8c557e3b237f2970315d992e0a8d3ecc765e5651c9aaf30e09a03463e13--flock-0.4.0.tar.xz
==> Downloading https://github.com/eProsima/Fast-CDR/archive/v1.0.8.tar.gz
Already downloaded: /Users/songunsuk/Library/Caches/Homebrew/downloads/c18852789305dc4631a82be63883d74c369848f4de7218481039e80f5d23f3fd--Fast-CDR-1.0.8.tar.gz
==> Downloading http://px4-tools.s3.amazonaws.com/fastrtps-1.6.0.high_sierra.bot
-=O=- # # # #
curl: (52) Empty reply from server
Error: Failed to download resource "fastrtps"
Download failed: http://px4-tools.s3.amazonaws.com/fastrtps-1.6.0.high_sierra.bottle.tar.gz
Warning: Bottle installation failed: building from source.
==> Downloading http://px4-tools.s3.amazonaws.com/fastrtps-v1.6.0.tar.gz
-=O=- # # # #
curl: (52) Empty reply from server
Error: Failed to download resource "fastrtps"
Download failed: http://px4-tools.s3.amazonaws.com/fastrtps-v1.6.0.tar.gz
✘ songunsuk@sams-MacBookPro ~
To fix this error and proceed, what should I do?
Does anyone have an alternative site to get this from? I seem to be getting a timeout:
`==> Installing kconfig-frontends from px4/px4
==> Downloading http://ymorin.is-a-geek.org/download/kconfig-frontends/kcon
curl: (7) Failed to connect to ymorin.is-a-geek.org port 80: Operation timed out
Error: Failed to download resource "kconfig-frontends"
Download failed: http://ymorin.is-a-geek.org/download/kconfig-frontends/kconfig-frontends-3.7.0.0.tar.xz`
==> Tapping px4/px4
Cloning into '/usr/local/Homebrew/Library/Taps/px4/homebrew-px4'...
remote: Counting objects: 17, done.
remote: Compressing objects: 100% (15/15), done.
remote: Total 17 (delta 5), reused 5 (delta 2), pack-reused 0
Unpacking objects: 100% (17/17), done.
Error: Invalid formula: /usr/local/Homebrew/Library/Taps/px4/homebrew-px4/qt54.rb
Calling BottleSpecification.revision is disabled!
Use BottleSpecification.rebuild instead.
/usr/local/Homebrew/Library/Taps/px4/homebrew-px4/qt54.rb:21:in `block in class:Qt54'
Please report this to the px4/px4 tap!
Or, even better, submit a PR to fix it!
Error: Cannot tap px4/px4: invalid syntax in tap!
pacifist@MacBook-Pro ~> brew outdated
px4/px4/gcc-arm-none-eabi-63 (20170223) < 20170628
pacifist@MacBook-Pro ~> brew upgrade px4/px4/gcc-arm-none-eabi-63
==> Upgrading 1 outdated package, with result:
px4/px4/gcc-arm-none-eabi-63 20170628
==> Upgrading px4/px4/gcc-arm-none-eabi-63
==> Downloading https://developer.arm.com/-/media/Files/downloads/gnu-rm/6-2017q
==> Downloading from https://armkeil.blob.core.windows.net/developer/Files/downl
######################################################################## 100.0%
==> Copying binaries...
==> cp -r arm-none-eabi bin lib share /usr/local/Cellar/gcc-arm-none-eabi-63/201
Last 15 lines from /Users/pacifist/Library/Logs/Homebrew/gcc-arm-none-eabi-63/01.cp:
2017-12-06 22:39:03 -0800
cp
-r
arm-none-eabi
bin
lib
share
/usr/local/Cellar/gcc-arm-none-eabi-63/20170628/
cp: arm-none-eabi: No such file or directory
cp: bin: No such file or directory
cp: lib: No such file or directory
cp: share: No such file or directory
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/px4/homebrew-px4/issues
M1 Mac, Ventura:
brew install px4-dev
Making install in parser
GPERF hconf.c
LEX lconf.c
YACC yconf.c
CC libkconfig_parser_la-yconf.lo
CCLD libkconfig-parser.la
grep: /usr/lib/libiconv.la: No such file or directory
sed: /usr/lib/libiconv.la: No such file or directory
libtool: error: '/usr/lib/libiconv.la' is not a valid libtool archive
make[3]: *** [libkconfig-parser.la] Error 1
make[2]: *** [install] Error 2
No idea how to fix this or what an .la file is...?
I got the following error when I typed
brew install px4-dev
The error message:
==> Installing px4-dev from px4/px4
==> Installing dependencies for px4/px4/px4-dev: fastrtps and fastcdr
==> Installing px4/px4/px4-dev dependency: fastrtps
==> Downloading http://px4-tools.s3.amazonaws.com/fastrtps-1.5.0.mojave.bottle.tar.gz
curl: (22) The requested URL returned error: 403 Forbidden
Error: Failed to download resource "fastrtps"
Download failed: http://px4-tools.s3.amazonaws.com/fastrtps-1.5.0.mojave.bottle.tar.gz
Warning: Bottle installation failed: building from source.
==> Downloading http://px4-tools.s3.amazonaws.com/fastrtps-v1.5.0p.tar.gz
Already downloaded: /Users/xxv/Library/Caches/Homebrew/downloads/c137e38e8520bbfa08069b90bbe92248e54b923a847a2a3b3290230451b82201--fastrtps-v1.5.0p.tar.gz
==> Patching
patching file CMakeLists.txt
patch unexpectedly ends in middle of line
Hunk #1 succeeded at 373 with fuzz 1.
==> cmake -DTHIRDPARTY=ON -DBUILD_JAVA=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr/local/Cellar/fastrtps/1.5.0 ..
==> make
Last 15 lines from /Users/xxv/Library/Logs/Homebrew/fastrtps/02.make:
[ 86%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/rtps/builtin/data/WriterProxyData.cpp.o
[ 87%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/rtps/builtin/data/ReaderProxyData.cpp.o
[ 89%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/rtps/flowcontrol/ThroughputController.cpp.o
[ 90%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/rtps/flowcontrol/ThroughputControllerDescriptor.cpp.o
[ 91%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/rtps/flowcontrol/FlowController.cpp.o
[ 92%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/rtps/exceptions/Exception.cpp.o
[ 93%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/rtps/attributes/PropertyPolicy.cpp.o
[ 94%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/rtps/common/Token.cpp.o
[ 95%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/xmlparser/XMLParserCommon.cpp.o
[ 96%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/xmlparser/XMLProfileElementParser.cpp.o
[ 97%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/xmlparser/XMLEndpointParser.cpp.o
[ 98%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/xmlparser/XMLProfileParser.cpp.o
[100%] Linking CXX shared library libfastrtps.dylib
[100%] Built target fastrtps
make: *** [all] Error 2
kkpoons-MacBook-Air:~ kkpoon$ brew install kconfig-frontends
==> Downloading http://ymorin.is-a-geek.org/download/kconfig-frontends/kconfig-f
==> Patching
patching file bootstrap
patching file configure.ac
patching file scripts/ksync.sh
patching file scripts/version.sh
patching file utils/Makefile.am
patching file utils/tweak.in
==> ./bootstrap
Running autoconf...
configure.ac:27: error: possibly undefined macro: AS_IF
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:101: error: possibly undefined macro: AC_MSG_ERROR
READ THIS: https://github.com/Homebrew/homebrew/wiki/troubleshooting
If reporting this issue please do so at (not Homebrew/homebrew):
https://github.com/px4/homebrew-px4/issues
macOS 10.13.3
Install Homebrew from scratch
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew tap PX4/px4
Now install px4-dev:
$ brew install px4-dev
==> Installing px4-dev from px4/px4
==> Installing dependencies for px4/px4/px4-dev: git, bash-completion, gcc-arm-none-eabi, genromfs, xz, autoconf, automake, libtool, pkgconfig, kconfig-frontends, astyle, cmake, ninja, ant, fastrtps, fastcdr
It then proceeds to install the dependencies. It fails when it reaches genromfs
:
==> Installing px4/px4/px4-dev dependency: genromfs
==> Downloading http://px4-travis.s3.amazonaws.com/toolchain/genromfs-0.5.2.tar.
######################################################################## 100.0%
Error: uninitialized constant #<Class:0x007f8dbc91b0f8>::DATA
Did you mean? Data
Date
Please report this bug:
https://docs.brew.sh/Troubleshooting
/usr/local/Homebrew/Library/Taps/px4/homebrew-px4/genromfs.rb:15:in `patches'
/usr/local/Homebrew/Library/Homebrew/formula.rb:1904:in `prepare_patches'
/usr/local/Homebrew/Library/Homebrew/formula.rb:1094:in `block in brew'
/usr/local/Homebrew/Library/Homebrew/formula.rb:1895:in `block (2 levels) in stage'
/usr/local/Homebrew/Library/Homebrew/utils.rb:556:in `with_env'
/usr/local/Homebrew/Library/Homebrew/formula.rb:1894:in `block in stage'
/usr/local/Homebrew/Library/Homebrew/resource.rb:119:in `block in unpack'
/usr/local/Homebrew/Library/Homebrew/extend/fileutils.rb:13:in `block in mktemp'
/usr/local/Homebrew/Library/Homebrew/extend/fileutils.rb:73:in `block in run'
/usr/local/Homebrew/Library/Homebrew/extend/fileutils.rb:73:in `chdir'
/usr/local/Homebrew/Library/Homebrew/extend/fileutils.rb:73:in `run'
/usr/local/Homebrew/Library/Homebrew/extend/fileutils.rb:12:in `mktemp'
/usr/local/Homebrew/Library/Homebrew/resource.rb:114:in `unpack'
/usr/local/Homebrew/Library/Homebrew/resource.rb:92:in `stage'
/usr/local/Homebrew/Library/Homebrew/formula.rb:1872:in `stage'
/usr/local/Homebrew/Library/Homebrew/formula.rb:1092:in `brew'
/usr/local/Homebrew/Library/Homebrew/build.rb:111:in `block in install'
/usr/local/Homebrew/Library/Homebrew/utils.rb:556:in `with_env'
/usr/local/Homebrew/Library/Homebrew/build.rb:108:in `install'
/usr/local/Homebrew/Library/Homebrew/build.rb:189:in `<main>'
Right now the sim package pulls in all of dev - we should break that dependency and make the sim environment faster / easier to install.
when I launch the command brew install px4-dev on my mac (version :10.14.1), the error showed as below
Firmware skate$ brew install px4-dev
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 3 taps (osrf/simulation, homebrew/core and homebrew/cask).
==> New Formulae
osrf/simulation/ignition-gui1
==> Updated Formulae
checkbashisms osrf/simulation/ignition-sensors0
libuv osrf/simulation/sdformat8
==> Installing px4-dev from px4/px4
==> Installing dependencies for px4/px4/px4-dev: fastrtps and fastcdr
==> Installing px4/px4/px4-dev dependency: fastrtps
==> Downloading http://px4-tools.s3.amazonaws.com/fastrtps-1.5.0.mojave.bottle.t
curl: (22) The requested URL returned error: 403 Forbidden
Error: Failed to download resource "fastrtps"
Download failed: http://px4-tools.s3.amazonaws.com/fastrtps-1.5.0.mojave.bottle.tar.gz
Warning: Bottle installation failed: building from source.
==> Downloading http://px4-tools.s3.amazonaws.com/fastrtps-v1.5.0p.tar.gz
Already downloaded: /Users/skate/Library/Caches/Homebrew/downloads/c137e38e8520bbfa08069b90bbe92248e54b923a847a2a3b3290230451b82201--fastrtps-v1.5.0p.tar.gz
==> Patching
patching file CMakeLists.txt
patch unexpectedly ends in middle of line
Hunk #1 succeeded at 373 with fuzz 1.
==> cmake -DTHIRDPARTY=ON -DBUILD_JAVA=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr/local
==> make
Last 15 lines from /Users/skate/Library/Logs/Homebrew/fastrtps/02.make:
[ 86%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/rtps/builtin/data/ReaderProxyData.cpp.o
[ 88%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/rtps/flowcontrol/ThroughputController.cpp.o
[ 89%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/rtps/flowcontrol/ThroughputControllerDescriptor.cpp.o
[ 90%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/rtps/flowcontrol/FlowController.cpp.o
[ 91%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/rtps/exceptions/Exception.cpp.o
[ 92%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/rtps/attributes/PropertyPolicy.cpp.o
[ 93%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/rtps/common/Token.cpp.o
[ 94%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/xmlparser/XMLParserCommon.cpp.o
[ 95%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/xmlparser/XMLProfileElementParser.cpp.o
[ 96%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/xmlparser/XMLEndpointParser.cpp.o
[ 97%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/xmlparser/XMLProfileParser.cpp.o
[ 98%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir///thirdparty/tinyxml2/tinyxml2.cpp.o
[100%] Linking CXX shared library libfastrtps.dylib
[100%] Built target fastrtps
make: *** [all] Error 2
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/px4/homebrew-px4/issues
Please see full error trace below.
brew install px4-dev
...
==> Installing px4-dev dependency: fastrtps
/usr/local/Homebrew/Library/Taps/px4/homebrew-px4/Formula/fastrtps.rb:19: warning: conflicting chdir during another chdir block
==> cmake -DTHIRDPARTY=ON -DBUILD_JAVA=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr/local/homebrew/Cellar/fastrtps/1.6.0 ..
==> make
Last 15 lines from /Users/nsowatsk/Library/Logs/Homebrew/fastrtps/02.make:
[ 88%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/xmlparser/XMLEndpointParser.cpp.o
[ 89%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/xmlparser/XMLParser.cpp.o
[ 90%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/xmlparser/XMLProfileManager.cpp.o
[ 91%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/rtps/writer/PersistentWriter.cpp.o
[ 92%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/rtps/writer/StatelessPersistentWriter.cpp.o
[ 93%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/rtps/writer/StatefulPersistentWriter.cpp.o
[ 94%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/rtps/reader/StatelessPersistentReader.cpp.o
[ 95%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/rtps/reader/StatefulPersistentReader.cpp.o
[ 96%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/rtps/persistence/PersistenceFactory.cpp.o
[ 97%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/rtps/persistence/SQLite3PersistenceService.cpp.o
[ 98%] Building C object src/cpp/CMakeFiles/fastrtps.dir/rtps/persistence/sqlite3.c.o
[ 99%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/__/__/thirdparty/tinyxml2/tinyxml2.cpp.o
[100%] Linking CXX shared library libfastrtps.dylib
[100%] Built target fastrtps
make: *** [all] Error 2
Do not report this issue to Homebrew/brew or Homebrew/core!
Traceback (most recent call last):
26: from /usr/local/homebrew/Library/Homebrew/build.rb:229:in `<main>'
25: from /usr/local/homebrew/Library/Homebrew/build.rb:133:in `install'
24: from /usr/local/homebrew/Library/Homebrew/utils.rb:550:in `with_env'
23: from /usr/local/homebrew/Library/Homebrew/build.rb:138:in `block in install'
22: from /usr/local/homebrew/Library/Homebrew/formula.rb:1274:in `brew'
21: from /usr/local/homebrew/Library/Homebrew/formula.rb:2394:in `stage'
20: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/forwardable.rb:230:in `stage'
19: from /usr/local/homebrew/Library/Homebrew/resource.rb:91:in `stage'
18: from /usr/local/homebrew/Library/Homebrew/resource.rb:116:in `unpack'
17: from /usr/local/homebrew/Library/Homebrew/resource.rb:199:in `mktemp'
16: from /usr/local/homebrew/Library/Homebrew/mktemp.rb:63:in `run'
15: from /usr/local/homebrew/Library/Homebrew/mktemp.rb:63:in `chdir'
14: from /usr/local/homebrew/Library/Homebrew/mktemp.rb:63:in `block in run'
13: from /usr/local/homebrew/Library/Homebrew/resource.rb:117:in `block in unpack'
12: from /usr/local/homebrew/Library/Homebrew/download_strategy.rb:102:in `stage'
11: from /usr/local/homebrew/Library/Homebrew/download_strategy.rb:115:in `chdir'
10: from /usr/local/homebrew/Library/Homebrew/download_strategy.rb:115:in `chdir'
9: from /usr/local/homebrew/Library/Homebrew/resource.rb:121:in `block (2 levels) in unpack'
8: from /usr/local/homebrew/Library/Homebrew/formula.rb:2414:in `block in stage'
7: from /usr/local/homebrew/Library/Homebrew/utils.rb:550:in `with_env'
6: from /usr/local/homebrew/Library/Homebrew/formula.rb:2415:in `block (2 levels) in stage'
5: from /usr/local/homebrew/Library/Homebrew/formula.rb:1281:in `block in brew'
4: from /usr/local/homebrew/Library/Homebrew/build.rb:178:in `block (2 levels) in install'
3: from /usr/local/Homebrew/Library/Taps/px4/homebrew-px4/Formula/fastrtps.rb:21:in `install'
2: from /usr/local/homebrew/Library/Homebrew/formula.rb:2185:in `system'
1: from /usr/local/homebrew/Library/Homebrew/formula.rb:2185:in `open'
/usr/local/homebrew/Library/Homebrew/formula.rb:2249:in `block in system': Failed executing: make (BuildError)
5: from /usr/local/homebrew/Library/Homebrew/brew.rb:164:in `<main>'
4: from /usr/local/homebrew/Library/Homebrew/brew.rb:176:in `rescue in <main>'
3: from /usr/local/homebrew/Library/Homebrew/exceptions.rb:509:in `dump'
2: from /usr/local/homebrew/Library/Homebrew/exceptions.rb:455:in `issues'
1: from /usr/local/homebrew/Library/Homebrew/exceptions.rb:459:in `fetch_issues'
/usr/local/homebrew/Library/Homebrew/utils/github.rb:60:in `issues_for_formula': undefined method `full_name' for nil:NilClass (NoMethodError)
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I/private/tmp/gcc-arm-none-eabi-Th0M/gcc-arm-none-eabi-4_6-2012q4-20121016/src/binutils/bfd -I. -I/private/tmp/gcc-arm-none-eabi-Th0M/gcc-arm-none-eabi-4_6-2012q4-20121016/src/binutils/bfd -I/private/tmp/gcc-arm-none-eabi-Th0M/gcc-arm-none-eabi-4_6-2012q4-20121016/src/binutils/bfd/../include -DHAVE_bfd_elf32_littlearm_vec -DHAVE_bfd_elf32_bigarm_vec -DHAVE_bfd_elf32_little_generic_vec -DHAVE_bfd_elf32_big_generic_vec -DBINDIR='"/usr/local/Cellar/gcc-arm-none-eabi/20121016/bin"' -I/private/tmp/gcc-arm-none-eabi-Th0M/gcc-arm-none-eabi-4_6-2012q4-20121016/build-macosx/host-libs/zlib/include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -I/private/tmp/gcc-arm-none-eabi-Th0M/gcc-arm-none-eabi-4_6-2012q4-20121016/build-macosx/host-libs/zlib/include -O2 -MT elf32-gen.lo -MD -MP -MF .deps/elf32-gen.Tpo -c -o elf32-gen.lo /private/tmp/gcc-arm-none-eabi-Th0M/gcc-arm-none-eabi-4_6-2012q4-20121016/src/binutils/bfd/elf32-gen.c
/private/tmp/gcc-arm-none-eabi-Th0M/gcc-arm-none-eabi-4_6-2012q4-20121016/src/binutils/bfd/elflink.c:12453:9: error: variable 'l_sec_contents' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized]
if (!bfd_malloc_and_get_section (abfd, sec, &sec_contents))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/private/tmp/gcc-arm-none-eabi-Th0M/gcc-arm-none-eabi-4_6-2012q4-20121016/src/binutils/bfd/elflink.c:12469:9: note: uninitialized use occurs here
if (l_sec_contents)
^~~~~~~~~~~~~~
/private/tmp/gcc-arm-none-eabi-Th0M/gcc-arm-none-eabi-4_6-2012q4-20121016/src/binutils/bfd/elflink.c:12453:5: note: remove the 'if' if its condition is always false
if (!bfd_malloc_and_get_section (abfd, sec, &sec_contents))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/private/tmp/gcc-arm-none-eabi-Th0M/gcc-arm-none-eabi-4_6-2012q4-20121016/src/binutils/bfd/elflink.c:12451:44: note: initialize the variable 'l_sec_contents' to silence this warning
bfd_byte sec_contents, *l_sec_contents;
^
= NULL
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/private/tmp/gcc-arm-none-eabi-Th0M/gcc-arm-none-eabi-4_6-2012q4-20121016/src/binutils/bfd -I. -I/private/tmp/gcc-arm-none-eabi-Th0M/gcc-arm-none-eabi-4_6-2012q4-20121016/src/binutils/bfd -I/private/tmp/gcc-arm-none-eabi-Th0M/gcc-arm-none-eabi-4_6-2012q4-20121016/src/binutils/bfd/../include -DHAVE_bfd_elf32_littlearm_vec -DHAVE_bfd_elf32_bigarm_vec -DHAVE_bfd_elf32_little_generic_vec -DHAVE_bfd_elf32_big_generic_vec -DBINDIR="/usr/local/Cellar/gcc-arm-none-eabi/20121016/bin" -I/private/tmp/gcc-arm-none-eabi-Th0M/gcc-arm-none-eabi-4_6-2012q4-20121016/build-macosx/host-libs/zlib/include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -I/private/tmp/gcc-arm-none-eabi-Th0M/gcc-arm-none-eabi-4_6-2012q4-20121016/build-macosx/host-libs/zlib/include -O2 -MT elf32-gen.lo -MD -MP -MF .deps/elf32-gen.Tpo -c /private/tmp/gcc-arm-none-eabi-Th0M/gcc-arm-none-eabi-4_6-2012q4-20121016/src/binutils/bfd/elf32-gen.c -o elf32-gen.o
1 error generated.
make[4]: ** [elflink.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
mv -f .deps/elf32.Tpo .deps/elf32.Plo
mv -f .deps/dwarf1.Tpo .deps/dwarf1.Plo
mv -f .deps/elf32-gen.Tpo .deps/elf32-gen.Plo
mv -f .deps/dwarf2.Tpo .deps/dwarf2.Plo
mv -f .deps/elf-eh-frame.Tpo .deps/elf-eh-frame.Plo
mv -f .deps/elf32-arm.Tpo .deps/elf32-arm.Plo
mv -f .deps/elf.Tpo .deps/elf.Plo
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-bfd] Error 2
make: *** [all] Error 2
This are available as mainline Ubuntu packages (without ROS), so if added here we can easily drop them as Firmware submodules. https://github.com/PX4/Firmware/blob/master/.gitmodules#L8-L13
gencpp
genmsg
I get the following error when trying to build from stable branch for the px4fmu-v3_default. I have no problem building from master, though.
➜ Firmware git:(stable) make px4fmu-v3_default
CMake Warning (dev) at cmake/configs/nuttx_px4fmu-v3_default.cmake:3 (set):
implicitly converting 'string' to 'STRING' type.
Call Stack (most recent call first):
CMakeLists.txt:151 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/configs/nuttx_px4fmu-v3_default.cmake:4 (set):
implicitly converting 'string' to 'STRING' type.
Call Stack (most recent call first):
CMakeLists.txt:151 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/configs/nuttx_px4fmu-v3_default.cmake:5 (set):
implicitly converting 'string' to 'STRING' type.
Call Stack (most recent call first):
CMakeLists.txt:151 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/configs/nuttx_px4fmu-v3_default.cmake:6 (set):
implicitly converting 'string' to 'STRING' type.
Call Stack (most recent call first):
CMakeLists.txt:151 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
-- PX4 VERSION: v1.8.2
-- CONFIG: nuttx_px4fmu-v3_default
-- Build Type: MinSizeRel
CMake Deprecation Warning at /usr/local/Cellar/cmake/3.14.0/share/cmake/Modules/CMakeForceCompiler.cmake:72 (message):
The CMAKE_FORCE_C_COMPILER macro is deprecated. Instead just set
CMAKE_C_COMPILER and allow CMake to identify the compiler.
Call Stack (most recent call first):
cmake/toolchains/Toolchain-arm-none-eabi.cmake:31 (cmake_force_c_compiler)
/usr/local/Cellar/cmake/3.14.0/share/cmake/Modules/CMakeDetermineSystem.cmake:93 (include)
CMakeLists.txt:176 (project)
CMake Deprecation Warning at /usr/local/Cellar/cmake/3.14.0/share/cmake/Modules/CMakeForceCompiler.cmake:86 (message):
The CMAKE_FORCE_CXX_COMPILER macro is deprecated. Instead just set
CMAKE_CXX_COMPILER and allow CMake to identify the compiler.
Call Stack (most recent call first):
cmake/toolchains/Toolchain-arm-none-eabi.cmake:37 (cmake_force_cxx_compiler)
/usr/local/Cellar/cmake/3.14.0/share/cmake/Modules/CMakeDetermineSystem.cmake:93 (include)
CMakeLists.txt:176 (project)
CMake Deprecation Warning at /usr/local/Cellar/cmake/3.14.0/share/cmake/Modules/CMakeForceCompiler.cmake:72 (message):
The CMAKE_FORCE_C_COMPILER macro is deprecated. Instead just set
CMAKE_C_COMPILER and allow CMake to identify the compiler.
Call Stack (most recent call first):
cmake/toolchains/Toolchain-arm-none-eabi.cmake:31 (cmake_force_c_compiler)
build/nuttx_px4fmu-v3_default/CMakeFiles/3.14.0/CMakeSystem.cmake:6 (include)
CMakeLists.txt:176 (project)
CMake Deprecation Warning at /usr/local/Cellar/cmake/3.14.0/share/cmake/Modules/CMakeForceCompiler.cmake:86 (message):
The CMAKE_FORCE_CXX_COMPILER macro is deprecated. Instead just set
CMAKE_CXX_COMPILER and allow CMake to identify the compiler.
Call Stack (most recent call first):
cmake/toolchains/Toolchain-arm-none-eabi.cmake:37 (cmake_force_cxx_compiler)
build/nuttx_px4fmu-v3_default/CMakeFiles/3.14.0/CMakeSystem.cmake:6 (include)
CMakeLists.txt:176 (project)
-- The ASM compiler identification is GNU
-- Found assembler: /usr/local/bin/arm-none-eabi-gcc
-- Found PythonInterp: /usr/local/anaconda2/bin/python (found version "2.7.14")
-- Found PY_jinja2: /usr/local/anaconda2/lib/python2.7/site-packages/jinja2
-- C compiler: arm-none-eabi-gcc (GNU Tools for Arm Embedded Processors 7-2018-q2-update) 7.3.1 20180622 (release) [ARM/embedded-7-branch revision 261907]
-- C++ compiler: arm-none-eabi-g++ (GNU Tools for Arm Embedded Processors 7-2018-q2-update) 7.3.1 20180622 (release) [ARM/embedded-7-branch revision 261907]
Submodule 'msg/tools/gencpp' (https://github.com/ros/gencpp.git) registered for path 'tools/gencpp'
Submodule path 'tools/gencpp': checked out 'b41ee3060badd660662e21cd9d4f81971c87a420'
Submodule 'msg/tools/genmsg' (https://github.com/ros/genmsg.git) registered for path 'tools/genmsg'
Submodule path 'tools/genmsg': checked out 'a189fc78558e7276df59d2961cfe4f8b4de08a8b'
Submodule 'src/lib/DriverFramework' (https://github.com/PX4/DriverFramework.git) registered for path 'src/lib/DriverFramework'
Submodule path 'src/lib/DriverFramework': checked out '410e9fc4e78da91030e9d535a7f8e023a9ddd1f4'
Submodule path 'src/lib/DriverFramework/dspal': checked out '9b46b4a57f230672ee0806a523963af70bc44f1c'
Submodule path 'src/lib/DriverFramework/dspal/cmake_hexagon': checked out '07168bd5715818802b78f674816ec851307998a7'
Submodule 'src/lib/ecl' (https://github.com/PX4/ecl.git) registered for path 'ecl'
Submodule path 'ecl': checked out '1a1106878d6ab1cc48565bef9b25b07d626c5d0b'
Submodule 'src/lib/matrix' (https://github.com/PX4/Matrix.git) registered for path 'matrix'
Submodule path 'matrix': checked out 'b815fc97c4e686a93a8074f27d1830a031b0d38d'
-- PX4 ECL: Very lightweight Estimation & Control Library v0.9.0-553-g1a11068
CMake Warning (dev) at src/lib/ecl/CMakeLists.txt:71 (set):
implicitly converting 'string' to 'STRING' type.
This warning is for project developers. Use -Wno-dev to suppress it.
Submodule 'src/drivers/gps/devices' (https://github.com/PX4/GpsDrivers.git) registered for path 'devices'
Submodule path 'devices': checked out 'a5cf54a2e14e1c6f3ff443f7f13eba31782c0460'
-- Building and including px4io-v2
Submodule 'mavlink/include/mavlink/v2.0' (https://github.com/mavlink/c_library_v2.git) registered for path '../../../mavlink/include/mavlink/v2.0'
Submodule path '../../../mavlink/include/mavlink/v2.0': checked out '033fa8e7a4a75a0c3f17cea57e3be8966e05f770'
Submodule 'src/modules/uavcan/libuavcan' (https://github.com/UAVCAN/libuavcan.git) registered for path 'libuavcan'
Submodule path 'libuavcan': checked out '231b221b64265db4e98f86e53721316f9e17e143'
Submodule path 'libuavcan/dsdl': checked out '192295c4f9b67f4a20b0eabf74757b6597415f2b'
Submodule path 'libuavcan/libuavcan/dsdl_compiler/pyuavcan': checked out 'c58477a644d20ccf95a20c151f3a0402f271c3b8'
Submodule path 'libuavcan/libuavcan/dsdl_compiler/pyuavcan/dsdl': checked out 'fd12483ddd4e58242d61d74a163e7aeaa1e0f466'
-- Using C++03
-- Release build type: MinSizeRel
-- Adding UAVCAN STM32 platform driver
Submodule 'platforms/nuttx/NuttX/nuttx' (https://github.com/PX4-NuttX/nuttx.git) registered for path 'nuttx'
Submodule path 'nuttx': checked out '63775322bf25adb406594f8e610122fe0cef2f7a'
Submodule 'platforms/nuttx/NuttX/apps' (https://github.com/PX4-NuttX/apps.git) registered for path 'apps'
Submodule path 'apps': checked out '36806ba3d84c0fa07ed86857d4c92a997b7cd194'
-- NuttX: px4fmu-v2 nsh cortex-m4
CMake Warning (dev) at platforms/nuttx/CMakeLists.txt:78 (target_link_libraries):
Policy CMP0079 is not set: target_link_libraries allows use with targets in
other directories. Run "cmake --help-policy CMP0079" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.
Target
nuttx_arch
is not created in this directory. For compatibility with older versions of
CMake, link library
drivers_board
will be looked up in the directory in which the target was created rather
than in this calling directory.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at platforms/nuttx/CMakeLists.txt:78 (target_link_libraries):
Policy CMP0079 is not set: target_link_libraries allows use with targets in
other directories. Run "cmake --help-policy CMP0079" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.
Target
nuttx_arch
is not created in this directory. For compatibility with older versions of
CMake, link library
drivers_arch
will be looked up in the directory in which the target was created rather
than in this calling directory.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at platforms/nuttx/CMakeLists.txt:78 (target_link_libraries):
Policy CMP0079 is not set: target_link_libraries allows use with targets in
other directories. Run "cmake --help-policy CMP0079" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.
Target
nuttx_arch
is not created in this directory. For compatibility with older versions of
CMake, link library
drivers_boards_common
will be looked up in the directory in which the target was created rather
than in this calling directory.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at platforms/nuttx/CMakeLists.txt:78 (target_link_libraries):
Policy CMP0079 is not set: target_link_libraries allows use with targets in
other directories. Run "cmake --help-policy CMP0079" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.
Target
nuttx_arch
is not created in this directory. For compatibility with older versions of
CMake, link library
drivers_boards_common_arch
will be looked up in the directory in which the target was created rather
than in this calling directory.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at platforms/nuttx/CMakeLists.txt:86 (target_link_libraries):
Policy CMP0079 is not set: target_link_libraries allows use with targets in
other directories. Run "cmake --help-policy CMP0079" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.
Target
nuttx_c
is not created in this directory. For compatibility with older versions of
CMake, link library
nuttx_drivers
will be looked up in the directory in which the target was created rather
than in this calling directory.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at platforms/nuttx/CMakeLists.txt:87 (target_link_libraries):
Policy CMP0079 is not set: target_link_libraries allows use with targets in
other directories. Run "cmake --help-policy CMP0079" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.
Target
nuttx_cxx
is not created in this directory. For compatibility with older versions of
CMake, link library
nuttx_c
will be looked up in the directory in which the target was created rather
than in this calling directory.
This warning is for project developers. Use -Wno-dev to suppress it.
-- ROMFS: px4fmu_common
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/dlw/Workspace/PX4/Firmware/build/nuttx_px4fmu-v3_default
ninja: Entering directory `/Users/dlw/Workspace/PX4/Firmware/build/nuttx_px4fmu-v3_default'
[2/998] Building px4io-v2
-- PX4 VERSION: v1.8.2
-- CONFIG: nuttx_px4io-v2_default
-- Build Type: MinSizeRel
CMake Deprecation Warning at /usr/local/Cellar/cmake/3.14.0/share/cmake/Modules/CMakeForceCompiler.cmake:72 (message):
The CMAKE_FORCE_C_COMPILER macro is deprecated. Instead just set
CMAKE_C_COMPILER and allow CMake to identify the compiler.
Call Stack (most recent call first):
cmake/toolchains/Toolchain-arm-none-eabi.cmake:31 (cmake_force_c_compiler)
/usr/local/Cellar/cmake/3.14.0/share/cmake/Modules/CMakeDetermineSystem.cmake:93 (include)
CMakeLists.txt:176 (project)
CMake Deprecation Warning at /usr/local/Cellar/cmake/3.14.0/share/cmake/Modules/CMakeForceCompiler.cmake:86 (message):
The CMAKE_FORCE_CXX_COMPILER macro is deprecated. Instead just set
CMAKE_CXX_COMPILER and allow CMake to identify the compiler.
Call Stack (most recent call first):
cmake/toolchains/Toolchain-arm-none-eabi.cmake:37 (cmake_force_cxx_compiler)
/usr/local/Cellar/cmake/3.14.0/share/cmake/Modules/CMakeDetermineSystem.cmake:93 (include)
CMakeLists.txt:176 (project)
CMake Deprecation Warning at /usr/local/Cellar/cmake/3.14.0/share/cmake/Modules/CMakeForceCompiler.cmake:72 (message):
The CMAKE_FORCE_C_COMPILER macro is deprecated. Instead just set
CMAKE_C_COMPILER and allow CMake to identify the compiler.
Call Stack (most recent call first):
cmake/toolchains/Toolchain-arm-none-eabi.cmake:31 (cmake_force_c_compiler)
build/nuttx_px4io-v2_default/CMakeFiles/3.14.0/CMakeSystem.cmake:6 (include)
CMakeLists.txt:176 (project)
CMake Deprecation Warning at /usr/local/Cellar/cmake/3.14.0/share/cmake/Modules/CMakeForceCompiler.cmake:86 (message):
The CMAKE_FORCE_CXX_COMPILER macro is deprecated. Instead just set
CMAKE_CXX_COMPILER and allow CMake to identify the compiler.
Call Stack (most recent call first):
cmake/toolchains/Toolchain-arm-none-eabi.cmake:37 (cmake_force_cxx_compiler)
build/nuttx_px4io-v2_default/CMakeFiles/3.14.0/CMakeSystem.cmake:6 (include)
CMakeLists.txt:176 (project)
-- The ASM compiler identification is GNU
-- Found assembler: /usr/local/bin/arm-none-eabi-gcc
-- Found PythonInterp: /usr/local/anaconda2/bin/python (found version "2.7.14")
-- Found PY_jinja2: /usr/local/anaconda2/lib/python2.7/site-packages/jinja2
-- C compiler: arm-none-eabi-gcc (GNU Tools for Arm Embedded Processors 7-2018-q2-update) 7.3.1 20180622 (release) [ARM/embedded-7-branch revision 261907]
-- C++ compiler: arm-none-eabi-g++ (GNU Tools for Arm Embedded Processors 7-2018-q2-update) 7.3.1 20180622 (release) [ARM/embedded-7-branch revision 261907]
-- PX4 ECL: Very lightweight Estimation & Control Library v0.9.0-553-g1a11068
CMake Warning (dev) at src/lib/ecl/CMakeLists.txt:71 (set):
implicitly converting 'string' to 'STRING' type.
This warning is for project developers. Use -Wno-dev to suppress it.
-- NuttX: px4io-v2 nsh cortex-m3
CMake Warning (dev) at platforms/nuttx/CMakeLists.txt:78 (target_link_libraries):
Policy CMP0079 is not set: target_link_libraries allows use with targets in
other directories. Run "cmake --help-policy CMP0079" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.
Target
nuttx_arch
is not created in this directory. For compatibility with older versions of
CMake, link library
drivers_board
will be looked up in the directory in which the target was created rather
than in this calling directory.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at platforms/nuttx/CMakeLists.txt:78 (target_link_libraries):
Policy CMP0079 is not set: target_link_libraries allows use with targets in
other directories. Run "cmake --help-policy CMP0079" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.
Target
nuttx_arch
is not created in this directory. For compatibility with older versions of
CMake, link library
drivers_arch
will be looked up in the directory in which the target was created rather
than in this calling directory.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at platforms/nuttx/CMakeLists.txt:78 (target_link_libraries):
Policy CMP0079 is not set: target_link_libraries allows use with targets in
other directories. Run "cmake --help-policy CMP0079" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.
Target
nuttx_arch
is not created in this directory. For compatibility with older versions of
CMake, link library
drivers_boards_common
will be looked up in the directory in which the target was created rather
than in this calling directory.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at platforms/nuttx/CMakeLists.txt:78 (target_link_libraries):
Policy CMP0079 is not set: target_link_libraries allows use with targets in
other directories. Run "cmake --help-policy CMP0079" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.
Target
nuttx_arch
is not created in this directory. For compatibility with older versions of
CMake, link library
drivers_boards_common_arch
will be looked up in the directory in which the target was created rather
than in this calling directory.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at platforms/nuttx/CMakeLists.txt:86 (target_link_libraries):
Policy CMP0079 is not set: target_link_libraries allows use with targets in
other directories. Run "cmake --help-policy CMP0079" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.
Target
nuttx_c
is not created in this directory. For compatibility with older versions of
CMake, link library
nuttx_drivers
will be looked up in the directory in which the target was created rather
than in this calling directory.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at platforms/nuttx/CMakeLists.txt:87 (target_link_libraries):
Policy CMP0079 is not set: target_link_libraries allows use with targets in
other directories. Run "cmake --help-policy CMP0079" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.
Target
nuttx_cxx
is not created in this directory. For compatibility with older versions of
CMake, link library
nuttx_c
will be looked up in the directory in which the target was created rather
than in this calling directory.
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/dlw/Workspace/PX4/Firmware/build/nuttx_px4io-v2_default
ninja: Entering directory `/Users/dlw/Workspace/PX4/Firmware/build/nuttx_px4io-v2_default'
[16/193] Building CXX object src/lib/mixer/CMakeFiles/mixer.dir/mixer_helicopter.cpp.obj
FAILED: src/lib/mixer/CMakeFiles/mixer.dir/mixer_helicopter.cpp.obj
/usr/local/bin/arm-none-eabi-g++ -DCONFIG_ARCH_BOARD_PX4IO_V2 -D__DF_NUTTX -D__PX4_NUTTX -D__STDC_FORMAT_MACROS -I. -Isrc -Isrc/lib -Isrc/modules -I../../src -I../../src/drivers/boards/px4io-v2 -I../../src/include -I../../src/lib -I../../src/lib/DriverFramework/framework/include -I../../src/lib/matrix -I../../src/modules -I../../src/platforms -INuttX/nuttx/arch/arm/src/armv7-m -INuttX/nuttx/arch/arm/src/chip -INuttX/nuttx/arch/arm/src/common -INuttX/apps/include -Iexternal/Install/include -Isrc/lib/mixer -isystem NuttX/nuttx/include/cxx -isystem NuttX/nuttx/include -fno-common -ffunction-sections -fdata-sections -mcpu=cortex-m3 -mthumb -march=armv7-m -fno-common -ffunction-sections -fdata-sections -g -fno-exceptions -fno-rtti -std=gnu++11 -fno-threadsafe-statics -DCONFIG_WCHAR_BUILTIN -D__CUSTOM_FILE_IO__ -fcheck-new -Wall -Warray-bounds -Wdisabled-optimization -Werror -Wextra -Wfatal-errors -Wfloat-equal -Wformat-security -Winit-self -Wlogical-op -Wmissing-declarations -Wmissing-field-initializers -Wpointer-arith -Wshadow -Wuninitialized -Wunknown-pragmas -Wunused-variable -Wno-implicit-fallthrough -Wno-unused-parameter -Wunused-but-set-variable -Wformat=1 -Wdouble-promotion -Wno-missing-field-initializers -Wno-overloaded-virtual -Wreorder -Wno-format-truncation -fvisibility=hidden -include visibility.h -fno-strict-aliasing -fomit-frame-pointer -fno-math-errno -funsafe-math-optimizations -ffunction-sections -fdata-sections -fno-strength-reduce -fno-builtin-printf -Os -DNDEBUG -MD -MT src/lib/mixer/CMakeFiles/mixer.dir/mixer_helicopter.cpp.obj -MF src/lib/mixer/CMakeFiles/mixer.dir/mixer_helicopter.cpp.obj.d -o src/lib/mixer/CMakeFiles/mixer.dir/mixer_helicopter.cpp.obj -c ../../src/lib/mixer/mixer_helicopter.cpp
In file included from NuttX/nuttx/include/math.h:52:0,
from NuttX/nuttx/include/cxx/cmath:46,
from ../../src/platforms/px4_defines.h:67,
from ../../src/drivers/drv_mixer.h:56,
from ../../src/lib/mixer/mixer.h:132,
from ../../src/lib/mixer/mixer_helicopter.cpp:40:
NuttX/nuttx/include/arch/math.h:87:20: error: expected initializer before '_PARAMS'
extern double atan _PARAMS((double));
^~~~~~~
compilation terminated due to -Wfatal-errors.
[17/193] Building CXX object src/lib/mixer/CMakeFiles/mixer.dir/mixer_group.cpp.obj
FAILED: src/lib/mixer/CMakeFiles/mixer.dir/mixer_group.cpp.obj
/usr/local/bin/arm-none-eabi-g++ -DCONFIG_ARCH_BOARD_PX4IO_V2 -D__DF_NUTTX -D__PX4_NUTTX -D__STDC_FORMAT_MACROS -I. -Isrc -Isrc/lib -Isrc/modules -I../../src -I../../src/drivers/boards/px4io-v2 -I../../src/include -I../../src/lib -I../../src/lib/DriverFramework/framework/include -I../../src/lib/matrix -I../../src/modules -I../../src/platforms -INuttX/nuttx/arch/arm/src/armv7-m -INuttX/nuttx/arch/arm/src/chip -INuttX/nuttx/arch/arm/src/common -INuttX/apps/include -Iexternal/Install/include -Isrc/lib/mixer -isystem NuttX/nuttx/include/cxx -isystem NuttX/nuttx/include -fno-common -ffunction-sections -fdata-sections -mcpu=cortex-m3 -mthumb -march=armv7-m -fno-common -ffunction-sections -fdata-sections -g -fno-exceptions -fno-rtti -std=gnu++11 -fno-threadsafe-statics -DCONFIG_WCHAR_BUILTIN -D__CUSTOM_FILE_IO__ -fcheck-new -Wall -Warray-bounds -Wdisabled-optimization -Werror -Wextra -Wfatal-errors -Wfloat-equal -Wformat-security -Winit-self -Wlogical-op -Wmissing-declarations -Wmissing-field-initializers -Wpointer-arith -Wshadow -Wuninitialized -Wunknown-pragmas -Wunused-variable -Wno-implicit-fallthrough -Wno-unused-parameter -Wunused-but-set-variable -Wformat=1 -Wdouble-promotion -Wno-missing-field-initializers -Wno-overloaded-virtual -Wreorder -Wno-format-truncation -fvisibility=hidden -include visibility.h -fno-strict-aliasing -fomit-frame-pointer -fno-math-errno -funsafe-math-optimizations -ffunction-sections -fdata-sections -fno-strength-reduce -fno-builtin-printf -Os -DNDEBUG -MD -MT src/lib/mixer/CMakeFiles/mixer.dir/mixer_group.cpp.obj -MF src/lib/mixer/CMakeFiles/mixer.dir/mixer_group.cpp.obj.d -o src/lib/mixer/CMakeFiles/mixer.dir/mixer_group.cpp.obj -c ../../src/lib/mixer/mixer_group.cpp
In file included from NuttX/nuttx/include/math.h:52:0,
from ../../src/lib/mixer/mixer_group.cpp:51:
NuttX/nuttx/include/arch/math.h:87:20: error: expected initializer before '_PARAMS'
extern double atan _PARAMS((double));
^~~~~~~
compilation terminated due to -Wfatal-errors.
[19/193] Building CXX object src/lib/mixer/CMakeFiles/mixer.dir/mixer.cpp.obj
FAILED: src/lib/mixer/CMakeFiles/mixer.dir/mixer.cpp.obj
/usr/local/bin/arm-none-eabi-g++ -DCONFIG_ARCH_BOARD_PX4IO_V2 -D__DF_NUTTX -D__PX4_NUTTX -D__STDC_FORMAT_MACROS -I. -Isrc -Isrc/lib -Isrc/modules -I../../src -I../../src/drivers/boards/px4io-v2 -I../../src/include -I../../src/lib -I../../src/lib/DriverFramework/framework/include -I../../src/lib/matrix -I../../src/modules -I../../src/platforms -INuttX/nuttx/arch/arm/src/armv7-m -INuttX/nuttx/arch/arm/src/chip -INuttX/nuttx/arch/arm/src/common -INuttX/apps/include -Iexternal/Install/include -Isrc/lib/mixer -isystem NuttX/nuttx/include/cxx -isystem NuttX/nuttx/include -fno-common -ffunction-sections -fdata-sections -mcpu=cortex-m3 -mthumb -march=armv7-m -fno-common -ffunction-sections -fdata-sections -g -fno-exceptions -fno-rtti -std=gnu++11 -fno-threadsafe-statics -DCONFIG_WCHAR_BUILTIN -D__CUSTOM_FILE_IO__ -fcheck-new -Wall -Warray-bounds -Wdisabled-optimization -Werror -Wextra -Wfatal-errors -Wfloat-equal -Wformat-security -Winit-self -Wlogical-op -Wmissing-declarations -Wmissing-field-initializers -Wpointer-arith -Wshadow -Wuninitialized -Wunknown-pragmas -Wunused-variable -Wno-implicit-fallthrough -Wno-unused-parameter -Wunused-but-set-variable -Wformat=1 -Wdouble-promotion -Wno-missing-field-initializers -Wno-overloaded-virtual -Wreorder -Wno-format-truncation -fvisibility=hidden -include visibility.h -fno-strict-aliasing -fomit-frame-pointer -fno-math-errno -funsafe-math-optimizations -ffunction-sections -fdata-sections -fno-strength-reduce -fno-builtin-printf -Os -DNDEBUG -MD -MT src/lib/mixer/CMakeFiles/mixer.dir/mixer.cpp.obj -MF src/lib/mixer/CMakeFiles/mixer.dir/mixer.cpp.obj.d -o src/lib/mixer/CMakeFiles/mixer.dir/mixer.cpp.obj -c ../../src/lib/mixer/mixer.cpp
In file included from NuttX/nuttx/include/math.h:52:0,
from NuttX/nuttx/include/cxx/cmath:46,
from ../../src/platforms/px4_defines.h:67,
from ../../src/drivers/drv_mixer.h:56,
from ../../src/lib/mixer/mixer.h:132,
from ../../src/lib/mixer/mixer.cpp:40:
NuttX/nuttx/include/arch/math.h:87:20: error: expected initializer before '_PARAMS'
extern double atan _PARAMS((double));
^~~~~~~
compilation terminated due to -Wfatal-errors.
[21/193] Building CXX object src/lib/mixer/CMakeFiles/mixer.dir/mixer_simple.cpp.obj
FAILED: src/lib/mixer/CMakeFiles/mixer.dir/mixer_simple.cpp.obj
/usr/local/bin/arm-none-eabi-g++ -DCONFIG_ARCH_BOARD_PX4IO_V2 -D__DF_NUTTX -D__PX4_NUTTX -D__STDC_FORMAT_MACROS -I. -Isrc -Isrc/lib -Isrc/modules -I../../src -I../../src/drivers/boards/px4io-v2 -I../../src/include -I../../src/lib -I../../src/lib/DriverFramework/framework/include -I../../src/lib/matrix -I../../src/modules -I../../src/platforms -INuttX/nuttx/arch/arm/src/armv7-m -INuttX/nuttx/arch/arm/src/chip -INuttX/nuttx/arch/arm/src/common -INuttX/apps/include -Iexternal/Install/include -Isrc/lib/mixer -isystem NuttX/nuttx/include/cxx -isystem NuttX/nuttx/include -fno-common -ffunction-sections -fdata-sections -mcpu=cortex-m3 -mthumb -march=armv7-m -fno-common -ffunction-sections -fdata-sections -g -fno-exceptions -fno-rtti -std=gnu++11 -fno-threadsafe-statics -DCONFIG_WCHAR_BUILTIN -D__CUSTOM_FILE_IO__ -fcheck-new -Wall -Warray-bounds -Wdisabled-optimization -Werror -Wextra -Wfatal-errors -Wfloat-equal -Wformat-security -Winit-self -Wlogical-op -Wmissing-declarations -Wmissing-field-initializers -Wpointer-arith -Wshadow -Wuninitialized -Wunknown-pragmas -Wunused-variable -Wno-implicit-fallthrough -Wno-unused-parameter -Wunused-but-set-variable -Wformat=1 -Wdouble-promotion -Wno-missing-field-initializers -Wno-overloaded-virtual -Wreorder -Wno-format-truncation -fvisibility=hidden -include visibility.h -fno-strict-aliasing -fomit-frame-pointer -fno-math-errno -funsafe-math-optimizations -ffunction-sections -fdata-sections -fno-strength-reduce -fno-builtin-printf -Os -DNDEBUG -MD -MT src/lib/mixer/CMakeFiles/mixer.dir/mixer_simple.cpp.obj -MF src/lib/mixer/CMakeFiles/mixer.dir/mixer_simple.cpp.obj.d -o src/lib/mixer/CMakeFiles/mixer.dir/mixer_simple.cpp.obj -c ../../src/lib/mixer/mixer_simple.cpp
In file included from NuttX/nuttx/include/math.h:52:0,
from NuttX/nuttx/include/cxx/cmath:46,
from ../../src/platforms/px4_defines.h:67,
from ../../src/drivers/drv_mixer.h:56,
from ../../src/lib/mixer/mixer.h:132,
from ../../src/lib/mixer/mixer_simple.cpp:40:
NuttX/nuttx/include/arch/math.h:87:20: error: expected initializer before '_PARAMS'
extern double atan _PARAMS((double));
^~~~~~~
compilation terminated due to -Wfatal-errors.
[22/193] Building CXX object src/lib/mixer/CMakeFiles/mixer.dir/mixer_multirotor.cpp.obj
FAILED: src/lib/mixer/CMakeFiles/mixer.dir/mixer_multirotor.cpp.obj
/usr/local/bin/arm-none-eabi-g++ -DCONFIG_ARCH_BOARD_PX4IO_V2 -D__DF_NUTTX -D__PX4_NUTTX -D__STDC_FORMAT_MACROS -I. -Isrc -Isrc/lib -Isrc/modules -I../../src -I../../src/drivers/boards/px4io-v2 -I../../src/include -I../../src/lib -I../../src/lib/DriverFramework/framework/include -I../../src/lib/matrix -I../../src/modules -I../../src/platforms -INuttX/nuttx/arch/arm/src/armv7-m -INuttX/nuttx/arch/arm/src/chip -INuttX/nuttx/arch/arm/src/common -INuttX/apps/include -Iexternal/Install/include -Isrc/lib/mixer -isystem NuttX/nuttx/include/cxx -isystem NuttX/nuttx/include -fno-common -ffunction-sections -fdata-sections -mcpu=cortex-m3 -mthumb -march=armv7-m -fno-common -ffunction-sections -fdata-sections -g -fno-exceptions -fno-rtti -std=gnu++11 -fno-threadsafe-statics -DCONFIG_WCHAR_BUILTIN -D__CUSTOM_FILE_IO__ -fcheck-new -Wall -Warray-bounds -Wdisabled-optimization -Werror -Wextra -Wfatal-errors -Wfloat-equal -Wformat-security -Winit-self -Wlogical-op -Wmissing-declarations -Wmissing-field-initializers -Wpointer-arith -Wshadow -Wuninitialized -Wunknown-pragmas -Wunused-variable -Wno-implicit-fallthrough -Wno-unused-parameter -Wunused-but-set-variable -Wformat=1 -Wdouble-promotion -Wno-missing-field-initializers -Wno-overloaded-virtual -Wreorder -Wno-format-truncation -fvisibility=hidden -include visibility.h -fno-strict-aliasing -fomit-frame-pointer -fno-math-errno -funsafe-math-optimizations -ffunction-sections -fdata-sections -fno-strength-reduce -fno-builtin-printf -Os -DNDEBUG -MD -MT src/lib/mixer/CMakeFiles/mixer.dir/mixer_multirotor.cpp.obj -MF src/lib/mixer/CMakeFiles/mixer.dir/mixer_multirotor.cpp.obj.d -o src/lib/mixer/CMakeFiles/mixer.dir/mixer_multirotor.cpp.obj -c ../../src/lib/mixer/mixer_multirotor.cpp
In file included from NuttX/nuttx/include/math.h:52:0,
from NuttX/nuttx/include/cxx/cmath:46,
from ../../src/platforms/px4_defines.h:67,
from ../../src/drivers/drv_mixer.h:56,
from ../../src/lib/mixer/mixer.h:132,
from ../../src/lib/mixer/mixer_multirotor.cpp:40:
NuttX/nuttx/include/arch/math.h:87:20: error: expected initializer before '_PARAMS'
extern double atan _PARAMS((double));
^~~~~~~
compilation terminated due to -Wfatal-errors.
[25/193] Generating uORB topic sources
ninja: build stopped: subcommand failed.
make[1]: *** [nuttx_px4io-v2_default] Error 1
[19/998] Building CXX object src/lib/ecl/attitude_fw/CMakeFiles/ecl_attitude_fw.dir/ecl_controller.cpp.obj
FAILED: src/lib/ecl/attitude_fw/CMakeFiles/ecl_attitude_fw.dir/ecl_controller.cpp.obj
/usr/local/bin/arm-none-eabi-g++ -DCONFIG_ARCH_BOARD_PX4FMU_V2 -DMODULE_NAME=\"ecl/attitude_fw\" -D__DF_NUTTX -D__PX4_NUTTX -D__STDC_FORMAT_MACROS -I. -Isrc -Isrc/lib -Isrc/modules -I../../src -I../../src/drivers/boards/px4fmu-v2 -I../../src/include -I../../src/lib -I../../src/lib/DriverFramework/framework/include -I../../src/lib/matrix -I../../src/modules -I../../src/platforms -INuttX/nuttx/arch/arm/src/armv7-m -INuttX/nuttx/arch/arm/src/chip -INuttX/nuttx/arch/arm/src/common -INuttX/apps/include -Iexternal/Install/include -I../../src/lib/ecl -isystem NuttX/nuttx/include/cxx -isystem NuttX/nuttx/include -fno-common -ffunction-sections -fdata-sections -mcpu=cortex-m4 -mthumb -march=armv7e-m -mfpu=fpv4-sp-d16 -mfloat-abi=hard -fno-common -ffunction-sections -fdata-sections -g -fno-exceptions -fno-rtti -std=gnu++11 -fno-threadsafe-statics -DCONFIG_WCHAR_BUILTIN -D__CUSTOM_FILE_IO__ -fcheck-new -Wall -Warray-bounds -Wdisabled-optimization -Werror -Wextra -Wfatal-errors -Wfloat-equal -Wformat-security -Winit-self -Wlogical-op -Wmissing-declarations -Wmissing-field-initializers -Wpointer-arith -Wshadow -Wuninitialized -Wunknown-pragmas -Wunused-variable -Wno-implicit-fallthrough -Wno-unused-parameter -Wunused-but-set-variable -Wformat=1 -Wdouble-promotion -Wno-missing-field-initializers -Wno-overloaded-virtual -Wreorder -Wno-format-truncation -fvisibility=hidden -include visibility.h -fno-strict-aliasing -fomit-frame-pointer -fno-math-errno -funsafe-math-optimizations -ffunction-sections -fdata-sections -fno-strength-reduce -fno-builtin-printf -Os -DNDEBUG -MD -MT src/lib/ecl/attitude_fw/CMakeFiles/ecl_attitude_fw.dir/ecl_controller.cpp.obj -MF src/lib/ecl/attitude_fw/CMakeFiles/ecl_attitude_fw.dir/ecl_controller.cpp.obj.d -o src/lib/ecl/attitude_fw/CMakeFiles/ecl_attitude_fw.dir/ecl_controller.cpp.obj -c ../../src/lib/ecl/attitude_fw/ecl_controller.cpp
In file included from NuttX/nuttx/include/math.h:52:0,
from NuttX/nuttx/include/cxx/cmath:46,
from ../../src/platforms/px4_defines.h:67,
from ../../src/platforms/px4_log.h:136,
from ../../src/lib/ecl/ecl.h:44,
from ../../src/lib/ecl/attitude_fw/ecl_controller.h:51,
from ../../src/lib/ecl/attitude_fw/ecl_controller.cpp:49:
NuttX/nuttx/include/arch/math.h:87:20: error: expected initializer before '_PARAMS'
extern double atan _PARAMS((double));
^~~~~~~
compilation terminated due to -Wfatal-errors.
[20/998] Building CXX object src/lib/ecl/attitude_fw/CMakeFiles/ecl_attitude_fw.dir/ecl_roll_controller.cpp.obj
FAILED: src/lib/ecl/attitude_fw/CMakeFiles/ecl_attitude_fw.dir/ecl_roll_controller.cpp.obj
/usr/local/bin/arm-none-eabi-g++ -DCONFIG_ARCH_BOARD_PX4FMU_V2 -DMODULE_NAME=\"ecl/attitude_fw\" -D__DF_NUTTX -D__PX4_NUTTX -D__STDC_FORMAT_MACROS -I. -Isrc -Isrc/lib -Isrc/modules -I../../src -I../../src/drivers/boards/px4fmu-v2 -I../../src/include -I../../src/lib -I../../src/lib/DriverFramework/framework/include -I../../src/lib/matrix -I../../src/modules -I../../src/platforms -INuttX/nuttx/arch/arm/src/armv7-m -INuttX/nuttx/arch/arm/src/chip -INuttX/nuttx/arch/arm/src/common -INuttX/apps/include -Iexternal/Install/include -I../../src/lib/ecl -isystem NuttX/nuttx/include/cxx -isystem NuttX/nuttx/include -fno-common -ffunction-sections -fdata-sections -mcpu=cortex-m4 -mthumb -march=armv7e-m -mfpu=fpv4-sp-d16 -mfloat-abi=hard -fno-common -ffunction-sections -fdata-sections -g -fno-exceptions -fno-rtti -std=gnu++11 -fno-threadsafe-statics -DCONFIG_WCHAR_BUILTIN -D__CUSTOM_FILE_IO__ -fcheck-new -Wall -Warray-bounds -Wdisabled-optimization -Werror -Wextra -Wfatal-errors -Wfloat-equal -Wformat-security -Winit-self -Wlogical-op -Wmissing-declarations -Wmissing-field-initializers -Wpointer-arith -Wshadow -Wuninitialized -Wunknown-pragmas -Wunused-variable -Wno-implicit-fallthrough -Wno-unused-parameter -Wunused-but-set-variable -Wformat=1 -Wdouble-promotion -Wno-missing-field-initializers -Wno-overloaded-virtual -Wreorder -Wno-format-truncation -fvisibility=hidden -include visibility.h -fno-strict-aliasing -fomit-frame-pointer -fno-math-errno -funsafe-math-optimizations -ffunction-sections -fdata-sections -fno-strength-reduce -fno-builtin-printf -Os -DNDEBUG -MD -MT src/lib/ecl/attitude_fw/CMakeFiles/ecl_attitude_fw.dir/ecl_roll_controller.cpp.obj -MF src/lib/ecl/attitude_fw/CMakeFiles/ecl_attitude_fw.dir/ecl_roll_controller.cpp.obj.d -o src/lib/ecl/attitude_fw/CMakeFiles/ecl_attitude_fw.dir/ecl_roll_controller.cpp.obj -c ../../src/lib/ecl/attitude_fw/ecl_roll_controller.cpp
In file included from NuttX/nuttx/include/math.h:52:0,
from NuttX/nuttx/include/cxx/cmath:46,
from ../../src/platforms/px4_defines.h:67,
from ../../src/platforms/px4_log.h:136,
from ../../src/lib/ecl/ecl.h:44,
from ../../src/lib/ecl/attitude_fw/ecl_controller.h:51,
from ../../src/lib/ecl/attitude_fw/ecl_roll_controller.h:52,
from ../../src/lib/ecl/attitude_fw/ecl_roll_controller.cpp:41:
NuttX/nuttx/include/arch/math.h:87:20: error: expected initializer before '_PARAMS'
extern double atan _PARAMS((double));
^~~~~~~
compilation terminated due to -Wfatal-errors.
[21/998] Building CXX object src/lib/ecl/airdata/CMakeFiles/ecl_airdata.dir/WindEstimator.cpp.obj
FAILED: src/lib/ecl/airdata/CMakeFiles/ecl_airdata.dir/WindEstimator.cpp.obj
/usr/local/bin/arm-none-eabi-g++ -DCONFIG_ARCH_BOARD_PX4FMU_V2 -DMODULE_NAME=\"ecl/airdata\" -D__DF_NUTTX -D__PX4_NUTTX -D__STDC_FORMAT_MACROS -I. -Isrc -Isrc/lib -Isrc/modules -I../../src -I../../src/drivers/boards/px4fmu-v2 -I../../src/include -I../../src/lib -I../../src/lib/DriverFramework/framework/include -I../../src/lib/matrix -I../../src/modules -I../../src/platforms -INuttX/nuttx/arch/arm/src/armv7-m -INuttX/nuttx/arch/arm/src/chip -INuttX/nuttx/arch/arm/src/common -INuttX/apps/include -Iexternal/Install/include -I../../src/lib/ecl -isystem NuttX/nuttx/include/cxx -isystem NuttX/nuttx/include -fno-common -ffunction-sections -fdata-sections -mcpu=cortex-m4 -mthumb -march=armv7e-m -mfpu=fpv4-sp-d16 -mfloat-abi=hard -fno-common -ffunction-sections -fdata-sections -g -fno-exceptions -fno-rtti -std=gnu++11 -fno-threadsafe-statics -DCONFIG_WCHAR_BUILTIN -D__CUSTOM_FILE_IO__ -fcheck-new -Wall -Warray-bounds -Wdisabled-optimization -Werror -Wextra -Wfatal-errors -Wfloat-equal -Wformat-security -Winit-self -Wlogical-op -Wmissing-declarations -Wmissing-field-initializers -Wpointer-arith -Wshadow -Wuninitialized -Wunknown-pragmas -Wunused-variable -Wno-implicit-fallthrough -Wno-unused-parameter -Wunused-but-set-variable -Wformat=1 -Wdouble-promotion -Wno-missing-field-initializers -Wno-overloaded-virtual -Wreorder -Wno-format-truncation -fvisibility=hidden -include visibility.h -fno-strict-aliasing -fomit-frame-pointer -fno-math-errno -funsafe-math-optimizations -ffunction-sections -fdata-sections -fno-strength-reduce -fno-builtin-printf -Os -DNDEBUG -MD -MT src/lib/ecl/airdata/CMakeFiles/ecl_airdata.dir/WindEstimator.cpp.obj -MF src/lib/ecl/airdata/CMakeFiles/ecl_airdata.dir/WindEstimator.cpp.obj.d -o src/lib/ecl/airdata/CMakeFiles/ecl_airdata.dir/WindEstimator.cpp.obj -c ../../src/lib/ecl/airdata/WindEstimator.cpp
In file included from NuttX/nuttx/include/math.h:52:0,
from NuttX/nuttx/include/cxx/cmath:46,
from ../../src/platforms/px4_defines.h:67,
from ../../src/platforms/px4_log.h:136,
from ../../src/lib/ecl/ecl.h:44,
from ../../src/lib/ecl/airdata/WindEstimator.hpp:41,
from ../../src/lib/ecl/airdata/WindEstimator.cpp:39:
NuttX/nuttx/include/arch/math.h:87:20: error: expected initializer before '_PARAMS'
extern double atan _PARAMS((double));
^~~~~~~
compilation terminated due to -Wfatal-errors.
[27/998] Generating uORB topic sources
FAILED: ../nuttx_px4io-v2_default/nuttx_px4io-v2_default.elf
cd /Users/dlw/Workspace/PX4/Firmware && make --no-print-directory nuttx_px4io-v2_default
ninja: build stopped: subcommand failed.
make: *** [px4fmu-v3_default] Error 1
I managed to install the formula "gcc-arm-none-eabi" from the tap "PX4/homebrew-px4", but when I ran brew doctor I got the error: "Failed to import: gcc-arm-none-eabi"
To resolve the problem I tried reinstalling the formula the cleaning up homebrew using the normal commands. Once the formula was removed I tried installing the formula again, but consequently encountered the issue as show in the gist.
System: MacOS High Sierra 10.13
Java: Installed the lasted Java 9, but I switched to both version 1.7, 1.8 as recommended by @KochC, using command, i.e., switch to java version 1.8 by,
frankmbp:~ appleapple$ export JAVA_HOME=/usr/libexec/java_home -v 1.8
frankmbp:~ appleapple$ java -version
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
-------- The error messages during installation of brew install px4-dev -------------
brew install px4-dev
Updating Homebrew...
==> Installing px4-dev from px4/px4
==> Installing dependencies for px4/px4/px4-dev: fastrtps, fastcdr
==> Installing px4/px4/px4-dev dependency: fastrtps
==> Downloading http://px4-tools.s3.amazonaws.com/fastrtps-v1.5.0p.tar.gz
Already downloaded: /Users/appleapple/Library/Caches/Homebrew/fastrtps-1.5.0.tar.gz
==> Patching
patching file CMakeLists.txt
patch unexpectedly ends in middle of line
Hunk #1 succeeded at 373 with fuzz 1.
==> cmake -DTHIRDPARTY=ON -DBUILD_JAVA=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr/local
==> make
Last 15 lines from /Users/appleapple/Library/Logs/Homebrew/fastrtps/02.make:
[ 86%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/rtps/builtin/data/ReaderProxyData.cpp.o
[ 88%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/rtps/flowcontrol/ThroughputController.cpp.o
[ 89%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/rtps/flowcontrol/ThroughputControllerDescriptor.cpp.o
[ 90%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/rtps/flowcontrol/FlowController.cpp.o
[ 91%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/rtps/exceptions/Exception.cpp.o
[ 92%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/rtps/attributes/PropertyPolicy.cpp.o
[ 93%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/rtps/common/Token.cpp.o
[ 94%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/xmlparser/XMLParserCommon.cpp.o
[ 95%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/xmlparser/XMLProfileElementParser.cpp.o
[ 96%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/xmlparser/XMLEndpointParser.cpp.o
[ 97%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/xmlparser/XMLProfileParser.cpp.o
[ 98%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir///thirdparty/tinyxml2/tinyxml2.cpp.o
[100%] Linking CXX shared library libfastrtps.dylib
[100%] Built target fastrtps
make: *** [all] Error 2
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/px4/homebrew-px4/issues
These open issues may also help:
Unable to install fastrtps #16
Hi 😄
commit 5290c65 , by removing the gcc-arm-none-eabi-54.rb, causes problems with brew where it was explicitly installed.
(And I guess also in cascade anyone who installed any package depending on gcc-arm-none-eabi-54
)
Error: No available formula with the name "gcc-arm-none-eabi-54"
starts to appear and block most brew commands.
The real problem is that brew cannot even remove the package itself without the formula, so its stuck.
Cellar >>> brew uninstall --force gcc-arm-none-eabi-54 Error: No available formula with the name "gcc-arm-none-eabi-54"
I added further in my comment to the commit 5290c65 (when I still thought I could have strip it out of brew easily and fast)
Thanks in advance 👍
$ brew tap PX4/homebrew-px4
...
==> Tapping px4/px4
Cloning into '/usr/local/Homebrew/Library/Taps/px4/homebrew-px4'...
remote: Counting objects: 16, done.
remote: Compressing objects: 100% (13/13), done.
remote: Total 16 (delta 5), reused 6 (delta 3), pack-reused 0
Unpacking objects: 100% (16/16), done.
Warning: Calling BottleSpecification.revision is deprecated!
Use BottleSpecification.rebuild instead.
/usr/local/Homebrew/Library/Taps/px4/homebrew-px4/qt54.rb:21:in `block in <class:Qt54>'
Please report this to the px4/px4 tap!
Tapped 13 formulae (52 files, 47.4KB)
$ brew --version
Homebrew 1.3.0
Homebrew/homebrew-core (git revision 24d8; last commit 2017-08-06)
Seems that the revision 1
line in qt54.rb:21
needs to be changed to rebuild 1
.
(Relevant issue from homebrew-php: https://github.com/Homebrew/homebrew-php/issues/4344)
How to get it?
'brew config' output:
HOMEBREW_VERSION: 1.9.3
ORIGIN: https://github.com/Homebrew/brew
HEAD: 6a912c369125caca5e1e3929e942bbb946ce6367
Last commit: 6 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 3f34040b3e506c0181e03a55b79c6157675e532d
Core tap last commit: 39 minutes ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_LOGS: /Users/paul/Library/Logs/Homebrew
CPU: octa-core 64-bit haswell
Homebrew Ruby: 2.3.7 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/bin/ruby
Clang: 9.0 build 900
Git: 2.14.3 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 7.54.0 => /usr/bin/curl
Java: 11.0.2, 1.8.0_121
macOS: 10.12.6-x86_64
CLT: 9.2.0.0.1.1510905681
Xcode: N/A
XQuartz: 2.7.11 => /opt/X11
error generated when running 'brew install px4-dev'
Pauls-MacBook-Pro:src paul$ brew tap PX4/px4
==> Tapping px4/px4
Cloning into '/usr/local/Homebrew/Library/Taps/px4/homebrew-px4'...
remote: Enumerating objects: 21, done.
remote: Counting objects: 100% (21/21), done.
remote: Compressing objects: 100% (18/18), done.
remote: Total 21 (delta 6), reused 9 (delta 3), pack-reused 0
Unpacking objects: 100% (21/21), done.
Tapped 16 formulae (61 files, 49.2KB).
Pauls-MacBook-Pro:src paul$ brew install px4-dev
==> Installing px4-dev from px4/px4
==> Installing dependencies for px4/px4/px4-dev: ant, astyle, bash-completion, cmake, fastcdr, gradle, fastrtps, gcc-arm-none-eabi, genromfs, kconfig-frontends and ninja
==> Installing px4/px4/px4-dev dependency: ant
==> Downloading https://www.apache.org/dyn/closer.cgi?path=ant/binaries/apache-a
==> Downloading from http://mirror.ventraip.net.au/apache/ant/binaries/apache-an
######################################################################## 100.0%
==> Downloading https://www.apache.org/dyn/closer.cgi?path=ant/ivy/2.4.0/apache-
==> Downloading from http://www.strategylions.com.au/mirror/ant/ivy/2.4.0/apache
######################################################################## 100.0%
==> Downloading https://www.apache.org/dyn/closer.cgi?path=commons/bcel/binaries
==> Downloading from http://apache.mirror.serversaustralia.com.au/commons/bcel/b
######################################################################## 100.0%
🍺 /usr/local/Cellar/ant/1.10.5: 1,653 files, 39.3MB, built in 15 seconds
==> Installing px4/px4/px4-dev dependency: astyle
==> Downloading https://homebrew.bintray.com/bottles/astyle-3.1.sierra.bottle.ta
######################################################################## 100.0%
==> Pouring astyle-3.1.sierra.bottle.tar.gz
🍺 /usr/local/Cellar/astyle/3.1: 5 files, 537KB
==> Installing px4/px4/px4-dev dependency: bash-completion
==> Downloading https://homebrew.bintray.com/bottles/bash-completion-1.3_3.sierr
######################################################################## 100.0%
==> Pouring bash-completion-1.3_3.sierra.bottle.tar.gz
==> Caveats
Add the following line to your ~/.bash_profile:
[[ -r "/usr/local/etc/profile.d/bash_completion.sh" ]] && . "/usr/local/etc/profile.d/bash_completion.sh"
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
==> Summary
🍺 /usr/local/Cellar/bash-completion/1.3_3: 189 files, 608.6KB
==> Installing px4/px4/px4-dev dependency: cmake
==> Downloading https://homebrew.bintray.com/bottles/cmake-3.13.3.sierra.bottle.
######################################################################## 100.0%
==> Pouring cmake-3.13.3.sierra.bottle.tar.gz
==> Caveats
Emacs Lisp files have been installed to:
/usr/local/share/emacs/site-lisp/cmake
==> Summary
🍺 /usr/local/Cellar/cmake/3.13.3: 5,543 files, 51.3MB
==> Installing px4/px4/px4-dev dependency: fastcdr
==> Downloading https://github.com/eProsima/Fast-CDR/archive/v1.0.8.tar.gz
==> Downloading from https://codeload.github.com/eProsima/Fast-CDR/tar.gz/v1.0.8
######################################################################## 100.0%
==> cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr/local/Cellar/fastcdr/1.6.0 ..
==> make
==> make install
🍺 /usr/local/Cellar/fastcdr/1.6.0: 21 files, 404.8KB, built in 15 seconds
==> Installing px4/px4/px4-dev dependency: gradle
==> Downloading https://services.gradle.org/distributions/gradle-5.1.1-all.zip
==> Downloading from https://downloads.gradle.org/distributions/gradle-5.1.1-all
######################################################################## 100.0%
🍺 /usr/local/Cellar/gradle/5.1.1: 13,259 files, 234.9MB, built in 1 minute 10 seconds
==> Installing px4/px4/px4-dev dependency: fastrtps
==> Downloading http://px4-tools.s3.amazonaws.com/fastrtps-v1.6.0.tar.gz
######################################################################## 100.0%
==> cmake -DTHIRDPARTY=ON -DBUILD_JAVA=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr/local
==> make
Last 15 lines from /Users/paul/Library/Logs/Homebrew/fastrtps/02.make:
[ 88%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/xmlparser/XMLEndpointParser.cpp.o
[ 89%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/xmlparser/XMLParser.cpp.o
[ 90%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/xmlparser/XMLProfileManager.cpp.o
[ 91%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/rtps/writer/PersistentWriter.cpp.o
[ 92%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/rtps/writer/StatelessPersistentWriter.cpp.o
[ 93%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/rtps/writer/StatefulPersistentWriter.cpp.o
[ 94%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/rtps/reader/StatelessPersistentReader.cpp.o
[ 95%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/rtps/reader/StatefulPersistentReader.cpp.o
[ 96%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/rtps/persistence/PersistenceFactory.cpp.o
[ 97%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/rtps/persistence/SQLite3PersistenceService.cpp.o
[ 98%] Building C object src/cpp/CMakeFiles/fastrtps.dir/rtps/persistence/sqlite3.c.o
[ 99%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir///thirdparty/tinyxml2/tinyxml2.cpp.o
[100%] Linking CXX shared library libfastrtps.dylib
[100%] Built target fastrtps
make: *** [all] Error 2
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/px4/homebrew-px4/issues
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.