• 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
Staging does not compile with new backtrace?
#1
Hey,

I am running pilight in a Docker image. I am also trying to keep up to date with the latest staging branch. That is why I have set up an image compiling the sources here: 
https://github.com/akloeckner/pilight-do...Dockerfile
Code:
# Clone git repository
ARG REPOSITORY=https://www.github.com/pilight/pilight.git
ARG BRANCH=staging
RUN mkdir /pilight \
&& cd /pilight \
&& git clone -o upstream $REPOSITORY . \
&& git checkout -b $BRANCH upstream/$BRANCH \
&& chmod +x setup.sh

# Compile and install pilight
RUN cd /pilight \
&& ./setup.sh install\
&& ldconfig \
&& cp res/pilight.pem /etc/pilight/pilight.pem



Since the latest changes regarding error backtracing, I am receiving errors from the compilation:
https://github.com/akloeckner/pilight-do.../834952138

Code:
[...]
#10 42.09 [ 91%] Building C object CMakeFiles/pilight.dir/libs/pilight/lua_c/io/spi.c.o
#10 42.22 [ 91%] Built target pilight
#10 42.24 Scanning dependencies of target pilight_shared
#10 42.25 [ 91%] Linking C shared library libpilight.so
#10 42.40 [ 91%] Built target pilight_shared
#10 42.42 Scanning dependencies of target pilight-daemon
#10 42.43 [ 91%] Building C object CMakeFiles/pilight-daemon.dir/daemon.c.o
#10 43.39 [ 92%] Linking C executable pilight-daemon
#10 43.43 CMakeFiles/pilight-daemon.dir/daemon.c.o: In function `main':
#10 43.43 daemon.c:(.text.startup+0x24): undefined reference to `btstate'
#10 43.43 collect2: error: ld returned 1 exit status
#10 43.43 make[2]: *** [pilight-daemon] Error 1
#10 43.43 CMakeFiles/pilight-daemon.dir/build.make:99: recipe for target 'pilight-daemon' failed
#10 43.43 make[1]: *** [CMakeFiles/pilight-daemon.dir/all] Error 2
#10 43.43 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/pilight-daemon.dir/all' failed
#10 43.44 make: *** [all] Error 2
#10 43.44 Makefile:149: recipe for target 'all' failed

I am probably missing something very obvious. Or I discovered a bug. Could you point me in the good direction, please?

Thanks! Andreas
 
Reply
#2
With the latest commit to initialize backtrace only in debug mode, staging compiles for me again. Thanks!
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  how to compile pilight with custom protocol code? am i missing something? stanwebber 2 882 07-05-2021, 03:49 AM
Last Post: stanwebber
  Segfault at plua_metatable_index in staging branch mwka 2 1,121 08-17-2020, 09:36 PM
Last Post: mwka
  rpi3 Buster Compile Error Nikau 9 3,949 03-26-2020, 08:47 AM
Last Post: tvdgeer
  v8.1.3 compile error without https fourty2 3 2,910 11-21-2018, 08:02 PM
Last Post: fourty2
  How to compile pilight for your OpenWRT Router frenchie71 4 7,099 11-11-2017, 03:29 PM
Last Post: frenchie71
  Cross compile pilight Forumkel 4 6,274 07-28-2015, 11:34 AM
Last Post: Forumkel
  Bug Report: pilight will not compile if the ARP protocol is not specified UndeadKernel 1 3,406 05-01-2015, 09:41 PM
Last Post: curlymo
  compile error on cubieboard: relocation R_ARM_THM_MOVW_ABS_NC tpm88 6 10,303 08-02-2014, 03:04 PM
Last Post: tpm88

Forum Jump:


Browsing: 1 Guest(s)