-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
Barometer compilation error- {solved by renaming variables external in bmp280_SPI constructor} #9059
Comments
This error happens in fw v1.7.3. |
Fixed. |
Al, for developers to know this problem your comment should be attached in
the post.
Your below comment was sent to only me by email.
2018년 7월 11일 (수) 오후 2:52, Al Bencomo <[email protected]>님이 작성:
… I still see this error in v1.8.0-rc0 and v1.8.0
[ 55%] Building CXX object
src/drivers/barometer/bmp280/CMakeFiles/drivers__bmp280.dir/bmp280_i2c.cpp.obj
/home/safe50/src/Firmware/src/drivers/barometer/bmp280/bmp280_i2c.cpp: In
constructor 'BMP280_I2C::BMP280_I2C(uint8_t, uint8_t, bool)':
/home/safe50/src/Firmware/src/drivers/barometer/bmp280/bmp280_i2c.cpp:74:66:
error: declaration of 'external' shadows a member of 'this' [-Werror=shadow]
BMP280_I2C::BMP280_I2C(uint8_t bus, uint8_t device, bool external) :
^
compilation terminated due to -Wfatal-errors.
cc1plus: all warnings being treated as errors
src/drivers/barometer/bmp280/CMakeFiles/drivers__bmp280.dir/build.make:86:
recipe for target
'src/drivers/barometer/bmp280/CMakeFiles/drivers__bmp280.dir/bmp280_i2c.cpp.obj'
failed
make[3]: ***
[src/drivers/barometer/bmp280/CMakeFiles/drivers__bmp280.dir/bmp280_i2c.cpp.obj]
Error 1
CMakeFiles/Makefile2:2575: recipe for target
'src/drivers/barometer/bmp280/CMakeFiles/drivers__bmp280.dir/all' failed
make[2]: ***
[src/drivers/barometer/bmp280/CMakeFiles/drivers__bmp280.dir/all] Error 2
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#9059 (comment)>, or mute
the thread
<https:/notifications/unsubscribe-auth/ATLdZ1UU50J-LUGgWQ7R-bIonMeliPuPks5uFZKTgaJpZM4Sl7UO>
.
|
This exact problem still exists in the master branch as of 8/31/2018 @ 5:20pm. |
Hello guys, I think instead of following change-log to find and fix this issue, one should do this change to the file I'm leaving this comment here to just help |
[1/5] Building CXX object src/drivers/barometer/b...CMakeFiles/drivers__bmp280.dir/bmp280_spi.cpp.obj
FAILED: /usr/bin/arm-none-eabi-g++ -DBUILD_URI=localhost -DCONFIG_ARCH_BOARD_PX4FMU_V2 -DMODULE_NAME="bmp280" -DPX4_MAIN=bmp280_app_main -D__DF_NUTTX -D__PX4_NUTTX -D__STDC_FORMAT_MACROS -isystem NuttX/nuttx/include/cxx -isystem NuttX/nuttx/include -INuttX/nuttx/arch/arm/src/armv7-m -INuttX/nuttx/arch/arm/src/chip -INuttX/nuttx/arch/arm/src/common -INuttX/apps/include -I. -Isrc -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 -Iexternal/Install/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 -fvisibility=hidden -include visibility.h -fno-strict-aliasing -fomit-frame-pointer -funsafe-math-optimizations -ffunction-sections -fdata-sections -fno-strength-reduce -fno-builtin-printf -Os -DNDEBUG -fno-strict-aliasing -fomit-frame-pointer -funsafe-math-optimizations -ffunction-sections -fdata-sections -fno-strength-reduce -fno-builtin-printf -Wframe-larger-than=1024 -MMD -MT src/drivers/barometer/bmp280/CMakeFiles/drivers__bmp280.dir/bmp280_spi.cpp.obj -MF src/drivers/barometer/bmp280/CMakeFiles/drivers__bmp280.dir/bmp280_spi.cpp.obj.d -o src/drivers/barometer/bmp280/CMakeFiles/drivers__bmp280.dir/bmp280_spi.cpp.obj -c
cc1plus: all warnings being treated as errors
ninja: build stopped: subcommand failed.
Makefile:153: recipe for target 'px4fmu-v3_default' failed
make: *** [px4fmu-v3_default] Error 1
The text was updated successfully, but these errors were encountered: