libyaul: Building problem

SILENT=1 make install-debug
make[1]: se entra en el directorio '/home/cdlt/SDKs/SaturnSDK/libyaul/libyaul'
build/libyaul/debug/kernel/reset-internal.o
build/libyaul/debug/kernel/internal.o
build/libyaul/debug/kernel/mm/internal.o
build/libyaul/debug/bup/bup.o
........
build/libyaul/debug/scu/bus/cpu/smpc/smpc_rtc.o
build/libyaul/debug/scu/scu-internal.o
build/libyaul/debug/scu/scu_init.o
build/libyaul/debug/scu/scu_dma.o
build/libyaul/debug/scu/scu_dsp.o
build/libyaul/debug/scu/scu_timer.o
build/libyaul/debug/gamemath/fix16/c++/fix16_vec3.o
build/libyaul/debug/scu/bus/cpu/cpu_dual_entries.o
build/libyaul/debug/scu/bus/cpu/cpu_exceptions.o
build/libyaul/debug/libyaul.a
/home/cdlt/.local/x-tools/sh2eb-elf/lib/gcc/sh2eb-elf/13.2.0/../../../../sh2eb-elf/bin/ar terminated with signal 11 [Segmentation fault]
base.mk:61: fallo en las instrucciones para el objetivo '/home/cdlt/SDKs/SaturnSDK/libyaul/build/libyaul/debug/libyaul.a'
make[1]: *** [/home/cdlt/SDKs/SaturnSDK/libyaul/build/libyaul/debug/libyaul.a] Error 1
make[1]: se sale del directorio '/home/cdlt/SDKs/SaturnSDK/libyaul/libyaul'
Makefile:104: fallo en las instrucciones para el objetivo 'debug'
make: *** [debug] Error 2

About this issue

  • Original URL
  • State: closed
  • Created 7 months ago
  • Comments: 53

Commits related to this issue

Most upvoted comments

Final version working with euccvm 28-10-2023 version

export PATH=/home/cdlt/SDKs/x86/i686-linux/bin:$PATH
unset LD_LIBRARY_PATH
cd
cd SDKs/SaturnSDK/
sudo rm -r *
git clone https://github.com/yaul-org/libyaul-build-scripts
cd libyaul-build-scripts
git submodule init
git submodule update
cd crosstool-ng
./bootstrap
./configure --enable-local
make
cd ..
cp configs/sh2eb-elf/host-i686-pc-linux-gnu.config .config
add to .config CT_PREFIX_DIR="${CT_PREFIX:-${HOME}/SDKs/SaturnSDK/x-tools}/${CT_HOST:+HOST-${CT_HOST}/}${CT_TARGET}"
ulimit -n 2048
crosstool-ng/ct-ng build
cd ..
git clone https://github.com/yaul-org/libyaul.git
cd libyaul
git submodule init
git submodule update
mkdir build
cp yaul.env.in $HOME/.yaul.env
add to .yaul.env:
export YAUL_INSTALL_ROOT=/home/cdlt/SDKs/SaturnSDK/x-tools/HOST-i686-pc-linux-gnu/sh2eb-elf
export YAUL_PROG_SH_PREFIX=sh2eb-elf
export YAUL_ARCH_SH_PREFIX=sh2eb-elf
export YAUL_ARCH_M68K_PREFIX=m68keb-elf
export YAUL_BUILD_ROOT=${HOME}/SDKs/SaturnSDK/libyaul
export YAUL_BUILD=build
sudo apt-get install lzip unzip xorriso
source $HOME/.yaul.env
SILENT=1 make install-debug
SILENT=1 make install-tools
cd ..
git clone https://github.com/yaul-org/libyaul-examples.git
cd libyaul-examples/
cd vdp1-zoom-sprite/
su root
source $HOME/.yaul.env
make

Excellent. I’ll investigate.

(gdb) where
No stack.
(gdb) list
125     /home/mrkotfw/libyaul-build-scripts/.build/HOST-i686-pc-linux-gnu/sh2eb-elf/src/gcc/gcc/gcc-ar.cc: No existe el archivo o el directorio.

I’m working on a vm that is 32-bit to ensure it works on real machines on both x86-64 and x86-32 (eUCCvm project). Can you give me a pre-build x86_32? Thank you very much

For Linux? I can look to spin up a container to build. I’ll have to see if the config is updated first. Also, I have upgraded GCC to 13.2, seeing that you’re referencing 11.2.

Yes, linux, ubuntu LTS 18.04 server 32 bits. I have compiled the toolchain with gcc 11.2 and 12.2 but maybe the problem is that I should do it with 13.2, do you think I should try that?

Could the problem be that I’m trying to compile on x86 32 bits and there’s some kind of bug in the code that only allows it to compile on x86-64?

This sounds plausible. Is it possible for you to try to build on x86_64?

Unfortunately, I am working on a 32-bit VM called eUCCvm, which does not run 64-bit code. Its main function is to work on old computers with low RAM to apply to the educational system of countries and regions of the planet where it is not possible to acquire new equipment.