Subject: toolchain/34598: cannot build m68k release with MKSOFTFLOAT and LDSTATIC
To: None <toolchain-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <sigmfsk@aol.com>
List: netbsd-bugs
Date: 09/24/2006 21:10:00
>Number:         34598
>Category:       toolchain
>Synopsis:       cannot build m68k release with MKSOFTFLOAT and LDSTATIC
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Sep 24 21:10:00 +0000 2006
>Originator:     Arthur Townsend
>Release:        3.0
>Organization:
>Environment:
3.0 for i386
>Description:
When crosscompiling a build of NetBSD 3.0 for sun3 target on a NetBSD 3.0 i386 host, with a /usr/src/tools/gcc/Makefile with -nfp, and /etc/mk.conf with MKSOFTFLOAT=yes, COPTS+=-ggdb and LDSTATIC=-static, build fails with 

/usr/src/tooldir.NetBSD-3.0-i386/bin/m68k--netbsdelf-gcc -Wl,-nostdlib    -static  -o gdb  -Wl,-rpath-link,/usr/src/destdir.sun3/lib:/usr/src/destdir.sun3/usr/lib  -L/usr/src/destdir.sun3/lib  -B/usr/src/destdir.sun3/usr/lib/ -B/usr/src/destdir.sun3/usr/lib/   annotate.o arch-utils.o ax-gdb.o ax-general.o bcache.o blockframe.o breakpoint.o buildsym.o builtin-regs.o c-exp.tab.o c-lang.o c-typeprint.o c-valprint.o cli-cmds.o cli-decode.o cli-dump.o cli-out.o cli-script.o cli-setshow.o cli-utils.o coffread.o complaints.o completer.o copying.o corefile.o corelow.o cp-abi.o cp-valprint.o dbxread.o dcache.o demangle.o doublest.o dwarf2read.o dwarfread.o elfread.o environ.o eval.o event-loop.o event-top.o exec.o expprint.o f-exp.tab.o f-lang.o f-typeprint.o f-valprint.o findvar.o fork-child.o frame.o gdb-events.o gdb.o gdbarch.o gdbtypes.o gnu-v2-abi.o gnu-v3-abi.o hpacc-abi.o inf-loop.o infcmd.o inflow.o infptrace.o infrun.o inftarg.o init.o jv-exp.tab.o jv-lang.o jv-typeprint.o jv
 -valprint.o kcore-nbsd.o kod-cisco.o kod.o language.o linespec.o m2-exp.tab.o m2-lang.o m2-typeprint.o m2-valprint.o m68k-tdep.o m68knbsd-nat.o m68knbsd-tdep.o macrocmd.o macroexp.o macroscope.o macrotab.o main.o maint.o mdebugread.o mem-break.o memattr.o mi-cmd-break.o mi-cmd-disas.o mi-cmd-stack.o mi-cmd-var.o mi-cmds.o mi-console.o mi-getopt.o mi-main.o mi-out.o mi-parse.o minsyms.o mipsread.o nbsd-tdep.o nbsd-thread.o nlmread.o objfiles.o osabi.o p-exp.tab.o p-lang.o p-typeprint.o p-valprint.o parse.o printcmd.o regcache.o remote-utils.o remote.o scm-exp.o scm-lang.o scm-valprint.o ser-pipe.o ser-tcp.o ser-unix.o serial.o signals.o solib-svr4.o solib.o source.o stabsread.o stack.o std-regs.o symfile.o symmisc.o symtab.o target.o thread.o top.o tracepoint.o typeprint.o ui-file.o ui-out.o utils.o valarith.o valops.o valprint.o values.o varobj.o version.o wrapper.o -lcurses -lintl -lm -lkvm -lpthread_dbg  -L/usr/src/gnu/usr.bin/gdb53/opcodes/obj -lopcodes -L/usr/src/gnu/usr
 .bin/gdb53/bfd/obj -lbfd  -ledit  -ltermcap  -L/usr/src/gnu/usr.bin/gdb53/libiberty/obj -liberty  -L/usr/src/destdir.sun3/usr/lib -L/usr/src/destdir.sun3/usr/lib
/usr/src/destdir.sun3/usr/lib/libc.a(softfloat.o)(.text+0x38f2): In function `__fixxfdi':
/usr/src/lib/libc/softfloat/bits64/softfloat.c:3367: multiple definition of `__fixxfdi'
/usr/src/destdir.sun3/usr/lib/libgcc.a(_fixxfdi.o)(.text+0x0):/usr/src/gnu/dist/gcc/gcc/libgcc2.c:922: first defined here
/usr/src/tooldir.NetBSD-3.0-i386/lib/gcc-lib/m68k--netbsdelf/3.3.3/../../../../m68k--netbsdelf/bin/ld: Warning: size of symbol `__fixxfdi' changed from 108 in /usr/src/destdir.sun3/usr/lib/libgcc.a(_fixxfdi.o) to 264 in /usr/src/destdir.sun3/usr/lib/libgcc.a(_fixxfdi.o)
collect2: ld returned 1 exit status

*** Failed target:  gdb

>How-To-Repeat:
./build.sh -u -m sun3 build
with gcc Makefile and /etc/mk.conf as described above
>Fix: