Skip to content

solc: 0.8.21 -> 0.8.28; fix build - #369643

Merged
drupol merged 2 commits into
NixOS:masterfrom
GaetanLepage:solc
Dec 31, 2024
Merged

drupol merged 2 commits into
NixOS:masterfrom
GaetanLepage:solc

Conversation

@GaetanLepage

@GaetanLepage GaetanLepage commented Dec 31, 2024 •

Copy link
Copy Markdown
Contributor

Things done

Changelog: https://github.com/ethereum/solidity/releases/tag/v0.8.28

Fixes #334517

cc @dbrock @akru @lionello @sifmelcara

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@GaetanLepage GaetanLepage changed the title solc: 0.8.21 -> 0.8.28 solc: 0.8.21 -> 0.8.28; fix build Dec 31, 2024
@github-actions github-actions Bot added 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Dec 31, 2024
@GaetanLepage

Copy link
Copy Markdown
Contributor Author

Fails on aarch64-linux:

[100%] Linking CXX executable solc
In file included from include/boost/test/test_tools.hpp:52,
                 from include/boost/test/unit_test.hpp:18,
                 from /build/source/test/yulPhaser/Chromosome.cpp:41:
/build/source/test/yulPhaser/Chromosome.cpp: In member function 'void solidity::phaser::test::Phaser::ChromosomeTest::makeRandom_should_use_every_possible_step_with_the_same_probabi>
/build/source/test/yulPhaser/Chromosome.cpp:88:38: error: conversion from 'double' to 'int' may change value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#i>
   88 |         BOOST_TEST(abs(mean(samples) - expectedValue) < expectedValue * relativeTolerance);
      |                        ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/build/source/test/yulPhaser/Chromosome.cpp:89:65: error: conversion from 'double' to 'int' may change value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#i>
   89 |         BOOST_TEST(abs(meanSquaredError(samples, expectedValue) - variance) < variance * relativeTolerance);
      |                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
[100%] Built target solc
/build/source/test/yulPhaser/Chromosome.cpp: In member function 'void solidity::phaser::test::Phaser::ChromosomeTest::randomOptimisationStep_should_return_each_step_with_same_probab>
/build/source/test/yulPhaser/Chromosome.cpp:162:38: error: conversion from 'double' to 'int' may change value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#>
  162 |         BOOST_TEST(abs(mean(samples) - expectedValue) < expectedValue * relativeTolerance);
      |                        ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/build/source/test/yulPhaser/Chromosome.cpp:163:65: error: conversion from 'double' to 'int' may change value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#>
  163 |         BOOST_TEST(abs(meanSquaredError(samples, expectedValue) - variance) < variance * relativeTolerance);
      |                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [test/CMakeFiles/soltest.dir/build.make:1518: test/CMakeFiles/soltest.dir/yulPhaser/Chromosome.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:785: test/CMakeFiles/soltest.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

@GaetanLepage
GaetanLepage force-pushed the solc branch 2 times, most recently from 7f6718a to 110ce9b Compare December 31, 2024 12:52
@GaetanLepage

Copy link
Copy Markdown
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 369643


x86_64-linux

✅ 1 package built:
  • solc

aarch64-linux

✅ 1 package built:
  • solc

x86_64-darwin

✅ 1 package built:
  • solc

aarch64-darwin

✅ 1 package built:
  • solc

@ofborg
ofborg Bot requested review from akru, dbrock, lionello and sifmelcara December 31, 2024 13:38
@lucasew

lucasew commented Dec 31, 2024

Copy link
Copy Markdown
Contributor

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 369643


x86_64-linux

✅ 2 packages built:
  • paper-age
  • solc

@GaetanLepage
GaetanLepage requested a review from drupol December 31, 2024 14:39
Comment thread pkgs/by-name/so/solc/package.nix Resolved

@drupol drupol left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Diff LGTM

@GaetanLepage

Copy link
Copy Markdown
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 369643


x86_64-linux

✅ 1 package built:
  • solc

aarch64-linux

✅ 1 package built:
  • solc

x86_64-darwin

✅ 1 package built:
  • solc

aarch64-darwin

✅ 1 package built:
  • solc

@drupol
drupol merged commit 8b82387 into NixOS:master Dec 31, 2024
@GaetanLepage
GaetanLepage deleted the solc branch December 31, 2024 15:10
@Sigmanificient Sigmanificient mentioned this pull request Mar 8, 2025
27 of 28 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update request: solc 0.8.21 → 0.8.26

3 participants