All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Jansa <martin.jansa@gmail.com>
To: "Gary S. Robertson" <gary.robertson@linaro.org>
Cc: openembedded-devel <openembedded-devel@lists.openembedded.org>
Subject: Re: [meta-oe][PATCH] libhugetlbfs: x86 - don't link against host libs
Date: Wed, 15 Apr 2015 19:16:53 +0200	[thread overview]
Message-ID: <20150415171653.GB2338@jama> (raw)
In-Reply-To: <1428985140-4170-1-git-send-email-gary.robertson@linaro.org>

On Mon, Apr 13, 2015 at 11:18:59PM -0500, Gary S. Robertson wrote:
> The x86 build linker scripts were still searching hard-coded paths on the
> build host for libraries.  As it happens, the libraries needed for
> linking the failing executable are present on my build host, so the build
> succeeds here despite the erroneous linker paths.  Consequently I had
> stupidly assumed the resulting QA warning was a fairly benign error
> until your test build in a pristine environment demonstrated otherwise.
> 
> I'm unclear as to the exact behavior shown by your log of the failed build,
> but since it is a linker error I am for now assuming it is precipitated
> somehow by the flawed library search paths.  In any case with the
> hard-coded host paths commented out I get a clean build without the QA
> warning and see no similar logs in my local builds - so I hope this will
> also fix the build failures on your end.

Thanks for quick response, but this doesn't seem to be enough:

| /home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/x86_64-linux/usr/libexec/i586-oe-linux/gcc/i586-oe-linux/4.9.2/ld: Attempt to open /home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux86/lib/libgcc_s.so succeeded
| i586-oe-linux-gcc  -m32 -march=i586 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed --sysroot=/home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux86 -I.. -O2 -Wall -g -o obj32/zero_filesize_segment.o -c zero_filesize_segment.c
| i586-oe-linux-gcc  -m32 -march=i586 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed --sysroot=/home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux86 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,-z,noexecstack -ldl -L../obj32 -o obj32/zero_filesize_segment -Lobj32 zero_filesize_segment.ld obj32/zero_filesize_segment.o obj32/testutils.o -Wl,--no-as-needed -lpthread -ldl -lhugetlbfs_privutils || cp bad-toolchain.sh obj32/zero_filesize_segment
| /home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/x86_64-linux/usr/libexec/i586-oe-linux/gcc/i586-oe-linux/4.9.2/ld: error: zero_filesize_segment.ld: SECTIONS seen after other input files; try -T/--script
| /home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/x86_64-linux/usr/libexec/i586-oe-linux/gcc/i586-oe-linux/4.9.2/ld: internal error in input_sections_begin, at /home/jenkins/oe/world/shr-core/tmp-glibc/work/x86_64-oe-linux/binutils-cross-i586/2.25-r0/git/gold/merge.h:269
| collect2: error: ld returned 1 exit status
| i586-oe-linux-gcc  -m32 -march=i586 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed --sysroot=/home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux86 -I.. -O2 -Wall -g -o obj32/linkhuge.o -c linkhuge.c
| i586-oe-linux-gcc  -m32 -march=i586 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed --sysroot=/home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux86 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,-z,noexecstack -ldl -L../obj32 -o obj32/linkhuge obj32/linkhuge.o obj32/testutils.o -Wl,--no-as-needed -lpthread -ldl -lhugetlbfs_privutils
| i586-oe-linux-gcc  -m32 -march=i586 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed --sysroot=/home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux86 -I.. -O2 -Wall -g -o obj32/linkhuge_nofd.o -c linkhuge_nofd.c
| i586-oe-linux-gcc  -m32 -march=i586 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed --sysroot=/home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux86 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,-z,noexecstack -ldl -L../obj32 -o obj32/linkhuge_nofd obj32/linkhuge_nofd.o obj32/testutils.o -Wl,--no-as-needed -lpthread -ldl -lhugetlbfs_privutils
| i586-oe-linux-gcc  -m32 -march=i586 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed --sysroot=/home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux86 -I.. -O2 -Wall -g -o obj32/linkshare.o -c linkshare.c
| i586-oe-linux-gcc  -m32 -march=i586 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed --sysroot=/home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux86 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,-z,noexecstack -ldl -L../obj32 -o obj32/linkshare obj32/linkshare.o obj32/testutils.o -Wl,--no-as-needed -lpthread -ldl -lhugetlbfs_privutils
| i586-oe-linux-gcc  -m32 -march=i586 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed --sysroot=/home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux86 -I.. -O2 -Wall -g -o obj32/linkhuge_rw.o -c linkhuge_rw.c
| i586-oe-linux-gcc  -m32 -march=i586 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed --sysroot=/home/jenkins/oe/world/shr-core/tmp-glibc/sysroots/qemux86 -B./obj32 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,-z,noexecstack -ldl -L../obj32 -o obj32/linkhuge_rw -Wl,--no-as-needed -lpthread -ldl -lhugetlbfs_privutils -Wl,--hugetlbfs-align obj32/linkhuge_rw.o obj32/testutils.o
| i586-oe-linux-ld: internal error in do_write, at /home/jenkins/oe/world/shr-core/tmp-glibc/work/x86_64-oe-linux/binutils-cross-i586/2.25-r0/git/gold/output.cc:464
| collect2: error: ld returned 1 exit status

