Registered Member
|
Hello
I am trying to use Eigen 3.0.0 and I am having issues using it on Sun OS 5.10 using sparc. The Sun compiler just throws tons of errors due to its issues with templates so I am trying to compile using both gcc4.5.1 and gcc4.1. They both give the following errors twice using a program that compiled and ran perfectly with the same compilers in a linux environment. error: invalid character (0x0a) error: statement syntax Both errors occur on the same line of a tmp linker file. By the way the program is basically just running the example Cholesky llt solve routine:
Any guidance on how to make this compile properly would be greatly appreciated. |
Moderator
|
the Sun compiler is indeed not working with Eigen, but gcc should work fine. Can you paste the complete errors obtained with GCC.
|
Registered Member
|
/usr/bin/as: "/var/tmp//cc0itqQP.s", line 62598: error: invalid character (0x0a)
/usr/bin/as: "/var/tmp//cc0itqQP.s", line 62598: error: statement syntax /usr/bin/as: "/var/tmp//cc0itqQP.s.s", line 62964: error: invalid character (0x0a) /usr/bin/as: "/var/tmp//cc0itqQP.s", line 62964: error: statement syntax cc0itqQP.s changes ever time but the line number is consistent for each compiler. Those line numbers are for gcc4.1 and gcc4.5.1 has line numbers 40753 and 41121 It looks like it is actually an issue with the Sun assembler |
Moderator
|
hm maybe this is something very stupid. Could you edit the file Eigen/src/Core/util/Macros.h, search for EIGEN_ASM_COMMENT and comment the lines such that you only have:
#define EIGEN_ASM_COMMENT(X) |
Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell, Yahoo [Bot]