On 1/23/13 11:39 PM, Sean Lake wrote: > Hello all, > > I saw previous emails about gdl not compiling and figured that this was the > same. Since it still won't compile, I figure I'll pass this on. > > The errors and system information follow. > > Thanks, > Sean > > g++ -DHAVE_CONFIG_H -I. -I.. -I/sw/include -I/sw/include -I/sw -I/sw/include > -I/sw/include -I/sw/opt/netcdf7/include -I/sw/include -I/sw/include > -I/sw/include/hdf -I/sw/include/hdf5 -I/sw/include -I/sw/include > -I/usr/X11/include -I/sw/opt/netcdf7/include -I/sw/include -g -O2 -MT > gdl-datatypes.o -MD -MP -MF .deps/gdl-datatypes.Tpo -c -o gdl-datatypes.o > `test -f 'datatypes.cpp' || echo './'`datatypes.cpp > getas.cpp:77: error: template-id 'GetAs<>' for 'typename Data_< > <template-parameter-1-1> >::Ty Data_<SpDPtr>::GetAs(SizeT)' does not match > any template declaration > getas.cpp:77: error: invalid function declaration > getas.cpp:86: error: template-id 'GetAs<>' for 'typename Data_< > <template-parameter-1-1> >::Ty Data_<SpDObj>::GetAs(SizeT)' does not match > any template declaration > getas.cpp:86: error: invalid function declaration > datatypes.cpp: In member function 'int Data_< <template-parameter-1-1> > >::Scalar2index(SizeT&) const [with Sp = SpDByte]': > datatypes.cpp:5419: instantiated from here > datatypes.cpp:2067: warning: comparison is always false due to limited range > of data type > datatypes.cpp: In member function 'int Data_< <template-parameter-1-1> > >::Scalar2index(SizeT&) const [with Sp = SpDUInt]': > datatypes.cpp:5421: instantiated from here > datatypes.cpp:2067: warning: comparison is always false due to limited range > of data type > basic_op.cpp: In function 'T pow(T, T) [with T = unsigned char]': > basic_op.cpp:4549: instantiated from 'Data_<Sp2>* Data_< > <template-parameter-1-1> >::Pow(BaseGDL*) [with Sp = SpDByte]' > datatypes.cpp:5419: instantiated from here > basic_op.cpp:4514: warning: comparison is always false due to limited range > of data type > basic_op.cpp: In function 'T pow(T, T) [with T = short unsigned int]': > basic_op.cpp:4549: instantiated from 'Data_<Sp2>* Data_< > <template-parameter-1-1> >::Pow(BaseGDL*) [with Sp = SpDUInt]' > datatypes.cpp:5421: instantiated from here > basic_op.cpp:4514: warning: comparison is always false due to limited range > of data type > mv -f .deps/gdl-convert2.Tpo .deps/gdl-convert2.Po > g++ -DHAVE_CONFIG_H -I. -I.. -I/sw/include -I/sw/include -I/sw -I/sw/include > -I/sw/include -I/sw/opt/netcdf7/include -I/sw/include -I/sw/include > -I/sw/include/hdf -I/sw/include/hdf5 -I/sw/include -I/sw/include > -I/usr/X11/include -I/sw/opt/netcdf7/include -I/sw/include -g -O2 -MT > gdl-dcommon.o -MD -MP -MF .deps/gdl-dcommon.Tpo -c -o gdl-dcommon.o `test -f > 'dcommon.cpp' || echo './'`dcommon.cpp > make[3]: *** [gdl-datatypes.o] Error 1 > make[3]: *** Waiting for unfinished jobs.... > mv -f .deps/gdl-dcommon.Tpo .deps/gdl-dcommon.Po > make[3]: Leaving directory `/sw/src/fink.build/gdl-0.9.3-1/gdl-0.9.3/src' > make[2]: *** [all-recursive] Error 1 > make[2]: Leaving directory `/sw/src/fink.build/gdl-0.9.3-1/gdl-0.9.3/src' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/sw/src/fink.build/gdl-0.9.3-1/gdl-0.9.3' > make: *** [all] Error 2 > ### execution of make failed, exit code 2 > > Failed: phase compiling: gdl-0.9.3-1 failed > > Package manager version: 0.34.4 > Distribution version: selfupdate-rsync Wed Jan 23 22:15:21 2013, 10.5, powerpc > Trees: local/main stable/main stable/crypto unstable/main unstable/crypto > Xcode.app: 3.1.4 > Xcode command-line tools: 3.1.4 > Max. Fink build jobs: 2
Yup. It looks like gcc-4.0.1 is too old. The package builds successfully with gcc-4.2 from Xcode for me, though. This can be worked around by editing /sw/fink/10.4/stable/main/finkinfo/sci/gdl.info and adding a couple of lines: SetCC: gcc-4.2 SetCXX: g++-4.2 However, this should only be done for 10.5. On 10.6 people with clean installs of Xcode 4.2 don't have gcc-4.2 or g++-4.2. The .info file will need either: 1) a separate 10.5 version, or 2) to have conditionals set up to test the OS version and set CC=gcc-4.2 and CXX=g++-4.2 on 10.5 only. -- Alexander Hansen, Ph.D. Fink User Liaison My package updates: http://finkakh.wordpress.com/ ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d _______________________________________________ Fink-users mailing list Fink-users@lists.sourceforge.net List archive: http://news.gmane.org/gmane.os.macosx.fink.user Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-users