Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Compilation problem under arch for raspberry pi #36

Open
gbin opened this issue Oct 4, 2014 · 1 comment
Open

Compilation problem under arch for raspberry pi #36

gbin opened this issue Oct 4, 2014 · 1 comment

Comments

@gbin
Copy link
Contributor

gbin commented Oct 4, 2014

gbin@flypi ~/projects/RPIO> python setup.py install --user running install
running bdist_egg
running egg_info
writing top-level names to source/RPIO.egg-info/top_level.txt
writing source/RPIO.egg-info/PKG-INFO
writing dependency_links to source/RPIO.egg-info/dependency_links.txt
reading manifest file 'source/RPIO.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'source/RPIO.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-armv6l/egg
running install_lib
running build_py
running build_ext
building 'RPIO._GPIO' extension
gcc -pthread -Wno-unused-result -Werror=declaration-after-statement -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -march=armv6 -mfloat-abi=hard -mfpu=vfp -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -fPIC -I/usr/include/python3.4m -c source/c_gpio/py_gpio.c -o build/temp.linux-armv6l-3.4/source/c_gpio/py_gpio.o
gcc -pthread -Wno-unused-result -Werror=declaration-after-statement -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -march=armv6 -mfloat-abi=hard -mfpu=vfp -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -fPIC -I/usr/include/python3.4m -c source/c_gpio/c_gpio.c -o build/temp.linux-armv6l-3.4/source/c_gpio/c_gpio.o
gcc -pthread -Wno-unused-result -Werror=declaration-after-statement -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -march=armv6 -mfloat-abi=hard -mfpu=vfp -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -fPIC -I/usr/include/python3.4m -c source/c_gpio/cpuinfo.c -o build/temp.linux-armv6l-3.4/source/c_gpio/cpuinfo.o
source/c_gpio/cpuinfo.c: In function ‘get_cpuinfo_revision’:
source/c_gpio/cpuinfo.c:64:5: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
char* pos = strstr(revision_hex, "1000");

It compiles directly with the Makefile and make. I'll investigate if I have time.

@lurch
Copy link

lurch commented May 15, 2016

I guess this can be closed, as #37 was merged.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants