Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build errors on antix Linux #3442

Open
Kanabanarama opened this issue Jan 24, 2025 · 4 comments
Open

Build errors on antix Linux #3442

Kanabanarama opened this issue Jan 24, 2025 · 4 comments

Comments

@Kanabanarama
Copy link

Kanabanarama commented Jan 24, 2025

I tried to build Sonic Pi according to the readme on antix Linux to revive a (Atom processor) netbook I got. Unfortunately I get build errors.

System Information

OS: antiX-23.2 32 bit with up to date packages (based on Debian bookworm)
Sonic Pi version: 5.0.1

**Log of linux-build-all.sh

Building vcpkg
Unable to determine a binary release of vcpkg; attempting to build from source.
Building vcpkg-tool...
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting the C++ compiler in use
-- Detecting the C++ compiler in use - gcc
-- {fmt} version: 11.0.2
-- Build type: Release
-- Performing Test CPP_ATOMIC_BUILTIN
-- Performing Test CPP_ATOMIC_BUILTIN - Success
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Configuring done
-- Generating done
-- Build files have been written to: /home/kana/Development/sonic-pi/app/vcpkg/buildtrees/_vcpkg/build
[0/2] Re-checking globbed directories...
[52/220] Building CXX object CMakeFiles/vcpkglib.dir/src/vcpkg/base/cmd-parser.cpp.o
FAILED: CMakeFiles/vcpkglib.dir/src/vcpkg/base/cmd-parser.cpp.o 
/usr/bin/c++ -DVCPKG_BASE_VERSION=2999-12-31 -DVCPKG_VERSION=unknownhash -D_FILE_OFFSET_BITS=64 -I/home/kana/Development/sonic-pi/app/vcpkg/buildtrees/_vcpkg/src/vcpkg-tool-2025-01-11/include -I/home/kana/Development/sonic-pi/app/vcpkg/buildtrees/_vcpkg/build/_deps/fmt-src/include -I/home/kana/Development/sonic-pi/app/vcpkg/buildtrees/_vcpkg/build/_cmrc/include -O3 -DNDEBUG -std=c++17 -Winvalid-pch -include /home/kana/Development/sonic-pi/app/vcpkg/buildtrees/_vcpkg/build/CMakeFiles/vcpkglib.dir/cmake_pch.hxx -MD -MT CMakeFiles/vcpkglib.dir/src/vcpkg/base/cmd-parser.cpp.o -MF CMakeFiles/vcpkglib.dir/src/vcpkg/base/cmd-parser.cpp.o.d -o CMakeFiles/vcpkglib.dir/src/vcpkg/base/cmd-parser.cpp.o -c /home/kana/Development/sonic-pi/app/vcpkg/buildtrees/_vcpkg/src/vcpkg-tool-2025-01-11/src/vcpkg/base/cmd-parser.cpp
during RTL pass: peephole2
/home/kana/Development/sonic-pi/app/vcpkg/buildtrees/_vcpkg/src/vcpkg-tool-2025-01-11/src/vcpkg/base/cmd-parser.cpp: In member function ‘void vcpkg::CmdParser::add_unexpected_argument_errors_after(size_t)’:
/home/kana/Development/sonic-pi/app/vcpkg/buildtrees/_vcpkg/src/vcpkg-tool-2025-01-11/src/vcpkg/base/cmd-parser.cpp:733:5: internal compiler error: Segmentation fault
  733 |     }
      |     ^
0x972c7ec internal_error(char const*, ...)
	???:0
0x8913204 peep2_find_free_register(int, int, char const*, machine_mode, HARD_REG_SET*)
	???:0
0x910b576 gen_peephole2_252(rtx_insn*, rtx_def**)
	???:0
Please submit a full bug report, with preprocessed source (by using -freport-bug).
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-12/README.Bugs> for instructions.
[53/220] Building CXX object CMakeFiles/vcpkglib.dir/src/vcpkg/base/downloads.cpp.o
FAILED: CMakeFiles/vcpkglib.dir/src/vcpkg/base/downloads.cpp.o 
/usr/bin/c++ -DVCPKG_BASE_VERSION=2999-12-31 -DVCPKG_VERSION=unknownhash -D_FILE_OFFSET_BITS=64 -I/home/kana/Development/sonic-pi/app/vcpkg/buildtrees/_vcpkg/src/vcpkg-tool-2025-01-11/include -I/home/kana/Development/sonic-pi/app/vcpkg/buildtrees/_vcpkg/build/_deps/fmt-src/include -I/home/kana/Development/sonic-pi/app/vcpkg/buildtrees/_vcpkg/build/_cmrc/include -O3 -DNDEBUG -std=c++17 -Winvalid-pch -include /home/kana/Development/sonic-pi/app/vcpkg/buildtrees/_vcpkg/build/CMakeFiles/vcpkglib.dir/cmake_pch.hxx -MD -MT CMakeFiles/vcpkglib.dir/src/vcpkg/base/downloads.cpp.o -MF CMakeFiles/vcpkglib.dir/src/vcpkg/base/downloads.cpp.o.d -o CMakeFiles/vcpkglib.dir/src/vcpkg/base/downloads.cpp.o -c /home/kana/Development/sonic-pi/app/vcpkg/buildtrees/_vcpkg/src/vcpkg-tool-2025-01-11/src/vcpkg/base/downloads.cpp
In file included from /home/kana/Development/sonic-pi/app/vcpkg/buildtrees/_vcpkg/src/vcpkg-tool-2025-01-11/include/vcpkg/base/api-stable-format.h:3,
                 from /home/kana/Development/sonic-pi/app/vcpkg/buildtrees/_vcpkg/src/vcpkg-tool-2025-01-11/src/vcpkg/base/downloads.cpp:1:
/home/kana/Development/sonic-pi/app/vcpkg/buildtrees/_vcpkg/src/vcpkg-tool-2025-01-11/include/vcpkg/base/expected.h:119:52: internal compiler error: Segmentation fault
  119 |         ExpectedT(ExpectedT&& other) noexcept(std::is_nothrow_move_constructible_v<Error> &&
      |                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0x972c7ec internal_error(char const*, ...)
	???:0
0x83a240f maybe_add_fuzzy_binding(auto_vec<tree_node*, 0u>&, tree_node*, lookup_name_fuzzy_kind)
	???:0
0x83a2b4f suggest_alternative_in_explicit_scope(unsigned int, tree_node*, tree_node*)
	???:0
0x8347c58 qualified_name_lookup_error(tree_node*, tree_node*, tree_node*, unsigned int)
	???:0
0x844593e finish_id_expression(tree_node*, tree_node*, tree_node*, cp_id_kind*, bool, bool, bool*, bool, bool, bool, bool, char const**, unsigned int)
	???:0
0x83fbcff c_parse_file()
	???:0
0x84dc31e c_common_parse_file()
	???:0
Please submit a full bug report, with preprocessed source (by using -freport-bug).
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-12/README.Bugs> for instructions.
[54/220] Building CXX object CMakeFiles/vcpkglib.dir/src/vcpkg/base/cofffilereader.cpp.o
ninja: build stopped: subcommand failed.

The error occurs on seemingly random different steps while building the CXX objects.
I tried explicitly using gcc11 instead of 12 but to no avail.

@rbnpi
Copy link
Contributor

rbnpi commented Jan 25, 2025

Unfortunately the latest versions of sonic pi only work on 64bit os

@Kanabanarama
Copy link
Author

Oh no! But why?
Is that stated somewhere in the documentation?

@rbnpi
Copy link
Contributor

rbnpi commented Jan 26, 2025

Unfortunately one of the elixir components is downloaded as a binary during the build and it is only available in 64 bit. The source code is not available I think.
The vcpkg build is a bit problematic. One thing I wonder is do you have sufficient ram available? I had problems with. Holds on the past with some low ram raspberry pi. Solution was to increase the swap file size for the build process.

@Kanabanarama
Copy link
Author

I have 1 GB of RAM and have already tried it with a 2 GB swap.

It seems very unfortunate to limit the use of Sonic Pi to 64-bit architecture. Upcycling eeePCs and similar devices as creative tools would be a missed opportunity. A 32-bit branch would be fantastic; unfortunately, I am not familiar with the Elixir ecosystem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants