orangepi-xunlong / wiringOP

wiringPi for Orange Pi
GNU Lesser General Public License v3.0
394 stars 189 forks source link

OrangePi r1+ LTS Debian Buster, problem build #85

Open cadpm opened 1 year ago

cadpm commented 1 year ago

root@comunica4025:~/wiringOP# sudo ./build wiringPi Build script

WiringPi Library [UnInstall] [Compile] wiringPi.c [Compile] wiringSerial.c [Compile] wiringShift.c [Compile] piHiPri.c [Compile] piThread.c [Compile] wiringPiSPI.c [Compile] wiringPiI2C.c [Compile] softPwm.c [Compile] softTone.c [Compile] mcp23008.c [Compile] mcp23016.c [Compile] mcp23017.c [Compile] mcp23s08.c [Compile] mcp23s17.c [Compile] sr595.c [Compile] pcf8574.c [Compile] pcf8591.c [Compile] mcp3002.c [Compile] mcp3004.c [Compile] mcp4802.c [Compile] mcp3422.c [Compile] max31855.c [Compile] max5322.c [Compile] ads1115.c [Compile] sn3218.c [Compile] bmp180.c [Compile] htu21d.c [Compile] ds18b20.c [Compile] rht03.c [Compile] drcSerial.c [Compile] drcNet.c [Compile] pseudoPins.c [Compile] wpiExtensions.c pseudoPins.c: In function ‘myAnalogRead’: pseudoPins.c:50:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] int ptr = (int )node->data0 ; ^ pseudoPins.c: In function ‘myAnalogWrite’: pseudoPins.c:59:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] int ptr = (int )node->data0 ; ^ pseudoPins.c: In function ‘pseudoPinsSetup’: pseudoPins.c:89:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] node->data0 = (unsigned int)ptr ; ^ [Compile] w25q64.c [Compile] oled.c [Compile] OrangePi.c OrangePi.c: In function ‘readR’: OrangePi.c:1645:7: warning: suggest braces around empty body in an ‘else’ statement [-Wempty-body] else ; ^ OrangePi.c: In function ‘writeR’: OrangePi.c:1704:7: warning: suggest braces around empty body in an ‘else’ statement [-Wempty-body] else ; ^ OrangePi.c: In function ‘OrangePi_get_gpio_mode’: OrangePi.c:1916:6: warning: suggest braces around empty body in an ‘else’ statement [-Wempty-body] else; ^ OrangePi.c: In function ‘OrangePi_set_gpio_mode’: OrangePi.c:2052:6: warning: suggest braces around empty body in an ‘else’ statement [-Wempty-body] else; ^ OrangePi.c: In function ‘OrangePi_set_gpio_pullUpDnControl’: OrangePi.c:2261:26: error: ‘GPIOL_BASE’ undeclared (first use in this function); did you mean ‘GPIO3_BASE’? phyaddr = pullOffset + GPIOL_BASE + ((index >> 4) << 2); ^~~~~~ GPIO3_BASE OrangePi.c:2261:26: note: each undeclared identifier is reported only once for each function it appears in OrangePi.c:2264:26: error: ‘GPIO_BASE_MAP’ undeclared (first use in this function); did you mean ‘GPIO_BASE’? phyaddr = pullOffset + GPIO_BASE_MAP + (bank * 36) + ((index >> 4) << 2); ^~~~~ GPIO_BASE OrangePi.c: In function ‘OrangePi_digitalWrite’: OrangePi.c:2423:8: warning: suggest braces around empty body in an ‘else’ statement [-Wempty-body] else; ^ OrangePi.c: In function ‘OrangePi_digitalRead’: OrangePi.c:2522:7: warning: suggest braces around empty body in an ‘else’ statement [-Wempty-body] else; ^ make: [Makefile:158: OrangePi.o] Error 1 make: Waiting for unfinished jobs....