Compile problems on t114 branch in ubuntu

Moderator: Telldus

Post Reply
JohnHaraldOien
Posts: 4
Joined: Fri Mar 17, 2023 9:45 am

Compile problems on t114 branch in ubuntu

Post by JohnHaraldOien »

Hi. I`m having a little struggle compiling the t114 branch of the firmware for tellstick-net
I am using ubuntu and picc18 version 9.66 and basicly do anything in the t114 howto. But it fails on something not compiling. The error message is as follows:
-- Build files have been written to: /home/john/telldus/tellstick-net/build
john@jvmUbuntu:~/telldus/tellstick-net/build$ make
[ 1%] Linking TellStickNet.hex
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.66
Copyright (C) 1984-2011 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
/home/john/telldus/tellstick-net/tcpip/ETH97J60.c: 338: (750) constant operand to || or && (warning)
/home/john/telldus/tellstick-net/tcpip/ETH97J60.c: 338: (764) mismatched comparison (warning)
plib/i2c/i2c1eeap.c: 24: (764) mismatched comparison (warning)
plib/i2c/i2c1eeap.c: 36: (764) mismatched comparison (warning)
/home/john/telldus/tellstick-net/tcpip/Helpers.c: 249: (712) can't generate code for this expression
/home/john/telldus/tellstick-net/tcpip/TCP.c: 2009: (1257) local variable "_buffer" is used but never given a value (warning)
(908) exit status = 1
make[2]: *** [TellStickNet.hex] Error 1
make[1]: *** [CMakeFiles/TellStickNet.dir/all] Error 2
make: *** [all] Error 2

As a c# developer this environment and messages isn't my package of glue if you catch my drift.
Any help appreciated.

What I am trying to accomplish is a working environment with local access to my tellstick-net from my home automationsystem written in C# /.net witch should be a no brainer but turns out to be a hair puller ;)

Tried again with a fresh get of everything and this is my terminal transcript:
john@jvmUbuntu:~/telldus/t114/tellstick-net/build$ cmake ../firmware -DPICC18_PATH=/usr/hitech/picc-18/pro/9.66/bin/picc18 -DDEBUG=no -DDEVICE_ADDRESS=192.168.1.107
-- The C compiler identification is GNU 4.7.3
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/john/telldus/t114/tellstick-net/build
john@jvmUbuntu:~/telldus/t114/tellstick-net/build$ make
Scanning dependencies of target TellStickNet
[ 1%] Compiling common.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.66
Copyright (C) 1984-2011 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 2%] Compiling discovery.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.66
Copyright (C) 1984-2011 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 4%] Compiling eeprom.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.66
Copyright (C) 1984-2011 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 5%] Compiling livemessage.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.66
Copyright (C) 1984-2011 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
/home/john/telldus/t114/tellstick-net/firmware/livemessage.c: 270: (171) wrong number of preprocessor macro arguments for "printf" (1 instead of 0) (warning)
/home/john/telldus/t114/tellstick-net/firmware/livemessage.c: 274: (171) wrong number of preprocessor macro arguments for "printf" (1 instead of 0) (warning)
/home/john/telldus/t114/tellstick-net/firmware/livemessage.c: 286: (171) wrong number of preprocessor macro arguments for "printf" (2 instead of 0) (warning)
[ 7%] Compiling localaccess.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.66
Copyright (C) 1984-2011 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 8%] Compiling main.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.66
Copyright (C) 1984-2011 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
/home/john/telldus/t114/tellstick-net/firmware/main.c: 136: (171) wrong number of preprocessor macro arguments for "printf" (2 instead of 0) (warning)
[ 10%] Compiling message.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.66
Copyright (C) 1984-2011 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 11%] Compiling pwm.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.66
Copyright (C) 1984-2011 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 13%] Compiling rf.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.66
Copyright (C) 1984-2011 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
/usr/hitech/picc-18/pro/9.66/include/legacy/ppic18f67j60.h:28: error[985]: qualifiers redeclared
/usr/hitech/picc-18/pro/9.66/include/legacy/ppic18f67j60.h:28: error[1098]: conflicting declarations for variable "GODONE" (/usr/hitech/picc-18/pro/9.66/include/pic18f67j60.h:2596)
make[2]: *** [rf.p1] Error 1
make[1]: *** [CMakeFiles/TellStickNet.dir/all] Error 2
make: *** [all] Error 2
john@jvmUbuntu:~/telldus/t114/tellstick-net/build$ make
[ 1%] Compiling send.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.66
Copyright (C) 1984-2011 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 2%] Compiling tellsticknet.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.66
Copyright (C) 1984-2011 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
/home/john/telldus/t114/tellstick-net/firmware/tellsticknet.c: 57: (171) wrong number of preprocessor macro arguments for "printf" (1 instead of 0) (warning)
[ 4%] Compiling /home/john/telldus/t114/tellstick-net/rf/arctech.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.66
Copyright (C) 1984-2011 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 5%] Compiling /home/john/telldus/t114/tellstick-net/rf/crc.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.66
Copyright (C) 1984-2011 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 7%] Compiling /home/john/telldus/t114/tellstick-net/rf/everflourish.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.66
Copyright (C) 1984-2011 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 8%] Compiling /home/john/telldus/t114/tellstick-net/rf/fineoffset.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.66
Copyright (C) 1984-2011 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 10%] Compiling /home/john/telldus/t114/tellstick-net/rf/mandolyn.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.66
Copyright (C) 1984-2011 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 11%] Compiling /home/john/telldus/t114/tellstick-net/rf/oregon.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.66
Copyright (C) 1984-2011 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 13%] Compiling /home/john/telldus/t114/tellstick-net/rf/receive.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.66
Copyright (C) 1984-2011 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
/usr/hitech/picc-18/pro/9.66/include/legacy/ppic18f67j60.h:28: error[985]: qualifiers redeclared
/usr/hitech/picc-18/pro/9.66/include/legacy/ppic18f67j60.h:28: error[1098]: conflicting declarations for variable "GODONE" (/usr/hitech/picc-18/pro/9.66/include/pic18f67j60.h:2596)
make[2]: *** [RF/receive.p1] Error 1
make[1]: *** [CMakeFiles/TellStickNet.dir/all] Error 2
make: *** [all] Error 2
john@jvmUbuntu:~/telldus/t114/tellstick-net/build$ make
[ 1%] Compiling /home/john/telldus/t114/tellstick-net/rf/transmit.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.66
Copyright (C) 1984-2011 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
/usr/hitech/picc-18/pro/9.66/include/legacy/ppic18f67j60.h:28: error[985]: qualifiers redeclared
/usr/hitech/picc-18/pro/9.66/include/legacy/ppic18f67j60.h:28: error[1098]: conflicting declarations for variable "GODONE" (/usr/hitech/picc-18/pro/9.66/include/pic18f67j60.h:2596)
/home/john/telldus/t114/tellstick-net/rf/transmit.c: 61: (359) illegal conversion between pointer types (warning)
make[2]: *** [RF/transmit.p1] Error 1
make[1]: *** [CMakeFiles/TellStickNet.dir/all] Error 2
make: *** [all] Error 2
john@jvmUbuntu:~/telldus/t114/tellstick-net/build$ make
[ 1%] Compiling /home/john/telldus/t114/tellstick-net/rf/x10.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.66
Copyright (C) 1984-2011 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 2%] Compiling /home/john/telldus/t114/tellstick-net/tcpip/ARP.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.66
Copyright (C) 1984-2011 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 4%] Compiling /home/john/telldus/t114/tellstick-net/tcpip/Helpers.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.66
Copyright (C) 1984-2011 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
/home/john/telldus/t114/tellstick-net/tcpip/Helpers.c:247: error[255]: not a member of the struct/union ""
/home/john/telldus/t114/tellstick-net/tcpip/Helpers.c:247: error[182]: illegal conversion between types
/home/john/telldus/t114/tellstick-net/tcpip/Helpers.c:249: error[255]: not a member of the struct/union ""
/home/john/telldus/t114/tellstick-net/tcpip/Helpers.c:249: error[199]: logical type required
make[2]: *** [TCPIP/Helpers.p1] Error 1
make[1]: *** [CMakeFiles/TellStickNet.dir/all] Error 2
make: *** [all] Error 2
john@jvmUbuntu:~/telldus/t114/tellstick-net/build$ make
[ 1%] Compiling /home/john/telldus/t114/tellstick-net/tcpip/ICMP.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.66
Copyright (C) 1984-2011 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 2%] Compiling /home/john/telldus/t114/tellstick-net/tcpip/IP.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.66
Copyright (C) 1984-2011 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 4%] Compiling /home/john/telldus/t114/tellstick-net/tcpip/StackTsk.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.66
Copyright (C) 1984-2011 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 5%] Compiling /home/john/telldus/t114/tellstick-net/tcpip/Tick.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.66
Copyright (C) 1984-2011 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 7%] Compiling /home/john/telldus/t114/tellstick-net/tcpip/Reboot.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.66
Copyright (C) 1984-2011 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 8%] Compiling /home/john/telldus/t114/tellstick-net/tcpip/DNS.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.66
Copyright (C) 1984-2011 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 10%] Compiling /home/john/telldus/t114/tellstick-net/tcpip/DHCP.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.66
Copyright (C) 1984-2011 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 11%] Compiling /home/john/telldus/t114/tellstick-net/tcpip/UDP.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.66
Copyright (C) 1984-2011 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 13%] Compiling /home/john/telldus/t114/tellstick-net/tcpip/ETH97J60.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.66
Copyright (C) 1984-2011 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
/usr/hitech/picc-18/pro/9.66/include/legacy/ppic18f67j60.h:28: error[985]: qualifiers redeclared
/usr/hitech/picc-18/pro/9.66/include/legacy/ppic18f67j60.h:28: error[1098]: conflicting declarations for variable "GODONE" (/usr/hitech/picc-18/pro/9.66/include/pic18f67j60.h:2596)
make[2]: *** [TCPIP/ETH97J60.p1] Error 1
make[1]: *** [CMakeFiles/TellStickNet.dir/all] Error 2
make: *** [all] Error 2
john@jvmUbuntu:~/telldus/t114/tellstick-net/build$ make
[ 1%] Compiling /home/john/telldus/t114/tellstick-net/tcpip/TCP.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.66
Copyright (C) 1984-2011 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
/home/john/telldus/t114/tellstick-net/tcpip/TCP.c: 2088: (343) implicit return at end of non-void function (warning)
/home/john/telldus/t114/tellstick-net/tcpip/TCP.c: 2264: (343) implicit return at end of non-void function (warning)
[ 2%] Compiling /home/john/telldus/t114/tellstick-net/tcpip/Hashes.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.66
Copyright (C) 1984-2011 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 4%] Linking TellStickNet.hex
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.66
Copyright (C) 1984-2011 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
/home/john/telldus/t114/tellstick-net/tcpip/ETH97J60.c: 338: (750) constant operand to || or && (warning)
/home/john/telldus/t114/tellstick-net/tcpip/ETH97J60.c: 338: (764) mismatched comparison (warning)
plib/i2c/i2c1eeap.c: 24: (764) mismatched comparison (warning)
plib/i2c/i2c1eeap.c: 36: (764) mismatched comparison (warning)
/home/john/telldus/t114/tellstick-net/tcpip/Helpers.c: 249: (712) can't generate code for this expression
/home/john/telldus/t114/tellstick-net/tcpip/TCP.c: 2009: (1257) local variable "_buffer" is used but never given a value (warning)
(908) exit status = 1
make[2]: *** [TellStickNet.hex] Error 1
make[1]: *** [CMakeFiles/TellStickNet.dir/all] Error 2
make: *** [all] Error 2
john@jvmUbuntu:~/telldus/t114/tellstick-net/build$ make
[ 1%] Linking TellStickNet.hex
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.66
Copyright (C) 1984-2011 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
/home/john/telldus/t114/tellstick-net/tcpip/ETH97J60.c: 338: (750) constant operand to || or && (warning)
/home/john/telldus/t114/tellstick-net/tcpip/ETH97J60.c: 338: (764) mismatched comparison (warning)
plib/i2c/i2c1eeap.c: 24: (764) mismatched comparison (warning)
plib/i2c/i2c1eeap.c: 36: (764) mismatched comparison (warning)
/home/john/telldus/t114/tellstick-net/tcpip/Helpers.c: 249: (712) can't generate code for this expression
/home/john/telldus/t114/tellstick-net/tcpip/TCP.c: 2009: (1257) local variable "_buffer" is used but never given a value (warning)
(908) exit status = 1
make[2]: *** [TellStickNet.hex] Error 1
make[1]: *** [CMakeFiles/TellStickNet.dir/all] Error 2
make: *** [all] Error 2
john@jvmUbuntu:~/telldus/t114/tellstick-net/build$ make
[ 1%] Linking TellStickNet.hex
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.66
Copyright (C) 1984-2011 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
/home/john/telldus/t114/tellstick-net/tcpip/ETH97J60.c: 338: (750) constant operand to || or && (warning)
/home/john/telldus/t114/tellstick-net/tcpip/ETH97J60.c: 338: (764) mismatched comparison (warning)
plib/i2c/i2c1eeap.c: 24: (764) mismatched comparison (warning)
plib/i2c/i2c1eeap.c: 36: (764) mismatched comparison (warning)
/home/john/telldus/t114/tellstick-net/tcpip/Helpers.c: 249: (712) can't generate code for this expression
/home/john/telldus/t114/tellstick-net/tcpip/TCP.c: 2009: (1257) local variable "_buffer" is used but never given a value (warning)
(908) exit status = 1
make[2]: *** [TellStickNet.hex] Error 1
make[1]: *** [CMakeFiles/TellStickNet.dir/all] Error 2
make: *** [all] Error 2
john@jvmUbuntu:~/telldus/t114/tellstick-net/build$
kirtapnosslin
Posts: 1
Joined: Fri Mar 17, 2023 9:45 am

Re: Compile problems on t114 branch in ubuntu

Post by kirtapnosslin »

Hi,
I have the same problem. Compilation stops after:
root@akira:~/telldus/tellstick-net/build# make clean
root@akira:~/telldus/tellstick-net/build# make
[ 1%] Compiling common.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.66
Copyright (C) 1984-2011 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 2%] Compiling discovery.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.66
Copyright (C) 1984-2011 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 4%] Compiling eeprom.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.66
Copyright (C) 1984-2011 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 5%] Compiling livemessage.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.66
Copyright (C) 1984-2011 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
/root/telldus/tellstick-net/firmware/livemessage.c: 270: (171) wrong number of preprocessor macro arguments for "printf" (1 instead of 0) (warning)
/root/telldus/tellstick-net/firmware/livemessage.c: 274: (171) wrong number of preprocessor macro arguments for "printf" (1 instead of 0) (warning)
/root/telldus/tellstick-net/firmware/livemessage.c: 286: (171) wrong number of preprocessor macro arguments for "printf" (2 instead of 0) (warning)
[ 7%] Compiling localaccess.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.66
Copyright (C) 1984-2011 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 8%] Compiling main.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.66
Copyright (C) 1984-2011 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
/root/telldus/tellstick-net/firmware/main.c: 136: (171) wrong number of preprocessor macro arguments for "printf" (2 instead of 0) (warning)
[ 10%] Compiling message.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.66
Copyright (C) 1984-2011 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 11%] Compiling pwm.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.66
Copyright (C) 1984-2011 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
[ 13%] Compiling rf.c
HI-TECH C PRO for the PIC18 MCU Family (Lite) V9.66
Copyright (C) 1984-2011 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
/usr/hitech/picc-18/pro/9.66/include/legacy/ppic18f67j60.h:28: error[985]: qualifiers redeclared
/usr/hitech/picc-18/pro/9.66/include/legacy/ppic18f67j60.h:28: error[1098]: conflicting declarations for variable "GODONE" (/usr/hitech/picc-18/pro/9.66/include/pic18f67j60.h:2596)
make[2]: *** [rf.p1] Fel 1
make[1]: *** [CMakeFiles/TellStickNet.dir/all] Fel 2
make: *** [all] Fel 2
Post Reply