Please try to build qemux86 with gold (ld-is-gold in DISTRO_FEATURES) to see if you reproduce this issue.

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com


  parent reply	other threads:[~2015-04-15 17:16 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-24 22:59 [meta-oe][PATCH 0/3] libhugetlbfs: fix build problems with ix86 and armv7ab Gary S. Robertson
2014-11-24 22:59 ` [meta-oe][PATCH 1/3] libhugetlbfs: Add ix86 to list of compatible host architectures Gary S. Robertson
2014-12-19 21:29   ` Gary Robertson
2014-12-19 23:07     ` Martin Jansa
2014-12-20  5:56       ` Gary Robertson
2014-12-20 11:12         ` Martin Jansa
2015-03-24 20:24           ` [meta-oe][PATCH V2] libhugetlbfs: add i586 to compatible hosts Gary S. Robertson
2015-03-24 20:24             ` [PATCH V2] libhugetlbfs: Add i586 to list of " Gary S. Robertson
2015-04-01 22:23           ` [meta-oe][PATCH V3] libhugetlbfs: add i586 to " Gary S. Robertson
2015-04-01 22:23             ` [PATCH] libhugetlbfs: Add i586 to list of compatible host architectures Gary S. Robertson
2015-04-02  0:31               ` Otavio Salvador
2015-04-02  0:33                 ` Otavio Salvador
2015-04-02 16:04                   ` [meta-oe][PATCH V4] libhugetlbfs: add i586 to compatible hosts Gary S. Robertson
2015-04-02 16:04                     ` [PATCH V4] libhugetlbfs: Add i586 to list of compatible host architectures Gary S. Robertson
2015-04-13 13:45                       ` Martin Jansa
2015-04-14  4:18                         ` [meta-oe][PATCH] libhugetlbfs: x86 - don't link against host libs Gary S. Robertson
2015-04-14  4:19                           ` [PATCH] " Gary S. Robertson
2015-04-15 17:16                           ` Martin Jansa [this message]
2015-05-13 12:48                             ` [meta-oe][PATCH] Revert "libhugetlbfs: Add i586 to list of compatible host architectures" Martin Jansa
2015-05-19  1:26                               ` Khem Raj
2014-11-24 22:59 ` [meta-oe][PATCH 2/3] libhugetlbfs: Make cross-devel recognize all ix86 arches Gary S. Robertson
2014-11-24 22:59 ` [meta-oe][PATCH 3/3] libhugetlbfs: Fix page size & text offset for arm arches Gary S. Robertson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150415171653.GB2338@jama \
    --to=martin.jansa@gmail.com \
    --cc=gary.robertson@linaro.org \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.