building libgccjit on illumos

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I'm attempting to build libgccjit (at revision "releases/gcc-14.3.0") using
gcc-14 on OpenIndiana.  I'm positive I'm not getting the
configuration/build set up correct, and would greatly appreciate any
assistance.  The issue I'm running into is I am getting configure errors
when configure is run by the build process in subdirectories of my build
directory, such as in $BUILDDIR/x86_64-pc-solaris2.11/libquadmath.
Configure is failing when it does the cross-compile check, but the
underlying reason the test program cannot run is because it cannot load
libgcc_s.so.  From libquadmath/config.log:

configure:3653: checking whether we are cross compiling
configure:3661: /export/home/neal/gccjitbuild/./gcc/xgcc
-B/export/home/neal/gccjitbuild/./gcc/
-B/export/home/neal/gccjitinstall/x86_64-pc-solaris2.11/bin/
-B/export/home/neal/gccji\
tinstall/x86_64-pc-solaris2.11/lib/ -isystem
/export/home/neal/gccjitinstall/x86_64-pc-solaris2.11/include -isystem
/export/home/neal/gccjitinstall/x86_64-pc-solaris2.11/sys-include \
   -o conftest -g -O2   conftest.c  >&5
configure:3665: $? = 0
configure:3672: ./conftest
ld.so.1: conftest: fatal: libgcc_s.so.1: open failed: No such file or
directory
/export/home/neal/gcc/libquadmath/configure[3674]: eval: line 1: 28791:
Killed

I tried prefixing the initial configure command with LDFLAGS='-R
/export/home/neal/gccjitbuild/gcc:/export/home/neal/gccjitbuild/gcc/32'
(those directories contain libgcc_s.so) , but, AFAICT and based the same
config.log as above, this LDFLAGS is not used at this stage in the
compilation process (I can see the -R flag being passed to earlier
invocations of gcc)

Some questions: Is $BUILDDIR/gcc/xgcc the stage 1 compiler?  From my
understanding of libgcc_s.so, it shouldn't be a necessary dependency for
the autoconf test programs, so why would very simple emitted binaries
depend on it?

My initial configure flags were according to Internals — libgccjit 14.3.0 (
) documentation
<https://gcc.gnu.org/onlinedocs/gcc-14.3.0/jit/internals/index.html#working-on-the-jit-library>;
I also tried using flags from the build configuration for OpenIndiana's GCC
package here: oi-userland/components/developer/gcc-14/Makefile at
oi/hipster · OpenIndiana/oi-userland
<https://github.com/OpenIndiana/oi-userland/blob/oi/hipster/components/developer/gcc-14/Makefile#L70>
.

Thanks in advance,

Neal




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux