How to fix "Bad cpu type" in...

kobby liao
  • kobby liao

    kobby liao - 2011-03-10


      I download p7zip_9.13 source code.
      I use "make all2" to build "7za" in Intel PC.
      But when I use "7za" in power PC, the AP will fail and show "bad cpu type ….".
      Doese anyone know, how to fix it?
      How can I make a universal "7za" that it can be used in Intel and Power PC?
      Thanks a lot!!!

  • my p7zip

    my p7zip - 2011-03-10

    I didn't try to make an universal built.

    If you want to compile for ppc on an Intel MacOSX :

    cp  makefile.macosx_32bits_ppc   makefile.machine
    make clean

    you now have "bin/7za" that can run on PPC.

  • kobby liao

    kobby liao - 2011-03-13

      Thanks for your reply.
      I will try it if this will OK on intel and PPC.

      I can build "7za" in intel, and it can be run in intel PC. But it is fail in PPC.
      I can also build "7za" in PPC, but it will be run fail in Intel.
      How can I build a "7za" that it can run on Intel and PPC?

      Thanks  a lot!!!

  • my p7zip

    my p7zip - 2011-03-13

    Why do you need an universal binary ?

    It's a waste of disk space.

    You can provide 2 packages and let the user choose the good one for its Mac …

    If you think that your users cannot know what king of CPU he has,


    cp makefile.macosx_32bits_ppc makefile.machine

    edit makefile.machine to change
      -mmacosx-version-min=10.4 -arch ppc
      -force_cpusubtype_ALL -mmacosx-version-min=10.4 -arch i386 -arch ppc

    make clean

    Remark : I did not try it …


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks