Quantcast
Viewing all articles
Browse latest Browse all 5091

Advanced users • Re: Argon One Replacement Daemon

UPDATE::

The new changes to the build system are now merged into 0.5.x

I've also decided to not depreciate the argonone-cli tool at least for now in 0.5.x
Sorry about the delay. Downloaded the new argononed-0.5.x.zip
Ran install on pi5:

Code:

>>> Reset build to mrproper...>>> Running prebuild configuration...ARGON ONE DAEMON CONFIGURING ...Distro check [rpios] : OKSYSTEM CHECKgcc : OKdtc : OKmake : OKI2C Bus check : ENABLEDCHECKING OPTIONAL SYSTEMSbash-autocomplete : OKlogrotate : INSTALLEDDependency Check : Successful>>> Building...MAKE: args.amake[1]: Entering directory '/home/townleyc/argononed-0.5.x/src/args'Compile args.cgcc -c -o ../../build/args.o args.c -Wall -s -O3 -DLOG_LEVEL=5args.c: In function ‘ap_handle_equals_opt’:args.c:1127:9: warning: pointer used after ‘free’ [-Wuse-after-free] 1127 |         exit_with_error("%s%s is not a recognised option name", prefix, name);      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~args.c:1126:9: note: call to ‘free’ here 1126 |         free(array);      |         ^~~~~~~~~~~args.c:1132:9: warning: pointer used after ‘free’ [-Wuse-after-free] 1132 |         exit_with_error("flag %s%s does not accept a value", prefix, name);      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~args.c:1131:9: note: call to ‘free’ here 1131 |         free(array);      |         ^~~~~~~~~~~args.c:1137:9: warning: pointer used after ‘free’ [-Wuse-after-free] 1137 |         exit_with_error("missing value for %s%s", prefix, name);      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~args.c:1136:9: note: call to ‘free’ here 1136 |         free(array);      |         ^~~~~~~~~~~BUILD args.aar rsc ../../build/args.a ../../build/args.omake[1]: Leaving directory '/home/townleyc/argononed-0.5.x/src/args'MAKE: commonmake[1]: Entering directory '/home/townleyc/argononed-0.5.x/src/common'Compile arc_devkit.cgcc -c -o ../../build/arc_devkit.o arc_devkit.c -Wall -s -O3 -I ../daemon -I ../common -I ../args -DLOG_LEVEL=5 -Wno-missing-bracesCompile event_timer.cgcc -c -o ../../build/event_timer.o event_timer.c -Wall -s -O3 -I ../daemon -I ../common -I ../args -DLOG_LEVEL=5 -Wno-missing-bracesCompile logger.cgcc -c -o ../../build/logger.o logger.c -Wall -s -O3 -I ../daemon -I ../common -I ../args -DLOG_LEVEL=5 -Wno-missing-bracesCompile shm_client.cgcc -c -o ../../build/shm_client.o shm_client.c -Wall -s -O3 -I ../daemon -I ../common -I ../args -DLOG_LEVEL=5 -Wno-missing-bracesmake[1]: Leaving directory '/home/townleyc/argononed-0.5.x/src/common'MAKE: argononedmake[1]: Entering directory '/home/townleyc/argononed-0.5.x/src/daemon'Compile argononed.cgcc -c -o ../../build/argononed.o argononed.c -Wall -s -O3 -I ../common -I ../args -DLOG_LEVEL=5 -Wno-missing-bracesCompile argonone_config.cgcc -c -o ../../build/argonone_config.o argonone_config.c -Wall -s -O3 -I ../common -I ../args -DLOG_LEVEL=5 -Wno-missing-bracesCompile argonone_shm.cgcc -c -o ../../build/argonone_shm.o argonone_shm.c -Wall -s -O3 -I ../common -I ../args -DLOG_LEVEL=5 -Wno-missing-bracesCompile argonone_ipc.cgcc -c -o ../../build/argonone_ipc.o argonone_ipc.c -Wall -s -O3 -I ../common -I ../args -DLOG_LEVEL=5 -Wno-missing-bracesBUILD argononedgcc -o ../../build/argononed ../../build/argononed.o ../../build/argonone_config.o ../../build/argonone_shm.o ../../build/argonone_ipc.o ../../build/args.a ../../build/logger.o ../../build/event_timer.o -Wall -s -O3 -lpthread -lrtmake[1]: Leaving directory '/home/townleyc/argononed-0.5.x/src/daemon'MAKE: argonone-shutdownmake[1]: Entering directory '/home/townleyc/argononed-0.5.x/src/daemon'BUILD argonone-shutdowngcc -o ../../build/argonone-shutdown argonone-shutdown.c -Wall -s -O3 -lpthread -lrtmake[1]: Leaving directory '/home/townleyc/argononed-0.5.x/src/daemon'MAKE: Daemon CompleteMAKE: argonone-climake[1]: Entering directory '/home/townleyc/argononed-0.5.x/src/cli-tool'BUILD argonone-cligcc -o ../../build/argonone-cli argonone-cli.c -Wall -s -O3 -lpthread -lrt -I ../common -I ../argsmake[1]: Leaving directory '/home/townleyc/argononed-0.5.x/src/cli-tool'MAKE: CLIMAKE: argonone.dtbomake[1]: Entering directory '/home/townleyc/argononed-0.5.x/src/overlay'Build argonone.dtbodtc -@ -I dts -O dtb -o ../../build/argonone.dtbo argonone.dtsmake[1]: Leaving directory '/home/townleyc/argononed-0.5.x/src/overlay'MAKE: OverlayMAKE: Complete>>> Installing...Installing overlay Successful  search /boot/firmware/config.txt for overlay ... FOUNDCheck for module i2c-dev  FOUNDInstalling daemon SuccessfulInstalling CLI SuccessfulInstalling CLI autocomplete for bash SuccessfulInstalling servicesargononed.service ... Successfulargonone-shutdown ... SuccessfulRefresh services listEnable Service SuccessfulStarting Service SuccessfulInstall Complete>>>  Complete
New warnings I think...

Chris
No problem, no need to apologise we a have other things to do. I am just glad of the help.

Okay I did see those warnings only when building only with Bookworm so it looks like the args library I found has another issue I need to fix. I tried to contact the author already with another issue but they didn't reply so I'm on my own.

I found the problem in the original source and my copy so I need to figure this out. It's an error message and exit and the pointer has been freed so the data is no longer valid.

Statistics: Posted by DarkElvenAngel — Thu Mar 14, 2024 3:53 pm



Viewing all articles
Browse latest Browse all 5091

Trending Articles