public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* Problem with installing C library
@ 2013-08-08 12:14 Zdenko Bacik
  0 siblings, 0 replies; only message in thread
From: Zdenko Bacik @ 2013-08-08 12:14 UTC (permalink / raw)
  To: crossgcc

Dear crosstool developers,

I have got tricky problem during building of crosstool-ng-1.18:

I build crosstool-ng in virtual machine on linux distribution Ubuntu
12.04 LTS. Mostly of builds are successfully,
but from time to time the compilation fail during building of libc
part. I have configured glibc-2.17.

If I look to the log file I find there this:

[ERROR]    collect2: error: ld returned 1 exit status
[ERROR]    make[3]: ***
[/home/kistler/svn.trunk/060_Build/maXYmoTL/crosstool-ng-1.18.0/targets/i586-kistler-linux-gnu/build/build-libc-final/libc.so]
Error 1
[ALL  ]    make[3]: Leaving directory
`/home/kistler/svn.trunk/060_Build/maXYmoTL/crosstool-ng-1.18.0/targets/src/glibc-2.17/elf'
[ERROR]    make[2]: *** [elf/subdir_lib] Error 2
[ALL  ]    make[2]: Leaving directory
`/home/kistler/svn.trunk/060_Build/maXYmoTL/crosstool-ng-1.18.0/targets/src/glibc-2.17'
[ERROR]    make[1]: *** [all] Error 2
[ALL  ]    make[1]: Leaving directory
`/home/kistler/svn.trunk/060_Build/maXYmoTL/crosstool-ng-1.18.0/targets/i586-kistler-linux-gnu/build/build-libc-final'
[ERROR]
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Installing C library'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@257]
[ERROR]  >>        called from:
do_libc_backend_once[scripts/build/libc/glibc-eglibc.sh-common@441]
[ERROR]  >>        called from:
do_libc_backend[scripts/build/libc/glibc-eglibc.sh-common@143]
[ERROR]  >>        called from:
do_libc[scripts/build/libc/glibc-eglibc.sh-common@65]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@632]
[ERROR]  >>
[ERROR]  >>  For more info on this error, look at the file: 'build.log'
[ERROR]  >>  There is a list of known issues, some with workarounds, in:
[ERROR]  >>
'/home/kistler/svn/060_Build/maXYmoNC/crosstool-ng-1.18.0/docs/B -
Known issues.txt'



If I tried to analyze this problem and I found some strange behavior
before error occurred.
I try to describe it:
1. Problem seems to be during execute script Makerules
(./crosstool-ng/targets/src/glibc-2.17/Makerules) which edit shlib.lds
file.
2. In this Makerules script in line 470 is called command 'sed' (see
lines below)

465: $(common-objpfx)shlib.lds: $(common-objpfx)config.make $(..)Makerules
466:    $(LINK.o) -shared -Wl,-O1 \
467:          -nostdlib -nostartfiles \
468:          $(sysdep-LDFLAGS) $(config-LDFLAGS) $(LDFLAGS.so) \
469:          -Wl,--verbose 2>&1 | \
470:      sed > $@T \

When my build failed and I look to the build.log file I can see small
differences in parameters of this 'sed'.
See differences between successfully build and failed build:
Successfully build: ...... PROVIDE(__start___libc_subfreeres = .);
__libc_subfreeres : { *(__libc_subfreeres) } ......... parameters are
same like in script Makerules
Failed build:          ...... PROVIDE(__start___libc_subfreeres = .);
__libc_subfreeres : { __libcbc_subfreeres) } ......... parameters are
corrupted (*, bracket are missing)

In my point of view this corruption in output file shlib.ldsT failed my build.

Do you have any idea what is wrong ?
In this link you can download whole build.log file:
http://www.fileswap.com/dl/ZiKVRJabgR/build.log.html

Best regardes, Zdenko Bacik.

--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-08-08 12:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-08 12:14 Problem with installing C library Zdenko Bacik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).