LinuxCNC 2.10 build

  • bigmactx
  • bigmactx's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
02 Mar 2025 16:17 #323024 by bigmactx
LinuxCNC 2.10 build was created by bigmactx
I started a build for new CNC plasma table so here's my starting point.

CPU Ryzen 5 6C/12T 3.2Ghz 32G RAM, 550G SSD, Dual Ethernet ports
Ubuntu 24.04.02 - I know it's not "debian" but is what all other machines here run. Compatibility and support are the key deciding factors
PREEMPT-RT installed, Fairly minimal system with snap completely removed.
Stepper Drives (4ea) Stepper Online DM542T - have had excellent results with these in the past
Stepper Motors (4ea) Stepper Online 23HS30-2804S - again have worked well in past
Custom built frame from 2x2 16ga steel tubing. All Linear Rails SBR20. All Ball Screws SFU1605
Motion Controller Mesa Electronics 7i95T & THCAD2 - ordered and expected arrival in next few days
LinuxCNC version 2.10 being built from source.

I can successfully build the rip version without error and it appears to work correctly however as I mentioned I do not have the 7i95T in hand quite yet and it's not listed as an option in the opening config choices.

To get the full package I'm working to compile to get the .deb version and having some make problems.

Problem 1
I get lots of errors during the build of man pages. Some work but many report this error and often multiple times.

Making manpage sampler.9
<unknown>:1: SyntaxWarning: invalid escape sequence '\S'

I suspect this has to do with the fact that Ubuntu 24.04 uses python3.12. I haven't dug into to it but have had many problems in many projects with python version compatibility and this is known issue from 3.11 to 3.12. Any suggestions on how to fix this are welcome and sooner or later it'll have to be addressed anyway.


Problem 2
This is the end summary of the build

