IRIS Knowledge Base

   Incorporated Research Institutions for Seismology




rdseed bad CPU type error (64 bit)

Q:  The "mac x86" precompiled version of rdseed is not x86, it is x86_64. So
older 32 bit intel macs, like mine can't run it.

I can easily get by running the powerpc rdseed in compatibility mode
(or recompile), but others might be more confused.

$ ./rdseed.MAC.x86
-bash: ./rdseed.MAC.x86: Bad CPU type in executable
$ file !$
file ./rdseed.MAC.x86
./rdseed.MAC.x86: Mach-O 64-bit executable x86_64


A: You can still rebuild rdseed for 32-bit systems.  There is an entry in the makefile to force 32 bit compilation:

    # Uncomment this line to force a 32-bit build
    #-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE are flags for gcc only
    #CFLAGS = -O -m32 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE


    Do a "make clean" and then a "make" and it should work for you.  We are going fully 64 bit on our SEED apps because we are starting to build files that are larger than 2GB and this means that distributing a 32 bit app by default it would automatically break.  We allow the 32-bit app to be built, but put in the caveat that the files have to stay under the Ultra-Large size for it to work.



Related Articles

Attachments

No attachments were found.

Visitor Comments

Article Details

Last Updated
1st of July, 2011

Would you like to...

Print this page  Print this page

Email this page  Email this page

Post a comment  Post a comment

 Subscribe me

Subscribe me  Add to favorites

Remove Highlighting Remove Highlighting

Edit this Article

Quick Edit

Export to PDF


User Opinions

No users have voted.

How would you rate this answer?




Thank you for rating this answer.

Continue