Bug 49789 - Mono compilation for ARM pthread.h error
Summary: Mono compilation for ARM pthread.h error
Status: NEEDINFO
Alias: None
Product: Runtime
Classification: Mono
Component: General (show other bugs)
Version: 4.8.0 (C9)
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Vladimir Kargov
URL:
Depends on:
Blocks:
 
Reported: 2016-12-13 10:33 UTC by giona.imperatori
Modified: 2017-09-06 12:54 UTC (History)
6 users (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments

Description giona.imperatori 2016-12-13 10:33:40 UTC
Hi,

I'm filing this bug as suggested by the compiler error message.

I'm trying to compile Mono 4.8.0.374 for ARM.
I followed the instruction found here (which seems quite old, based on 1.xx): http://www.mono-project.com/docs/about-mono/supported-platforms/arm/

Building for the host AMD64 linux (Ubuntu) machine went smoothly.
In the ARM ScratchBox I got the following error during the ./configure step

[...]
checking pthread.h presence... yes
configure: WARNING: pthread.h: present but cannot be compiled
configure: WARNING: pthread.h:     check for missing prerequisite headers?
configure: WARNING: pthread.h: see the Autoconf documentation
configure: WARNING: pthread.h:     section "Present But Cannot Be Compiled"
configure: WARNING: pthread.h: proceeding with the compiler's result
configure: WARNING:     ## ---------------------------------------------------------------------------- ##
configure: WARNING:     ## Report this to http://bugzilla.xamarin.com/enter_bug.cgi?classification=Mono ##
configure: WARNING:     ## ---------------------------------------------------------------------------- ##
checking for pthread.h... no
checking pthread_np.h usability... no
checking pthread_np.h presence... no
checking for pthread_np.h... no
checking for pthread_mutex_timedlock... no
checking for pthread_getattr_np... no
checking for pthread_attr_get_np... no
checking for pthread_setname_np... no
checking for pthread_kill... no
checking for PTHREAD_MUTEX_RECURSIVE... no
configure: error: Posix system lacks support for recursive mutexes
Comment 1 Rodrigo Kumpera 2016-12-15 21:12:14 UTC
Hey Vladimir,

Can you take a look at this one?
Comment 2 Vladimir Kargov 2016-12-15 21:49:32 UTC
Hello.

Could you specify what version of Scratchbox were you using?
Comment 3 giona.imperatori 2016-12-16 08:13:45 UTC
Hello,

I used the repo "http://scratchbox.org/debian hathor main", so I guess I got the latest version from there.
Since I was not able to proceed I purged everything from my machine, that's why I now not able to give you the exact version.
Comment 4 Ludovic Henry 2017-09-06 12:54:32 UTC
Can you still reproduce with latest version of Mono?

Note You need to log in before you can comment on or make changes to this bug.