Jump to content

[Odroid C2] wiringPi compile errors


mik

Recommended Posts

Hello, i download wiringPi library using,

# git clone https://github.com/hardkernel/wiringPi
# cd wiringPi
# ./build

as root, i compile library with errors.

login as: root
root@192.168.2.110's password:
  ___      _           _     _    ____ ____
 / _ \  __| |_ __ ___ (_) __| |  / ___|___ \
| | | |/ _` | '__/ _ \| |/ _` | | |     __) |
| |_| | (_| | | | (_) | | (_| | | |___ / __/
 \___/ \__,_|_|  \___/|_|\__,_|  \____|_____|


Welcome to ARMBIAN Debian GNU/Linux 8 (jessie) 3.14.73-odroidc2
System load:   0.00             Up time:       44 min
Memory usage:  7 % of 1719Mb    IP:            192.168.2.110
CPU temp:      47°C
Usage of /:    13% of 15G

Last login: Wed Jul 20 19:28:28 2016
root@odroidc2:~# cd /home/michal/clang/gpio
root@odroidc2:/home/michal/clang/gpio# ls
root@odroidc2:/home/michal/clang/gpio# git clone https://github.com/hardkernel/wiringPi
Cloning into 'wiringPi'...
remote: Counting objects: 751, done.
remote: Total 751 (delta 0), reused 0 (delta 0), pack-reused 751
Receiving objects: 100% (751/751), 321.46 KiB | 335.00 KiB/s, done.
Resolving deltas: 100% (544/544), done.
Checking connectivity... done.
root@odroidc2:/home/michal/clang/gpio# cd wiringPi/
root@odroidc2:/home/michal/clang/gpio/wiringPi# ./build
wiringPi Build script
=====================


WiringPi Library
[UnInstall]
[Compile] wiringPi.c
wiringPi.c: In function ‘analogRead’:
wiringPi.c:2304:20: warning: pointer targets in passing argument 1 of ‘atoi’ differ in signedness [-Wpointer-sign]
       return  atoi(value);
                    ^
In file included from /usr/include/features.h:374:0,
                 from /usr/include/stdio.h:27,
                 from wiringPi.c:54:
/usr/include/stdlib.h:278:1: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
 __NTH (atoi (const char *__nptr))
 ^
wiringPi.c: In function ‘waitForInterrupt’:
wiringPi.c:2486:1: warning: label ‘wait’ defined but not used [-Wunused-label]
 wait:
 ^
wiringPi.c: In function ‘interruptHandler’:
wiringPi.c:2523:7: warning: return makes pointer from integer without a cast
       return wiringPiFailure (WPI_FATAL, "wiringPiISR: wiringPi has not been initialised. Unable to continue.\n") ;
       ^
wiringPi.c: In function ‘wiringPiSetup’:
wiringPi.c:2889:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     if ((int32_t)gpio == -1)
         ^
wiringPi.c:2910:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     if ((int32_t)gpio == -1)
         ^
wiringPi.c:2925:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     if ((int32_t)gpio == -1)
         ^
wiringPi.c:2930:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     if ((int32_t)gpio1 == -1)
         ^
wiringPi.c:2955:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     if ((int32_t)gpio == -1)
         ^
wiringPi.c:2961:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     if ((int32_t)pwm == -1)
         ^
wiringPi.c:2967:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     if ((int32_t)clk == -1)
         ^
wiringPi.c:2973:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     if ((int32_t)pads == -1)
         ^
[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] sn3218.c
[Compile] drcSerial.c
[Link (Dynamic)]
[Install Headers]
[Install Dynamic Lib]

WiringPi Devices Library
[UnInstall]
[Compile] ds1302.c
[Compile] maxdetect.c
[Compile] piNes.c
[Compile] gertboard.c
[Compile] piFace.c
[Compile] lcd128x64.c
[Compile] lcd.c
[Compile] piGlow.c
[Link (Dynamic)]
[Install Headers]
[Install Dynamic Lib]

GPIO Utility
[Compile] gpio.c
gpio.c: In function ‘doEdge’:
gpio.c:571:3: warning: implicit declaration of function ‘doUnexport’ [-Wimplicit-function-declaration]
   doUnexport(3, argv);      // unexport argc == 3
   ^
gpio.c: At top level:
gpio.c:644:6: warning: conflicting types for ‘doUnexport’
 void doUnexport (int argc, char *argv [])
      ^
gpio.c:571:3: note: previous implicit declaration of ‘doUnexport’ was here
   doUnexport(3, argv);      // unexport argc == 3
   ^
[Compile] extensions.c
[Compile] readall.c
[Compile] pins.c
[Link]
[Install]

All Done.

NOTE: To compile programs with wiringPi, you need to add:
    -lwiringPi
  to your compile line(s) To use the Gertboard, MaxDetect, etc.
  code (the devLib), you need to also add:
    -lwiringPiDev
  to your compile line(s).

root@odroidc2:/home/michal/clang/gpio/wiringPi#

I find article about this error on xenial server

  http://forum.armbian.com/index.php/topic/1299-build-script-error-odroid-c2-xenial-no-desktop/

but this don't help me. What should I do ? To everything was fine.

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines