CMake Build Problem
Kornel Benko
kornel at lyx.org
Tue Dec 17 09:59:38 UTC 2019
Am Mon, 16 Dec 2019 20:36:58 -0500
schrieb Scott Kostyshak <skostysh at lyx.org>:
> On Mon, Dec 16, 2019 at 08:11:16PM -0500, Richard Kimberly Heck wrote:
> > I'm getting a repeatable error when building the master branch of LyX
> > with cmake on Fedora 30. What I've done is:
> >
> > ./autogen.sh
> > mkdir build-cmake
> > cd build-cmake
> > cmake ..
> > make
> >
> > Result:
>
> Kornel can advise, but I think it is recommended to use an out-of-source
> build directory. Also, I don't think you should run autogen.sh.
Yes.
> So
> something like:
>
> mkdir ../build-cmake &&
> cd ../build-cmake &&
> cmake ../your-src-dir-name &&
> make
>
> Scott
Also the compiler tries to use
-flto -fno-fat-lto-objects
From 'man gcc'
Note that when -fno-fat-lto-objects is enabled the
compile stage is faster but you cannot perform a regular, non-LTO
link on them.
To disable this, use some extra cmake parameter
$ cmake your-src-dir-name -DLYX_DEBUG=ON -DLYX_RELEASE=OFF -DLYX_CPACK=ON
$ make package
-DLYX_DEBUG=ON # Compile with debug info (without lto)
-DLYX_RELEASE=OFF # Compile debug version
-DLYX_CPACK=ON # implicitly create everything needed for installation,
not only the lyx executable
I cannot see the wrong behaviour here with gcc8.3 and cmake1.16
What is your cmake version?
What is your gcc version?
Kornel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: Digitale Signatur von OpenPGP
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20191217/c519cf53/attachment.asc>
More information about the lyx-devel
mailing list