Page 1 of 1

Standalone Longmynd Installation

Posted: Wed May 04, 2022 3:23 pm
by zr6tg
Hi All,

I'm looking into getting a standalone longmynd installed from (https://github.com/philcrump/longmynd/) on a freshly installed pi. I'm getting the following compilation error thought:

Code: Select all

Compiling longmynd with GCC 10.2.1 on arm-linux-gnueabihf
INFO: Need to [re]initialize git submodules
Submodule 'web/libwebsockets' (https://github.com/warmcat/libwebsockets.git) registered for path 'web/libwebsockets'
Cloning into '/home/pi/longmynd/web/libwebsockets'...
Submodule path 'web/libwebsockets': checked out 'd18e1db72c0032fe26912e578ada320e9665acff'
INFO: Need to compile libwebsockets
-- The C compiler identification is GNU 10.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Compiled with LWS_WITH_DIR and LWS_WITH_LEJP_CONF
Deselecting EVLIB_PLUGINS since building static
-- Found Git: /usr/bin/git (found version "2.30.2")
Git commit hash: v4.1.6-12-gd18e1db7
-- Performing Test LWS_HAVE_inline
-- Performing Test LWS_HAVE_inline - Success
-- Performing Test LWS_HAVE___inline__
-- Performing Test LWS_HAVE___inline__ - Success
-- Performing Test LWS_HAVE___inline
-- Performing Test LWS_HAVE___inline - Success
-- Performing Test LWS_HAVE_MALLOC_TRIM
-- Performing Test LWS_HAVE_MALLOC_TRIM - Success
-- Performing Test LWS_HAVE_MALLOC_USABLE_SIZE
-- Performing Test LWS_HAVE_MALLOC_USABLE_SIZE - Success
-- Looking for fork
-- Looking for fork - found
-- Looking for getenv
-- Looking for getenv - found
-- Looking for malloc
-- Looking for malloc - found
-- Looking for memset
-- Looking for memset - found
-- Looking for realloc
-- Looking for realloc - found
-- Looking for socket
-- Looking for socket - found
-- Looking for strerror
-- Looking for strerror - found
-- Looking for vfork
-- Looking for vfork - found
-- Looking for execvpe
-- Looking for execvpe - found
-- Looking for getifaddrs
-- Looking for getifaddrs - found
-- Looking for snprintf
-- Looking for snprintf - found
-- Looking for _snprintf
-- Looking for _snprintf - not found
-- Looking for _vsnprintf
-- Looking for _vsnprintf - not found
-- Looking for getloadavg
-- Looking for getloadavg - found
-- Looking for atoll
-- Looking for atoll - found
-- Looking for _atoi64
-- Looking for _atoi64 - not found
-- Looking for _stat32i64
-- Looking for _stat32i64 - not found
-- Looking for clock_gettime
-- Looking for clock_gettime - found
-- Looking for in6addr.h
-- Looking for in6addr.h - not found
-- Looking for memory.h
-- Looking for memory.h - found
-- Looking for netinet/in.h
-- Looking for netinet/in.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stdlib.h
-- Looking for stdlib.h - found
-- Looking for strings.h
-- Looking for strings.h - found
-- Looking for string.h
-- Looking for string.h - found
-- Looking for sys/prctl.h
-- Looking for sys/prctl.h - found
-- Looking for sys/socket.h
-- Looking for sys/socket.h - found
-- Looking for sys/sockio.h
-- Looking for sys/sockio.h - not found
-- Looking for sys/stat.h
-- Looking for sys/stat.h - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for vfork.h
-- Looking for vfork.h - not found
-- Looking for sys/capability.h
-- Looking for sys/capability.h - not found
-- Looking for malloc.h
-- Looking for malloc.h - found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for inttypes.h
-- Looking for inttypes.h - found
-- Looking for sys/resource.h
-- Looking for sys/resource.h - found
-- Looking for cap_set_flag in cap
-- Looking for cap_set_flag in cap - not found
-- Looking for 3 include files stdlib.h, ..., string.h
-- Looking for 3 include files stdlib.h, ..., string.h - found
-- Performing Test LWS_HAS_INTPTR_T
-- Performing Test LWS_HAS_INTPTR_T - Success
-- Performing Test LWS_HAS_PTHREAD_SETNAME_NP
-- Performing Test LWS_HAS_PTHREAD_SETNAME_NP - Failed
-- Performing Test LWS_HAS_GETOPT_LONG
-- Performing Test LWS_HAS_GETOPT_LONG - Success
-- Performing Test LWS_HAVE_VISIBILITY
-- Performing Test LWS_HAVE_VISIBILITY - Success
-- Performing Test LWS_GCC_HAS_IGNORED_QUALIFIERS
-- Performing Test LWS_GCC_HAS_IGNORED_QUALIFIERS - Success
-- Performing Test LWS_GCC_HAS_TYPE_LIMITS
-- Performing Test LWS_GCC_HAS_TYPE_LIMITS - Success
-- Looking for eventfd_read
-- Looking for eventfd_read - found
-- Performing Test LWS_HAVE_PIPE2
-- Performing Test LWS_HAVE_PIPE2 - Success
-- Performing Test LWS_HAVE_TCP_USER_TIMEOUT
-- Performing Test LWS_HAVE_TCP_USER_TIMEOUT - Success
DIR /home/pi/longmynd/web/libwebsockets/build CMP /home/pi/longmynd/web/libwebsockets/cmake
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pi/longmynd/web/libwebsockets/build
make[1]: Entering directory '/home/pi/longmynd/web/libwebsockets/build'
make[2]: Entering directory '/home/pi/longmynd/web/libwebsockets/build'
make[3]: Entering directory '/home/pi/longmynd/web/libwebsockets/build'
Scanning dependencies of target GENHDR
make[3]: Leaving directory '/home/pi/longmynd/web/libwebsockets/build'
make[3]: Entering directory '/home/pi/longmynd/web/libwebsockets/build'
[  1%] Creating build include dir
make[3]: Leaving directory '/home/pi/longmynd/web/libwebsockets/build'
[  1%] Built target GENHDR
make[3]: Entering directory '/home/pi/longmynd/web/libwebsockets/build'
Scanning dependencies of target websockets
make[3]: Leaving directory '/home/pi/longmynd/web/libwebsockets/build'
make[3]: Entering directory '/home/pi/longmynd/web/libwebsockets/build'
[  3%] Building C object lib/CMakeFiles/websockets.dir/plat/unix/unix-caps.c.o
[  5%] Building C object lib/CMakeFiles/websockets.dir/plat/unix/unix-misc.c.o
during RTL pass: reload
/home/pi/longmynd/web/libwebsockets/lib/plat/unix/unix-misc.c: In function ‘lws_now_usecs’:
/home/pi/longmynd/web/libwebsockets/lib/plat/unix/unix-misc.c:60:1: internal compiler error: Segmentation fault
   60 | }
      | ^
