Hi Bas,
2010/11/17 Bas Mevissen <[email protected]>
> The attached patch against trunk adds CMake host tool support.
>
Thanks for your patch, I hope we can finally update Weechat (which kinda
depends on cmake) to something recent.
I applied your patch but building fails however:
(cd /var/tmp/swjawill/openwrt-dockstar/build_dir/host/cmake-2.8.3/; if [ -x
configure ]; then cp -fpR
/var/tmp/swjawill/openwrt-dockstar/scripts/config.{guess,sub}
/var/tmp/swjawill/openwrt-dockstar/build_dir/host/cmake-2.8.3// &&
./configure CFLAGS="-O2
-I/var/tmp/swjawill/openwrt-dockstar/staging_dir/host/include" CPPFLAGS="-O2
-I/var/tmp/swjawill/openwrt-dockstar/staging_dir/host/include"
LDFLAGS="-L/var/tmp/swjawill/openwrt-dockstar/staging_dir/host/lib"
SHELL="/bin/bash" --target=i486-linux-gnu --host=i486-linux-gnu
--build=i486-linux-gnu --program-prefix="" --program-suffix=""
--prefix=/var/tmp/swjawill/openwrt-dockstar/staging_dir/host
--exec-prefix=/var/tmp/swjawill/openwrt-dockstar/staging_dir/host
--sysconfdir=/var/tmp/swjawill/openwrt-dockstar/staging_dir/host/etc
--localstatedir=/var/tmp/swjawill/openwrt-dockstar/staging_dir/host/var ; fi
)
---------------------------------------------
CMake 2.8.3, Copyright 2000-2009 Kitware, Inc.
Found GNU toolchain
---------------------------------------------
Error when bootstrapping CMake:
Cannot find appropriate C compiler on this system.
Please specify one using environment variable CC.
See cmake_bootstrap.log for compilers attempted.
---------------------------------------------
Log of errors:
/var/tmp/swjawill/openwrt-dockstar/build_dir/host/cmake-2.8.3/Bootstrap.cmk/cmake_bootstrap.log
---------------------------------------------
This is the content of cmake_bootstrap.log:
Checking for GNU toolchain
Try: gcc
Line: gcc cmake_bootstrap_22734_test.c -o cmake_bootstrap_22734_test
---------- file -----------------------
int main() { return 0; }
------------------------------------------
Test succeded
Try: g++
Line: g++ cmake_bootstrap_22734_test.cpp -o cmake_bootstrap_22734_test
---------- file -----------------------
int main() { return 0; }
------------------------------------------
Test succeded
Try: gcc
Line: gcc -Os -pipe -march=armv5te -mtune=marvell-f -funit-at-a-time
cmake_bootstrap_22734_test.c -o cmake_bootstrap_22734_test
---------- file -----------------------
#ifdef __cplusplus
# error "The CMAKE_C_COMPILER is set to a C++ compiler"
#endif
#include<stdio.h>
#if defined(__CLASSIC_C__)
int main(argc, argv)
int argc;
char* argv[];
#else
int main(int argc, char* argv[])
#endif
{
printf("%d%c", (argv != 0), (char)0x0a);
return argc-1;
}
------------------------------------------
cmake_bootstrap_22734_test.c:1: error: bad value (armv5te) for -march=
switch
cmake_bootstrap_22734_test.c:1: error: bad value (marvell-f) for -mtune=
switch
Test failed to compile
- jan
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel