That error appears because the build system is trying to integrate
"jemalloc", for your specific case that one is not required, you can append
the following option to CMake to instruct it to use the default memory
allocator, e.g:

cmake -DWITH_SYSTEM_MALLOC=On  OTHEROPTIONS ../


On Tue, Jun 21, 2016 at 3:37 PM, Muffinman <[email protected]> wrote:

> Hello,
>
> Thanks for that fast reply!!
>
> With the toolchain adjusted for my use it still gave the same error,
> trying to compile and run a conftest. I figured I might as well try to edit
> the relevant configure file and remove that test. That worked, it compiled!
>
> In file deps/jemalloc/configure at around line 3116:
> - I made sure it always ended up with "cross_compiling=yes"
> - deleted the error
>
> Perhaps not a clean solution but effective for sure. It compiled fine and
> as far as I can tell it runs fine on armv7hf
>
> Thanks for your help (and Monkey)!!
>
> Kind regards, Maarten
>
> On 21/06/16 22:10, Eduardo Silva wrote:
>
>> Hi,
>>
>> Monkey build system is based in CMake, the configure script that you see
>> now is a wrapper over CMake options, that scripts exists for
>> compatibility things from previous versions, to be deprecated in the new
>> 1.7 series.
>>
>> You can create your own CMake toolchain file, here is an example:
>>
>>    https://github.com/monkey/monkey/blob/master/cmake/arduino-yun.cmake
>>
>> then you invoke that file as:
>>
>> |cmake -DCMAKE_TOOLCHAIN_FILE=my_toolchain_file.cmake OTHER OPTIONS ../|
>>
>> let me know how it goes,
>>
>> best
>>
>>
>> On Tue, Jun 21, 2016 at 2:05 PM, Muffinman <[email protected]
>> <mailto:[email protected]>> wrote:
>>
>>     Hello All,
>>
>>     I figured I'd give Monkey a try and see how it works for my purpose.
>>     Unfortunately I seem to run into a bit of trouble compiling the thing.
>>
>>     I'm crosscompiling under amd64 for armhf. Below I have copied the
>>     relevant output of "make". It finds the right gcc but obviously it
>>     can't run the compiled result. It suggest to use the option --host,
>>     but ./configure doesn't have that option... so where do I specify
>>     the host?
>>
>>     It seems like a simple problem.... does anyone have a suggestion on
>>     a fix?
>>
>>     Thanks in advance and kind regards, Maarten
>>
>>     checking whether the C compiler works... yes
>>     checking for C compiler default output file name... a.out
>>     checking for suffix of executables...
>>     checking whether we are cross compiling... configure: error: in
>>     `/mnt/monkey-1.6.9/build/jemalloc-prefix/src/jemalloc-build':
>>     configure: error: cannot run C compiled programs.
>>     If you meant to cross compile, use `--host'.
>>     _______________________________________________
>>     Monkey mailing list
>>     [email protected] <mailto:
>> [email protected]>
>>     http://lists.monkey-project.com/listinfo/monkey
>>
>>
>>
>>
>> --
>> Eduardo Silva
>> http://edsiperlinuxchile.cl <http://edsiper.linuxchile.cl>
>> http://monkey-project.com
>>
>
>


-- 
Eduardo Silva
http://edsiper.linuxchile.cl
http://monkey-project.com
_______________________________________________
Monkey mailing list
[email protected]
http://lists.monkey-project.com/listinfo/monkey

Reply via email to