0xb6a1ed9f ???
        ../sysdeps/unix/sysv/linux/arm/sigrestorer.S:64
0xb6a06bdf __libc_start_main
        ./csu/libc-start.c:308
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-10/README.Bugs> for instructions.
make[3]: *** [lib/CMakeFiles/websockets.dir/build.make:95: lib/CMakeFiles/websockets.dir/plat/unix/unix-misc.c.o] Error 1
make[3]: Leaving directory '/home/pi/longmynd/web/libwebsockets/build'
make[2]: *** [CMakeFiles/Makefile2:1321: lib/CMakeFiles/websockets.dir/all] Error 2
make[2]: Leaving directory '/home/pi/longmynd/web/libwebsockets/build'
make[1]: *** [Makefile:182: all] Error 2
make[1]: Leaving directory '/home/pi/longmynd/web/libwebsockets/build'
make: *** [Makefile:76: check-lws] Error 2
Anyone experienced this before ? Dependencies installed as per github docs

T

Re: Standalong Longmynd Installation

Posted: Wed May 04, 2022 7:05 pm
by G8GKQ
Hi

Phil's longmynd is not the clean install. He has many other functions in his personal build.

Try this one: https://github.com/BritishAmateurTelevi ... b/longmynd

Dave

Re: Standalone Longmynd Installation

Posted: Sat May 07, 2022 10:45 am
by zr6tg
Hi Dave,

Thanks, but looking specifically to use that version. Also having the same issue with the batc version, so might be on my side. I've got Phil's version working on a linux machine for now for testing. I'll setup a new clean pi and try again :)

Thanks,
Tom

Re: Standalone Longmynd Installation

Posted: Mon May 09, 2022 8:02 am
by zr6tg
All sorted, looks like best version to use currently is Raspberry PI OS (Legacy) - Buster - 2022-04-04 version

Basic instructions for future reference :)

Code: Select all

sudo apt-get install cmake git make gcc libusb-1.0-0-dev libasound2-dev
git clone https://github.com/philcrump/longmynd.git
cd longmynd && make
sudo cp minitiouner.rules /etc/udev/rules.d/
Thanks!