Page MenuHomePhabricator

guix: use proper compiler in cmake toolchain
ClosedPublic

Authored by PiRK on Jun 15 2023, 12:55.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABCdbafb58269e5: guix: use proper compiler in cmake toolchain
Summary

For some reason the -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON is required on the first cmake command to avoid error messages.

Depends on D14065

Test Plan

contrib/guix/guix-build

Check that it now use the correct cross-compiler to compile Bitcoin ABC.

This is now almost working, down to one wrong symbol (pthread_sigmask) found by symbol-check in bitcoin-qt

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

PiRK requested review of this revision.Jun 15 2023, 12:55
PiRK planned changes to this revision.Jun 15 2023, 13:00

this was meant to be a draft, just to have a remote backup of work-in-progress

fix linter errors and fix CMAKE_CXX_COMPILER

PiRK planned changes to this revision.Jun 15 2023, 13:44

remove useless debugging statement

PiRK edited the test plan for this revision. (Show Details)
Fabien requested changes to this revision.Jun 15 2023, 15:19
Fabien added a subscriber: Fabien.
Fabien added inline comments.
cmake/platforms/Linux64.cmake
13 ↗(On Diff #40809)

I would expect CROSS_GCC to hold the path to the GCC executable and not only the root directory.
From the cmake file point of view the name is wrong.

This revision now requires changes to proceed.Jun 15 2023, 15:19

rename CROSS_GCC -> CROSS_GCC_ROOT
don't export it for mingw yet, wait until we deal with that toolchain.

This revision is now accepted and ready to land.Jun 16 2023, 12:58