Compiling module_helper/module_helper.c
<command-line>: error: "_FORTIFY_SOURCE" redefined [-Werror]
<command-line>: note: this is the location of the previous definition
Compiling localized message catalog ../share/locale/ar/LC_MESSAGES/linuxcnc.mo
Compiling localized message catalog ../share/locale/bg/LC_MESSAGES/linuxcnc.mo
cc1: all warnings being treated as errors
make[2]: *** [Makefile:278: objects/module_helper/module_helper.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/home/plasma/Documents/linuxcnc-source-dir/src'
dh_auto_build: error: cd src && make -j12 build-software returned exit code 2
make[1]: *** [debian/rules:55: override_dh_auto_build-arch] Error 2
make[1]: Leaving directory '/home/plasma/Documents/linuxcnc-source-dir'
make: *** [debian/rules:43: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2

The _FORTIFY_SOURCE error shows up many times as well and probably isn't the only problem.

Again I know it's not debian but Ubuntu is derived from debian and the rip version compiles and works so I've very optimistic once I work out a few kinks this will too.

cc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
Copyright (C) 2023 Free Software Foundation, Inc.

Thanks for any and all suggestions. Mike

Please Log in or Create an account to join the conversation.

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
02 Mar 2025 17:42 #323032 by tommylight
Replied by tommylight on topic LinuxCNC 2.10 build
Try building with --nodocs or something like that
And 1605 will not work for thin metal sheets at all if the table is over 1 meter in length.
Use belts, 15mm thick are fine, 20-25mm wide should be perfect.
The following user(s) said Thank You: bigmactx

Please Log in or Create an account to join the conversation.

  • rodw
  • rodw's Avatar
  • Away
  • Platinum Member
  • Platinum Member
More
02 Mar 2025 20:19 #323046 by rodw
Replied by rodw on topic LinuxCNC 2.10 build
As Tommy said, balls screws are a poor choice as you can't get the speed out of them and they whip.
Either belts or rack and pinion (with 3:1 to 5:1 reduction)
nodocs has changed. refer the docs :)

linuxcnc.org/docs/devel/html/code/buildi...nc.html#_build_modes
The following user(s) said Thank You: tommylight, bigmactx

Please Log in or Create an account to join the conversation.

  • bigmactx
  • bigmactx's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
02 Mar 2025 21:48 #323054 by bigmactx
Replied by bigmactx on topic LinuxCNC 2.10 build
Thank you for your responses.

I tried the following:
DEB_BUILD_OPTIONS=nodocs dpkg-buildpackage -uc -B
DEB_BUILD_OPTIONS=nodocs dpkg-buildpackage -uc -b
and a few others but always get exactly the same result.

looking at man dpkg-buildpackage I see
-b equivalent to --build=binary or --build=any.all
-B equivalent to --build=any

nodocs isn't an option for DEB_BUILD_OPTIONS by default but it does note "that other options honored by debian/rules might be defined by distribution specific policies." So now I'm off chasing that down.

I also noted that under man dpkg-buildflags(1) there is some interesting info on fortify. I'll chase that later if that problem remains.

Could (I suspect) be distro related so I expect some settings/options will need to dialed in.

Please Log in or Create an account to join the conversation.

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
03 Mar 2025 00:00 #323059 by tommylight
Replied by tommylight on topic LinuxCNC 2.10 build
Ubuntu 24, so try this
sudo apt update
sudo apt install linuxcnc-uspace
That should install all the dependencies and a fairly recent version of 2.9.4
Wait, i just saw 2.0 ??? What? Why? How? hmmmmm...

Please Log in or Create an account to join the conversation.

  • bigmactx
  • bigmactx's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
03 Mar 2025 14:46 #323089 by bigmactx
Replied by bigmactx on topic LinuxCNC 2.10 build
yeah sorry about the typo in the title. should have been 2.10

Please Log in or Create an account to join the conversation.

More
04 Mar 2025 09:40 #323136 by Aciera
Replied by Aciera on topic LinuxCNC 2.10 build
The warnings in Problem 1 can be ignored but I'm not sure about Problem 2. There is ongoing work in master (2.10) to address the many compiler warnings that have been present for a long time. At the same time code checking standards are being made more stringent but I doubt that these would actually cause your compile errors. To test you could checkout the '2.9' branch instead of 'master' and try to compile that.
The following user(s) said Thank You: bigmactx

Please Log in or Create an account to join the conversation.

  • bigmactx
  • bigmactx's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
04 Mar 2025 21:36 #323184 by bigmactx
Replied by bigmactx on topic LinuxCNC 2.10 build
So I found a quick fix for the _FORTIFY_SOURCE errors which is ok specifically for me at least to now but not a good fix for the project.

In the src directory is Makefile line 255:
original line DEBUG := $(DEBUG) -g -Wall -D_FORTIFY_SOURCE=2
modified line DEBUG := $(DEBUG) -g -Wall

in the Makefile.inc file line 114:
original line CPPFLAGS = -Wdate-time -D_FORTIFY_SOURCE=3
modified line CPPFLAGS = -Wdate-time

As I mentioned, this would not be an acceptable fix for generalized distribution as buffer overruns and other security features provided by _FORTIFY_SOURCE are important. It does however get me going for now just fine.

Now I'll dig into the manpage issue with "\S" and see if I can find a workaround for that. Documentation is always a good thing to have.

Thanks to all for help and suggestions.

Please Log in or Create an account to join the conversation.

  • bigmactx
  • bigmactx's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
04 Mar 2025 22:55 #323196 by bigmactx
Replied by bigmactx on topic LinuxCNC 2.10 build
Quick update and correction.

It seems that changing the Makefile.inc isn't necessary as it gets rebuilt as part of the run.

So looking at ./debian/configure I see the option for no documents is 'no-docs' and this works.

./debian/configure no-docs
dpkg-buildpackage -b -uc

-b option doesn't seem to matter.

I'll do some more digging into the fortify issue to see if I can find a better solution and to understand the DEBUG question lingering in my miind.

Cheers
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

Time to create page: 0.106 seconds
Powered by Kunena Forum