Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
different slave node filesystem archs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Wizumwalt
Guru
Guru


Joined: 20 Aug 2006
Posts: 547

PostPosted: Wed Aug 19, 2015 1:16 am    Post subject: different slave node filesystem archs Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23062

PostPosted: Thu Aug 20, 2015 1:26 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
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