Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've looked at a few sources on how to go about cross-compiling, and from what I understand, I need the header files for the system I am compiling for.

Some background info: The school I am a student at has student Solaris accounts, which run the SPARC architecture. I have the x86 Solaris installed on a virtual machine now, but I can't figure out how to get SPARC header files. My goal is to be able to compile binaries on my VM such as nano that I can put on my student account.

I do need the header files from SPARC Solaris, right? Or will it work with the x86 Solaris I have on my VM? If I do need them, is it possible to extract them from the SPARC installation iso?

Sorry if it's something obvious, I'm new to Solaris and cross-compilation.

share|improve this question

closed as off topic by SvW, EEAA, mfinni, Michael Hampton, mdpc Feb 25 '13 at 1:56

Questions on Server Fault are expected to relate to professional server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

    
This is off-topic here (Server Fault is for pro sysadmins, see the FAQ). It might fit on Stack Overflow or Unix & Linux, but please check their FAQ and archives first. –  SvW Feb 24 '13 at 20:41
    
Sorry, I saw another question similar from Google that was moved from StackOverflow to here, so I made an assumption. I guess "Unix and Linux" would be best then? –  mellowmaroon Feb 24 '13 at 20:44
    
I believe stackoverflow might be a better match, as this is a development question. And you'd need quite a bit more than just header files (which should be the same, anyway). Why do you need to cross compile? If it works on x86_64, it should work the same when recompiled on SPARC (modulo asm or such hacks), so... –  vonbrand Feb 25 '13 at 3:04
add comment

1 Answer

The header files are not that much what you need here. Actually, assuming an identical Solaris release/update, you already have them given the fact there is a single Solaris source tree.

What you need is a cross-compiler and finding one is not going to be an easy task. You probably end up trying building one from gcc source code and to do it, you'll need libraries from a Solaris on SPARC machine.

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.