Re: Build error with 1.7.2 and 1.7.2.1 on PPC Mac OS X 10.4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Mel,

Melton Low wrote:

> Error during build on 1.7.2.  I just tried building 1.7.2.1 with the
> same error.  A partial output from my attempt to build 1.7.2.1:
> 
>     * new build flags or prefix
>     CC fast-import.o
> powerpc-apple-darwin8-gcc-4.0.1: unrecognized option '-pthread'
>     CC abspath.o
[...]

Looks like it worked, though loudly.

What does

	$ gcc -v
	$ echo '
#		include <pthread.h>

		int main(void)
		{
			pthread_mutex_t test_mutex;
			int retcode = 0;
			retcode |= pthread_mutex_init(&test_mutex,(void *)0);
			retcode |= pthread_mutex_lock(&test_mutex);
			retcode |= pthread_mutex_unlock(&test_mutex);
			return retcode;
		}

	' >pthreadtest.c
	$ gcc -pthread pthreadtest.c
	$ echo $?
	$ ./a.out
	$ echo $?

say?

Regards,
Jonathan
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]