[MacPorts] #18481: bzip2: universal build fails with 4 architectures

MacPorts noreply at macports.org
Sat Feb 14 14:59:42 PST 2009


#18481: bzip2: universal build fails with 4 architectures
--------------------------------------+-------------------------------------
  Reporter:  ryandesign@…             |       Owner:  ryandesign@…           
      Type:  defect                   |      Status:  closed                 
  Priority:  Normal                   |   Milestone:  Port Bugs              
 Component:  ports                    |     Version:  1.7.0                  
Resolution:  fixed                    |    Keywords:                         
      Port:  bzip2                    |  
--------------------------------------+-------------------------------------
Changes (by ryandesign@…):

  * status:  assigned => closed
  * resolution:  => fixed


Comment:

 Replying to [comment:4 mcalhoun@…]:
 > r46833 is a second attempt.

 Ok, now I get:

 {{{
 --->  Building bzip2
 DEBUG: Executing org.macports.build (bzip2)
 DEBUG: port allows a parallel build
 DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.4'
 DEBUG: Assembled command: 'cd
 "/mp/var/macports/build/_Users_rschmidt_macports_dports_archivers_bzip2/work/bzip2-1.0.5"
 && nice -n 10 make -j3 all PREFIX="/mp"'
 /usr/bin/gcc-4.0 -isysroot /Developer/SDKs/MacOSX10.4u.sdk  -arch i386
 -arch x86_64 -arch ppc -arch ppc64 -Wall -Winline -O2 -g
 -D_FILE_OFFSET_BITS=64 -c huffman.c

 If compilation produces errors, or a large number of warnings,
 please read README.COMPILATION.PROBLEMS -- you might be able to
 adjust the flags in this Makefile to improve matters.

 Also in README.COMPILATION.PROBLEMS are some hints that may help
 if your build produces an executable which is unable to correctly
 handle so-called 'large files' -- files of size 2GB or more.

 /usr/bin/gcc-4.0 -isysroot /Developer/SDKs/MacOSX10.4u.sdk  -arch i386
 -arch x86_64 -arch ppc -arch ppc64 -Wall -Winline -O2 -g
 -D_FILE_OFFSET_BITS=64 -c blocksort.c
 /usr/bin/gcc-4.0 -isysroot /Developer/SDKs/MacOSX10.4u.sdk  -arch i386
 -arch x86_64 -arch ppc -arch ppc64 -Wall -Winline -O2 -g
 -D_FILE_OFFSET_BITS=64 -c crctable.c
 /usr/bin/gcc-4.0 -isysroot /Developer/SDKs/MacOSX10.4u.sdk  -arch i386
 -arch x86_64 -arch ppc -arch ppc64 -Wall -Winline -O2 -g
 -D_FILE_OFFSET_BITS=64 -c randtable.c
 /usr/bin/gcc-4.0 -isysroot /Developer/SDKs/MacOSX10.4u.sdk  -arch i386
 -arch x86_64 -arch ppc -arch ppc64 -Wall -Winline -O2 -g
 -D_FILE_OFFSET_BITS=64 -c compress.c
 /usr/bin/gcc-4.0 -isysroot /Developer/SDKs/MacOSX10.4u.sdk  -arch i386
 -arch x86_64 -arch ppc -arch ppc64 -Wall -Winline -O2 -g
 -D_FILE_OFFSET_BITS=64 -c decompress.c
 /usr/bin/gcc-4.0 -isysroot /Developer/SDKs/MacOSX10.4u.sdk  -arch i386
 -arch x86_64 -arch ppc -arch ppc64 -Wall -Winline -O2 -g
 -D_FILE_OFFSET_BITS=64 -c bzlib.c
 /usr/bin/gcc-4.0 -isysroot /Developer/SDKs/MacOSX10.4u.sdk  -arch i386
 -arch x86_64 -arch ppc -arch ppc64 -Wall -Winline -O2 -g
 -D_FILE_OFFSET_BITS=64 -c bzip2.c
 /usr/bin/gcc-4.0 -isysroot /Developer/SDKs/MacOSX10.4u.sdk  -arch i386
 -arch x86_64 -arch ppc -arch ppc64 -Wall -Winline -O2 -g
 -D_FILE_OFFSET_BITS=64 -c bzip2recover.c
 /usr/bin/gcc-4.0 -isysroot /Developer/SDKs/MacOSX10.4u.sdk  -arch i386
 -arch x86_64 -arch ppc -arch ppc64 -Wall -Winline -O2 -g
 -D_FILE_OFFSET_BITS=64  -o bzip2recover bzip2recover.o
 rm -f libbz2.a
 ar cq libbz2.a blocksort.o huffman.o crctable.o randtable.o compress.o
 decompress.o bzlib.o
 ranlib libbz2.a
 rm -f libbz2.dylib
 /usr/bin/gcc-4.0 -isysroot /Developer/SDKs/MacOSX10.4u.sdk  -arch i386
 -arch x86_64 -arch ppc -arch ppc64 -dynamiclib blocksort.o huffman.o
 crctable.o randtable.o compress.o decompress.o bzlib.o -o
 libbz2.1.0.5.dylib \
         -install_name /mp/lib/libbz2.1.0.dylib \
         -compatibility_version 1.0 -current_version 1.0.5
 /usr/bin/gcc-4.0 -isysroot /Developer/SDKs/MacOSX10.4u.sdk  -arch i386
 -arch x86_64 -arch ppc -arch ppc64 -Wall -Winline -O2 -g
 -D_FILE_OFFSET_BITS=64  -o bzip2 bzip2.o -L. -lbz2
 ld64 warning: in /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libbz2.dylib,
 missing required architecture x86_64 in file
 Undefined symbols for architecture x86_64:
   _BZ2_bzRead, referenced from:
       _uncompress in bzip2.o
       _testf in bzip2.o
   _BZ2_bzWriteOpen, referenced from:
       _compress in bzip2.o
   _BZ2_bzReadClose, referenced from:
       _uncompress in bzip2.o
       _uncompress in bzip2.o
       _testf in bzip2.o
       _testf in bzip2.o
   _BZ2_bzlibVersion, referenced from:
       _license in bzip2.o
       _usage in bzip2.o
   _BZ2_bzWrite, referenced from:
       _compress in bzip2.o
   _BZ2_bzReadOpen, referenced from:
       _uncompress in bzip2.o
       _testf in bzip2.o
   _BZ2_bzReadGetUnused, referenced from:
       _uncompress in bzip2.o
       _testf in bzip2.o
   _BZ2_bzWriteClose64, referenced from:
       _compress in bzip2.o
       _compress in bzip2.o
 ld64-62.1 failed: symbol(s) not found for architecture x86_64
 collect2: ld returned 1 exit status
 ld64 warning: in /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libbz2.dylib,
 missing required architecture ppc64 in file
 Undefined symbols for architecture ppc64:
   _BZ2_bzRead, referenced from:
       _uncompress in bzip2.o
       _testf in bzip2.o
   _BZ2_bzWriteOpen, referenced from:
       _compress in bzip2.o
   _BZ2_bzReadClose, referenced from:
       _uncompress in bzip2.o
       _uncompress in bzip2.o
       _testf in bzip2.o
       _testf in bzip2.o
   _BZ2_bzlibVersion, referenced from:
       _license in bzip2.o
       _usage in bzip2.o
   _BZ2_bzWrite, referenced from:
       _compress in bzip2.o
   _BZ2_bzReadOpen, referenced from:
       _uncompress in bzip2.o
       _testf in bzip2.o
   _BZ2_bzReadGetUnused, referenced from:
       _uncompress in bzip2.o
       _testf in bzip2.o
   _BZ2_bzWriteClose64, referenced from:
       _compress in bzip2.o
       _compress in bzip2.o
 ld64-62.1 failed: symbol(s) not found for architecture ppc64
 collect2: ld returned 1 exit status
 lipo: can't open input file: /var/tmp//ccWMrcFz.out (No such file or
 directory)
 make: *** [bzip2] Error 1
 make: *** Waiting for unfinished jobs....
 ln -s libbz2.1.0.5.dylib libbz2.1.0.dylib
 make: *** Waiting for unfinished jobs....
 ln -s libbz2.1.0.5.dylib libbz2.dylib
 make: *** Waiting for unfinished jobs....
 }}}

 Note that it's creating the symlinks ''after'' it's already tried to test
 the thing. So this is a parallel build issue that's a result of the
 additions that have been patched in to build a shared library in the first
 place, and I'm surprised I never ran into this issue before. Fixed in
 r46841. And now everything builds nicely! Thank you for your help.

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


More information about the macports-tickets mailing list