New user self-registration is disabled due to spam. Please email eigen-core-team @ lists.tuxfamily.org if you need an account.
Before reporting a bug, please make sure that your Eigen version is up-to-date!
Bug 1643 - Compilation failure
Summary: Compilation failure
Status: RESOLVED FIXED
Alias: None
Product: Eigen
Classification: Unclassified
Component: Core - general (show other bugs)
Version: 3.3 (current stable)
Hardware: All All
: Normal Unknown
Assignee: Nobody
URL:
Whiteboard:
Keywords:
: 1651 (view as bug list)
Depends on:
Blocks: 3.4
  Show dependency treegraph
 
Reported: 2018-12-11 08:30 UTC by Darcy
Modified: 2018-12-25 19:54 UTC (History)
5 users (show)



Attachments

Description Darcy 2018-12-11 08:30:48 UTC
Using Eigen at commit 71546f1 causes compilation error in debug mode.

OS: Fedora 29
Compiler: gcc 8.2.1
Compilation options: cmake -DCMAKE_BUILD_TYPE=Debug

I only get this with debug on, in release mode it's all sunny skies.

Error message:

/var/jenkins_home/workspace/neon_PR-125-SEMONSAXNP4DJH6WB6FH3YM56CLGTVEOFZ5NHXEJWRZCJENGXRBQ@4/build/eigen3/src/eigen3/Eigen/src/Core/products/GeneralBlockPanelKernel.h: In member function 'void Eigen::internal::gebp_kernel<LhsScalar, RhsScalar, Index, DataMapper, mr, nr, ConjugateLhs, ConjugateRhs>::operator()(const DataMapper&, const LhsScalar*, const RhsScalar*, Index, Index, Index, Eigen::internal::gebp_kernel<LhsScalar, RhsScalar, Index, DataMapper, mr, nr, ConjugateLhs, ConjugateRhs>::ResScalar, Index, Index, Index, Index) [with LhsScalar = double; RhsScalar = double; Index = long int; DataMapper = Eigen::internal::blas_data_mapper<double, long int, 0, 0>; int mr = 4; int nr = 4; bool ConjugateLhs = false; bool ConjugateRhs = false]':

/var/jenkins_home/workspace/neon_PR-125-SEMONSAXNP4DJH6WB6FH3YM56CLGTVEOFZ5NHXEJWRZCJENGXRBQ@4/build/eigen3/src/eigen3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:1395:104: error: inconsistent operand constraints in an 'asm'

             #define EIGEN_GEBP_2PX4_SPILLING_WORKAROUND __asm__  ("" : [a0] "+rm" (A0),[a1] "+rm" (A1));

                                                                                                        ^

/var/jenkins_home/workspace/neon_PR-125-SEMONSAXNP4DJH6WB6FH3YM56CLGTVEOFZ5NHXEJWRZCJENGXRBQ@4/build/eigen3/src/eigen3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:1413:15: note: in expansion of macro 'EIGEN_GEBP_2PX4_SPILLING_WORKAROUND'

               EIGEN_GEBP_2PX4_SPILLING_WORKAROUND                               \

               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/var/jenkins_home/workspace/neon_PR-125-SEMONSAXNP4DJH6WB6FH3YM56CLGTVEOFZ5NHXEJWRZCJENGXRBQ@4/build/eigen3/src/eigen3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:1418:13: note: in expansion of macro 'EIGEN_GEBGP_ONESTEP'

             EIGEN_GEBGP_ONESTEP(0);

             ^~~~~~~~~~~~~~~~~~~

/var/jenkins_home/workspace/neon_PR-125-SEMONSAXNP4DJH6WB6FH3YM56CLGTVEOFZ5NHXEJWRZCJENGXRBQ@4/build/eigen3/src/eigen3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:1395:104: error: inconsistent operand constraints in an 'asm'

             #define EIGEN_GEBP_2PX4_SPILLING_WORKAROUND __asm__  ("" : [a0] "+rm" (A0),[a1] "+rm" (A1));

                                                                                                        ^

/var/jenkins_home/workspace/neon_PR-125-SEMONSAXNP4DJH6WB6FH3YM56CLGTVEOFZ5NHXEJWRZCJENGXRBQ@4/build/eigen3/src/eigen3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:1413:15: note: in expansion of macro 'EIGEN_GEBP_2PX4_SPILLING_WORKAROUND'

               EIGEN_GEBP_2PX4_SPILLING_WORKAROUND                               \

               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/var/jenkins_home/workspace/neon_PR-125-SEMONSAXNP4DJH6WB6FH3YM56CLGTVEOFZ5NHXEJWRZCJENGXRBQ@4/build/eigen3/src/eigen3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:1419:13: note: in expansion of macro 'EIGEN_GEBGP_ONESTEP'

             EIGEN_GEBGP_ONESTEP(1);

             ^~~~~~~~~~~~~~~~~~~

/var/jenkins_home/workspace/neon_PR-125-SEMONSAXNP4DJH6WB6FH3YM56CLGTVEOFZ5NHXEJWRZCJENGXRBQ@4/build/eigen3/src/eigen3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:1395:104: error: inconsistent operand constraints in an 'asm'

             #define EIGEN_GEBP_2PX4_SPILLING_WORKAROUND __asm__  ("" : [a0] "+rm" (A0),[a1] "+rm" (A1));

                                                                                                        ^

/var/jenkins_home/workspace/neon_PR-125-SEMONSAXNP4DJH6WB6FH3YM56CLGTVEOFZ5NHXEJWRZCJENGXRBQ@4/build/eigen3/src/eigen3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:1413:15: note: in expansion of macro 'EIGEN_GEBP_2PX4_SPILLING_WORKAROUND'

               EIGEN_GEBP_2PX4_SPILLING_WORKAROUND                               \

               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/var/jenkins_home/workspace/neon_PR-125-SEMONSAXNP4DJH6WB6FH3YM56CLGTVEOFZ5NHXEJWRZCJENGXRBQ@4/build/eigen3/src/eigen3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:1420:13: note: in expansion of macro 'EIGEN_GEBGP_ONESTEP'

             EIGEN_GEBGP_ONESTEP(2);

             ^~~~~~~~~~~~~~~~~~~

/var/jenkins_home/workspace/neon_PR-125-SEMONSAXNP4DJH6WB6FH3YM56CLGTVEOFZ5NHXEJWRZCJENGXRBQ@4/build/eigen3/src/eigen3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:1395:104: error: inconsistent operand constraints in an 'asm'

             #define EIGEN_GEBP_2PX4_SPILLING_WORKAROUND __asm__  ("" : [a0] "+rm" (A0),[a1] "+rm" (A1));

                                                                                                        ^

/var/jenkins_home/workspace/neon_PR-125-SEMONSAXNP4DJH6WB6FH3YM56CLGTVEOFZ5NHXEJWRZCJENGXRBQ@4/build/eigen3/src/eigen3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:1413:15: note: in expansion of macro 'EIGEN_GEBP_2PX4_SPILLING_WORKAROUND'

               EIGEN_GEBP_2PX4_SPILLING_WORKAROUND                               \

               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/var/jenkins_home/workspace/neon_PR-125-SEMONSAXNP4DJH6WB6FH3YM56CLGTVEOFZ5NHXEJWRZCJENGXRBQ@4/build/eigen3/src/eigen3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:1421:13: note: in expansion of macro 'EIGEN_GEBGP_ONESTEP'

             EIGEN_GEBGP_ONESTEP(3);

             ^~~~~~~~~~~~~~~~~~~

/var/jenkins_home/workspace/neon_PR-125-SEMONSAXNP4DJH6WB6FH3YM56CLGTVEOFZ5NHXEJWRZCJENGXRBQ@4/build/eigen3/src/eigen3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:1395:104: error: inconsistent operand constraints in an 'asm'

             #define EIGEN_GEBP_2PX4_SPILLING_WORKAROUND __asm__  ("" : [a0] "+rm" (A0),[a1] "+rm" (A1));

                                                                                                        ^

