On 30.03.2009, at 08:05, Bryan Blackburn wrote:
On Mon, Mar 30, 2009 at 12:11:46AM -0500, Ryan Schmidt said:On Mar 29, 2009, at 11:17, Jochen Küpper wrote:after the announcement of 1.7.1 I run port selfupdate, however, this bails -- could be due to gcc_select 4.3?So, this is a Mac OS X 10.5.6 system with MacPorts 1.7.0. I have usedgcc_select to pick gcc-mp-4.3: /opt/local/bin/gcc@ -> /opt/local/bin/gcc-mp-4.3I don't know.... could you try removing the /opt/local/bin/gcc symlink and see if selfupdate then works? I would have hoped that selfupdate, like MacPorts itself, would use only the very specific gcc version with whichwe have all tested (/usr/bin/gcc-4.0).selfupdate, or more specifically, configure, removes ${prefix}/bin and ${prefix}/sbin from PATH prior to running (through MP_PATH_SCAN in aclocal.m4) so nothing there like gcc should even be seen.
That seems to be correct; from /opt/local/var/macports/sources/ rsync.macports.org/release/base/config.log
configure:2605: checking for C compiler version configure:2613: gcc --version >&5 i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5490)However, it does not seem to make sure that the correct gcc is used for building!
When Icd /opt/local/var/macports/sources/rsync.macports.org/release/base/ src/tclobjc1.0
and then run sudo make CC=/usr/bin/gcc it does successfully compile everything in there...To me this looks like it "correctly" makes sure that GCC is not from $ {prefix}, but then lets make happily (fatally) use whatever gcc it finds...
If I remove /opt/local/bin/gcc everything works as expected.So, port selfupdate really needs to pass CC to make or, prefrable (because better visible) set it in the Makefiles...
Anyway, thanks for all your work and for your suggestions on this issue.
Using 'sudo port -d selfupdate' would be more helpful as the issue is probably before the output we're seeing.
Not really, this is the first error I am getting when using my original setup:
===> making all in src/tclobjc1.0gcc -c -DUSE_TCL_STUBS -g -O2 -g -Os -DHAVE_CONFIG_H -I.. -I. -I"/ usr/include" -DTCL_THREADS=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 - D_THREAD_SAFE=1 -DHAVE_PTHREAD_ATTR_SETSTACKSIZE=1 - DHAVE_PTHREAD_ATFORK=1 -DHAVE_READDIR_R=1 -DMAC_OSX_TCL=1 - DHAVE_CFBUNDLE=1 -DUSE_VFORK=1 -DTCL_DEFAULT_ENCODING=\"utf-8\" - DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 - DHAVE_STRTOLL=1 -DHAVE_STRTOULL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 - DNO_VALUES_H=1 -DHAVE_LIMITS_H=1 -DHAVE_UNISTD_H=1 - DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 - DHAVE_TM_ZONE=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 - DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_ST_BLKSIZE=1 - DSTDC_HEADERS=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_LANGINFO=1 - DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_FILIO_H=1 -include tclArch.h - UPACKAGE_NAME -UPACKAGE_TARNAME -UPACKAGE_VERSION -UPACKAGE_STRING - UPACKAGE_BUGREPORT -fno-common tclobjc.m -o tclobjc.o In file included from /System/Library/Frameworks/Foundation.framework/ Headers/NSAffineTransform.h:5, from /System/Library/Frameworks/Foundation.framework/ Headers/Foundation.h:13,
from tclobjc.m:42:
/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:
122: error: expected ';' before '__attribute__'
In file included from /System/Library/Frameworks/Foundation.framework/
Headers/NSGeometry.h:7,
from /System/Library/Frameworks/Foundation.framework/
Headers/NSAffineTransform.h:6,
from /System/Library/Frameworks/Foundation.framework/
Headers/Foundation.h:13,
from tclobjc.m:42:
/System/Library/Frameworks/Foundation.framework/Headers/NSCoder.h:79:
error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSCoder.h:87:
error: expected ';' before '__attribute__'
In file included from /System/Library/Frameworks/Foundation.framework/
Headers/Foundation.h:15,
from tclobjc.m:42:
/System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:62:
error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:66:
error: expected ';' before '__attribute__'
In file included from /System/Library/Frameworks/Foundation.framework/
Headers/NSAttributedString.h:5,
from /System/Library/Frameworks/Foundation.framework/
Headers/Foundation.h:16,
from tclobjc.m:42:
/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:
345: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:
346: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:
347: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:
348: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:
349: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:
350: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:
352: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:
353: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:
355: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:
356: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:
357: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:
358: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:
360: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:
361: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:
362: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:
363: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:
364: error: expected ';' before '__attribute__'
In file included from /System/Library/Frameworks/Foundation.framework/
Headers/NSAttributedString.h:6,
from /System/Library/Frameworks/Foundation.framework/
Headers/Foundation.h:16,
from tclobjc.m:42:
/System/Library/Frameworks/Foundation.framework/Headers/NSDictionary.h:
45: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSDictionary.h:
50: error: expected ';' before '__attribute__'
In file included from /System/Library/Frameworks/Foundation.framework/
Headers/NSHashTable.h:5,
from /System/Library/Frameworks/Foundation.framework/
Headers/Foundation.h:43,
from tclobjc.m:42:
/System/Library/Frameworks/Foundation.framework/Headers/
NSPointerFunctions.h:59: error: stray '@' in program
/System/Library/Frameworks/Foundation.framework/Headers/
NSPointerFunctions.h:59: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'NSUInteger'
/System/Library/Frameworks/Foundation.framework/Headers/
NSPointerFunctions.h:60: error: stray '@' in program
/System/Library/Frameworks/Foundation.framework/Headers/
NSPointerFunctions.h:60: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'BOOL'
/System/Library/Frameworks/Foundation.framework/Headers/
NSPointerFunctions.h:61: error: stray '@' in program
/System/Library/Frameworks/Foundation.framework/Headers/
NSPointerFunctions.h:61: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'NSUInteger'
/System/Library/Frameworks/Foundation.framework/Headers/
NSPointerFunctions.h:62: error: stray '@' in program
/System/Library/Frameworks/Foundation.framework/Headers/
NSPointerFunctions.h:62: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'NSString'
/System/Library/Frameworks/Foundation.framework/Headers/
NSPointerFunctions.h:65: error: stray '@' in program
/System/Library/Frameworks/Foundation.framework/Headers/
NSPointerFunctions.h:65: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'void'
/System/Library/Frameworks/Foundation.framework/Headers/
NSPointerFunctions.h:66: error: stray '@' in program
/System/Library/Frameworks/Foundation.framework/Headers/
NSPointerFunctions.h:66: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'void'
/System/Library/Frameworks/Foundation.framework/Headers/
NSPointerFunctions.h:69: error: stray '@' in program
/System/Library/Frameworks/Foundation.framework/Headers/
NSPointerFunctions.h:69: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'BOOL'
/System/Library/Frameworks/Foundation.framework/Headers/
NSPointerFunctions.h:70: error: stray '@' in program
/System/Library/Frameworks/Foundation.framework/Headers/
NSPointerFunctions.h:70: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'BOOL'
In file included from /System/Library/Frameworks/Foundation.framework/
Headers/NSKeyValueCoding.h:9,
from /System/Library/Frameworks/Foundation.framework/
Headers/Foundation.h:49,
from tclobjc.m:42:
/System/Library/Frameworks/Foundation.framework/Headers/NSSet.h:45:
error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSSet.h:50:
error: expected ';' before '__attribute__'
In file included from /System/Library/Frameworks/Foundation.framework/
Headers/Foundation.h:76,
from tclobjc.m:42:
/System/Library/Frameworks/Foundation.framework/Headers/NSRunLoop.h:
44: error: expected ';' before '__attribute__'
In file included from /System/Library/Frameworks/Foundation.framework/
Headers/NSURL.h:6,
from /System/Library/Frameworks/Foundation.framework/
Headers/Foundation.h:88,
from tclobjc.m:42:
/System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h:
52: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h:
53: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h:
54: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h:
55: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h:
56: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h:
67: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h:
68: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h:
70: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h:
71: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h:
73: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h:
74: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h:
76: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h:
77: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h:
79: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h:
80: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h:
83: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h:
86: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h:
89: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h:
90: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h:
93: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h:
94: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h:
95: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h:
97: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h:
98: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h:
99: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h:
100: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h:
102: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h:
103: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h:
104: error: expected ';' before '__attribute__'
In file included from /System/Library/Frameworks/Foundation.framework/
Headers/Foundation.h:88,
from tclobjc.m:42:
/System/Library/Frameworks/Foundation.framework/Headers/NSURL.h:75:
error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURL.h:76:
error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURL.h:77:
error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURL.h:78:
error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURL.h:83:
error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURL.h:84:
error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURL.h:85:
error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURL.h:88:
error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURL.h:89:
error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURL.h:91:
error: expected ';' before '__attribute__'
make[2]: *** [tclobjc.o] Error 1 make[1]: *** [all] Error 1 make: *** [all] Error 1DEBUG: Error installing new MacPorts base: shell command "cd /opt/ local/var/macports/sources/rsync.macports.org/release/base && ./ configure --prefix=/opt/local --with-tclpackage=/Library/Tcl --with- install-user=root --with-install-group=admin --with-directory- mode=0755 && make && make install" returned error 2 Command output: /System/Library/Frameworks/Foundation.framework/ Headers/NSURLHandle.h:80: error: expected ';' before '__attribute__' /System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h: 83: error: expected ';' before '__attribute__' /System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h: 86: error: expected ';' before '__attribute__' /System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h: 89: error: expected ';' before '__attribute__' /System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h: 90: error: expected ';' before '__attribute__' /System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h: 93: error: expected ';' before '__attribute__' /System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h: 94: error: expected ';' before '__attribute__' /System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h: 95: error: expected ';' before '__attribute__' /System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h: 97: error: expected ';' before '__attribute__' /System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h: 98: error: expected ';' before '__attribute__' /System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h: 99: error: expected ';' before '__attribute__' /System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h: 100: error: expected ';' before '__attribute__' /System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h: 102: error: expected ';' before '__attribute__' /System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h: 103: error: expected ';' before '__attribute__' /System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h: 104: error: expected ';' before '__attribute__' In file included from /System/Library/Frameworks/Foundation.framework/ Headers/Foundation.h:88,
from tclobjc.m:42:
/System/Library/Frameworks/Foundation.framework/Headers/NSURL.h:75:
error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURL.h:76:
error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURL.h:77:
error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURL.h:78:
error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURL.h:83:
error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURL.h:84:
error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURL.h:85:
error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURL.h:88:
error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURL.h:89:
error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURL.h:91:
error: expected ';' before '__attribute__'
make[2]: *** [tclobjc.o] Error 1
make[1]: *** [all] Error 1
make: *** [all] Error 1
while executing
"macports::selfupdate [array get global_options]"
Error: /opt/local/bin/port: port selfupdate failed: Error installing
new MacPorts base: shell command "cd /opt/local/var/macports/sources/
rsync.macports.org/release/base && ./configure --prefix=/opt/local --
with-tclpackage=/Library/Tcl --with-install-user=root --with-install-
group=admin --with-directory-mode=0755 && make && make install"
returned error 2
Command output: /System/Library/Frameworks/Foundation.framework/
Headers/NSURLHandle.h:80: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h:
83: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h:
86: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h:
89: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h:
90: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h:
93: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h:
94: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h:
95: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h:
97: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h:
98: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h:
99: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h:
100: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h:
102: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h:
103: error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h:
104: error: expected ';' before '__attribute__'
In file included from /System/Library/Frameworks/Foundation.framework/
Headers/Foundation.h:88,
from tclobjc.m:42:
/System/Library/Frameworks/Foundation.framework/Headers/NSURL.h:75:
error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURL.h:76:
error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURL.h:77:
error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURL.h:78:
error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURL.h:83:
error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURL.h:84:
error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURL.h:85:
error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURL.h:88:
error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURL.h:89:
error: expected ';' before '__attribute__'
/System/Library/Frameworks/Foundation.framework/Headers/NSURL.h:91:
error: expected ';' before '__attribute__'
make[2]: *** [tclobjc.o] Error 1 make[1]: *** [all] Error 1 make: *** [all] Error 1
PGP.sig
Description: This is a digitally signed message part
_______________________________________________ macports-users mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
