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

Error in istall #15

Open
MVV66 opened this issue Mar 21, 2019 · 3 comments
Open

Error in istall #15

MVV66 opened this issue Mar 21, 2019 · 3 comments

Comments

@MVV66
Copy link

MVV66 commented Mar 21, 2019

I follow the instructions https://github.com/LeMaker/RPi.GPIO_BP
by doing python setup.py install or sudo python setup.py install

root@serverhttp:/etc/RPi.GPIO_BP# python setup.py install
running install
running build
running build_py
creating build
creating build/lib.linux-armv7l-3.5
creating build/lib.linux-armv7l-3.5/RPi
copying RPi/init.py -> build/lib.linux-armv7l-3.5/RPi
running build_ext
building 'RPi.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 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -c source/py_gpio.c -o build/temp.linux-armv7l-3.5/source/py_gpio.o
source/py_gpio.c: In function ‘py_setup_channel’:
source/py_gpio.c:124:8: warning: variable ‘func’ set but not used [-Wunused-but-set-variable]
int func;
^
source/py_gpio.c: In function ‘py_cleanup’:
source/py_gpio.c:102:31: warning: ‘i’ may be used uninitialized in this function [-Wmaybe-uninitialized]
gpio_direction[i] = -1;
^
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -c source/c_gpio.c -o build/temp.linux-armv7l-3.5/source/c_gpio.o
source/c_gpio.c: In function ‘setup’:
source/c_gpio.c:87:3: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
printf("gpio_mem = 0x%x\t gpio_map = 0x%x\n",gpio_mem,gpio_map);
..............................................................

how to treat?

@MVV66
Copy link
Author

MVV66 commented Mar 21, 2019

OOps
Ubuntu Server 14
Python 3.5

@qmaxUser
Copy link

what is arm-linux-gnueabihf-gcc version?

@bboyadzhiev-sf
Copy link

@qmaxUser you need to install build-essential:
sudo apt-get install build-essential
and then build with
CFLAGS="-fcommon" sudo python setup.py install

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

3 participants