lowRISC / lowRISC/lowrisc-chip

ERROR: sizeof(size_t) doesn't match GLIB_SIZEOF_SIZE_T.

Open
#197 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
SystemVerilog
Stars
601
Forks
147
PR merge metrics
No merged PRs in 30d

Description

Hi
After ran the command on lowrisc-chip v0,7
make buildroot

I got the following error. Is there any solution to fix it?

BR
Nicolas

ainfs/host/bin:/home/nicolast0604/lowrisc-chip-ariane-v0.7/buildroot-2019.11.1-lowrisc/mainfs/host/sbin:/home/nicolast0604/.cargo/bin:/home/nicolast0604/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/tools/verilator/4.104/bin:/tools/verible/v0.0-1213-g9e5c085/bin:/home/nicolast0604/.cargo/env" PKG_CONFIG="/home/nicolast0604/lowrisc-chip-ariane-v0.7/buildroot-2019.11.1-lowrisc/mainfs/host/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_LIBDIR="/home/nicolast0604/lowrisc-chip-ariane-v0.7/buildroot-2019.11.1-lowrisc/mainfs/host/lib/pkgconfig:/home/nicolast0604/lowrisc-chip-ariane-v0.7/buildroot-2019.11.1-lowrisc/mainfs/host/share/pkgconfig" AR="/usr/bin/ar" AS="/usr/bin/as" LD="/usr/bin/ld" NM="/usr/bin/nm" CC="/usr/bin/gcc" GCC="/usr/bin/gcc" CXX="/usr/bin/g++" CPP="/usr/bin/cpp" OBJCOPY="/usr/bin/objcopy" RANLIB="/usr/bin/ranlib" CPPFLAGS="-I/home/nicolast0604/lowrisc-chip-ariane-v0.7/buildroot-2019.11.1-lowrisc/mainfs/host/include" CFLAGS="-O2 -I/home/nicolast0604/lowrisc-chip-ariane-v0.7/buildroot-2019.11.1-lowrisc/mainfs/host/include" CXXFLAGS="-O2 -I/home/nicolast0604/lowrisc-chip-ariane-v0.7/buildroot-2019.11.1-lowrisc/mainfs/host/include" LDFLAGS="-L/home/nicolast0604/lowrisc-chip-ariane-v0.7/buildroot-2019.11.1-lowrisc/mainfs/host/lib -Wl,-rpath,/home/nicolast0604/lowrisc-chip-ariane-v0.7/buildroot-2019.11.1-lowrisc/mainfs/host/lib" INTLTOOL_PERL=/usr/bin/perl CPP="/usr/bin/gcc -E" ./configure --target-list="riscv64-linux-user" --prefix="/home/nicolast0604/lowrisc-chip-ariane-v0.7/buildroot-2019.11.1-lowrisc/mainfs/host" --interp-prefix=/home/nicolast0604/lowrisc-chip-ariane-v0.7/buildroot-2019.11.1-lowrisc/mainfs/host/riscv64-buildroot-linux-gnu/sysroot --cc="/usr/bin/gcc" --host-cc="/usr/bin/gcc" --extra-cflags="-O2 -I/home/nicolast0604/lowrisc-chip-ariane-v0.7/buildroot-2019.11.1-lowrisc/mainfs/host/include" --extra-ldflags="-L/home/nicolast0604/lowrisc-chip-ariane-v0.7/buildroot-2019.11.1-lowrisc/mainfs/host/lib -Wl,-rpath,/home/nicolast0604/lowrisc-chip-ariane-v0.7/buildroot-2019.11.1-lowrisc/mainfs/host/lib" --python=/home/nicolast0604/lowrisc-chip-ariane-v0.7/buildroot-2019.11.1-lowrisc/mainfs/host/bin/python3 --disable-system --enable-linux-user --static --disable-virtfs --disable-libusb

ERROR: sizeof(size_t) doesn't match GLIB_SIZEOF_SIZE_T.
You probably need to set PKG_CONFIG_LIBDIR
to point to the right pkg-config files for your
build target

package/pkg-generic.mk:228: recipe for target '/home/nicolast0604/lowrisc-chip-ariane-v0.7/buildroot-2019.11.1-lowrisc/mainfs/build/host-qemu-3.1.1.1/.stamp_configured' failed
make[2]: *** [/home/nicolast0604/lowrisc-chip-ariane-v0.7/buildroot-2019.11.1-lowrisc/mainfs/build/host-qemu-3.1.1.1/.stamp_configured] Error 1
Makefile:23: recipe for target '_all' failed
make[1]: *** [_all] Error 2
make[1]: Leaving directory '/home/nicolast0604/lowrisc-chip-ariane-v0.7/buildroot-2019.11.1-lowrisc/mainfs'
Makefile:175: recipe for target '/home/nicolast0604/lowrisc-chip-ariane-v0.7/buildroot-2019.11.1-lowrisc/mainfs/images/rootfs.tar' failed
make: *** [/home/nicolast0604/lowrisc-chip-ariane-v0.7/buildroot-2019.11.1-lowrisc/mainfs/images/rootfs.tar] Error 2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at package/pkg-generic.mk:228 and the host-qemu-3.1.1.1/.stamp_configured step in mainfs, then inspect the shown configure command and its PKG_CONFIG_LIBDIR settings. Compare the reported sizeof(size_t) and GLIB_SIZEOF_SIZE_T values and reproduce the host-QEMU configuration failure; done means the build completes this configuration step.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.