Re: [CMake] cpack ppc64le rhel7.2 CPACK_RPM_PACKAGE_ARCHITECTURE

2016-06-08 Thread Chuck Atkins
I was able to verify, btw, that Fedora 19 + Power8 outputs ppc64le for
uname -m so I assume it works correctly on EL7 as well.  Testead via an IBM
machine hosted at the OSU Open Source Lab that we can access and use for
testing.

- Chuck

On Wed, Jun 8, 2016 at 10:33 AM, M Kelly  wrote:

> Domen Vrankar  writes:
>
> >
> > > The strange thing is that CMAKE_HOST_SYSTEM_PROCESSOR (outputed by
> cmake
> > > --system-information) uses the same "uname -m"
> > > see Modules/CMakeDetermineSystem.cmake.
> > >
> > > So there is something odd to have one right and the other wrong...
> >
> > In that case it's quite possible that CPACK_RPM_PACKAGE_ARCHITECTURE
> > is already set to x86_64 somewhere in cmake list which overrides the
> > default.
> >
> > Regards,
> > Domen
>
> Hi,
>
> I do think somewhere we are forcing CPACK_RPM_PACKAGE_ARCHITECTURE to
> x86_64
> I will find that and fix.
>
> thanks,
> mark
>
>
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/cmake
>
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Re: [CMake] cpack ppc64le rhel7.2 CPACK_RPM_PACKAGE_ARCHITECTURE

2016-06-08 Thread M Kelly
Domen Vrankar  writes:

> 
> > The strange thing is that CMAKE_HOST_SYSTEM_PROCESSOR (outputed by cmake
> > --system-information) uses the same "uname -m"
> > see Modules/CMakeDetermineSystem.cmake.
> >
> > So there is something odd to have one right and the other wrong...
> 
> In that case it's quite possible that CPACK_RPM_PACKAGE_ARCHITECTURE
> is already set to x86_64 somewhere in cmake list which overrides the
> default.
> 
> Regards,
> Domen

Hi,

I do think somewhere we are forcing CPACK_RPM_PACKAGE_ARCHITECTURE to x86_64
I will find that and fix.

thanks,
mark


-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake


Re: [CMake] cpack ppc64le rhel7.2 CPACK_RPM_PACKAGE_ARCHITECTURE

2016-06-08 Thread Domen Vrankar
> The strange thing is that CMAKE_HOST_SYSTEM_PROCESSOR (outputed by cmake
> --system-information) uses the same "uname -m"
> see Modules/CMakeDetermineSystem.cmake.
>
> So there is something odd to have one right and the other wrong...

In that case it's quite possible that CPACK_RPM_PACKAGE_ARCHITECTURE
is already set to x86_64 somewhere in cmake list which overrides the
default.

Regards,
Domen
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake


Re: [CMake] cpack ppc64le rhel7.2 CPACK_RPM_PACKAGE_ARCHITECTURE

2016-06-08 Thread Eric Noulard
2016-06-08 9:45 GMT+02:00 Domen Vrankar :

> > I am working on an IBM Power8 RHEL7.2 system and we installed cmake 3.6
> > (default cmake from repo was 2.8.12?) but it seems when making a package
> > the arch is set incorrectly to x86_64 instead of ppc64le.
>
> I don't have access to a ppc with Linux but it seems that 'uname -m'
> (default that is used for setting CPACK_RPM_PACKAGE_ARCHITECTURE)
> outputs invalid value on ppc AIX.
>

AFAIU the machine is running RHEL not Aix.
That said uname -m should be right !!

Mark may be you can check what is the value displayed by:

uname -m (the one used by CPack RPM)
arch (which is an alternative)

The strange thing is that CMAKE_HOST_SYSTEM_PROCESSOR (outputed by cmake
--system-information) uses the same "uname -m"
see Modules/CMakeDetermineSystem.cmake.

So there is something odd to have one right and the other wrong...

Eric


>
> What's the output output of 'uname -m' on your system?
>
> As a workaround you could manually set CPACK_RPM_PACKAGE_ARCHITECTURE
> in your CMake list.
>
> Regards,
> Domen
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/cmake
>



-- 
Eric
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Re: [CMake] cpack ppc64le rhel7.2 CPACK_RPM_PACKAGE_ARCHITECTURE

2016-06-08 Thread Domen Vrankar
> I am working on an IBM Power8 RHEL7.2 system and we installed cmake 3.6
> (default cmake from repo was 2.8.12?) but it seems when making a package
> the arch is set incorrectly to x86_64 instead of ppc64le.

I don't have access to a ppc with Linux but it seems that 'uname -m'
(default that is used for setting CPACK_RPM_PACKAGE_ARCHITECTURE)
outputs invalid value on ppc AIX.

What's the output output of 'uname -m' on your system?

As a workaround you could manually set CPACK_RPM_PACKAGE_ARCHITECTURE
in your CMake list.

Regards,
Domen
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake