• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
compile error on cubieboard: relocation R_ARM_THM_MOVW_ABS_NC
#1
Trying to compile pilight 5.0 (master) on a cubieboard 3 (cubietruck) with Debian installed.

I'm stuck with the following error from ld:
Code:
...
[ 90%] Built target pilight
Scanning dependencies of target pilight_shared
Linking C shared library libpilight.so
/usr/bin/ld: CMakeFiles/pilight.dir/libs/pilight/mongoose.c.o: relocation R_ARM_THM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
CMakeFiles/pilight.dir/libs/pilight/mongoose.c.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libpilight.so] Error 1
make[1]: *** [CMakeFiles/pilight_shared.dir/all] Error 2
make: *** [all] Error 2

Similar problem mentioned here suggests building static (non shared) libraries (possibly with --disable-shared option).

Any hint how to do this?

Tobi
 
Reply
#2
What is the output of:
Code:
arch
 
Reply
#3
Code:
root@ct:/var/log# arch
armv7l
 
Reply
#4
Are you using the dev or master code?
 
Reply
#5
Build error is with master branch. Dev code builds fine.
 
Reply
#6
Then maybe you missed this commit explaining it all Smile
https://github.com/pilight/pilight/commi...60d38fd0de
 
Reply
#7
(08-02-2014, 12:39 PM)curlymo Wrote: Then maybe you missed this commit explaining it all Smile
For sure. Thanks for pointing it out to me. Cool
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  Global Error LUA Stacktrace Rschnauzer 0 93 11-23-2022, 08:31 PM
Last Post: Rschnauzer
  Security Error Message in Firefox Rschnauzer 3 990 06-27-2022, 08:42 AM
Last Post: Larryjisa
  how to compile pilight with custom protocol code? am i missing something? stanwebber 2 982 07-05-2021, 03:49 AM
Last Post: stanwebber
  Staging does not compile with new backtrace? akloeckner 1 824 05-16-2021, 07:48 AM
Last Post: akloeckner
  rpi3 Buster Compile Error Nikau 9 4,364 03-26-2020, 08:47 AM
Last Post: tvdgeer
  ERROR: The Broadcom 2835 GPIO 0 is not set to output mode stuckinger 10 5,371 05-07-2019, 09:11 PM
Last Post: curlymo
  v8.1.3 compile error without https fourty2 3 3,032 11-21-2018, 08:02 PM
Last Post: fourty2
  Assert error in v8.1.3-nightly-d2ee2d0d Ulrich.Arnold 4 3,033 10-24-2018, 09:28 PM
Last Post: curlymo
  How to compile pilight for your OpenWRT Router frenchie71 4 7,249 11-11-2017, 03:29 PM
Last Post: frenchie71
  [solved] Webgui 404-Error PT-Biker 2 3,169 11-11-2017, 09:49 AM
Last Post: PT-Biker

Forum Jump:


Browsing: 1 Guest(s)