rvp
You did install the comp71.tgz
package during install, right?
I did. Currently running a snapshot:
sysctl kern.version
kern.version=OpenBSD 7.2-current (GENERIC.MP) #823: Wed Nov 2 11:56:37 MDT 2022
deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
clang -v
OpenBSD clang version 13.0.0
Target: amd64-unknown-openbsd7.2
Thread model: posix
InstalledDir: /usr/bin
But first tried compiling while on 7.1 stable, the linked log is from 7.1, looks same after upgrade.
It should be present in:
$ find /usr/ -name cc1plus 2>/dev/null
/usr/lib/gcc-lib/amd64-unknown-openbsd6.9/4.2.1/cc1plus
On my machine find /usr/ -name cc1plus 2>/dev/null
prints nothing, and directory /usr/lib/gcc-lib/
doesn't exist.
Tried with both gcc 11 and 8 - neither.
The line /usr/lib/gcc-lib/amd64-unknown-openbsd6.9/4.2.1/cc1plus
suggests that this cc1plus
is from comp69.tgz
, not from port. 6.9 was the last one with old v.4 gcc
in OpenBSD base; 7.0 and newer come without gcc
.
b) why is Blender using egcc
instead of the system compiler for compilation?:
Not Blender itself but Animation Nodes - a module for Blender.
gcc
is the compiler that Animation Nodes invokes from its build script for unix-like OSes.
Actually, Animation Nodes build script only supports Windows, Mac and Linux, whereas all others are Exception: unknown OS
I adjusted 4 build files and created compile_openbsd.sh
having copied it from compile_macos.sh
Due to my lack of experience with compilers, I didn't replace gcc
with clang
- there are gcc
options that I am afraid need adjusting to clang
, which I don't know how to do, so I thought since gcc
is available on OpenBSD, I would just use gcc
.
By saying that clang
also fails I actually meant CC=clang CXX=clang++ python3 setup.py build
which does change error output although further on, after the cc1plus
part, as calling egcc
is hardcoded into the build script. Sorry for originally putting misleading description.
I will not bother you with properly porting Animation Nodes to OpenBSD for me, the questions I ask are:
- if
cc1plus
is the actual GCC C++ compiler, and GCC is available on OpenBSD, then where is the cc1plus
?
egcc -v
says Configured with: ... --enable-languages=c,c++,fortran,objc,ada,d
. C++ is enabled, so cc1plus
should be present?
- If not, there should be another way to compile C++ as it is among
--enabled-languages
?