Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Brynet-Inc wrote:Hmm.. That's a strange error.. haven't seen that one.. are you using a Makefile? Does it compile when manually evoked? Code Syntax issue?
Bus error is what OS X likes to call segfaults.
It's a mkfile, mk is a plan9 tool similar to make but better. there's a port to unix-based systems.
i586-elf is what my gcc/binutils are, and I've compiled GAS and C code with them just fine... and it works as a kernel...
So... I chose the same for yasm (as bkerndev uses intel syntax not gas' at/t... and I don't want to bother myself with the intel-syntax instructions for gas). I'm assembling here, not running the binary... you know... building the kernel...
Edit: and --build specifies "What formats this yasm will build". So that's saying "build a mac/Mach-O yasm that assembles to ELF"
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000006
yasm_intnum_copy (intn=0x2) at libyasm/intnum.c:351
351 switch (intn->type) {
YASM is written in C. To compile it you simply have to run
./configure
make
make install
you don't need to specify specific configure options if you dont know what you are doing. YASM as i have it automatically contains all targets in binary - you just have to select at run-time which one you want to use.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
In those cases I always prefer to start with only one version of binaries to have my work done and then advance eventually in additional features and support capabilities...