How to upgrade version of clang and LLVM?

52 views
Skip to first unread message

Pierre Métras

unread,
Jun 13, 2016, 3:16:25 PM6/13/16
to minix3
Hello,

I need to have running a more recent version of clang and LLVM on Minix 3.4.0. What would be the approach to update the current version?


Also when searching for header files, I've noticed that there are two versions of these files installed:
- /sur/pkg/include/llvm
- /usr/src/minix/external/bsd/llvm/dist/llvm/include/llvm
this later version seems more recent than the previous one.

So it seems that Minix was needing an updated version of llvm like me. Why this version is not becoming the system one?

Thanks
--
Pierre Métras

Jean-Baptiste Boric

unread,
Jun 14, 2016, 12:26:24 PM6/14/16
to minix3
I need to have running a more recent version of clang and LLVM on Minix 3.4.0. What would be the approach to update the current version?

For the system compiler, same as updating LLVM on NetBSD : replace external/bsd/llvm/dist in MINIX's source code with a more recent version and hack until it works. But it isn't recommended since MINIX tries to keep differences with upstream (NetBSD's source code) at a minimum to keep maintenance burden as low as possible.

You can also try pkgsrc (more specifically, importing a more recent pkgsrc than the latest available from MINIX, which would bring a more recent LLVM as a side-effect).

I guess the second option would be far easier than the first one. Mostly because you won't deal with the fallout of the NetBSD build framework breaking because you upgraded the system compiler.

Also when searching for header files, I've noticed that there are two versions of these files installed:
- /sur/pkg/include/llvm
- /usr/src/minix/external/bsd/llvm/dist/llvm/include/llvm
this later version seems more recent than the previous one.

So it seems that Minix was needing an updated version of llvm like me. Why this version is not becoming the system one?

The first version is from pkgsrc, the package manager. The second version is from MINIX's source tree code and is the compiler used by default. The pkgsrc version will tend to lag behind as MINIX's pkgsrc is updated less frequently than MINIX's source code.
Reply all
Reply to author
Forward
0 new messages