[flext] newbie has build problems on osx

Hannes Breitschädel hannes-b at gmx.at
Mon Jun 20 12:41:38 CEST 2011


Hi Thomas!
Thanks, now I was able to get one step further!

1) During compilation of "flbuf.cpp" I now get the error:
	
	#error Please upgrade your GNU compiler to one that supports __declspec.

	typing "gcc --version" shows
		i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
		Copyright (C) 2007 Free Software Foundation, Inc.

	I tried several gcc options, none of them worked

2) there are also a ton of "expected constructor, destructor, or type conversion" errors:

for example:
/Users/Hannes/flext_test/Pd-0.42.app/Contents/Resources/src/sched.h:142: error: expected constructor, destructor, or type conversion before ‘(’ token
/Users/Hannes/flext_test/Pd-0.42.app/Contents/Resources/src/pthread.h:801: error: expected constructor, destructor, or type conversion before ‘(’ token

then there's:

/usr/include/c++/4.2.1/i686-apple-darwin10/bits/gthr-default.h: In function ‘int __gthread_once(__gthread_once_t*, void (*)())’:
/usr/include/c++/4.2.1/i686-apple-darwin10/bits/gthr-default.h:575: error: ‘pthread_once’ was not declared in this scope
....

and:

/usr/include/c++/4.2.1/i686-apple-darwin10/bits/gthr-default.h:640: error: ‘pthread_mutexattr_init’ was not declared in this scope
/usr/include/c++/4.2.1/i686-apple-darwin10/bits/gthr-default.h:642: error: ‘pthread_mutexattr_settype’ was not declared in this scope
/usr/include/c++/4.2.1/i686-apple-darwin10/bits/gthr-default.h:644: error: ‘pthread_mutex_init’ was not declared in this scope
/usr/include/c++/4.2.1/i686-apple-darwin10/bits/gthr-default.h:646: error: ‘pthread_mutexattr_destroy’ was not declared in this scope


3) the compiler is called:

g++ -c -ffast-math -mmacosx-version-min=10.4 -O2   -fvisibility-inlines-hidden -arch i386 -mmmx -msse -msse2 -msse3 -mtune=nocona   -DFLEXT_USE_SIMD -DNDEBUG -DFLEXT_EXPORTS -DFLEXT_SYS=2 -DPD -I pd-darwin/release-single -I/Users/Hannes/flext_test/Pd-0.42.app/Contents/Resources/src source/flbuf.cpp -o pd-darwin/release-single/flbuf.opp_i386


could it be that there is a confusion with c and c++ ?

Thanks a lot!

Hannes




Anfang der weitergeleiteten E-Mail:

> Von: Thomas Grill <gr at grrrr.org>
> Datum: 18. Juni 2011 22:56:24 MESZ
> An: Hannes Breitschädel <hannes-b at gmx.at>
> Kopie: flext at grrrr.org
> Betreff: Re: [flext] flext newbie has build problems on osx
> 
> Hi Hannes,
> the build system is complaining that you can't build for PPC architectures.
> There is a line in buildsys/config-pd-gcc.txt defining which architectures you are building for.
> Replace that line with
> ARCH=i386
> which means 32-bit build for Intel, and try again.
> gr~~~
> 
> 
> 
> Am 18.06.2011 um 22:01 schrieb Hannes Breitschädel:
> 
>> Hi List!
>> 
>> 1) i checked out flext from the repository 
>> 
>> 2) typed in my osx terminal:  bash build.sh pd gcc
>> 
>> 3) edited only  one line in the file config-mac-pd-gcc.txt
>>   PDPATH=/Users/Hannes/flext_test/Pd-0.42.app/Contents/Resources
>> 
>> 	I am not sure whether I should change the other lines, because it is not clear to me whether it is an output of the script or an input to it:
>> 	FLEXTPREFIX=/usr/local
>> 	OUTPATH=pd-darwin
>> 	 INSTPATH=$(PDPATH)/extra
>> 	
>> 4) called again: bash build.sh pd gcc
>> 
>> and got this response:
>> 
>> make -f ./buildsys/gnumake-sub.mak  PLATFORM=mac RTSYS=pd COMPILER=gcc BUILDPATH=./buildsys/ PKGINFO=package.txt BUILDCLASS=flext USRCONFIG=config.txt USRMAKE=build/gnumake-mac-gcc.inc TARGETMODE=release TARGETTYPE=single _build_
>> buildsys/mac/gnumake-gcc-targets.inc:22: warning: overriding commands for target `pd-darwin/release-single'
>> buildsys/mac/gnumake-gcc-targets.inc:18: warning: ignoring old commands for target `pd-darwin/release-single'
>> mkdir -p pd-darwin/release-single
>> mkdir -p pd-darwin/release-single/
>> g++ -c -ffast-math -mmacosx-version-min=10.4 -O2   -DFLEXT_USE_SIMD -DNDEBUG -DFLEXT_EXPORTS -DFLEXT_SYS=2 -DPD -I/Users/Hannes/flext_test/Pd-0.42.app/Contents/Resources/src source/flext.h -o pd-darwin/release-single/flext.h.gch
>> mkdir -p ./
>> g++ -c -ffast-math -mmacosx-version-min=10.4 -O2   -fvisibility-inlines-hidden -arch ppc -mcpu=G4 -faltivec    -DFLEXT_USE_SIMD -DNDEBUG -DFLEXT_EXPORTS -DFLEXT_SYS=2 -DPD -I pd-darwin/release-single -I/Users/Hannes/flext_test/Pd-0.42.app/Contents/Resources/src source/flbase.cpp -o pd-darwin/release-single/flbase.opp_ppc
>> /usr/libexec/gcc/powerpc-apple-darwin10/4.2.1/as: assembler (/usr/bin/../libexec/gcc/darwin/ppc/as or /usr/bin/../local/libexec/gcc/darwin/ppc/as) for architecture ppc not installed
>> Installed assemblers are:
>> /usr/bin/../libexec/gcc/darwin/x86_64/as for architecture x86_64
>> /usr/bin/../libexec/gcc/darwin/i386/as for architecture i386
>> 
>> make[1]: *** [pd-darwin/release-single/flbase.opp_ppc] Error 1
>> make: *** [build-release-single] Error 2
>> 
>> 
>> i am running the script on an intel based mac book pro with osx 10.6.7
>> 
>> what could i do to fix this?
>> 
>> 
>> many thanks!
>> Hannes
>> 
>> 
>> _______________________________________________
>> http://grrrr.org/ext/flext
>> 
>> flext mailing list
>> flext at grrrr.org
>> http://grrrr.org/cgi-bin/mailman/listinfo/flext
> 
> --
> Thomas Grill
> http://grrrr.org
> +43 699 19715543
> 

----------------------------------------------------
D.I. Hannes Breitschädel
tel. +43 699 - 19 20 62 05
----------------------------------------------------




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://grrrr.org/pipermail/flext/attachments/20110620/07331147/attachment.htm>


More information about the flext mailing list