Experimental Physics and
| |||||||||||||||||
|
Just like you, I am trying to compile epics for a AMD64 linux box. I am running Debian. Compiling epics base stalls, because $(EPICS)/base/startup/EpicsHostArch.pl(and EpicsHostArch shell script) reports amd64 as "unsupported". I found a quick and dirty fix is to add x86_64 to the cpu list for x86-linux, i.e., change EpicsHostArch script to case $sysname in Linux ) os=linux cpu=`uname -m` case $cpu in i386 | i486 | i586 | i686 | x86_64 ) ### added x86_64 cpu=x86 And change the related lines in EpicsHostArch.pl to sub GetEpicsHostArch { # no args $arch=$Config{'archname'}; if ($arch =~ /sun4-solaris/) { return "solaris-sparc"; } elsif ($arch =~ m/i86pc-solaris/) { return "solaris-x86"; } elsif ($arch =~ m/sun4-sunos/) { return "sun4-68k"; } elsif ($arch =~ m/i[3-6]86-linux/) { return "linux-x86"; } elsif ($arch =~ m/x86_64/) { return "linux-x86"; ####this is a newly added line } elsif ($arch =~ m/MSWin32-x86/) { return "win32-x86"; } elsif ($arch =~ m/cygwin/) { return "cygwin-x86"; } elsif ($arch =~ m/PA-RISC1.1/) { return "hpux-parisc"; } elsif ($arch =~ m/darwin/) { return "darwin-ppc"; } else { return "unsupported"; } } The idea is to have 'uname -m' (which reports as x86_64 for AMD64) as linux-x86 for epics. Recompilation works fine. Since it uses x86_64 libs, the build is 64bit. A better way probably is as what you suggested, add x86_64 as a seperate architecture. I think you can just copy the linux-x86 files. ZY Ernest L. Williams Jr. wrote: Hi,
| ||||||||||||||||
ANJ, 02 Sep 2010 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |