Comments (11)
and I test on ubuntu 16.04 and ubuntu 14.04.5
from qemu-m68k.
Hi syjzwjj!
You are using a branch which is no longer in active development. All the work happens in the 680x0-master-dev branch. If the q800 branches contain any changes that you need which are not part of the 680x0-master-dev branch, you can try rebasing your branch from the 680x0-master-dev branch.
PS: I made a guide for qemu-user on m68k on Debian if you're interested [1].
Adrian
from qemu-m68k.
Hi , sudenly I found that I need to compile the M520x arch and I've successfuly cross compile the m68k vmlinux, so maybe don't need this repository , thanks a lot~ And I forgot to say that I've test the 680x0-master-dev branch and it also comes error that some macros didn't defined, you can compile this branch and see if errors still there,and this errors I remembered that most in tcg syscall translation,and the macros in this repository didn't existed in the newest version of qemu.So maybe this error is not very easy to solve.
And I don't known if the link you provide support M520x architecture? It seems that the lxc container in the http://ftp.ports.debian.org/debian-ports/pool-m68k/ are all m6800 binary
from qemu-m68k.
If you want to use Coldfire M520x, you should use qemu upstream [1]. The code in this repository is dealing with full 680x0 support and also still under heavy development. You also didn't mention Coldfire at all, so I assumed you wanted to build the regular 680x0 emulator.
And since the master-680x0-dev branch builds fine on my Debian unstable machine, I don't think this is actually a valid bug report. The issue you are seeing is most likely a local issue and not specific to qemu-m68k. Please make sure you have all build dependencies installed and your build environment is up to date.
[1] http://wiki.qemu.org/download/qemu-doc.html#ColdFire-System-emulator
from qemu-m68k.
Hi , I build on my ubuntu again,the error is here :
/home/zwjj/Desktop/qemu-m68k-680x0-master-dev/linux-user/syscall.c: In function ‘do_getsockopt’:
/home/zwjj/Desktop/qemu-m68k-680x0-master-dev/linux-user/syscall.c:3025:14: error: ‘NETLINK_LIST_MEMBERSHIPS’ undeclared (first use in this function)
case NETLINK_LIST_MEMBERSHIPS: {
^
/home/zwjj/Desktop/qemu-m68k-680x0-master-dev/linux-user/syscall.c:3025:14: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [linux-user/syscall.o] 错误 1
make: *** [subdir-m68k-linux-user] 错误 2
the error message of the code is here : https://github.com/vivier/qemu-m68k/blob/680x0-master-dev/linux-user/syscall.c#L3025
and I've install the libnl-3-dev package and the newest code in qemu is : https://github.com/qemu/qemu/blob/master/linux-user/syscall.c#L3146
I found the switch case handle NETLINK seems not exist now. This function that have error message is called by do_getsockopt seems like to handle the binary's getsockopt syscall,and handle the result of SOL_NETLINK, the second argument of getsocketopt. Maybe the switch case NETLINK_LIST_MEMBERSHIPS only for m68k? I guess not,because basically there is no difference on syscalls between different architectures in userland and this code run on linux-user mode , all syscall are rewrited by tcg and finnaly call the syscall function on host machine .I build the v1.7.0 branch and no error results ,this macro didn't exist : https://github.com/vivier/qemu-m68k/blob/680x0-v1.7.0/linux-user/syscall.c#L1651 . Why in newer version of this repository have the new code to handle the SOL_NETLINK level?And also search this macro in <linux/netlink.h> ,also didn't exist... Maybe I haven't install the correct netlink devel package ?
So the question comes up , why the newer branchs have the NETLINK_LIST_MEMBERSHIPS handle code ,I think this is the key point that maybe solve ,these error message are very intersting~
from qemu-m68k.
On Fedora, NETLINK_LIST_MEMBERSHIPS comes with kernel headers package.
from qemu-m68k.
If that's the case, it should be enough to run
apt install linux-image-$(uname -r)
to fix the issue.
from qemu-m68k.
Issue still exist ,this package and linux-headers-$(uname -r) has been installed on my machine , and as vivier said , this macro in kernel headers package on fedora,have you test it on the ubuntu?
from qemu-m68k.
It builds fine on Debian unstable and I'm using it there all the time.
It might be possible that the Ubuntu kernel is built without support for Netlink, no idea.
A quick search on sources.debian.net shows you where it's defined:
https://codesearch.debian.net/search?q=NETLINK_LIST_MEMBERSHIPS
from qemu-m68k.
Just as a heads-up: I just had a closer look and the problem occurs when using a kernel older than 4.8.x. The issue is reproducible on Debian Jessie which doesn't have anything newer than kernel 4.7.x currently. Linux 4.8.x is not yet available in Debian Backports.
Thus, while this problem report is actually valid, it's not a bug in qemu-m68k but rather just an issue of one of the dependencies being too old.
@vivier I think we can safely close this unless @syjzwjj objects.
from qemu-m68k.
I've received and no problem now,thank you~
from qemu-m68k.
Related Issues (20)
- cmake 3.11.x lockups qemu-m68k and qemu-sh4 HOT 4
- R does not work properly with upstream, works with qemu-m68k HOT 2
- Firebird3.0 crashes with 'mutex pthread_mutex_init error, status = 95'
- gedit crashes with 'qemu:handle_cpu_signal received signal outside vCPU context' HOT 8
- Adding support for /proc/hardware in qemu-user HOT 9
- piglit fails to build on qemu-m68k, python crashing with 'Illegal Instruction'
- util/memfd.c:40:12: error: static declaration of ‘memfd_create’ follows non-static declaration HOT 1
- ERROR: sizeof(size_t) doesn't match GLIB_SIZEOF_SIZE_T. You probably need to set PKG_CONFIG_LIBDIR to point to the right pkg-config files for your build target HOT 2
- aptitude crashes with 'qemu:handle_cpu_signal received signal outside vCPU context' HOT 10
- Missing libraries for static build of m68k-linux-user HOT 4
- Serial console no longer works with Quadra 800 emulation HOT 14
- Linux kernel boot fails when trying to use more than 1000MB of memory (i.e. 1024MB) HOT 4
- qemu_system_reset_request declaration missmatch when compiling with -flto HOT 2
- When trying to copy paste big amount of text into qemu, Linux pmz drivers freaks out
- SONIC interrupt mapping
- Guest memory corrupted by incoming network packets HOT 10
- dp83932 stops working after a short while HOT 3
- meson 0.55.3 HOT 1
- trapcs instruction causes the non-execution of the following 2 instructions HOT 2
- Screen does not update properly when playing 'Prince of Persia' in 256 color on qemu-m68k
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qemu-m68k.