Closed joeydumont closed 7 years ago
That's libm
(part of glibc) ... Your compiler is trying to include the x86 runtime libraries. The -I/usr/include
cli argument does not seem right. The Arch package does expect it to be the correct installation directory, though.
I'll admit, I haven't tried to build on Arch against the libdragon packages provided. I always just built the entire toolchain myself (on Ubuntu).
The only thing I can think of is ensuring your N64_INST
variable has been exported correctly. The Arch package expects export N64_INST=/usr
, but that seems to be dangerous.
Ok, so what version of bits/mathinline.h
should in be #include
d? The only version I seem to have on my computer is the x86 one, located under /usr/include/bits/mathinline.h
.
I have moved -I$(ROOTDIR)/mips64-elf/include
before -I$(ROOTDIR)/include
in the Makefile to make sure that it searched for, to no avail.
UPDATE: Before going any further with this, I'll try installing the whole toolchain by hand like you suggest.
It should only be including the headers and libs from libdragon, which contains newlib; that's where you'll find all the C runtime libs and headers.
Take a look at my build script at: http://krikzz.com/forum/index.php?topic=5880.0 it is for my fork of this project but should give you some good hints...
@networkfusion Nice fork :+1:
Thanks @networkfusion, that gave me a boost in the right direction. It was a case of a broken cross-compiler configuration. I used the following AUR packages:
and used your forks of libmikmod
and libmad
to succesfully compile alt64, as I failed to compile them by modifying the PKGBUILD to use mips64-elf-gcc
. If I'm able to pull that off though, I will create a AUR package for alt64. For the time being, my manual solution suffices.
Cheers,
I have tried to compile
alt64
on Arch Linux after installinglibdragon-git
andlibdragon-tools-git
from the AUR. However, tryingmake
yields the following errors:I'm not really well versed in assembly, so I really have no clue of what the issue might be. Any ideas?
libdragon-git
: https://aur.archlinux.org/packages/libdragon-gitlibdragon-tools-git
: https://aur.archlinux.org/packages/libdragon-tools-git