public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug jit/64296] New: link failure of libgccjit.so for "in tree" gmp/mpc/mpfr/isl
@ 2014-12-13 10:23 alfred.minarik.1 at aon dot at
  2014-12-21 17:47 ` [Bug jit/64296] " alfred.minarik.1 at aon dot at
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: alfred.minarik.1 at aon dot at @ 2014-12-13 10:23 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64296

            Bug ID: 64296
           Summary: link failure of libgccjit.so for "in tree"
                    gmp/mpc/mpfr/isl
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: jit
          Assignee: dmalcolm at gcc dot gnu.org
          Reporter: alfred.minarik.1 at aon dot at

using "in tree" gmp/mpc/mpfr/isl (as following contrib/download_prerequisites)
does not work with building jit.

gcc is correctly configured with --enable-host-shared but this information is
obviously not transferd into (or ignored by ?) gmp/mpc/mpfr/isl. Those static
libraries are still build without -fPIC,resulting in relocation failures while
linking libgccjit.so.

am@linux:~/tools/gcc> LANG=C gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local2/gcc_4.9.2/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /home/am/tools/gcc/gcc/configure
--prefix=/usr/local2/gcc_4.9.2 --enable-languages=all,ada,go,obj-c++
Thread model: posix
gcc version 4.9.2 (GCC) 

LANG="C" $GCCSRC_/configure --prefix=/usr/local2/gcc_exp
--enable-languages=c,c++,jit --disable-multilib --enable-checking=release
--enable-host-shared


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug jit/64296] link failure of libgccjit.so for "in tree" gmp/mpc/mpfr/isl
  2014-12-13 10:23 [Bug jit/64296] New: link failure of libgccjit.so for "in tree" gmp/mpc/mpfr/isl alfred.minarik.1 at aon dot at
@ 2014-12-21 17:47 ` alfred.minarik.1 at aon dot at
  2015-04-13 23:26 ` redi at gcc dot gnu.org
  2021-05-04 12:32 ` rguenth at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: alfred.minarik.1 at aon dot at @ 2014-12-21 17:47 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64296

--- Comment #1 from Alfred Minarik <alfred.minarik.1 at aon dot at> ---
just wanted to add, that I've found you can easily work around by
make BOOT_CFLAGS='-fPIC -g -O2'
(I don't know if something additionally gets compiled with -fPIC that needn't
or shouldn't)


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug jit/64296] link failure of libgccjit.so for "in tree" gmp/mpc/mpfr/isl
  2014-12-13 10:23 [Bug jit/64296] New: link failure of libgccjit.so for "in tree" gmp/mpc/mpfr/isl alfred.minarik.1 at aon dot at
  2014-12-21 17:47 ` [Bug jit/64296] " alfred.minarik.1 at aon dot at
@ 2015-04-13 23:26 ` redi at gcc dot gnu.org
  2021-05-04 12:32 ` rguenth at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: redi at gcc dot gnu.org @ 2015-04-13 23:26 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64296

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-04-13
     Ever confirmed|0                           |1

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Confirmed on x86_64-unknown-linux-gnu, but builds OK on
powerpc64le-unknown-linux-gnu.

Using --with-pic seems to work.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug jit/64296] link failure of libgccjit.so for "in tree" gmp/mpc/mpfr/isl
  2014-12-13 10:23 [Bug jit/64296] New: link failure of libgccjit.so for "in tree" gmp/mpc/mpfr/isl alfred.minarik.1 at aon dot at
  2014-12-21 17:47 ` [Bug jit/64296] " alfred.minarik.1 at aon dot at
  2015-04-13 23:26 ` redi at gcc dot gnu.org
@ 2021-05-04 12:32 ` rguenth at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-05-04 12:32 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64296

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-05-04 12:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-13 10:23 [Bug jit/64296] New: link failure of libgccjit.so for "in tree" gmp/mpc/mpfr/isl alfred.minarik.1 at aon dot at
2014-12-21 17:47 ` [Bug jit/64296] " alfred.minarik.1 at aon dot at
2015-04-13 23:26 ` redi at gcc dot gnu.org
2021-05-04 12:32 ` rguenth at gcc dot gnu.org

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).