yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #09102
Re: [Question #244322]: Compilation with Portland compiler
Question #244322 on Yade changed:
https://answers.launchpad.net/yade/+question/244322
Status: Open => Answered
Anton Gladky proposed the following answer:
My suggestions:
1. Try to disable all features and compile "clear" yade.
2. It seems, this compiler does not support "pragma once" directives.
So you need to replace all "pragmas" by '#ifndef and #endif'.
All is possible, but it can take a time
Cheers
Anton
2014-03-04 9:11 GMT+01:00 Klaus Thoeni <question244322@xxxxxxxxxxxxxxxxxxxxx
>:
> Question #244322 on Yade changed:
> https://answers.launchpad.net/yade/+question/244322
>
> Status: Answered => Open
>
> Klaus Thoeni is still having a problem:
> Hi Anton,
>
> there was a bug in the compiler and our IT guy updated the compiler.
> However, it is still not looking good [1].
>
> We want to compile yade with pgcc because it has Opteron optimisation
> and our grid is full of AMD Opterons. We would expect that if compiled
> with pgcc it would run as fast as on the Intel machine.
>
> However, it seems to be a pain in the ass.
>
> Thanks,
> Klaus
>
> [1]
> [kt748@rcglogin build]$ make -j4
> Scanning dependencies of target miniEigen
> Scanning dependencies of target WeightedAverage2d
> Scanning dependencies of target _gts
> Scanning dependencies of target yade
> [ 0%] [ 1%] Building CXX object
> py/CMakeFiles/WeightedAverage2d.dir/WeightedAverage2d.cpp.o
> Building CXX object CMakeFiles/miniEigen.dir/py/mathWrap/miniEigen.cpp.o
> [ 1%] Building C object
> py/CMakeFiles/_gts.dir/3rd-party/pygts-0.3.1/edge.c.o
> "/usr/include/python2.7/pyconfig-64.h", line 1160: error: "_GNU_SOURCE" is
> predefined; attempted redefinition ignored
> #define _GNU_SOURCE 1
> ^
>
> [ 2%] Building C object
> py/CMakeFiles/_gts.dir/3rd-party/pygts-0.3.1/face.c.o
> "/usr/include/python2.7/pyconfig-64.h", line 1160: error: "_GNU_SOURCE" is
> predefined; attempted redefinition ignored
> #define _GNU_SOURCE 1
> ^
>
> [ 3%] Building CXX object CMakeFiles/yade.dir/core/ThreadRunner.cpp.o
> [ 3%] Building C object py/CMakeFiles/_gts.dir/3rd-
> party/pygts-0.3.1/object.c.o
> [ 4%] Building C object py/CMakeFiles/_gts.dir/3rd-
> party/pygts-0.3.1/cleanup.c.o
> [ 5%] Building C object py/CMakeFiles/_gts.dir/3rd-
> party/pygts-0.3.1/vertex.c.o
> [ 5%] Building C object py/CMakeFiles/_gts.dir/3rd-
> party/pygts-0.3.1/triangle.c.o
> [ 6%] Building C object py/CMakeFiles/_gts.dir/3rd-
> party/pygts-0.3.1/point.c.o
> 1 error detected in the compilation of "/home/kt748/YADE-
> git/master_AMD/trunk/py/WeightedAverage2d.cpp".
> make[2]: *** [py/CMakeFiles/WeightedAverage2d.dir/WeightedAverage2d.cpp.o]
> Error 2
> make[1]: *** [py/CMakeFiles/WeightedAverage2d.dir/all] Error 2
> make[1]: *** Waiting for unfinished jobs....
> [ 6%] Building C object py/CMakeFiles/_gts.dir/3rd-
> party/pygts-0.3.1/pygts.c.o
> [ 7%] Building CXX object CMakeFiles/yade.dir/core/State.cpp.o
> [ 7%] Building CXX object CMakeFiles/yade.dir/core/Interaction.cpp.o
> [ 8%] Building C object py/CMakeFiles/_gts.dir/3rd-
> party/pygts-0.3.1in Yade/surface.c.o
> "/usr/include/python2.7/pyconfig-64.h", line 1160: error: "_GNU_SOURCE" is
> predefined; attempted redefinition ignored
> #define _GNU_SOURCE 1
> ^
>
> "/usr/include/python2.7/pyconfig-64.h", line 1160: error: "_GNU_SOURCE" is
> predefined; attempted redefinition ignored
> #define _GNU_SOURCE 1
> ^
>
> [ 9%] Building C object py/CMakeFiles/_gts.dir/3rd-
> party/pygts-0.3.1/segment.c.o
> Linking C shared library lib64/_gts.so
> IPA inhibited: no main routine
> [ 9%] Built target _gts
> [ 10%] Building CXX object CMakeFiles/yade.dir/core/Material.cpp.o
> "/usr/include/python2.7/pyconfig-64.h", line 1160: error: "_GNU_SOURCE" is
> predefined; attempted redefinition ignored
> #define _GNU_SOURCE 1
> ^
>
> "/home/kt748/YADE-git/master_AMD/build/yade/core/Interaction.hpp", line 14:
> error:
> invalid redeclaration of type name "Interaction" (declared at
> line
> 14 of
> "/home/kt748/YADE-git/master_AMD/trunk/core/Interaction.hpp")
> class Interaction: public Serializable{
> ^
>
> "/home/kt748/YADE-git/master_AMD/build/yade/core/Interaction.hpp", line 68:
> error:
> function "CreateSharedInteraction" has already been defined
> REGISTER_SERIALIZABLE(Interaction);
> ^
>
> "/home/kt748/YADE-git/master_AMD/build/yade/core/Interaction.hpp", line 68:
> error:
> function "CreateInteraction" has already been defined
> REGISTER_SERIALIZABLE(Interaction);
> ^
>
> "/home/kt748/YADE-git/master_AMD/build/yade/core/Interaction.hpp", line 68:
> error:
> function "CreatePureCustomInteraction" has already been defined
> REGISTER_SERIALIZABLE(Interaction);
> ^
>
> "/home/kt748/YADE-git/master_AMD/build/yade/core/Interaction.hpp", line 68:
> error:
> variable "registeredInteraction" has already been defined
> REGISTER_SERIALIZABLE(Interaction);
> ^
>
> 1 error detected in the compilation of "/home/kt748/YADE-
> git/master_AMD/trunk/core/State.cpp".
> make[2]: *** [CMakeFiles/yade.dir/core/State.cpp.o] Error 2
> make[2]: *** Waiting for unfinished jobs....
> 1 error detected in the compilation of "/home/kt748/YADE-
> git/master_AMD/trunk/py/mathWrap/miniEigen.cpp".
> make[2]: *** [CMakeFiles/miniEigen.dir/py/mathWrap/miniEigen.cpp.o] Error 2
> make[1]: *** [CMakeFiles/miniEigen.dir/all] Error 2
> 1 error detected in the compilation of "/home/kt748/YADE-
> git/master_AMD/trunk/core/Material.cpp".
> make[2]: *** [CMakeFiles/yade.dir/core/Material.cpp.o] Error 2
> 6 errors detected in the compilation of "/home/kt748/YADE-
> git/master_AMD/trunk/core/Interaction.cpp".
> make[2]: *** [CMakeFiles/yade.dir/core/Interaction.cpp.o] Error 2
> make[1]: *** [CMakeFiles/yade.dir/all] Error 2
> make: *** [all] Error 2
>
> --
> You received this question notification because you are a member of
> yade-users, which is an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to : yade-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-users
> More help : https://help.launchpad.net/ListHelp
>
--
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.