From: Ashish SHUKLA <ashish.is@lostca.se>
To: Andrea Corallo <akrl@sdf.org>
Cc: 40462@debbugs.gnu.org
Subject: bug#40462: 28.0.50; Building nativecomp branch segfaulting on FreeBSD
Date: Sat, 2 May 2020 13:24:49 +0530 [thread overview]
Message-ID: <94d6fcb0-43ef-ef9a-65c8-b250b4e3e46e@lostca.se> (raw)
In-Reply-To: <xjfmu6rwbwf.fsf@sdf.org>
[-- Attachment #1.1: Type: text/plain, Size: 1997 bytes --]
On 5/2/20 3:33 AM, Andrea Corallo wrote:
> Hi Ashish,
>
> Okay I've got a VM with FreeBSD 12.1-RELEASE.
>
> I had to install gmake and a bunch of other GNU utilies and libraries to
> compile GCC.
>
> I've compiled and installed the current GCC trunk configuring as:
>
> ../configure --enable-host-shared --enable-languages=jit \
> --disable-bootstrap --enable-checking=release
> gmake -j2
> sudo gmake install
I updated lang/gcc9 port to include changes required to enable gccjit,
so instead of GCC trunk, I ended up using GCC 9.3.0
>
> Note: to have libgccjit working I had to do the following trick:
>
> # rm /usr/bin/ld
> # ln -s /usr/local/bin/ld.bfd /usr/bin/ld
The port takes care of using ld from binutils.
>
> Otherwise the GCC driver was using lld and this was trying to link the
> .eln against the C standard library (!?) failing.
>
> Did you had the same problem?
>
> I then compiled Emacs on 02e3ffad6d as follow:
>
> ./autogen.sh
> ./configure --without-x --with-gnutls=ifavailable --with-nativecomp \
> --without-makeinfo
> time gmake NATIVE_FAST_BOOT=1 V=1 -j2
my configure flags were same as mentioned previously, and gmake switches
are:
gmake BYTE_COMPILE_EXTRA_FLAGS='--eval "(setq comp-speed 0)"'
I guess I can try with NATIVE_FAST_BOOT=1 V=1. I will report back.
>
> It took ~40min and went clean. Now I did a quick test and everything
> looks normal. My LD_LIBRARY_PATH and LIBRARY_PATH are empty and I think
> I had to run only 'ldconfig -R' to have libgccjit visible.
>
> I'm starting a full build for the night but I do not see why it should
> fail at this point.
>
> Why can't I reproduce the error? Do you see any important difference
> between our recepies?
I used the FreeBSD ports to install everything. Whereas you used GCC
from trunk unlike me, and used these GNU make arguments, which I wasn't.
Anyways, I'll report back with my results.
Thanks!
--
Ashish SHUKLA
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2020-05-02 7:54 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-06 9:00 bug#40462: 28.0.50; Building nativecomp branch segfaulting on FreeBSD Ashish SHUKLA
2020-04-06 9:04 ` Ashish SHUKLA
2020-04-18 11:15 ` Andrea Corallo
2020-04-18 15:46 ` Ashish SHUKLA
2020-04-18 16:29 ` Andrea Corallo
2020-04-30 20:36 ` Ashish SHUKLA
2020-04-30 20:49 ` Andrea Corallo
2020-05-01 5:19 ` Ashish SHUKLA
2020-05-01 8:53 ` Andrea Corallo
2020-05-01 22:03 ` Andrea Corallo
2020-05-02 7:54 ` Ashish SHUKLA [this message]
2020-05-02 8:22 ` Ashish SHUKLA
2020-05-02 8:51 ` Ashish SHUKLA
2020-05-02 9:57 ` Andrea Corallo
2020-05-02 12:59 ` Ashish SHUKLA
2020-05-02 13:15 ` Andrea Corallo
2020-05-03 9:27 ` Andrea Corallo
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=94d6fcb0-43ef-ef9a-65c8-b250b4e3e46e@lostca.se \
--to=ashish.is@lostca.se \
--cc=40462@debbugs.gnu.org \
--cc=akrl@sdf.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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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.