<div dir="ltr"><div><div><div><div><div>Because my tastes run towards antiquity, when I found out about aboriginal linux, I of course wanted to try the oldest  and weirdest port you had.   Nobody has gotten Linux running on an emulated PDP-11 yet, have they?  <br><br>The  m68k q800 emulator appears from the mailing list archive to be a simulation of the last of the 68030 macintosh systems, so that's the first one I downloaded, natch.   Back in the day, my sympathies were with the 680x0 Amigas, but that's close enough.<br><br></div></div>Google, salva nos inscius, lead me to <a href="https://github.com/vivier/qemu-m68k/wiki">https://github.com/vivier/qemu-m68k/wiki</a> which hath  branch 680x0-v2.3.0<br></div><div><br></div>I have never built qemu from sources, so I found this ask ubuntu-question to get me past the DTC lib issue, I manually grabbed the tarball and unzipped into the /dtc/ folder...<br><br><a href="http://askubuntu.com/questions/424329/error-trying-to-compile-qemu-from-source">http://askubuntu.com/questions/424329/error-trying-to-compile-qemu-from-source</a><br><br></div>After that ./configure complains about broken libtool, but completes. make got in a fair way, and the compile breaks while building aarch64-linux-user.  I am too much of a noob to figure out what to configure out to make this go away or if aarch64-linux-user is some basic part of this qemu build:<br><br>/home/wpostma/qemu-m68k/linux-user/syscall.c: In function ‘host_to_target_data_link_rtattr’:<br>/home/wpostma/qemu-m68k/linux-user/syscall.c:1513:10: error: ‘IFLA_LINK_NETNSID’ undeclared (first use in this function)<br>     case IFLA_LINK_NETNSID:<br>          ^<br>/home/wpostma/qemu-m68k/linux-user/syscall.c:1513:10: note: each undeclared identifier is reported only once for each function it appears in<br>/home/wpostma/qemu-m68k/rules.mak:57: recipe for target 'linux-user/syscall.o' failed<br>make[1]: *** [linux-user/syscall.o] Error 1<br>Makefile:173: recipe for target 'subdir-aarch64-linux-user' failed<br>make: *** [subdir-aarch64-linux-user] Error 2<br><br></div><div>Just judging from the folder name, linux-user, this appears to be a part of the userland application-emulation features in qemu itself.<br><br></div><div>The line that breaks is an undefined identifier, so I commented it out, it's a "case <br></div><div>IFLA_LINK_NETNSID:" inside a large list of cases.  <br></div><div><br></div><div>After that I get stuck here, which I have no idea how to fix:<br><br>  CC    alpha-linux-user/linux-user/syscall.o<br>/home/wpostma/qemu-m68k/linux-user/syscall.c:270:5: error: ‘TARGET_O_ACCMODE’ undeclared here (not in a function)<br>   { TARGET_O_ACCMODE,   TARGET_O_WRONLY,    O_ACCMODE,   O_WRONLY,    },<br>     ^<br>/home/wpostma/qemu-m68k/linux-user/syscall.c:270:25: error: ‘TARGET_O_WRONLY’ undeclared here (not in a function)<br>   { TARGET_O_ACCMODE,   TARGET_O_WRONLY,    O_ACCMODE,   O_WRONLY,    },<br>                         ^<br>/home/wpostma/qemu-m68k/linux-user/syscall.c:271:25: error: ‘TARGET_O_RDWR’ undeclared here (not in a function)<br>   { TARGET_O_ACCMODE,   TARGET_O_RDWR,      O_ACCMODE,   O_RDWR,      },<br>                         ^<br>/home/wpostma/qemu-m68k/rules.mak:57: recipe for target 'linux-user/syscall.o' failed<br>make[1]: *** [linux-user/syscall.o] Error 1<br>Makefile:173: recipe for target 'subdir-alpha-linux-user' failed<br>make: *** [subdir-alpha-linux-user] Error 2<br>wpostma@WarrenDELLWKSTN:~/qemu-m68k$ <br><br><br></div><div>Has anyone built an m68k q800 capable qemu on Ubuntu?  Are there any more tricks? Could I just turn off some element of the qemu build and get the qemu cpu-emulator up without any userland emulation? I'm guessing this syscall mechanism is actually central to qemu + aboriginal-linux functionality as it's probably how I/O occurs inside the emulator.<br><br></div><div>Cheers.<br><br></div><div>Warren<br></div><div><div><br><br></div></div></div>