EMC2/LinuxCNC Port Or Package

FreeBSD'ers,

How far has anybody gotten with porting LinuxCNC (used to be EMC2) to FreeBSD? Currently it's 'pre-packaged' with Ubuntu. I like PC-BSD/FreeBSD better! :)

Have A Nice Day!
 
I'm working on it. It's running fine, although in simulation-only mode for now. I'm slowly pushing my changes to the upstream, and will follow up with a proper port soon.
 
trasz@
Had a chance to test the cad/linuxcnc-devel port tonight and it loaded to the configuration selector. Looks Good. Build took quite a while.
You know the next question. When do we get more than simulaton..
Actually porting over the realtime stuff must have been fun.

Great Job. When I get a chance I want to test this on ARM. Will it build??

Dell E6430/3612QM/16GB/128GB SSD/FreeBSD11-RC1-amd64
 
I see on LinuxCNC forums where people are overclocking their Raspberry Pi to get it to perform better. So it is scraping on the low end of hardware requirements. I will stick with x86.

Would be nice to get this working with FreeBSD GPIO's.
 
Well I fired off a make install clean tonight on a RaspberryPi2. It took over 1 hour on a Ivy Bridge quad. So I am guessing 20-30 hours on Arm.

I am just discovering SSH's flexibility and it is great.
 
Well it failed after 8 hours compiling on RPi2. Was worth a try.

Code:
getarch_2nd.c:47:37: error: use of undeclared identifier
  'DGEMM_DEFAULT_UNROLL_N'
  printf("ZGEMM3M_UNROLL_N=%d\n", DGEMM_DEFAULT_UNROLL_N);
  ^
12 errors generated.
gmake[10]: *** [Makefile.prebuild:46: getarch_2nd] Error 1
Makefile:127: *** OpenBLAS: Detecting CPU failed. Please set TARGET explicitly,  e.g. make TARGET=your_cpu_target. Please read README for the detail..  Stop.
gmake[10]: Leaving directory '/usr/ports/math/openblas/work/OpenBLAS-0.2.18'
*** Error code 2

Stop.
make[9]: stopped in /usr/ports/math/openblas
*** Error code 1

Stop.
make[8]: stopped in /usr/ports/math/openblas
*** Error code 1

Stop.
make[7]: stopped in /usr/ports/math/suitesparse
*** Error code 1

Stop.
make[6]: stopped in /usr/ports/math/suitesparse
*** Error code 1

Stop.
make[5]: stopped in /usr/ports/math/py-numpy
*** Error code 1

Stop.
make[4]: stopped in /usr/ports/math/py-numpy
*** Error code 1

Stop.
make[3]: stopped in /usr/ports/graphics/py-PyOpenGL
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/graphics/py-PyOpenGL
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/x11-toolkits/py-gtkglext
*** Error code 1

Stop.
make: stopped in /usr/ports/cad/linuxcnc-devel
 
I give up on building this on Arm. Was worth a shot.

Code:
../kernel/arm/iamax_vfp.S../kernel/arm/iamax_vfp.S::339339::26../kernel/arm/iamax_vf  p.S: :339:26: error: error: unknown directive
unknown directive
  ..aarrmm ; . g;l o.bgalolb asmax_lk  s;m i.nf_ukn c;  s.mfauxn_k ;smc smin_27k : ;  serror: min_k:
  unknown directive
  a.xa  _ k :
 ^
  ^
rm ; .global samax_k ; .func samax_k ;samax_k:
  ^
gmake[3]: *** [Makefile.L1:538: smax_k.o] Error 1
gmake[3]: *** Waiting for unfinished jobs....
gmake[3]: *** [Makefile.L1:549: smin_k.o] Error 1
gmake[3]: *** [Makefile.L1:498: samax_k.o] Error 1
../kernel/arm/iamax_vfp.S:339:27: error: unknown directive
 .arm ; .global samin_k ; .func samin_k ;samin_k:
  ^
gmake[3]: *** [Makefile.L1:518: samin_k.o] Error 1
gmake[3]: Leaving directory '/usr/ports/math/openblas/work/OpenBLAS-0.2.18/kernel'
gmake[2]: *** [Makefile:138: libs] Error 1
gmake[2]: Leaving directory '/usr/ports/math/openblas/work/OpenBLAS-0.2.18'
*** Error code 2

Stop.
make[1]: stopped in /usr/ports/math/openblas
*** Error code 1

Stop.
make: stopped in /usr/ports/math/openblas
root@rpi2:/usr/ports/math/openblas #
 
How does this look?
Code:
root@rpi2:/usr/ports/math/openblas/work # gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc48/gcc/armv6-portbld-freebsd11.0/4.8.5/lto-wrapper
Target: armv6-portbld-freebsd11.0
Configured with: /usr/ports/lang/gcc/work/gcc-4.8.5/configure --disable-multilib --disable-bootstrap --disable-nls --enable-gnu-indirect-function --libdir=/usr/local/lib/gcc48 --libexecdir=/usr/local/libexec/gcc48 --program-suffix=48 --with-as=/usr/local/bin/as --with-gmp=/usr/local --with-gxx-include-dir=/usr/local/lib/gcc48/include/c++/ --with-ld=/usr/local/bin/ld --with-pkgversion='FreeBSD Ports Collection' --with-system-zlib --disable-libgcj --enable-languages=c,c++,objc,fortran --prefix=/usr/local --localstatedir=/var --mandir=/usr/local/man --infodir=/usr/local/info/gcc48 --build=armv6-portbld-freebsd11.0
Thread model: posix
gcc version 4.8.5 (FreeBSD Ports Collection)
 
Back
Top