View previous topic :: View next topic |
Author |
Message |
Wizumwalt Guru
Joined: 20 Aug 2006 Posts: 547
|
Posted: Wed Aug 19, 2015 1:16 am Post subject: different slave node filesystem archs |
|
|
I have a master node using the following CFLAGS.
CFLAGS="-march=native -O2 -pipe".
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
I have a diskless filesystem under /diskless/node-type1, /diskless/node-type2. Problem is, these node-type filesystems were also built w/ the same CFLAGS as above. But this is on the master node where the CPU is much newer (by 6+ yrs) than the CPU's on the diskless node. So when booting the diskless node's file system on the actual diskless node, some of the services come up with 'illegal instruction.' Hence my issue.
If I understand this right, I should be able to compile each filesystem and kernel and export those file systems to each type of diskless node? I.e., chroot into the /diskless/node-type file system and rebuild everything using different CFLAGS (for the target nodes). Or will I have to setup some sort of cross-compile env? All my nodes use intel cpu's. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 23062
|
Posted: Thu Aug 20, 2015 1:26 am Post subject: |
|
|
You should be able to fix this without a cross-compiler. At the price of some optimizations on the host, you could continue sharing binaries if you rebuild everything with a -march that is a common subset of all the available CPUs. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|