Sourcetrail icon indicating copy to clipboard operation
Sourcetrail copied to clipboard

Not fully usable on FreeBSD

Open p-kraszewski opened this issue 4 years ago • 0 comments

I know FreeBSD is not supported, but...

Running a binary version via Linuxlator

  • Application itself starts and runs properly (menus, options, graphics, browsing, etc)
  • There's some heavy problem with indexer - it goes bonkers even with the simplest (a single C file) applications from /usr/src: the primary problem is "Includes? What includes?", especially it ignores explicit #include <sys/cdefs.h>, which ruins any future include (a.k.a. this file needs sys/cdefs.h as a prerequisite). I suppose it might be the case of the way Linuxlator works, potentially shadowing /usr/include with /compat/linux/usr/include, which is an obvious no-no for the source of FreeBSD applications.

EDIT - Workaround: I confirmed, when there was a file in both /usr/include and /compat/linux/usr/include, Sourcetrail is served with Linux version, breaking stuff. I've renamed /compat/linux/usr/include to /compat/linux/usr/include-off and things started to work properly.

Running self-compiled version

Compilation environment

  • Uses packaged boost 1.72.0
  • Uses packaged llvm 11.0.1 (which also provides matching clang)
  • Uses packaged qt 5.15.2_1

Results

  • For current version 2021.1.30 it starts, but any tool window (new project, edit project) hangs hard.
  • For the previous version 2021.1 it starts, tool windows work properly, but indexer either hangs hard or just ignores any includes whatsoever.

Is there any way to use the full potential of Sourcetrail on FreeBSD?

p-kraszewski avatar Jun 10 '21 15:06 p-kraszewski