/var/jenkins_home/workspace/neon_PR-125-SEMONSAXNP4DJH6WB6FH3YM56CLGTVEOFZ5NHXEJWRZCJENGXRBQ@4/build/eigen3/src/eigen3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:1413:15: note: in expansion of macro 'EIGEN_GEBP_2PX4_SPILLING_WORKAROUND'

               EIGEN_GEBP_2PX4_SPILLING_WORKAROUND                               \

               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/var/jenkins_home/workspace/neon_PR-125-SEMONSAXNP4DJH6WB6FH3YM56CLGTVEOFZ5NHXEJWRZCJENGXRBQ@4/build/eigen3/src/eigen3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:1423:13: note: in expansion of macro 'EIGEN_GEBGP_ONESTEP'

             EIGEN_GEBGP_ONESTEP(4);

             ^~~~~~~~~~~~~~~~~~~

/var/jenkins_home/workspace/neon_PR-125-SEMONSAXNP4DJH6WB6FH3YM56CLGTVEOFZ5NHXEJWRZCJENGXRBQ@4/build/eigen3/src/eigen3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:1395:104: error: inconsistent operand constraints in an 'asm'

             #define EIGEN_GEBP_2PX4_SPILLING_WORKAROUND __asm__  ("" : [a0] "+rm" (A0),[a1] "+rm" (A1));

                                                                                                        ^

/var/jenkins_home/workspace/neon_PR-125-SEMONSAXNP4DJH6WB6FH3YM56CLGTVEOFZ5NHXEJWRZCJENGXRBQ@4/build/eigen3/src/eigen3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:1413:15: note: in expansion of macro 'EIGEN_GEBP_2PX4_SPILLING_WORKAROUND'

               EIGEN_GEBP_2PX4_SPILLING_WORKAROUND                               \

               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/var/jenkins_home/workspace/neon_PR-125-SEMONSAXNP4DJH6WB6FH3YM56CLGTVEOFZ5NHXEJWRZCJENGXRBQ@4/build/eigen3/src/eigen3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:1424:13: note: in expansion of macro 'EIGEN_GEBGP_ONESTEP'

             EIGEN_GEBGP_ONESTEP(5);

             ^~~~~~~~~~~~~~~~~~~

/var/jenkins_home/workspace/neon_PR-125-SEMONSAXNP4DJH6WB6FH3YM56CLGTVEOFZ5NHXEJWRZCJENGXRBQ@4/build/eigen3/src/eigen3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:1395:104: error: inconsistent operand constraints in an 'asm'

             #define EIGEN_GEBP_2PX4_SPILLING_WORKAROUND __asm__  ("" : [a0] "+rm" (A0),[a1] "+rm" (A1));

                                                                                                        ^

/var/jenkins_home/workspace/neon_PR-125-SEMONSAXNP4DJH6WB6FH3YM56CLGTVEOFZ5NHXEJWRZCJENGXRBQ@4/build/eigen3/src/eigen3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:1413:15: note: in expansion of macro 'EIGEN_GEBP_2PX4_SPILLING_WORKAROUND'

               EIGEN_GEBP_2PX4_SPILLING_WORKAROUND                               \

               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/var/jenkins_home/workspace/neon_PR-125-SEMONSAXNP4DJH6WB6FH3YM56CLGTVEOFZ5NHXEJWRZCJENGXRBQ@4/build/eigen3/src/eigen3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:1425:13: note: in expansion of macro 'EIGEN_GEBGP_ONESTEP'

             EIGEN_GEBGP_ONESTEP(6);

             ^~~~~~~~~~~~~~~~~~~

