NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: toolchain/55594: Error creating shared library using gcc-7.5.0 on NetBSD 9.0_STABLE



 On Thursday, 20 August 2020, 14:25:05 GMT+5:30, Martin Husemann <martin%duskware.de@localhost> wrote: 

 > Please quote the full compiler / linker invocation that fails, and ideally
 > repeat it with -v added and show full output.


---OUTPUT STARTS---
linking ../lib/libncurses.so
gcc -v -pie -s -Wall -O2 -fpie -fstack-protector-all -fstack-protector-strong -march=native -pipe --param max-inline-insns-single=1200 -Wl,-shared -Wl,-Bshareable -o ../lib/libncurses.so ../obj_s/hardscroll.o  ../obj_s/hashmap.o  ../obj_s/lib_addch.o  ../obj_s/lib_addstr.o  ../obj_s/lib_beep.o  ../obj_s/lib_bkgd.o  ../obj_s/lib_box.o  ../obj_s/lib_chgat.o  ../obj_s/lib_clear.o  ../obj_s/lib_clearok.o  ../obj_s/lib_clrbot.o  ../obj_s/lib_clreol.o  ../obj_s/lib_color.o  ../obj_s/lib_colorset.o  ../obj_s/lib_delch.o  ../obj_s/lib_delwin.o  ../obj_s/lib_echo.o  ../obj_s/lib_endwin.o  ../obj_s/lib_erase.o  ../obj_s/lib_flash.o  ../obj_s/lib_gen.o  ../obj_s/lib_getch.o  ../obj_s/lib_getstr.o  ../obj_s/lib_hline.o  ../obj_s/lib_immedok.o  ../obj_s/lib_inchstr.o  ../obj_s/lib_initscr.o  ../obj_s/lib_insch.o  ../obj_s/lib_insdel.o  ../obj_s/lib_insnstr.o  ../obj_s/lib_instr.o  ../obj_s/lib_isendwin.o  ../obj_s/lib_leaveok.o  ../obj_s/lib_mouse.o  ../obj_s/lib_move.o  ../obj_s/lib_mvcur.o  ../obj_s/lib_mvwin.o  ../obj_s/lib_newterm.o  ../obj_s/lib_newwin.o  ../obj_s/lib_nl.o  ../obj_s/lib_overlay.o  ../obj_s/lib_pad.o  ../obj_s/lib_printw.o  ../obj_s/lib_redrawln.o  ../obj_s/lib_refresh.o  ../obj_s/lib_restart.o  ../obj_s/lib_scanw.o  ../obj_s/lib_screen.o  ../obj_s/lib_scroll.o  ../obj_s/lib_scrollok.o  ../obj_s/lib_scrreg.o  ../obj_s/lib_set_term.o  ../obj_s/lib_slk.o  ../obj_s/lib_slkatr_set.o  ../obj_s/lib_slkatrof.o  ../obj_s/lib_slkatron.o  ../obj_s/lib_slkatrset.o  ../obj_s/lib_slkattr.o  ../obj_s/lib_slkclear.o  ../obj_s/lib_slkcolor.o  ../obj_s/lib_slkinit.o  ../obj_s/lib_slklab.o  ../obj_s/lib_slkrefr.o  ../obj_s/lib_slkset.o  ../obj_s/lib_slktouch.o  ../obj_s/lib_touch.o  ../obj_s/lib_tstp.o  ../obj_s/lib_ungetch.o  ../obj_s/lib_vidattr.o  ../obj_s/lib_vline.o  ../obj_s/lib_wattroff.o  ../obj_s/lib_wattron.o  ../obj_s/lib_winch.o  ../obj_s/lib_window.o  ../obj_s/nc_panel.o  ../obj_s/safe_sprintf.o  ../obj_s/tty_update.o  ../obj_s/varargs.o  ../obj_s/vsscanf.o  ../obj_s/lib_freeall.o  ../obj_s/expanded.o  ../obj_s/legacy_coding.o  ../obj_s/lib_dft_fgbg.o  ../obj_s/lib_print.o  ../obj_s/new_pair.o  ../obj_s/resizeterm.o  ../obj_s/use_screen.o  ../obj_s/use_window.o  ../obj_s/wresize.o  ../obj_s/access.o  ../obj_s/add_tries.o  ../obj_s/alloc_ttype.o  ../obj_s/codes.o  ../obj_s/comp_captab.o  ../obj_s/comp_error.o  ../obj_s/comp_hash.o  ../obj_s/comp_userdefs.o  ../obj_s/db_iterator.o  ../obj_s/doalloc.o  ../obj_s/entries.o  ../obj_s/fallback.o  ../obj_s/free_ttype.o  ../obj_s/getenv_num.o  ../obj_s/home_terminfo.o  ../obj_s/init_keytry.o  ../obj_s/lib_acs.o  ../obj_s/lib_baudrate.o  ../obj_s/lib_cur_term.o  ../obj_s/lib_data.o  ../obj_s/lib_has_cap.o  ../obj_s/lib_kernel.o  ../obj_s/lib_keyname.o  ../obj_s/lib_longname.o  ../obj_s/lib_napms.o  ../obj_s/lib_options.o  ../obj_s/lib_raw.o  ../obj_s/lib_setup.o  ../obj_s/lib_termcap.o  ../obj_s/lib_termname.o  ../obj_s/lib_tgoto.o  ../obj_s/lib_ti.o  ../obj_s/lib_tparm.o  ../obj_s/lib_tputs.o  ../obj_s/lib_trace.o  ../obj_s/lib_ttyflags.o  ../obj_s/lib_twait.o  ../obj_s/name_match.o  ../obj_s/names.o  ../obj_s/obsolete.o  ../obj_s/read_entry.o  ../obj_s/read_termcap.o  ../obj_s/strings.o  ../obj_s/tries.o  ../obj_s/trim_sgr0.o  ../obj_s/unctrl.o  ../obj_s/visbuf.o  ../obj_s/alloc_entry.o  ../obj_s/captoinfo.o  ../obj_s/comp_expand.o  ../obj_s/comp_parse.o  ../obj_s/comp_scan.o  ../obj_s/parse_entry.o  ../obj_s/write_entry.o  ../obj_s/define_key.o  ../obj_s/hashed_db.o  ../obj_s/key_defined.o  ../obj_s/keybound.o  ../obj_s/keyok.o  ../obj_s/version.o -L../lib
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/lto-wrapper
Target: x86_64--netbsd
Configured with: /usr/src/tools/gcc/../../external/gpl3/gcc/dist/configure --target=x86_64--netbsd --enable-long-long --enable-threads --with-bugurl=http://www.NetBSD.org/Misc/send-pr.html --with-pkgversion='NetBSD nb4 20200810' --with-system-zlib --without-isl --enable-__cxa_atexit --enable-libstdcxx-time=rt --enable-libstdcxx-threads --with-diagnostics-color=auto-if-env --with-tune=nocona --with-default-libstdcxx-abi=new --with-mpc-lib=/var/obj/mknative/amd64-x86_64/usr/src/external/lgpl3/mpc/lib/libmpc --with-mpfr-lib=/var/obj/mknative/amd64-x86_64/usr/src/external/lgpl3/mpfr/lib/libmpfr --with-gmp-lib=/var/obj/mknative/amd64-x86_64/usr/src/external/lgpl3/gmp/lib/libgmp --with-mpc-include=/usr/src/external/lgpl3/mpc/dist/src --with-mpfr-include=/usr/src/external/lgpl3/mpfr/dist/src --with-gmp-include=/usr/src/external/lgpl3/gmp/lib/libgmp/arch/x86_64 --enable-tls --disable-multilib --disable-libstdcxx-pch --build=x86_64--netbsd --host=x86_64--netbsd --with-sysroot=/var/obj/mknative/amd64-x86_64/usr/src/destdir.amd64
Thread model: posix
gcc version 7.5.0 (nb4 20200810) 
COMPILER_PATH=/usr/libexec/
LIBRARY_PATH=/usr/lib/
COLLECT_GCC_OPTIONS='-v' '-pie' '-s' '-Wall' '-O2' '-fpie' '-fstack-protector-all' '-fstack-protector-strong' '-march=native' '-pipe' '--param' 'max-inline-insns-single=1200' '-o' '../lib/libncurses.so' '-L../lib'
ld -plugin /usr/libexec/liblto_plugin.so -plugin-opt=/usr/libexec/lto-wrapper -plugin-opt=-fresolution=/tmp//cc8HoBJt.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --eh-frame-hdr -dc -dp -e _start -dynamic-linker /usr/libexec/ld.elf_so -pie -o ../lib/libncurses.so -s /usr/lib/crt0.o /usr/lib/crti.o /usr/lib/crtbeginS.o -L../lib -shared -Bshareable ../obj_s/hardscroll.o ../obj_s/hashmap.o ../obj_s/lib_addch.o ../obj_s/lib_addstr.o ../obj_s/lib_beep.o ../obj_s/lib_bkgd.o ../obj_s/lib_box.o ../obj_s/lib_chgat.o ../obj_s/lib_clear.o ../obj_s/lib_clearok.o ../obj_s/lib_clrbot.o ../obj_s/lib_clreol.o ../obj_s/lib_color.o ../obj_s/lib_colorset.o ../obj_s/lib_delch.o ../obj_s/lib_delwin.o ../obj_s/lib_echo.o ../obj_s/lib_endwin.o ../obj_s/lib_erase.o ../obj_s/lib_flash.o ../obj_s/lib_gen.o ../obj_s/lib_getch.o ../obj_s/lib_getstr.o ../obj_s/lib_hline.o ../obj_s/lib_immedok.o ../obj_s/lib_inchstr.o ../obj_s/lib_initscr.o ../obj_s/lib_insch.o ../obj_s/lib_insdel.o ../obj_s/lib_insnstr.o ../obj_s/lib_instr.o ../obj_s/lib_isendwin.o ../obj_s/lib_leaveok.o ../obj_s/lib_mouse.o ../obj_s/lib_move.o ../obj_s/lib_mvcur.o ../obj_s/lib_mvwin.o ../obj_s/lib_newterm.o ../obj_s/lib_newwin.o ../obj_s/lib_nl.o ../obj_s/lib_overlay.o ../obj_s/lib_pad.o ../obj_s/lib_printw.o ../obj_s/lib_redrawln.o ../obj_s/lib_refresh.o ../obj_s/lib_restart.o ../obj_s/lib_scanw.o ../obj_s/lib_screen.o ../obj_s/lib_scroll.o ../obj_s/lib_scrollok.o ../obj_s/lib_scrreg.o ../obj_s/lib_set_term.o ../obj_s/lib_slk.o ../obj_s/lib_slkatr_set.o ../obj_s/lib_slkatrof.o ../obj_s/lib_slkatron.o ../obj_s/lib_slkatrset.o ../obj_s/lib_slkattr.o ../obj_s/lib_slkclear.o ../obj_s/lib_slkcolor.o ../obj_s/lib_slkinit.o ../obj_s/lib_slklab.o ../obj_s/lib_slkrefr.o ../obj_s/lib_slkset.o ../obj_s/lib_slktouch.o ../obj_s/lib_touch.o ../obj_s/lib_tstp.o ../obj_s/lib_ungetch.o ../obj_s/lib_vidattr.o ../obj_s/lib_vline.o ../obj_s/lib_wattroff.o ../obj_s/lib_wattron.o ../obj_s/lib_winch.o ../obj_s/lib_window.o ../obj_s/nc_panel.o ../obj_s/safe_sprintf.o ../obj_s/tty_update.o ../obj_s/varargs.o ../obj_s/vsscanf.o ../obj_s/lib_freeall.o ../obj_s/expanded.o ../obj_s/legacy_coding.o ../obj_s/lib_dft_fgbg.o ../obj_s/lib_print.o ../obj_s/new_pair.o ../obj_s/resizeterm.o ../obj_s/use_screen.o ../obj_s/use_window.o ../obj_s/wresize.o ../obj_s/access.o ../obj_s/add_tries.o ../obj_s/alloc_ttype.o ../obj_s/codes.o ../obj_s/comp_captab.o ../obj_s/comp_error.o ../obj_s/comp_hash.o ../obj_s/comp_userdefs.o ../obj_s/db_iterator.o ../obj_s/doalloc.o ../obj_s/entries.o ../obj_s/fallback.o ../obj_s/free_ttype.o ../obj_s/getenv_num.o ../obj_s/home_terminfo.o ../obj_s/init_keytry.o ../obj_s/lib_acs.o ../obj_s/lib_baudrate.o ../obj_s/lib_cur_term.o ../obj_s/lib_data.o ../obj_s/lib_has_cap.o ../obj_s/lib_kernel.o ../obj_s/lib_keyname.o ../obj_s/lib_longname.o ../obj_s/lib_napms.o ../obj_s/lib_options.o ../obj_s/lib_raw.o ../obj_s/lib_setup.o ../obj_s/lib_termcap.o ../obj_s/lib_termname.o ../obj_s/lib_tgoto.o ../obj_s/lib_ti.o ../obj_s/lib_tparm.o ../obj_s/lib_tputs.o ../obj_s/lib_trace.o ../obj_s/lib_ttyflags.o ../obj_s/lib_twait.o ../obj_s/name_match.o ../obj_s/names.o ../obj_s/obsolete.o ../obj_s/read_entry.o ../obj_s/read_termcap.o ../obj_s/strings.o ../obj_s/tries.o ../obj_s/trim_sgr0.o ../obj_s/unctrl.o ../obj_s/visbuf.o ../obj_s/alloc_entry.o ../obj_s/captoinfo.o ../obj_s/comp_expand.o ../obj_s/comp_parse.o ../obj_s/comp_scan.o ../obj_s/parse_entry.o ../obj_s/write_entry.o ../obj_s/define_key.o ../obj_s/hashed_db.o ../obj_s/key_defined.o ../obj_s/keybound.o ../obj_s/keyok.o ../obj_s/version.o --as-needed -lgcc_s --no-as-needed -lgcc -lc --as-needed -lgcc_s --no-as-needed -lgcc /usr/lib/crtendS.o /usr/lib/crtn.o
ld: /usr/lib/crt0.o: in function `__start':
(.text+0x29): undefined reference to `__fini_array_start'
ld: /usr/lib/crt0.o: relocation R_X86_64_PC32 against undefined hidden symbol `__fini_array_start' can not be used when making a shared object
ld: final link failed: bad value
*** Error code 1

Stop.
make[1]: stopped in /home/rvp/work/ncurses-6.2-20200817/ncurses
*** Error code 1

Stop.
make: stopped in /home/rvp/work/ncurses-6.2-20200817
---OUTPUT ENDS---



Home | Main Index | Thread Index | Old Index