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

lv2 not default lib in ppu-gcc linker driver #37

Open
kraiskil opened this issue Apr 19, 2011 · 1 comment
Open

lv2 not default lib in ppu-gcc linker driver #37

kraiskil opened this issue Apr 19, 2011 · 1 comment

Comments

@kraiskil
Copy link

with the current ps3toolchain and psl1ght-v2, compiling trivial programs fail, as the linker cannot find what seems to be part of the c runtime. Try e.g.
echo "int main(){return 0;}" | ppu-gcc -x c -o foo -

This is not expected, and confuses e.g. autotools ("C-compiler cannot create binaries" - linking is checked also in cross builds)

One way of fixing this is to add the necessary libs to the ppu-gcc linker driver specs file. This can be done with the following "one liner" at the end of script 4 (ppu stage2)

ppu-gcc -dumpspecs |
awk -v psl1ght="-L$PSL1GHT/ppu/lib" '/*link:/ {getline temp; print $0; print temp " " psl1ght;next}{print}' |
awk '/*lib:/ {getline temp; print $0; print "-lrt -llv2 " temp; next}{print}' \

$PS3DEV/ppu/lib/gcc/ppu/4.5.2/specs

@shagkur
Copy link
Member

shagkur commented May 9, 2011

I'm trying to add this into the builtin specs in cell64lv2.h

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