[MacPorts] #33003: clang++ 2.9, 3.0 and 3.1 fail to link properly

MacPorts noreply at macports.org
Thu Jan 26 01:42:20 PST 2012


#33003: clang++ 2.9, 3.0 and 3.1 fail to link properly
----------------------------------+-----------------------------------------
 Reporter:  roland@…              |       Owner:  jeremyhu@…                     
     Type:  defect                |      Status:  new                            
 Priority:  Normal                |   Milestone:                                 
Component:  ports                 |     Version:  2.0.3                          
 Keywords:                        |        Port:  clang-2.9, clang-3.0, clang-3.1
----------------------------------+-----------------------------------------

Comment(by roland@…):

 Replying to [comment:2 emanuele.giaquinta@…]:
 > Does /opt/local/bin come after /usr/bin in your PATH? clang is using
 "/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld" as linker, which does not
 work. I get the same error with "PATH=/usr/bin:/opt/local/bin
 clang++-mp-3.0 -v a.cc", although clang uses "/usr/bin/ld" in my case.

 My `PATH` is as follows:

 {{{
 /Users/roland/bin:/Users/roland/local/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
 }}}

 So `/opt/local/bin` comes before `/usr/bin` (the first two directories of
 the `PATH` contain nothing related to `clang` nor `ld`.).

-- 
Ticket URL: <https://trac.macports.org/ticket/33003#comment:4>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list