public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
From: Alexey Neyman <stilor@att.net>
To: crossgcc@sourceware.org
Subject: [crosstool-ng/crosstool-ng] 70a158: Fix variables passing to gdb configure scripts
Date: Sun, 17 Dec 2017 19:42:00 -0000	[thread overview]
Message-ID: <5a36c8908dbdd_39102ad72f5b3c144169d@hookshot-fe-8867ff3.cp1-iad.github.net.mail> (raw)

[-- Attachment #1: Type: text/plain, Size: 1937 bytes --]

  Branch: refs/heads/master
  Home:   https://github.com/crosstool-ng/crosstool-ng
  Commit: 70a1584e151832a347472cb557a72204777c95eb
      https://github.com/crosstool-ng/crosstool-ng/commit/70a1584e151832a347472cb557a72204777c95eb
  Author: Sergey Korolev <s.korolev@ndmsystems.com>
  Date:   2017-12-14 (Thu, 14 Dec 2017)

  Changed paths:
    M scripts/build/debug/300-gdb.sh

  Log Message:
  -----------
  Fix variables passing to gdb configure scripts

These changes mainly fix static linking errors when building static
native gdb and gdbserver (tested with gcc 7.2.0 + uClibc-ng 1.0.27 +
binutils 2.29.1 for MIPS):

[ALL  ]    .../lib/libstdc++.a(eh_throw.o): In function `__cxa_throw':
[ALL  ]    (.text.__cxa_throw+0x64): undefined reference to `_Unwind_RaiseException'
[ALL  ]    (.text.__cxa_throw+0x6c): undefined reference to `_Unwind_RaiseException'
[ALL  ]    .../lib/libstdc++.a(eh_throw.o): In function `__cxa_rethrow':
[ALL  ]    (.text.__cxa_rethrow+0x78): undefined reference to `_Unwind_Resume_or_Rethrow'
[ALL  ]    (.text.__cxa_rethrow+0x80): undefined reference to `_Unwind_Resume_or_Rethrow'
...

The problem is in mixing of CPP, CC, CXX, and LD with CPPFLAGS, CFLAGS,
CXXFLAGS, and LDFLAGS before passing to configure scripts.
gcc is sensitive to argument order and the scripts are normally responsible
to combine the variables in a proper way.

Signed-off-by: Sergey Korolev <s.korolev@ndmsystems.com>


  Commit: 37caa3d4d7986e95e71fcfd102d3a02b08f8a6b8
      https://github.com/crosstool-ng/crosstool-ng/commit/37caa3d4d7986e95e71fcfd102d3a02b08f8a6b8
  Author: Alexey Neyman <stilor@att.net>
  Date:   2017-12-17 (Sun, 17 Dec 2017)

  Changed paths:
    M scripts/build/debug/300-gdb.sh

  Log Message:
  -----------
  Merge pull request #882 from ksergeyv/gdb-link

Fix variables passing to gdb configure scripts


Compare: https://github.com/crosstool-ng/crosstool-ng/compare/f2db6bff7cd9...37caa3d4d798

                 reply	other threads:[~2017-12-17 19:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=5a36c8908dbdd_39102ad72f5b3c144169d@hookshot-fe-8867ff3.cp1-iad.github.net.mail \
    --to=stilor@att.net \
    --cc=crossgcc@sourceware.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 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).