Re: XCode Link Error - What does this mean?
Re: XCode Link Error - What does this mean?
- Subject: Re: XCode Link Error - What does this mean?
- From: Greg Guerin <email@hidden>
- Date: Fri, 2 May 2008 19:55:57 -0700
Jason Watts wrote:
>I have to disagree. This is a bug, IMO. The tool chain is conveying
>a value from one domain (the set of file system paths) to another (the
>set of -filelist arguments). Mapping from one domain to the other
>while preserving the semantics of the value requires more than simply
>passing the original value as is. In this case a comma in a path
>means something different than a comma in a -filelist argument, so
>comma must be properly translated when mapping from one domain to the
>other. Xcode (or gcc or collect2...) is not doing that.
Two points:
1. There might not be a mapping (no escape mechanism).
2. It isn't failing in an intelligible way.
If there is no mapping and no escape mechanism, then it should qualify the
pathname before passing it into gcc or any other command. If the pathname
doesn't qualify, the build should fail at that point with an intelligable
message: "Can't use pathnames with ${OffendingChar} in them".
It can't be that hard. For example, write a command-line tool that
qualifies its args and either exits with status 0 if all qualify, or fails
with an error message and status 1 for args that don't qualify. Then run
that command at the start of every one of Xcode's build procedures.
For reference, the -filelist is passed to the linker (ld), which defines
the semantics of commas in this case (man ld). IIRC, there are other
linker args that also use comma separators, so I don't think -filelist is
isolated.
Embedded commas happens to be the bugbear here. Another one that comes up
in other situations is ":" in a pathname, which appears in Finder as an
embedded "/" in a name. The thing is, environment variables like PATH use
":" to separate entries in a list. So an embedded unescaped ":" wreaks
havoc.
-- GG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden