[deal.II] Re: command line compilation error on a linux machine using spack installation of deal.ii dev

2019-02-06 Thread Nicola Giuliani

>
> Dear all,
>

I have found the solution thanking to Alberto Sartori who suggested that 
the problem could be a repeated definition between my main.cc and something 
else somewhere in deal.ii.

In my CMakeLists.txt I defined DIMENSION, defining IMENSION the 
compilation works fine.

So we just need to be careful on the choice of the names for the defines.

Bests and thank you again,
Nicola

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[deal.II] Re: command line compilation error on a linux machine using spack installation of deal.ii dev

2019-01-28 Thread Denis Davydov
Hi Nicola

On Monday, January 28, 2019 at 11:35:33 AM UTC+1, Nicola Giuliani wrote:
>
> Dear all,
>
> I have just updated my spack installation of deal.ii on Linux Mint (18) 
> machine. 
>

by updated you mean you pulled the recent version and installed the deal.II 
via Spack? 
What commit are you on?
My Ubuntu tester is on 09033e991ef390370955eebecb2c0f734994d16b (12.01.19), 
I quickly checked recently merged PRs in Spack and 
did not immediately noticed anything that could break CMake packages in 
general or deal.II in particular.
 

>
> When I try to compile my deal.ii based project I get puzzling errors. The 
> compiler has already compiled all the files of the project and put them 
> into a library, then It tries to compile the main file executing the 
> following line
>

so the deal.II re-installation was fine? Did you start from clean build 
folder for your downstream project?
Depending on what changed between you previous setup and the current one, 
you might get different versions/flavors of third-party-libraries, like 
OpenMPI, Trilinos, etc.
It is possible that CMake was confused between the two build of deal.II you 
use in the downstream project (old and new one).
 

> and It reports
>
> :0:11: error: expected identifier before numeric constant
> :0:11: error: expected unqualified-id before numeric constant
> :0:11: error: expected unqualified-id before numeric constant
>

I don't think I ever saw such errors ;-(

Hopefully we can get to the bottom of this.

Regards,
Denis.

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.