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

Fix build under Linux #43

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix build under Linux #43

wants to merge 1 commit into from

Conversation

drizzt
Copy link

@drizzt drizzt commented May 4, 2016

No description provided.

@CreeperMario
Copy link

What's wrong with building on Linux?
Building on Mac OS X is a similar process, and works perfectly (for me, at least).

@drizzt
Copy link
Author

drizzt commented May 4, 2016

drizzt@liara gx2sploit % make
make: cygpath: Command not found
mkdir -p /bin/
powerpc-eabi-gcc -std=gnu99 -nostdinc -fno-builtin -c -DVER=540 src/*.c
#-Wa,-a,-ad
cp -r /*.o /bin
cp: cannot stat '/*.o': No such file or directory
Makefile:16: recipe for target 'main540' failed
make: *** [main540] Error 1
drizzt@liara gx2sploit % 

@drizzt
Copy link
Author

drizzt commented May 4, 2016

With my commit (with libwiiu built):

drizzt@liara gx2sploit % make
mkdir -p /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/bin/
powerpc-eabi-gcc -std=gnu99 -nostdinc -fno-builtin -c -DVER=540 src/*.c
#-Wa,-a,-ad
cp -r /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/*.o /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/bin
rm /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/*.o
powerpc-eabi-ld -Ttext 1800000 --oformat binary -o /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/bin/code540.bin /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/bin/loader.o /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/../../libwiiu/bin/532/*.o `find /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/bin -name "*.o" ! -name "loader.o"`
powerpc-eabi-gcc -std=gnu99 -nostdinc -fno-builtin -c -DVER=532 src/*.c
#-Wa,-a,-ad
cp -r /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/*.o /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/bin
rm /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/*.o
powerpc-eabi-ld -Ttext 1800000 --oformat binary -o /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/bin/code532.bin /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/bin/loader.o /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/../../libwiiu/bin/532/*.o `find /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/bin -name "*.o" ! -name "loader.o"`
powerpc-eabi-gcc -std=gnu99 -nostdinc -fno-builtin -c -DVER=500 src/*.c
#-Wa,-a,-ad
cp -r /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/*.o /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/bin
rm /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/*.o
powerpc-eabi-ld -Ttext 1800000 --oformat binary -o /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/bin/code500.bin /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/bin/loader.o /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/../../libwiiu/bin/500/*.o `find /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/bin -name "*.o" ! -name "loader.o"`
powerpc-eabi-gcc -std=gnu99 -nostdinc -fno-builtin -c -DVER=410 src/*.c
#-Wa,-a,-ad
cp -r /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/*.o /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/bin
rm /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/*.o
powerpc-eabi-ld -Ttext 1800000 --oformat binary -o /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/bin/code410.bin /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/bin/loader.o /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/../../libwiiu/bin/410/*.o `find /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/bin -name "*.o" ! -name "loader.o"`
powerpc-eabi-gcc -std=gnu99 -nostdinc -fno-builtin -c -DVER=400 src/*.c
#-Wa,-a,-ad
cp -r /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/*.o /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/bin
rm /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/*.o
powerpc-eabi-ld -Ttext 1800000 --oformat binary -o /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/bin/code400.bin /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/bin/loader.o /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/../../libwiiu/bin/400/*.o `find /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/bin -name "*.o" ! -name "loader.o"`
powerpc-eabi-gcc -std=gnu99 -nostdinc -fno-builtin -c -DVER=310 src/*.c
#-Wa,-a,-ad
cp -r /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/*.o /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/bin
rm /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/*.o
powerpc-eabi-ld -Ttext 1800000 --oformat binary -o /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/bin/code310.bin /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/bin/loader.o /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/../../libwiiu/bin/310/*.o `find /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/bin -name "*.o" ! -name "loader.o"`
powerpc-eabi-gcc -std=gnu99 -nostdinc -fno-builtin -c -DVER=300 src/*.c
#-Wa,-a,-ad
cp -r /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/*.o /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/bin
rm /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/*.o
powerpc-eabi-ld -Ttext 1800000 --oformat binary -o /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/bin/code300.bin /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/bin/loader.o /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/../../libwiiu/bin/300/*.o `find /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/bin -name "*.o" ! -name "loader.o"`
powerpc-eabi-gcc -std=gnu99 -nostdinc -fno-builtin -c -DVER=210 src/*.c
#-Wa,-a,-ad
cp -r /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/*.o /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/bin
rm /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/*.o
powerpc-eabi-ld -Ttext 1800000 --oformat binary -o /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/bin/code210.bin /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/bin/loader.o /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/../../libwiiu/bin/210/*.o `find /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/bin -name "*.o" ! -name "loader.o"`
powerpc-eabi-gcc -std=gnu99 -nostdinc -fno-builtin -c -DVER=200 src/*.c
#-Wa,-a,-ad
cp -r /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/*.o /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/bin
rm /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/*.o
powerpc-eabi-ld -Ttext 1800000 --oformat binary -o /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/bin/code200.bin /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/bin/loader.o /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/../../libwiiu/bin/200/*.o `find /home/drizzt/dev/wiiu/libwiiu/kernel/gx2sploit/bin -name "*.o" ! -name "loader.o"`
drizzt@liara gx2sploit % 

@CreeperMario
Copy link

Oh, sorry, I just looked at your commits, I thought you meant that there was a build issue with the entirety of libwiiu, not just gx2sploit. I hadn't actually tried building the gx2sploit yet (I haven't even tried running it, no access to my console until tomorrow).

@@ -3,7 +3,9 @@ CFLAGS=-std=gnu99 -nostdinc -fno-builtin -c
LD=powerpc-eabi-ld
LDFLAGS=-Ttext 1800000 --oformat binary
project := src
ifeq ($(shell uname -o),Cygwin)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It must not be GNU/Linux ? (when wrinting uname -o, it give me this)

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It only runs the command below if it is on Windows.

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

Successfully merging this pull request may close these issues.

4 participants