git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
MLMelton Low <softw.devl@gmail.com>
Date
Jul 30, 2010, 02:21 UTC
Message-ID
<BB59EA06-3B2E-4B61-8154-42D160125476@gmail.com>
In-Reply-To
<20100730014220.GC2182@burratino>
Hi Jonathan,
Show 41 quoted lines
> 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
Here is the output:
BigMac:~/work melton$ gcc -v
Using built-in specs.
Target: powerpc-apple-darwin8
Configured with: /var/tmp/gcc/gcc-5370~2/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=powerpc-apple-darwin8 --host=powerpc-apple-darwin8 --target=powerpc-apple-darwin8
Thread model: posix
gcc version 4.0.1 (Apple Computer, Inc. build 5370)
BigMac:~/work melton$ echo '
Show 13 quoted lines
> #               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

BigMac:~/work melton$ gcc -pthread pthreadtest.c powerpc-apple-darwin8-gcc-4.0.1: unrecognized option '-pthread' BigMac:~/work melton$ echo $? 0 BigMac:~/work melton$ ./a.out BigMac:~/work melton$ echo $? 0 BigMac:~/work melton$

Let me know anything else you would like me to try.
Mel
Previous: Jonathan NiederNext: David Aguilar
Message 3 of 4 in “Build error with 1.7.2 and 1.7.2.1 on PPC Mac OS X 10.4”
  1. Melton LowJul 29, 2010
  2. Jonathan NiederJul 30, 2010
  3. Melton LowJul 30, 2010
  4. David AguilarJul 30, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.