Breakage
Some(thing|one) broke compilation with pcspk enabled. Symptoms being:
../libhw32/hw/pcspk.o: In function `pcspk_io_write':/home/malc/x/rcs/git/qemu/hw/pcspk.c:145: undefined reference to pit_set_gate' ../libhw32/hw/pcspk.o: In function pcspk_io_read':/home/malc/x/rcs/git/qemu/hw/pcspk.c:130: undefined reference to pit_get_channel_info' ../libhw32/hw/pcspk.o: In function pcspk_callback':/home/malc/x/rcs/git/qemu/hw/pcspk.c:81: undefined reference to `pit_get_channel_info'
collect2: ld returned 1 exit status
Signature · 1 line
mailto:[email protected]
Quoted 10 lines · malc
Some(thing|one) broke compilation with pcspk enabled. Symptoms being:
../libhw32/hw/pcspk.o: In function `pcspk_io_write':/home/malc/x/rcs/git/qemu/hw/pcspk.c:145: undefined reference topit_set_gate' ../libhw32/hw/pcspk.o: In functionpcspk_io_read':/home/malc/x/rcs/git/qemu/hw/pcspk.c:130: undefined reference topit_get_channel_info' ../libhw32/hw/pcspk.o: In functionpcspk_callback':/home/malc/x/rcs/git/qemu/hw/pcspk.c:81: undefined reference to `pit_get_channel_info'
collect2: ld returned 1 exit status
Try cleaning your build directory.
It builds fine for me.
Regards,
Anthony Liguori
Quoted 3 lines
Signature · 2 lines
-- mailto:[email protected]
Quoted 13 lines · Anthony Liguori
Quoted 10 lines · malc
Some(thing|one) broke compilation with pcspk enabled. Symptoms being:
../libhw32/hw/pcspk.o: In function `pcspk_io_write':/home/malc/x/rcs/git/qemu/hw/pcspk.c:145: undefined reference topit_set_gate' ../libhw32/hw/pcspk.o: In functionpcspk_io_read':/home/malc/x/rcs/git/qemu/hw/pcspk.c:130: undefined reference topit_get_channel_info' ../libhw32/hw/pcspk.o: In functionpcspk_callback':/home/malc/x/rcs/git/qemu/hw/pcspk.c:81: undefined reference to `pit_get_channel_info'
collect2: ld returned 1 exit status
Quoted 4 lines
Try cleaning your build directory.
It builds fine for me.
--target-list=xtensa-softmmu --audio-card-list=pcspk
Signature · 1 line
mailto:[email protected]
Quoted 15 lines · malc
Quoted 13 lines · Anthony Liguori
Quoted 10 lines · malc
Some(thing|one) broke compilation with pcspk enabled. Symptoms being:
../libhw32/hw/pcspk.o: In function `pcspk_io_write':/home/malc/x/rcs/git/qemu/hw/pcspk.c:145: undefined reference topit_set_gate' ../libhw32/hw/pcspk.o: In functionpcspk_io_read':/home/malc/x/rcs/git/qemu/hw/pcspk.c:130: undefined reference topit_get_channel_info' ../libhw32/hw/pcspk.o: In functionpcspk_callback':/home/malc/x/rcs/git/qemu/hw/pcspk.c:81: undefined reference to `pit_get_channel_info'
collect2: ld returned 1 exit status
Quoted 6 lines
Quoted 4 lines
Try cleaning your build directory.
It builds fine for me.
--target-list=xtensa-softmmu --audio-card-list=pcspk
It looks like this particular configuration never worked, since xtensa-softmmu was introduced (commit cfa550c6acc6718c3f932e858366e3e1e81266d6).
Does it even make sense to have a PC-speaker on a Xtensa machine? Should the machine have a i8254 PIT?
Signature · 1 line
Eduardo
Quoted 15 lines · malc
Quoted 13 lines · Anthony Liguori
Quoted 10 lines · malc
Some(thing|one) broke compilation with pcspk enabled. Symptoms being:
../libhw32/hw/pcspk.o: In function `pcspk_io_write':/home/malc/x/rcs/git/qemu/hw/pcspk.c:145: undefined reference topit_set_gate' ../libhw32/hw/pcspk.o: In functionpcspk_io_read':/home/malc/x/rcs/git/qemu/hw/pcspk.c:130: undefined reference topit_get_channel_info' ../libhw32/hw/pcspk.o: In functionpcspk_callback':/home/malc/x/rcs/git/qemu/hw/pcspk.c:81: undefined reference to `pit_get_channel_info'
collect2: ld returned 1 exit status
Quoted 6 lines
Quoted 4 lines
Try cleaning your build directory.
It builds fine for me.
--target-list=xtensa-softmmu --audio-card-list=pcspk
pcspk is not supposed to be specified like this. It's automatically built for those targets that support it.
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT RTC ITP SDP-DE Corporate Competence Center Embedded Linux
Quoted 18 lines · Eduardo Habkost
Quoted 17 lines · malc
Quoted 15 lines · Anthony Liguori
Quoted 10 lines · malc
Some(thing|one) broke compilation with pcspk enabled. Symptoms being:
../libhw32/hw/pcspk.o: In function `pcspk_io_write':/home/malc/x/rcs/git/qemu/hw/pcspk.c:145: undefined reference topit_set_gate' ../libhw32/hw/pcspk.o: In functionpcspk_io_read':/home/malc/x/rcs/git/qemu/hw/pcspk.c:130: undefined reference topit_get_channel_info' ../libhw32/hw/pcspk.o: In functionpcspk_callback':/home/malc/x/rcs/git/qemu/hw/pcspk.c:81: undefined reference to `pit_get_channel_info'
collect2: ld returned 1 exit statusTry cleaning your build directory.
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
It builds fine for me.
--target-list=xtensa-softmmu --audio-card-list=pcspk
It looks like this particular configuration never worked, since xtensa-softmmu was introduced (commit
cfa550c6acc6718c3f932e858366e3e1e81266d6).
Other embedded platforms (I've tried cris-softmmu, lm32-softmmu, or32-softmmu, sh4-softmmu) give the same result.
Quoted 2 lines
Does it even make sense to have a PC-speaker on a Xtensa machine? Should the machine have a i8254 PIT?
I doubt that it's meaningful for any of the mentioned _architectures_, definitely not for xtensa.
Signature · 2 lines
Thanks. -- Max
Quoted 27 lines · Max Filippov
Quoted 18 lines · Eduardo Habkost
Quoted 17 lines · malc
Quoted 15 lines · Anthony Liguori
Quoted 10 lines · malc
Some(thing|one) broke compilation with pcspk enabled. Symptoms being:
../libhw32/hw/pcspk.o: In function `pcspk_io_write':/home/malc/x/rcs/git/qemu/hw/pcspk.c:145: undefined reference topit_set_gate' ../libhw32/hw/pcspk.o: In functionpcspk_io_read':/home/malc/x/rcs/git/qemu/hw/pcspk.c:130: undefined reference topit_get_channel_info' ../libhw32/hw/pcspk.o: In functionpcspk_callback':/home/malc/x/rcs/git/qemu/hw/pcspk.c:81: undefined reference to `pit_get_channel_info'
collect2: ld returned 1 exit statusTry cleaning your build directory.
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
It builds fine for me.
--target-list=xtensa-softmmu --audio-card-list=pcspk
It looks like this particular configuration never worked, since xtensa-softmmu was introduced (commit
cfa550c6acc6718c3f932e858366e3e1e81266d6).
Quoted 9 lines
Other embedded platforms (I've tried cris-softmmu, lm32-softmmu, or32-softmmu, sh4-softmmu) give the same result.
Quoted 2 lines
Does it even make sense to have a PC-speaker on a Xtensa machine? Should the machine have a i8254 PIT?
I doubt that it's meaningful for any of the mentioned _architectures_, definitely not for xtensa.
Condensed version of long story:
I have a script that invokes QEMU's configure with tons of command line arguments (i.e. turn on most of the audio drivers, most of the audio cards, disable stuff i don't have or need; enable ccache and so forth), this script was used to configure xtensa-softmmu configure never complained but the make later bombed in the way mentioned above.
To avoid this "surprise" result we can(should?) filter out the cards requested by the user based on contents of audio_possible_card_list (in a fashion similar to the one employed for driver list filtering)
Signature · 1 line
mailto:[email protected]