From: Mike Frysinger <vapier@gentoo.org>
To: "H.J. Lu" <hjl.tools@gmail.com>
Cc: GDB <gdb-patches@sourceware.org>
Subject: Re: [committed, PATCH] Fix sim build
Date: Thu, 02 Apr 2015 05:35:00 -0000 [thread overview]
Message-ID: <20150402053501.GA9832@vapier> (raw)
In-Reply-To: <20150401173315.GA2820@intel.com>
[-- Attachment #1: Type: text/plain, Size: 1760 bytes --]
On 01 Apr 2015 10:33, H.J. Lu wrote:
> I checked in this patch to fix sim build.
this partially fixes it. the zlib macro is still broken:
# Use the system's zlib library.
zlibdir=-L../zlib
that only works if you try to link zlib when you're one dir deep. the sim is
two dirs deep which leads to failure:
make[2]: Entering directory '/usr/local/src/gnu/gdb/build/build-bfin-mingw/sim/bfin'
i686-w64-mingw32-gcc -DHAVE_CONFIG_H -DWITH_DEFAULT_MODEL='"bf537"' -DPROFILE=1 -DWITH_PROFILE=-1 -DWITH_DEFAULT_ALIGNMENT=STRICT_ALIGNMENT -DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN -DWITH_ENVIRONMENT=ALL_ENVIRONMENT -DWITH_HW=1 -DWITH_HOST_BYTE_ORDER=0 -DDEFAULT_INLINE=0 -Wall -Wdeclaration-after-statement -Wpointer-arith -Wpointer-sign -Wno-unused -Wunused-value -Wunused-function -Wno-switch -Wno-char-subscripts -Wmissing-prototypes -Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type -Wold-style-declaration -Wold-style-definition -Wno-format -D__USE_MINGW_FSEEK -I. -I../../../../sim/bfin -I../common -I../../../../sim/bfin/../common -I../../include -I../../../../sim/bfin/../../include -I../../bfd -I../../../../sim/bfin/../../bfd -I../../opcodes -I../../../../sim/bfin/../../opcodes -g -O2 -D__USE_MINGW_ACCESS -static-libstdc++ -static-libgcc -Wl,--stack,12582912 -o run.exe \
nrun.o libsim.a ../../bfd/libbfd.a ../../opcodes/libopcodes.a ../../libiberty/libiberty.a -lm -L../zlib -lz -lm
/usr/libexec/gcc/i686-w64-mingw32/ld: cannot find -lz
collect2: error: ld returned 1 exit status
Makefile:297: recipe for target 'run.exe' failed
make[2]: *** [run.exe] Error 1
the zlib.a is in zlib/, but sim/bfin/ can't see that with -L../zlib. guess you
want -L\$(top_builddir)/lib instead.
-mike
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2015-04-02 5:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-01 17:33 H.J. Lu
2015-04-02 5:35 ` Mike Frysinger [this message]
2015-04-02 12:50 ` H.J. Lu
2015-04-02 16:26 ` Mike Frysinger
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=20150402053501.GA9832@vapier \
--to=vapier@gentoo.org \
--cc=gdb-patches@sourceware.org \
--cc=hjl.tools@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox