[MacPorts] #31766: flac @1.2.1: error while compiling with clang from Xcode 4.2

MacPorts noreply at macports.org
Sun Mar 25 02:39:53 PDT 2012


#31766: flac @1.2.1: error while compiling with clang from Xcode 4.2
-----------------------------------------+----------------------------------
  Reporter:  philippe.bernery@…          |       Owner:  jeremyhu@…           
      Type:  defect                      |      Status:  new                  
  Priority:  Normal                      |   Milestone:                       
 Component:  ports                       |     Version:  2.0.3                
Resolution:                              |    Keywords:  clang                
      Port:  flac                        |  
-----------------------------------------+----------------------------------

Comment(by jeremyhu@…):

 Here's a comparison from the two runs (llvm-gcc versus clang):

 {{{
 /bin/sh ../../libtool --mode=link /usr/bin/llvm-g++-4.2  -pipe -O2 -arch
 x86_64 -arch i386  -L/opt/local/lib -arch x86_64 -arch i386 -o
 libFLAC++.la -rpath /opt/local/lib -version-info 8:0:2 metadata.lo
 stream_decoder.lo stream_encoder.lo ../libFLAC/libFLAC.la
 /usr/bin/llvm-g++-4.2 -dynamiclib -arch x86_64 -arch i386 -single_module
 ${wl}-undefined ${wl}dynamic_lookup -o .libs/libFLAC++.6.2.0.dylib
 .libs/metadata.o .libs/stream_decoder.o .libs/stream_encoder.o
 -L/opt/local/lib ../libFLAC/.libs/libFLAC.dylib
 /opt/local/lib/libogg.dylib  -install_name
 /opt/local/lib/libFLAC++.6.dylib -Wl,-compatibility_version -Wl,9
 -Wl,-current_version -Wl,9.0
 }}}

 {{{
 /bin/sh ../../libtool --mode=link /usr/bin/clang++  -pipe -O2 -arch x86_64
 -arch i386  -L/opt/local/lib -arch x86_64 -arch i386 -o libFLAC++.la
 -rpath /opt/local/lib -version-info 8:0:2 metadata.lo stream_decoder.lo
 stream_encoder.lo ../libFLAC/libFLAC.la
 /usr/bin/clang++ -r -keep_private_externs -nostdlib -o
 .libs/libFLAC++.6.2.0.dylib-master.o  .libs/metadata.o
 .libs/stream_decoder.o .libs/stream_encoder.o
 /usr/bin/clang++ -dynamiclib -arch x86_64 -arch i386 ${wl}-undefined
 ${wl}dynamic_lookup -o .libs/libFLAC++.6.2.0.dylib .libs/libFLAC++.6.2.0
 .dylib-master.o  -L/opt/local/lib ../libFLAC/.libs/libFLAC.dylib
 /opt/local/lib/libogg.dylib  -install_name
 /opt/local/lib/libFLAC++.6.dylib -Wl,-compatibility_version -Wl,9
 -Wl,-current_version -Wl,9.0
 ld: warning: ignoring file .libs/libFLAC++.6.2.0.dylib-master.o, file was
 built for unsupported file format which is not the architecture being
 linked (i386)
 }}}

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


More information about the macports-tickets mailing list