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

AUR build #387

Closed
tallero opened this issue Jan 3, 2023 · 2 comments
Closed

AUR build #387

tallero opened this issue Jan 3, 2023 · 2 comments

Comments

@tallero
Copy link

tallero commented Jan 3, 2023

I'm having issues building the SDK on arch.

I'm using this PKGBUILD.

Package structure is currently the following:

Apparently the compiler is not overriding the pthread-embedded include and lib dirs from mips64r5900el-ps2-elf-pthread-embedded, which are:

  • /usr/mips64r5900el-ps2-elf/include/pthread-embedded
  • /usr/mips64r5900el-ps2-elf/lib/pthread-embedded
mips64r5900el-ps2-elf-gcc -D_EE -G0 -O2 -Wall -Werror  -Isrc/ -Isrc/include -Iinclude/ -I/disks/home/dev/makepkg/ps2-sdk/src/ps2-sdk/ee/kernel/include -I/home/dev/makepkg/ps2-sdk/src/ps2-sdk/common/include -I/home/dev/makepkg/ps2-sdk/src/ps2-sdk/ee/libcglue/include -I/home/dev/makepkg/ps2-sdk/src/ps2-sdk/ee/erl/include  -DF___threadInfo src/osal.c -c -o obj/__threadInfo.o
In file included from src/osal.c:11:
src/include/ps2_osal.h:24:10: fatal error: sys/pte_generic_osal.h: No such file or directory
   24 | #include <sys/pte_generic_osal.h>

If I try to override the include by simply prepending an include flag for the above directories, I get a linker errors:

[...]
mips64r5900el-ps2-elf/bin/ld: cannot find : cannot find -lc_nano-lc_nano

I can confirm this should be the reason because if I overwrite pthread.h and libpthread.a from mips64r5900el-ps2-elf-newlib with the ones from mips64r5900el-ps2-elf-pthread-embedded it builds correctly.

Note: I'm trying to build this with mips64r5900el-ps2-elf-gcc-stage1 because I'm also having issues building stage2.

@tallero
Copy link
Author

tallero commented Jan 5, 2023

I'm not having issues with the compiler anymore.

Is there a specific reason everything should be kept inside /opt/ps2dev?

I'm asking because I've packaged everything, from toolchain to this SDK as standard /usr binaries and libs and apparently everything fits correctly.

@uyjulian
Copy link
Member

uyjulian commented Dec 1, 2023

There is no specific reason for that directory; any directory can be used.

This doesn't seem to be an issue anymore. Reopen if this is not the case

@uyjulian uyjulian closed this as completed Dec 1, 2023
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