Bug 192447 - [mips] devel/cmake configuration doesn't know about freebsd-*-mips
Summary: [mips] devel/cmake configuration doesn't know about freebsd-*-mips
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-kde (group)
URL: http://dirty.ysv.freebsd.org/data/11m...
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-06 16:19 UTC by Sean Bruno
Modified: 2015-02-09 18:46 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sean Bruno freebsd_committer freebsd_triage 2014-08-06 16:19:05 UTC
I'm not quite sure how the Cmake system detects the system triple here but I assume that the log referenced is useless and I need the actual work dir.
Comment 1 Raphael Kubo da Costa freebsd_committer freebsd_triage 2014-08-06 16:55:59 UTC
Is there a machine somewhere in the cluster one could access to debug this?
Comment 2 Sean Bruno freebsd_committer freebsd_triage 2014-08-06 16:57:38 UTC
No.  I'm doing this under qemu emulation.  I'm doing a test run locally outside of poudriere at the moment inside a mips chroot.  I'll tar something up in a minute.
Comment 3 Sean Bruno freebsd_committer freebsd_triage 2014-08-06 20:41:05 UTC
I've uploaded the contents of a failed mips build (via emulation in a chroot) here:

http://people.freebsd.org/~sbruno/cmake_mips.tar.gz

Platform/UnknownOS to use this system, please send your config file to cmake@www.cmake.org so it can be added to cmake
-- Looking for getch in ws2_32;dl - not found
-- Looking for getch in winmm;dl
System is unknown to cmake, create:
Platform/UnknownOS to use this system, please send your config file to cmake@www.cmake.org so it can be added to cmake
-- Looking for getch in winmm;dl - not found
CMake Error at Modules/FindPackageHandleStandardArgs.cmake:108 (message):
  Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
  system variable OPENSSL_ROOT_DIR (missing: OPENSSL_LIBRARIES
  OPENSSL_INCLUDE_DIR)
Call Stack (most recent call first):
  Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
  Modules/FindOpenSSL.cmake:313 (find_package_handle_standard_args)
  Utilities/cmcurl/CMakeLists.txt:182 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!
See also "/usr/ports/devel/cmake/work/cmake-2.8.12.1/CMakeFiles/CMakeOutput.log".
See also "/usr/ports/devel/cmake/work/cmake-2.8.12.1/CMakeFiles/CMakeError.log".
---------------------------------------------
Error when bootstrapping CMake:
Problem while running initial CMake
---------------------------------------------
===>  Script "configure" failed unexpectedly.
Please report the problem to kde@FreeBSD.org [maintainer] and attach the
"/usr/ports/devel/cmake/work/cmake-2.8.12.1/config.log" including the output
of the failure of your make command. Also, it might be a good idea to provide
an overview of all packages installed on your system (e.g. a
/usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/devel/cmake
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/cmake
Comment 4 Sean Bruno freebsd_committer freebsd_triage 2014-08-06 20:52:57 UTC
In order to reproduce this failure:

build mips chroot:
 make TARGET=mips TARGET_ARCH=mips buildworld
 make TARGET=mips TARGET_ARCH=mips installworld DESTDIR=/sometempdir
 make TARGET=mips TARGET_ARCH=mips distribution DESTDIR=/sometempdir
 
mount -t devfs devfs /sometempdir/dev
mount -t nullfs /usr/ports /sometempdir/usr/port

Install qemu-user-static on the host machine

Setup binmiscctl to redirect mips execution to /usr/local/bin/qemu-user-mips

Copy qemu-user-mips into the jail, cp /usr/local/bin/qemu-user-mips /sometempdir/usr/local/bin/qemu-user-mips

chroot /sometempdir

cd /usr/ports/devel/cmake

make

I've tried to document this in a blog post if it makes more sense:
http://blog.ignoranthack.me/?p=218
Comment 5 Sean Bruno freebsd_committer freebsd_triage 2015-02-09 18:46:40 UTC
devel/cmake now builds for mips/mips64 in an emulated environment without issue.

http://tasty.ysv.freebsd.org/build.html?mastername=11mips32-default&build=2015-02-09_15h43m01s