#2052: Replacing ld in "Adjusting the toolchain" causes ld to exit with error
----------------------+-----------------------------------------------------
Reporter: hach-que | Owner: [email protected]
Type: task | Status: new
Priority: highest | Milestone:
Component: Book | Version: 6.3
Severity: critical | Resolution:
Keywords: |
----------------------+-----------------------------------------------------
Comment (by hach-que):
It appears when building TCL (and not replacing ld), I get this error :
{{{
gcc -pipe -shared -o libtcl8.4.so regcomp.o regexec.o regfree.o regerror.o
tclAlloc.o tclAsync.o tclBasic.o tclBinary.o tclCkalloc.o tclClock.o
tclCmdAH.o tclCmdIL.o tclCmdMZ.o tclCompCmds.o tclCompExpr.o tclCompile.o
tclDate.o tclEncoding.o tclEnv.o tclEvent.o tclExecute.o tclFCmd.o
tclFileName.o tclGet.o tclHash.o tclHistory.o tclIndexObj.o tclInterp.o
tclIO.o tclIOCmd.o tclIOGT.o tclIOSock.o tclIOUtil.o tclLink.o
tclListObj.o tclLiteral.o tclLoad.o tclMain.o tclNamesp.o tclNotify.o
tclObj.o tclPanic.o tclParse.o tclParseExpr.o tclPipe.o tclPkg.o
tclPosixStr.o tclPreserve.o tclProc.o tclRegexp.o tclResolve.o tclResult.o
tclScan.o tclStringObj.o tclThread.o tclThreadAlloc.o tclThreadJoin.o
tclStubInit.o tclStubLib.o tclTimer.o tclUtf.o tclUtil.o tclVar.o
tclUnixChan.o tclUnixEvent.o tclUnixFCmd.o tclUnixFile.o tclUnixPipe.o
tclUnixSock.o tclUnixTime.o tclUnixInit.o tclUnixThrd.o tclUnixNotfy.o
memcmp.o strstr.o strtoul.o strtod.o fixstrtod.o tclLoadDl.o -ldl -lieee
-lm -Wl,-rpath,/tools/lib
fixstrtod.o: In function `fixstrtod':
fixstrtod.c:(.text+0x0): multiple definition of `fixstrtod'
strtod.o:strtod.c:(.text+0x0): first defined here
/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.0.3/../../../../i686-pc-
linux-gnu/bin/ld: Warning: size of symbol `fixstrtod' changed from 902 in
strtod.o to 76 in fixstrtod.o
collect2: ld returned 1 exit status
make: *** [libtcl8.4.so] Error 1
}}}
I'd just like to say that I copied and pasted every command (apart from
re-adjusting ld so that it would get past "Adjusting the toolchain" step),
so this should be working. (Technically I shouldn't have had to re-adjust
ld)
--
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/2052#comment:2>
LFS Trac <http://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.
--
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page