- --
Viewing Issue Advanced Details
[ Jump to Notes ]
ID | Category [?] | Severity [?] | Reproducibility | Date Submitted | Last Update |
---|---|---|---|---|---|
06125 | Compiling | Minor | Always | Jan 12, 2016, 17:19 | Jan 18, 2016, 17:50 |
Tester | aceshigh1 | View Status | Public | Platform | MAME (Self-compiled) |
Assigned To | Resolution | Invalid report | OS | Linux | |
Status [?] | Closed | Driver | |||
Version | 0.169 | Fixed in Version | Build | Normal | |
Fixed in Git Commit | Github Pull Request # | ||||
Summary | 06125: Unable to compile with USE_QTDEBUG = 0 and no libqt-dev | ||||
Description |
I'm getting several errors in the linking phase of compiling MAME under Ubuntu 15.04 amd64. There are basically 2 kinds of errors: 1) undefined reference to `__cxa_throw_bad_array_new_length' 2) undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)' It could be: A) the linker failing because there is no libqt-dev installed; B) a problem with my installation of GCC4.9. |
||||
Steps To Reproduce |
1) Make sure libqt*-dev is not installed 2) Edit makefile uncommenting and setting USE_QTDEBUG = 0 3) make |
||||
Additional Information | |||||
Github Commit | |||||
Flags | |||||
Regression Version | |||||
Affected Sets / Systems | |||||
Attached Files
|
err.txt (6,176 bytes) Jan 12, 2016, 17:19 Uploaded by aceshigh1 full stderr [Show Content] [Hide Content]../../../../linux_gcc/bin/x64/Release/mame_mame/libatari.a(atarisy4.o): In function `std::unique_ptr<unsigned short [], std::default_delete<unsigned short []> > make_unique_clear<unsigned short []>(unsigned long)': atarisy4.cpp:(.text._Z17make_unique_clearIA_tESt10unique_ptrIT_St14default_deleteIS2_EEm[_Z17make_unique_clearIA_tESt10unique_ptrIT_St14default_deleteIS2_EEm]+0x60): undefined reference to `__cxa_throw_bad_array_new_length' ../../../../linux_gcc/bin/x64/Release/mame_mame/libatari.a(pong.o): In function `netlist_pong(netlist::setup_t&)': pong.cpp:(.text.unlikely+0xd1): undefined reference to `__cxa_throw_bad_array_new_length' ../../../../linux_gcc/bin/x64/Release/mame_mame/libatari.a(nl_pong.o): In function `netlist_pong_fast(netlist::setup_t&)': nl_pong.cpp:(.text.unlikely+0x131): undefined reference to `__cxa_throw_bad_array_new_length' ../../../../linux_gcc/bin/x64/Release/mame_mame/libdataeast.a(deco_mlc.o): In function `std::_MakeUniq<unsigned short []>::__array std::make_unique<unsigned short []>(unsigned long)': deco_mlc.cpp:(.text._ZSt11make_uniqueIA_tENSt9_MakeUniqIT_E7__arrayEm[_ZSt11make_uniqueIA_tENSt9_MakeUniqIT_E7__arrayEm]+0x53): undefined reference to `__cxa_throw_bad_array_new_length' ../../../../linux_gcc/bin/x64/Release/mame_mame/libirem.a(m63.o): In function `m63_state::fghtbskt_sh_start()': m63.cpp:(.text+0x5c7): undefined reference to `__cxa_throw_bad_array_new_length' ../../../../linux_gcc/bin/x64/Release/mame_mame/libirem.a(irem.o):irem.cpp:(.text.unlikely+0x716d): more undefined references to `__cxa_throw_bad_array_new_length' follow ../../../../linux_gcc/bin/x64/Release/mame_mame/libemu.a(diimage.o): In function `device_image_interface::set_image_filename(char const*)': diimage.cpp:(.text+0x105a): undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)' diimage.cpp:(.text+0x106e): undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)' ../../../../linux_gcc/bin/x64/Release/mame_mame/libemu.a(diimage.o): In function `device_image_interface::load_software(software_list_device&, char const*, rom_entry const*)': diimage.cpp:(.text+0x324f): undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)' diimage.cpp:(.text+0x3270): undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)' diimage.cpp:(.text+0x32ba): undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)' ../../../../linux_gcc/bin/x64/Release/mame_mame/libemu.a(emuopts.o):emuopts.cpp:(.text+0x147d): more undefined references to `std::__throw_out_of_range_fmt(char const*, ...)' follow ../../../../linux_gcc/bin/x64/Release/mame_mame/libemu.a(menu.o): In function `ui_menu::item_append(char const*, char const*, unsigned int, void*)': menu.cpp:(.text+0x842): undefined reference to `__cxa_throw_bad_array_new_length' ../../../../linux_gcc/bin/x64/Release/mame_mame/libemu.a(menu.o): In function `ui_menu::ui_menu(running_machine&, render_container*)': menu.cpp:(.text+0xb61): undefined reference to `__cxa_throw_bad_array_new_length' ../../../../linux_gcc/bin/x64/Release/mame_mame/libemu.a(menu.o): In function `ui_menu::reset(ui_menu_reset_options)': menu.cpp:(.text+0xecd): undefined reference to `__cxa_throw_bad_array_new_length' ../../../../linux_gcc/bin/x64/Release/mame_mame/libemu.a(menu.o): In function `ui_menu::stack_push(ui_menu*)': menu.cpp:(.text+0x2ee9): undefined reference to `__cxa_throw_bad_array_new_length' ../../../../linux_gcc/bin/x64/Release/mame_mame/libemu.a(video.o): In function `video_manager::open_next(emu_file&, char const*)': video.cpp:(.text+0x1b89): undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)' video.cpp:(.text+0x1c08): undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)' ../../../../linux_gcc/bin/x64/Release/mame_mame/libemu.a(debugcmd.o): In function `execute_traceover(running_machine&, int, int, char const**)': debugcmd.cpp:(.text+0x5938): undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)' ../../../../linux_gcc/bin/x64/Release/mame_mame/libemu.a(debugcmd.o): In function `execute_trace(running_machine&, int, int, char const**)': debugcmd.cpp:(.text+0x7dc8): undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)' ../../../../linux_gcc/bin/x64/Release/mame_mame/libemu.a(cassette.o): In function `cassette_image_device::call_load()': cassette.cpp:(.text+0xdf3): undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)' ../../../../linux_gcc/bin/x64/Release/mame_mame/libemu.a(mfmhd.o): In function `mfmhd_trackimage_cache::init(mfm_harddisk_device*, int, int)': mfmhd.cpp:(.text+0x2498): undefined reference to `__cxa_throw_bad_array_new_length' ../../../../linux_gcc/bin/x64/Release/libformats.a(ccvf_dsk.o): In function `ccvf_format::load(io_generic*, unsigned int, floppy_image*)': ccvf_dsk.cpp:(.text+0x2e2): undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)' ../../../../linux_gcc/bin/x64/Release/libutils.a(corestr.o): In function `strdelchr(std::string&, char)': corestr.cpp:(.text+0x130b): undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)' ../../../../linux_gcc/bin/x64/Release/libutils.a(corestr.o): In function `strtrimspace(std::string&)': corestr.cpp:(.text+0x1550): undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)' ../../../../linux_gcc/bin/x64/Release/libutils.a(corestr.o): In function `strreplace(std::string&, std::string const&, std::string const&)': corestr.cpp:(.text+0x17ae): undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)' ../../../../linux_gcc/bin/x64/Release/libutils.a(options.o): In function `core_options::entry::entry(char const*, char const*, unsigned int, char const*)': options.cpp:(.text+0xa74): undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)' ../../../../linux_gcc/bin/x64/Release/libutils.a(options.o):options.cpp:(.text+0xa88): more undefined references to `std::__throw_out_of_range_fmt(char const*, ...)' follow collect2: error: ld returned 1 exit status make[2]: *** [../../../../../mame64] Error 1 make[1]: *** [mame] Error 2 make: *** [linux_x64] Error 2 | ||||
Relationships
There are no relationship linked to this issue. |
Notes
4
No.12346
Robbbert Senior Tester
Jan 15, 2016, 12:11
edited on: Jan 15, 2016, 12:12 |
You need GCC 5.3.0 at least. Also, this kind of problem should be reported at the SDLMAME forum, rather than here. |
---|---|
No.12347
mahlemiut Developer
Jan 15, 2016, 20:58
|
No, GCC 5.3 is only required for mingw (needs Posix threading, I believe). Non-Windows should work with GCC 4.9 or later. (I use 5.1.1) |
No.12352
aceshigh1 Tester
Jan 18, 2016, 08:11
|
Actually, upgrading GCC to 5.3 solved the issue so the problem was letter B: my bad. Thanks, Robbbert and sorry for the inconvenience. |
No.12355
NekoEd Senior Tester
Jan 18, 2016, 17:50
|
Issue resolved by reporter as local toolchain issue. Closing as invalid. |