Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] CALIBRATION_GCODE compile unsuccessful #19092

Closed
Protean-Man opened this issue Aug 20, 2020 · 5 comments
Closed

[BUG] CALIBRATION_GCODE compile unsuccessful #19092

Protean-Man opened this issue Aug 20, 2020 · 5 comments

Comments

@Protean-Man
Copy link

Protean-Man commented Aug 20, 2020

When compiling for CALIBRATION_GCODE in Cofiguration_adv.h I am getting an error calling:

error: 'NORMAL_AXIS_INDEX' was not declared in this scope

This is a previous BUG Report but it has been closed. I am finding a similar issue:
I am also using COREXY with current bugfix version.
Backlash Compensation is not enabled as per other Bug Report.

Here is my error compile:
In file included from Marlin\src\gcode\calibrate../../inc/MarlinConfig.h:36:0,
from Marlin\src\gcode\calibrate../../MarlinCore.h:24,
from Marlin\src\gcode\calibrate\G425.cpp:23:
Marlin\src\gcode\calibrate\G425.cpp: In function 'void probe_side(measurements_t&, float, side_t, bool)':
Compiling .pio\build\mega2560\src\src\gcode\config\M301.cpp.o
Marlin\src\gcode\calibrate../../inc/Conditionals_post.h:165:47: error: 'NORMAL_AXIS_INDEX' was not declared in this scope
#define AXIS_CAN_CALIBRATE(A) CAN_CALIBRATE(A,NORMAL_AXIS)
^
Marlin\src\gcode\calibrate../../inc/Conditionals_post.h:160:51: note: in definition of macro 'CAN_CALIBRATE'
#define CAN_CALIBRATE(A,B) (A##_AXIS_INDEX == B##_INDEX)
^
Marlin\src\gcode\calibrate\G425.cpp:256:8: note: in expansion of macro 'AXIS_CAN_CALIBRATE'
if ((AXIS_CAN_CALIBRATE(X) && axis == X_AXIS) || (AXIS_CAN_CALIBRATE(Y) && axis == Y_AXIS)) {
^
Marlin\src\gcode\calibrate\G425.cpp: In function 'void report_measured_positional_error(const measurements_t&)':
Marlin\src\gcode\calibrate../../inc/Conditionals_post.h:165:47: error: 'NORMAL_AXIS_INDEX' was not declared in this scope
#define AXIS_CAN_CALIBRATE(A) CAN_CALIBRATE(A,NORMAL_AXIS)
^
Marlin\src\gcode\calibrate../../inc/Conditionals_post.h:160:51: note: in definition of macro 'CAN_CALIBRATE'
#define CAN_CALIBRATE(A,B) (A##_AXIS_INDEX == B##_INDEX)
^
Marlin\src\gcode\calibrate\G425.cpp:384:9: note: in expansion of macro 'AXIS_CAN_CALIBRATE'
if (AXIS_CAN_CALIBRATE(Z)) SERIAL_ECHOLNPAIR_P(SP_Z_STR, m.pos_error.z);
^
Marlin\src\gcode\calibrate\G425.cpp: In function 'void calibrate_toolhead(measurements_t&, float, uint8_t)':
Marlin\src\gcode\calibrate../../inc/Conditionals_post.h:165:47: error: 'NORMAL_AXIS_INDEX' was not declared in this scope
#define AXIS_CAN_CALIBRATE(A) CAN_CALIBRATE(A,NORMAL_AXIS)
^
Marlin\src\gcode\calibrate../../inc/Conditionals_post.h:160:51: note: in definition of macro 'CAN_CALIBRATE'
#define CAN_CALIBRATE(A,B) (A##_AXIS_INDEX == B##_INDEX)
^
Marlin\src\gcode\calibrate\G425.cpp:498:34: note: in expansion of macro 'AXIS_CAN_CALIBRATE'
if (ENABLED(HAS_X_CENTER) && AXIS_CAN_CALIBRATE(X)) hotend_offset[extruder].x += m.pos_error.x;
^
Marlin\src\gcode\calibrate../../inc/Conditionals_post.h:165:47: error: 'NORMAL_AXIS_INDEX' was not declared in this scope
#define AXIS_CAN_CALIBRATE(A) CAN_CALIBRATE(A,NORMAL_AXIS)
^
Marlin\src\gcode\calibrate../../inc/Conditionals_post.h:160:51: note: in definition of macro 'CAN_CALIBRATE'
#define CAN_CALIBRATE(A,B) (A##_AXIS_INDEX == B##_INDEX)
^
Marlin\src\gcode\calibrate\G425.cpp:499:34: note: in expansion of macro 'AXIS_CAN_CALIBRATE'
if (ENABLED(HAS_Y_CENTER) && AXIS_CAN_CALIBRATE(Y)) hotend_offset[extruder].y += m.pos_error.y;
^
Marlin\src\gcode\calibrate../../inc/Conditionals_post.h:165:47: error: 'NORMAL_AXIS_INDEX' was not declared in this scope
#define AXIS_CAN_CALIBRATE(A) CAN_CALIBRATE(A,NORMAL_AXIS)
^
Marlin\src\gcode\calibrate../../inc/Conditionals_post.h:160:51: note: in definition of macro 'CAN_CALIBRATE'
#define CAN_CALIBRATE(A,B) (A##_AXIS_INDEX == B##_INDEX)
^
Marlin\src\gcode\calibrate\G425.cpp:500:34: note: in expansion of macro 'AXIS_CAN_CALIBRATE'
if (AXIS_CAN_CALIBRATE(Z)) hotend_offset[extruder].z += m.pos_error.z;
^
compilation terminated due to -fmax-errors=5.
*** [.pio\build\mega2560\src\src\gcode\calibrate\G425.cpp.o] Error 1

@ellensp
Copy link
Contributor

ellensp commented Aug 21, 2020

Please attach your configuration files.

@boelle
Copy link
Contributor

boelle commented Aug 21, 2020

Configurations, please
Please ZIP up your Configuration.h and Configuration_adv.h files (as
requested in the Issue template) and drop them into your next reply.
We'll check them over and see if anything is amiss.

@ellensp
Copy link
Contributor

ellensp commented Aug 21, 2020

issue can be replicated with default config with just enabling COREXY and CALIBRATION_GCODE

@github-actions
Copy link

This issue has had no activity in the last 30 days. Please add a reply if you want to keep this issue active, otherwise it will be automatically closed within 7 days.

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators Nov 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants