Skip to content
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

Compile error due to unknown flags in gcc 6.3.0 #307

Closed
pdp7 opened this issue Mar 30, 2019 · 2 comments
Closed

Compile error due to unknown flags in gcc 6.3.0 #307

pdp7 opened this issue Mar 30, 2019 · 2 comments
Assignees

Comments

@pdp7
Copy link
Collaborator

pdp7 commented Mar 30, 2019

Commit 0923b85 ignores new compiler warnings in gcc 8.2.0 but has the regression of causing error on gcc 6.3.0 which is used for the current BeagleBoard.org Debian Stretch images.

debian@beaglebone:~/adafruit-beaglebone-io-python$ sudo make install3
python3 setup.py build # --force
running build
running build_py
creating build
creating build/lib.linux-armv7l-3.5
copying Adafruit_I2C.py -> build/lib.linux-armv7l-3.5
creating build/lib.linux-armv7l-3.5/overlays
copying overlays/builder.py -> build/lib.linux-armv7l-3.5/overlays
copying overlays/__init__.py -> build/lib.linux-armv7l-3.5/overlays
creating build/lib.linux-armv7l-3.5/Adafruit_BBIO
copying Adafruit_BBIO/Encoder.py -> build/lib.linux-armv7l-3.5/Adafruit_BBIO
copying Adafruit_BBIO/__init__.py -> build/lib.linux-armv7l-3.5/Adafruit_BBIO
copying Adafruit_BBIO/sysfs.py -> build/lib.linux-armv7l-3.5/Adafruit_BBIO
running build_ext
building 'Adafruit_BBIO.GPIO' extension
creating build/temp.linux-armv7l-3.5
creating build/temp.linux-armv7l-3.5/source
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-QMv3zq/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DBBBVERSION41 -Isource/include/ -I/usr/include/python3.5m -c source/py_gpio.c -o build/temp.linux-armv7l-3.5/source/py_gpio.o -Wall -Werror -Wextra -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-cast-function-type -Wno-error=format-truncation= -Wno-error=sizeof-pointer-memaccess
cc1: error: -Werror=format-truncation=: no option -Wformat-truncation=
cc1: error: unrecognized command line option ‘-Wno-cast-function-type’ [-Werror]
cc1: all warnings being treated as errors
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
Makefile:32: recipe for target 'build3' failed
make: *** [build3] Error 1
@pdp7 pdp7 self-assigned this Mar 30, 2019
@pdp7 pdp7 changed the title Compile error Compile error due to unknown flags in gcc 6.3.0 Mar 30, 2019
@pdp7
Copy link
Collaborator Author

pdp7 commented Mar 30, 2019

Changes in commit 0923b85 to ignore new compiler warnings in gcc 8.2.0 are reverted in commit e06bec0

TODO: determine how to avoid compile failure in gcc 8.2.0 (which is in the Debian 10.x "Buster" test image from @RobertCNelson) without causing a regression with the current Debian 9.x "Stretch" images

@pdp7
Copy link
Collaborator Author

pdp7 commented Mar 30, 2019

Resolved in e06bec0

For gcc 8.2.0 in buster, see #308

@pdp7 pdp7 closed this as completed Mar 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant