[MacPorts] #52155: libsdl @1.2.15_3 is not building universal

MacPorts noreply at macports.org
Thu Sep 1 19:19:05 PDT 2016


#52155: libsdl @1.2.15_3 is not building universal
------------------------------------+--------------------------------
 Reporter:  kenneth.f.cunningham@…  |      Owner:  macports-tickets@…
     Type:  defect                  |     Status:  new
 Priority:  Normal                  |  Milestone:
Component:  ports                   |    Version:  2.3.4
 Keywords:                          |       Port:  libSDL @1.2.15
------------------------------------+--------------------------------
 I don't seem to be able to get libSDL to build as universal (required as
 i386 for another port I'm working on).

 {{{
 $ sudo port -v install libsdl @1.2.15_3 +universal +x11
 }}}

 {{{

 $ otool -vh /opt/local/lib/libSDL.a
 Archive : /opt/local/lib/libSDL.a
 /opt/local/lib/libSDL.a(SDL.o):
 Mach header
       magic cputype cpusubtype  caps    filetype ncmds sizeofcmds
 flags
 MH_MAGIC_64  X86_64        ALL  0x00      OBJECT     4        672
 SUBSECTIONS_VIA_SYMBOLS
 /opt/local/lib/libSDL.a(SDL_error.o):
 }}}

 I tried unsetting the build_arch in my macports.conf but that made no
 difference.

 I did get libSDL to build with only i386 architecture by manually setting
 build_arch in macports.conf to i386

 {{{

 cxx_stdlib                      libc++
 buildfromsource                 always
 delete_la_files                 yes
 default_compilers               macports-clang-3.7 macports-clang-3.4
 macports-clang-3.3 gcc-4.2 apple-gcc-4.2 gcc-4.0
 #build_arch                     x86_64
 build_arch                      i386
 }}}

 and building libSDL

 {{{
 $ sudo port -v install libsdl @1.2.15_3+x11
 }}}

 {{{

 $ otool -vh /opt/local/lib/libSDL.a
 Archive : /opt/local/lib/libSDL.a
 /opt/local/lib/libSDL.a(SDL.o):
 Mach header
       magic cputype cpusubtype  caps    filetype ncmds sizeofcmds
 flags
    MH_MAGIC    I386        ALL  0x00      OBJECT     4        448
 SUBSECTIONS_VIA_SYMBOLS
 /opt/local/lib/libSDL.a(SDL_error.o):
 }}}

 I'm on this on a 10.6 machine, upgraded to libc++. Original attempted
 +universal build log attached.

-- 
Ticket URL: <https://trac.macports.org/ticket/52155>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list