/var/jenkins_home/workspace/neon_PR-125-SEMONSAXNP4DJH6WB6FH3YM56CLGTVEOFZ5NHXEJWRZCJENGXRBQ@4/build/eigen3/src/eigen3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:1395:104: error: inconsistent operand constraints in an 'asm'

             #define EIGEN_GEBP_2PX4_SPILLING_WORKAROUND __asm__  ("" : [a0] "+rm" (A0),[a1] "+rm" (A1));

                                                                                                        ^

/var/jenkins_home/workspace/neon_PR-125-SEMONSAXNP4DJH6WB6FH3YM56CLGTVEOFZ5NHXEJWRZCJENGXRBQ@4/build/eigen3/src/eigen3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:1413:15: note: in expansion of macro 'EIGEN_GEBP_2PX4_SPILLING_WORKAROUND'

               EIGEN_GEBP_2PX4_SPILLING_WORKAROUND                               \

               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/var/jenkins_home/workspace/neon_PR-125-SEMONSAXNP4DJH6WB6FH3YM56CLGTVEOFZ5NHXEJWRZCJENGXRBQ@4/build/eigen3/src/eigen3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:1426:13: note: in expansion of macro 'EIGEN_GEBGP_ONESTEP'

             EIGEN_GEBGP_ONESTEP(7);

             ^~~~~~~~~~~~~~~~~~~

/var/jenkins_home/workspace/neon_PR-125-SEMONSAXNP4DJH6WB6FH3YM56CLGTVEOFZ5NHXEJWRZCJENGXRBQ@4/build/eigen3/src/eigen3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:1395:104: error: inconsistent operand constraints in an 'asm'

             #define EIGEN_GEBP_2PX4_SPILLING_WORKAROUND __asm__  ("" : [a0] "+rm" (A0),[a1] "+rm" (A1));

                                                                                                        ^

/var/jenkins_home/workspace/neon_PR-125-SEMONSAXNP4DJH6WB6FH3YM56CLGTVEOFZ5NHXEJWRZCJENGXRBQ@4/build/eigen3/src/eigen3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:1413:15: note: in expansion of macro 'EIGEN_GEBP_2PX4_SPILLING_WORKAROUND'

               EIGEN_GEBP_2PX4_SPILLING_WORKAROUND                               \

               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/var/jenkins_home/workspace/neon_PR-125-SEMONSAXNP4DJH6WB6FH3YM56CLGTVEOFZ5NHXEJWRZCJENGXRBQ@4/build/eigen3/src/eigen3/Eigen/src/Core/products/GeneralBlockPanelKernel.h:1437:13: note: in expansion of macro 'EIGEN_GEBGP_ONESTEP'

             EIGEN_GEBGP_ONESTEP(0);

             ^~~~~~~~~~~~~~~~~~~

make[2]: *** [src/CMakeFiles/neon.dir/build.make:115: src/CMakeFiles/neon.dir/constitutive/mechanics/plane/finite_strain_J2_plasticity.cpp.o] Error 1

make[1]: *** [CMakeFiles/Makefile2:1980: src/CMakeFiles/neon.dir/all] Error 2

make: *** [Makefile:141: all] Error 2

script returned exit code 2
Comment 1 Gael Guennebaud 2018-12-11 12:27:41 UTC
ok the trick to reproduce was to disable compiler optimizations, fixed:

https://bitbucket.org/eigen/eigen/commits/88fc23324517/
Comment 2 Darcy 2018-12-11 13:03:57 UTC
Thanks, will this be backported to the latest release?  I'd rather drop off from following Eigen head since I get a breakages from time to time.
Comment 3 Christoph Hertzberg 2018-12-11 14:36:41 UTC
I pushed the corresponding commits to the 3.3 branch. Since this is quite severe, guess this justifies a new release (and we must remember to also run the test-suite also in debug-mode before releases ...)
Comment 4 Gael Guennebaud 2018-12-11 17:53:14 UTC
my bad. I'll do a 3.3.7 tonight.
Comment 5 Christoph Hertzberg 2018-12-25 19:54:25 UTC
*** Bug 1651 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.