{"action":"created","issue":{"url":"https://api.github.com/repos/MarlinFirmware/Marlin/issues/10859","repository_url":"https://api.github.com/repos/MarlinFirmware/Marlin","labels_url":"https://api.github.com/repos/MarlinFirmware/Marlin/issues/10859/labels{/name}","comments_url":"https://api.github.com/repos/MarlinFirmware/Marlin/issues/10859/comments","events_url":"https://api.github.com/repos/MarlinFirmware/Marlin/issues/10859/events","html_url":"https://github.com/MarlinFirmware/Marlin/issues/10859","id":326731384,"number":10859,"title":"[2.0.X] - Not compiling with SKEW_CORRECTION enabled on MKS SBASE","user":{"login":"NightHammer1000","id":1979250,"avatar_url":"https://avatars1.githubusercontent.com/u/1979250?v=4","gravatar_id":"","url":"https://api.github.com/users/NightHammer1000","html_url":"https://github.com/NightHammer1000","followers_url":"https://api.github.com/users/NightHammer1000/followers","following_url":"https://api.github.com/users/NightHammer1000/following{/other_user}","gists_url":"https://api.github.com/users/NightHammer1000/gists{/gist_id}","starred_url":"https://api.github.com/users/NightHammer1000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NightHammer1000/subscriptions","organizations_url":"https://api.github.com/users/NightHammer1000/orgs","repos_url":"https://api.github.com/users/NightHammer1000/repos","events_url":"https://api.github.com/users/NightHammer1000/events{/privacy}","received_events_url":"https://api.github.com/users/NightHammer1000/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-26T11:31:49Z","updated_at":"2018-05-26T13:43:07Z","closed_at":null,"author_association":"NONE","body":"### Description\r\n\r\nMarlin 2.0 not compiling with SKEW_CORRECTION enabled on MKS SBASE.\r\n\r\n### Steps to Reproduce\r\n\r\n\r\n\r\n1. Uncomment #define SKEW_CORRECTION in Configuration.h\r\n2. Compile\r\n3. See it fail\r\n\r\n#### Additional Information\r\n\r\nBuild Log:\r\n\r\n```\r\nVerbose mode can be enabled via `-v, --verbose` option\r\nPLATFORM: NXP LPC > NXP mbed LPC1768\r\nSYSTEM: LPC1768 100MHz 64KB RAM (512KB Flash)\r\nDEBUG: CURRENT(cmsis-dap) ON-BOARD(cmsis-dap) EXTERNAL(blackmagic, jlink)\r\nLibrary Dependency Finder -> http://bit.ly/configure-pio-ldf\r\nLDF MODES: FINDER(off) COMPATIBILITY(light)\r\nCollected 12 compatible libraries\r\nScanning dependencies...\r\nDependency Graph\r\n|-- <CMSIS-LPC1768> v0.0.0\r\n|-- <U8glib-HAL> v0.4\r\n|-- <TMC2130Stepper> v2.3.0\r\nCompiling .pioenvs\\LPC1768\\src\\src\\HAL\\HAL_LPC1768\\HAL.o\r\nCompiling .pioenvs\\LPC1768\\src\\src\\HAL\\HAL_LPC1768\\HAL_spi.o\r\nCompiling .pioenvs\\LPC1768\\src\\src\\HAL\\HAL_LPC1768\\HAL_timers.o\r\nCompiling .pioenvs\\LPC1768\\src\\src\\HAL\\HAL_LPC1768\\LPC1768_PWM.o\r\nCompiling .pioenvs\\LPC1768\\src\\src\\HAL\\HAL_LPC1768\\LPC1768_Servo.o\r\nCompiling .pioenvs\\LPC1768\\src\\src\\HAL\\HAL_LPC1768\\SoftwareSPI.o\r\nCompiling .pioenvs\\LPC1768\\src\\src\\HAL\\HAL_LPC1768\\SoftwareSerial.o\r\nCompiling .pioenvs\\LPC1768\\src\\src\\HAL\\HAL_LPC1768\\WInterrupts.o\r\nIn file included from Marlin\\src\\HAL\\HAL_LPC1768\\../../inc/MarlinConfig.h:36:0,\r\nfrom Marlin\\src\\HAL\\HAL_LPC1768\\HAL_spi.cpp:51:\r\nMarlin\\src\\HAL\\HAL_LPC1768\\../../inc/Conditionals_post.h:1037:32: error: call to non-constexpr function 'double tan(double)'\r\n#define _SKEW_SIDE(a,b,c) tan(M_PI*0.5-acos((sq(a)-sq(b)-sq(c))/(2*c*b)))\r\n^\r\nMarlin\\src\\HAL\\HAL_LPC1768\\../../inc/Conditionals_post.h:1038:31: note: in expansion of macro '_SKEW_SIDE'\r\n#define _SKEW_FACTOR(a,b,c) _SKEW_SIDE(float(a),_GET_SIDE(float(a),float(b),float(c)),float(c))\r\n^~~~~~~~~~\r\nMarlin\\src\\HAL\\HAL_LPC1768\\../../inc/Conditionals_post.h:1043:9: note: in expansion of macro '_SKEW_FACTOR'\r\n_SKEW_FACTOR(XY_DIAG_AC, XY_DIAG_BD, XY_SIDE_AD)\r\n^~~~~~~~~~~~\r\nIn file included from Marlin\\src\\HAL\\HAL_LPC1768\\../../inc/MarlinConfig.h:36:0,\r\nfrom Marlin\\src\\HAL\\HAL_LPC1768\\HAL_timers.cpp:31:\r\nMarlin\\src\\HAL\\HAL_LPC1768\\../../inc/Conditionals_post.h:1037:32: error: call to non-constexpr function 'double tan(double)'\r\n#define _SKEW_SIDE(a,b,c) tan(M_PI*0.5-acos((sq(a)-sq(b)-sq(c))/(2*c*b)))\r\n^\r\nMarlin\\src\\HAL\\HAL_LPC1768\\../../inc/Conditionals_post.h:1038:31: note: in expansion of macro '_SKEW_SIDE'\r\n#define _SKEW_FACTOR(a,b,c) _SKEW_SIDE(float(a),_GET_SIDE(float(a),float(b),float(c)),float(c))\r\n^~~~~~~~~~\r\nMarlin\\src\\HAL\\HAL_LPC1768\\../../inc/Conditionals_post.h:1043:9: note: in expansion of macro '_SKEW_FACTOR'\r\n_SKEW_FACTOR(XY_DIAG_AC, XY_DIAG_BD, XY_SIDE_AD)\r\n^~~~~~~~~~~~\r\nIn file included from Marlin\\src\\HAL\\HAL_LPC1768\\../../inc/MarlinConfig.h:36:0,\r\nfrom Marlin\\src\\HAL\\HAL_LPC1768\\HAL.cpp:23:\r\nMarlin\\src\\HAL\\HAL_LPC1768\\../../inc/Conditionals_post.h:1037:32: error: call to non-constexpr function 'double tan(double)'\r\n#define _SKEW_SIDE(a,b,c) tan(M_PI*0.5-acos((sq(a)-sq(b)-sq(c))/(2*c*b)))\r\n^\r\nMarlin\\src\\HAL\\HAL_LPC1768\\../../inc/Conditionals_post.h:1038:31: note: in expansion of macro '_SKEW_SIDE'\r\n#define _SKEW_FACTOR(a,b,c) _SKEW_SIDE(float(a),_GET_SIDE(float(a),float(b),float(c)),float(c))\r\n^~~~~~~~~~\r\nMarlin\\src\\HAL\\HAL_LPC1768\\../../inc/Conditionals_post.h:1043:9: note: in expansion of macro '_SKEW_FACTOR'\r\n_SKEW_FACTOR(XY_DIAG_AC, XY_DIAG_BD, XY_SIDE_AD)\r\n^~~~~~~~~~~~\r\n*** [.pioenvs\\LPC1768\\src\\src\\HAL\\HAL_LPC1768\\HAL_spi.o] Error 1\r\n*** [.pioenvs\\LPC1768\\src\\src\\HAL\\HAL_LPC1768\\HAL_timers.o] Error 1\r\n*** [.pioenvs\\LPC1768\\src\\src\\HAL\\HAL_LPC1768\\HAL.o] Error 1\r\nIn file included from Marlin\\src\\HAL\\HAL_LPC1768\\../../inc/MarlinConfig.h:36:0,\r\nfrom Marlin\\src\\HAL\\HAL_LPC1768\\LPC1768_PWM.cpp:74:\r\nMarlin\\src\\HAL\\HAL_LPC1768\\../../inc/Conditionals_post.h:1037:32: error: call to non-constexpr function 'double tan(double)'\r\n#define _SKEW_SIDE(a,b,c) tan(M_PI*0.5-acos((sq(a)-sq(b)-sq(c))/(2*c*b)))\r\n^\r\nMarlin\\src\\HAL\\HAL_LPC1768\\../../inc/Conditionals_post.h:1038:31: note: in expansion of macro '_SKEW_SIDE'\r\n#define _SKEW_FACTOR(a,b,c) _SKEW_SIDE(float(a),_GET_SIDE(float(a),float(b),float(c)),float(c))\r\n^~~~~~~~~~\r\nMarlin\\src\\HAL\\HAL_LPC1768\\../../inc/Conditionals_post.h:1043:9: note: in expansion of macro '_SKEW_FACTOR'\r\n_SKEW_FACTOR(XY_DIAG_AC, XY_DIAG_BD, XY_SIDE_AD)\r\n^~~~~~~~~~~~\r\nIn file included from Marlin\\src\\HAL\\HAL_LPC1768\\../../inc/MarlinConfig.h:36:0,\r\nfrom Marlin\\src\\HAL\\HAL_LPC1768\\LPC1768_Servo.cpp:63:\r\nMarlin\\src\\HAL\\HAL_LPC1768\\../../inc/Conditionals_post.h:1037:32: error: call to non-constexpr function 'double tan(double)'\r\n#define _SKEW_SIDE(a,b,c) tan(M_PI*0.5-acos((sq(a)-sq(b)-sq(c))/(2*c*b)))\r\n^\r\nMarlin\\src\\HAL\\HAL_LPC1768\\../../inc/Conditionals_post.h:1038:31: note: in expansion of macro '_SKEW_SIDE'\r\n#define _SKEW_FACTOR(a,b,c) _SKEW_SIDE(float(a),_GET_SIDE(float(a),float(b),float(c)),float(c))\r\n^~~~~~~~~~\r\nMarlin\\src\\HAL\\HAL_LPC1768\\../../inc/Conditionals_post.h:1043:9: note: in expansion of macro '_SKEW_FACTOR'\r\n_SKEW_FACTOR(XY_DIAG_AC, XY_DIAG_BD, XY_SIDE_AD)\r\n^~~~~~~~~~~~\r\n*** [.pioenvs\\LPC1768\\src\\src\\HAL\\HAL_LPC1768\\LPC1768_Servo.o] Error 1\r\n*** [.pioenvs\\LPC1768\\src\\src\\HAL\\HAL_LPC1768\\LPC1768_PWM.o] Error 1\r\nIn file included from Marlin\\src\\HAL\\HAL_LPC1768\\../../inc/MarlinConfig.h:36:0,\r\nfrom Marlin\\src\\HAL\\HAL_LPC1768\\SoftwareSerial.cpp:39:\r\nMarlin\\src\\HAL\\HAL_LPC1768\\../../inc/Conditionals_post.h:1037:32: error: call to non-constexpr function 'double tan(double)'\r\n#define _SKEW_SIDE(a,b,c) tan(M_PI*0.5-acos((sq(a)-sq(b)-sq(c))/(2*c*b)))\r\n^\r\nMarlin\\src\\HAL\\HAL_LPC1768\\../../inc/Conditionals_post.h:1038:31: note: in expansion of macro '_SKEW_SIDE'\r\n#define _SKEW_FACTOR(a,b,c) _SKEW_SIDE(float(a),_GET_SIDE(float(a),float(b),float(c)),float(c))\r\n^~~~~~~~~~\r\nMarlin\\src\\HAL\\HAL_LPC1768\\../../inc/Conditionals_post.h:1043:9: note: in expansion of macro '_SKEW_FACTOR'\r\n_SKEW_FACTOR(XY_DIAG_AC, XY_DIAG_BD, XY_SIDE_AD)\r\n^~~~~~~~~~~~\r\nIn file included from Marlin\\src\\HAL\\HAL_LPC1768\\../../inc/MarlinConfig.h:36:0,\r\nfrom Marlin\\src\\HAL\\HAL_LPC1768\\SoftwareSPI.cpp:32:\r\nMarlin\\src\\HAL\\HAL_LPC1768\\../../inc/Conditionals_post.h:1037:32: error: call to non-constexpr function 'double tan(double)'\r\n#define _SKEW_SIDE(a,b,c) tan(M_PI*0.5-acos((sq(a)-sq(b)-sq(c))/(2*c*b)))\r\n^\r\nMarlin\\src\\HAL\\HAL_LPC1768\\../../inc/Conditionals_post.h:1038:31: note: in expansion of macro '_SKEW_SIDE'\r\n#define _SKEW_FACTOR(a,b,c) _SKEW_SIDE(float(a),_GET_SIDE(float(a),float(b),float(c)),float(c))\r\n^~~~~~~~~~\r\nMarlin\\src\\HAL\\HAL_LPC1768\\../../inc/Conditionals_post.h:1043:9: note: in expansion of macro '_SKEW_FACTOR'\r\n_SKEW_FACTOR(XY_DIAG_AC, XY_DIAG_BD, XY_SIDE_AD)\r\n^~~~~~~~~~~~\r\n*** [.pioenvs\\LPC1768\\src\\src\\HAL\\HAL_LPC1768\\SoftwareSerial.o] Error 1\r\nIn file included from Marlin\\src\\HAL\\HAL_LPC1768\\../../inc/MarlinConfig.h:36:0,\r\nfrom Marlin\\src\\HAL\\HAL_LPC1768\\WInterrupts.cpp:21:\r\nMarlin\\src\\HAL\\HAL_LPC1768\\../../inc/Conditionals_post.h:1037:32: error: call to non-constexpr function 'double tan(double)'\r\n#define _SKEW_SIDE(a,b,c) tan(M_PI*0.5-acos((sq(a)-sq(b)-sq(c))/(2*c*b)))\r\n^\r\nMarlin\\src\\HAL\\HAL_LPC1768\\../../inc/Conditionals_post.h:1038:31: note: in expansion of macro '_SKEW_SIDE'\r\n#define _SKEW_FACTOR(a,b,c) _SKEW_SIDE(float(a),_GET_SIDE(float(a),float(b),float(c)),float(c))\r\n^~~~~~~~~~\r\nMarlin\\src\\HAL\\HAL_LPC1768\\../../inc/Conditionals_post.h:1043:9: note: in expansion of macro '_SKEW_FACTOR'\r\n_SKEW_FACTOR(XY_DIAG_AC, XY_DIAG_BD, XY_SIDE_AD)\r\n^~~~~~~~~~~~\r\n*** [.pioenvs\\LPC1768\\src\\src\\HAL\\HAL_LPC1768\\SoftwareSPI.o] Error 1\r\n*** [.pioenvs\\LPC1768\\src\\src\\HAL\\HAL_LPC1768\\WInterrupts.o] Error 1\r\n============================================================================================================================================= [ERROR] Took 1.67 seconds =============================================================================================================================================\r\n\r\n===================================================================================================================================================== [SUMMARY] =====================================================================================================================================================\r\nEnvironment megaatmega2560              [SKIP]\r\nEnvironment megaatmega1280              [SKIP]\r\nEnvironment at90USB1286_CDC             [SKIP]\r\nEnvironment at90USB1286_DFU             [SKIP]\r\nEnvironment DUE                         [SKIP]\r\nEnvironment DUE_USB                     [SKIP]\r\nEnvironment DUE_debug                   [SKIP]\r\nEnvironment LPC1768                     [ERROR]\r\nEnvironment LPC1768_debug_and_upload    [SKIP]\r\nEnvironment melzi                       [SKIP]\r\nEnvironment melzi_optiboot              [SKIP]\r\nEnvironment rambo                       [SKIP]\r\nEnvironment sanguino_atmega644p         [SKIP]\r\nEnvironment sanguino_atmega1284p        [SKIP]\r\nEnvironment STM32F1                     [SKIP]\r\nEnvironment STM32F4                     [SKIP]\r\nEnvironment teensy20                    [SKIP]\r\nEnvironment teensy35                    [SKIP]\r\nEnvironment malyanm200                  [SKIP]\r\n============================================================================================================================================= [ERROR] Took 1.68 seconds =============================================================================================================================================\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/MarlinFirmware/Marlin/issues/comments/392262421","html_url":"https://github.com/MarlinFirmware/Marlin/issues/10859#issuecomment-392262421","issue_url":"https://api.github.com/repos/MarlinFirmware/Marlin/issues/10859","id":392262421,"user":{"login":"Bob-the-Kuhn","id":20692583,"avatar_url":"https://avatars0.githubusercontent.com/u/20692583?v=4","gravatar_id":"","url":"https://api.github.com/users/Bob-the-Kuhn","html_url":"https://github.com/Bob-the-Kuhn","followers_url":"https://api.github.com/users/Bob-the-Kuhn/followers","following_url":"https://api.github.com/users/Bob-the-Kuhn/following{/other_user}","gists_url":"https://api.github.com/users/Bob-the-Kuhn/gists{/gist_id}","starred_url":"https://api.github.com/users/Bob-the-Kuhn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bob-the-Kuhn/subscriptions","organizations_url":"https://api.github.com/users/Bob-the-Kuhn/orgs","repos_url":"https://api.github.com/users/Bob-the-Kuhn/repos","events_url":"https://api.github.com/users/Bob-the-Kuhn/events{/privacy}","received_events_url":"https://api.github.com/users/Bob-the-Kuhn/received_events","type":"User","site_admin":false},"created_at":"2018-05-26T13:43:07Z","updated_at":"2018-05-26T13:43:07Z","author_association":"CONTRIBUTOR","body":"Confirmed.  When **SKEW_CORRECTION** is uncommented and and  **XY_SKEW_FACTOR 0.0** is commented out uou get the following error message.\r\n\r\n`Marlin\\src\\HAL\\HAL_LPC1768\\../../inc/Conditionals_post.h:1037:32: error: call to non-constexpr function 'double tan(double)'`\r\n\r\nThat's a new type of error to me.  I'll see what it takes to fix it.\r\n"}}
{"actor":{"display_login":"Bob-the-Kuhn"}}