Giter Club home page Giter Club logo

Comments (10)

jakubgs avatar jakubgs commented on June 9, 2024

It was suggested by @tersec to try building the binary with -d:disable_libbacktrace.

from nimbus-eth2.

jakubgs avatar jakubgs commented on June 9, 2024

It was also recommended by @cheatfate to downgrade our current GCC to 12.3.0:

jakubgs@windows-01 MINGW64 ~
$ gcc --version
gcc.exe (GCC) 13.2.0

from nimbus-eth2.

jakubgs avatar jakubgs commented on June 9, 2024

Building stable branch with -d:disable_libbacktrace provided no additional information:

nimbus@windows-01 MINGW64 ~/beacon-node-holesky-stable
$ repo/build/nimbus_beacon_node_fc9c72f0.exe --version
Segmentation fault

from nimbus-eth2.

jakubgs avatar jakubgs commented on June 9, 2024

And building testing branch did not change anything, it also crashes:

nimbus@windows-01 MINGW64 ~/beacon-node-holesky-testing
$ ./bin/nimbus_beacon_node.exe --version
Segmentation fault

from nimbus-eth2.

jakubgs avatar jakubgs commented on June 9, 2024

If we want to downgrade to GCC 12.3.0 we can't do it using the mingw-nuwen distribution:

image

https://nuwen.net/mingw.html

Unless GCC 11.2.0 works too.

from nimbus-eth2.

jakubgs avatar jakubgs commented on June 9, 2024

And resetting Scoop main bucket to 59bfee96e9df5b0c891e1ad2c544c5c51270da20 before gcc and mingw-nuwen updates doesn't work:

admin@windows-01 MINGW64 ~/.../buckets/main (master)
$ scoop install --no-update-scoop --global mingw-nuwen
Installing 'mingw-nuwen' (18.0) [64bit] from main bucket
The remote server returned an error: (404) Not Found.
URL https://nuwen.net/files/mingw/mingw-18.0-without-git.exe#/dl.7z is not valid

Because URLs changed... now it requires manual changes to the JSON to have it work.

from nimbus-eth2.

jakubgs avatar jakubgs commented on June 9, 2024

Just adding missing history folder to URL doesn't work tho, opened an issue:

from nimbus-eth2.

jakubgs avatar jakubgs commented on June 9, 2024

By making manual changes to the JSON file:

@@ -5,8 +5,8 @@                                                                                                                                                                                                                                                                                       
     "license": "GPL-2.0-only",                                                                                                                                                                                                                                                                       
     "architecture": {                                                                                                                                                                                                                                                                                
         "64bit": {                                                                                                                                                                                                                                                                                   
-            "url": "https://nuwen.net/files/mingw/mingw-18.0-without-git.exe#/dl.7z",                                                                                                                                                                                                                
-            "hash": "532aa9fc377fa8cb3985fc2fadf61da43f1c50bcc464719b8274dc2b2590d688"                                                                                                                                                                                                               
+            "url": "https://nuwen.net/files/mingw/history/mingw-18.0.exe#/dl.7z",                                                                                                                                                                                                                    
+            "hash": "d76eadcfebacf688279b121c6a59c90dc2b3a69249f3765efc4d16d0708142d8"                                                                                                                                                                                                               
         }                                                                                                                                                                                                                                                                                            
     },                                                                                                                                                                                                                                                                                               
     "extract_dir": "MinGW",                                                                                                                                                                                                                                                                          
@@ -16,7 +16,7 @@                                                                                                                                                                                                                                                                                     
         "CPLUS_INCLUDE_PATH": "$dir\\include;$dir\\include\\freetype2"                                                                                                                                                                                                                               
     },                                                                                                                                                                                                                                                                                               
     "checkver": {                                                                                                                                                                                                                                                                                    
-        "regex": "mingw-([\\d.]+)-without-git"                                                                                                                                                                                                                                                       
+        "regex": "mingw-([\\d.]+)"                                                                                                                                                                                                                                                                   
     },                                                                                                                                                                                                                                                                                               
     "autoupdate": {                                                                                                                                                                                                                                                                                  
         "architecture": { 

I managed to get it installed:

admin@windows-01 MINGW64 ~/.../buckets/main (master)
$ scoop install --no-update-scoop --global mingw-nuwen
'mingw-nuwen' was uninstalled.
Installing 'mingw-nuwen' (18.0) [64bit] from main bucket
mingw-18.0.exe (96.9 MB) [=======] 100%
Checking hash of mingw-18.0.exe ... ok.
Extracting dl.7z ... done.
Linking C:\ProgramData\scoop\apps\mingw-nuwen\current => C:\ProgramData\scoop\apps\mingw-nuwen\18.0
'mingw-nuwen' (18.0) was installed successfully!

admin@windows-01 MINGW64 ~/.../buckets/main (master)
$ gcc --version
gcc.exe (GCC) 11.2.0
Copyright (C) 2021 Free Software Foundation, Inc.

from nimbus-eth2.

jakubgs avatar jakubgs commented on June 9, 2024

And indeed, using GCC 11.2.0 the node builds and runs normally:

nimbus@windows-01 MINGW64 ~/beacon-node-holesky-testing
$ repo/build/nimbus_beacon_node_33e34ee8.exe --version
Nimbus beacon node v24.2.2-33e34e-stateofus
Copyright (c) 2019-2024 Status Research & Development GmbH

eth2 specification v1.4.0

Nim Compiler Version 1.6.18 [Windows: amd64]
Compiled at 2024-03-26
Copyright (c) 2006-2023 by Andreas Rumpf

active boot switches: -d:release

This is not great, since there is no pretty or easy way of locking the version down with Scoop.

from nimbus-eth2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.