[
https://issues.apache.org/jira/browse/MADLIB-1410?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17035578#comment-17035578
]
Ivan Leskin commented on MADLIB-1410:
-------------------------------------
I have opened two PRs that could fix the problems mentioned above:
[https://github.com/apache/madlib/pull/478] for compiler flag and
[https://github.com/apache/madlib/pull/479] for architecture macros.
> MADlib cannot be built on PowerPC machines with Linux
> -----------------------------------------------------
>
> Key: MADLIB-1410
> URL: https://issues.apache.org/jira/browse/MADLIB-1410
> Project: Apache MADlib
> Issue Type: Bug
> Components: Build System
> Reporter: Ivan Leskin
> Priority: Major
> Fix For: v1.16, v1.17
>
>
> The most recent version of MADlib cannot be built on PowerPC machines with
> Linux (CentOS 7) without extra modifications of the build system.
> I have encountered the following problems:
> h4. Architecture-specific G++ option is set (on all architectures)
> The [current CMakeLists.txt sets the
> `-mno-sse2`|https://github.com/apache/madlib/blob/fc81374d4d280ab4454150cb126137775e0f7ae6/CMakeLists.txt#L101]
> GNU C++ compiler option, which [is
> architecture-specific|https://gcc.gnu.org/onlinedocs/gcc-4.8.5/gcc/i386-and-x86-64-Options.html]
> and thus not available on PowerPC machines that use GCC to build MADlib.
> For this reason, compilation fails, unless this flag is removed from the
> CMakeLists.txt manually.
> h4. `architecture` cmake macros works incorrectly
> The [current cmake `architecture`
> macros|https://github.com/apache/madlib/blob/fc81374d4d280ab4454150cb126137775e0f7ae6/cmake/Utils.cmake#L83]
> does not work on PowerPC machines with Linux. Its result is empty string.
> As a result, M4 variable `<DBMS>_ARCHITECTURE` is not set properly, and the
> installation fails.
>
> As far as I understand, there are no fundamental limitations on usage of
> MADlib on PowerPC machines with Linux. After some manual actions to resolve
> the problems _mentioned above_, I have successfully built and installed
> MADlib. A simple check with an example from the quick-start guide showed the
> correct results.
> I would propose to fix the problems mentioned in order for MADlib to support
> PowerPC with Linux properly.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)