Error, could not fixup imports, stubs out of order.

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
User avatar
richy486
Posts: 4
Joined: Wed Mar 08, 2006 4:30 pm

Error, could not fixup imports, stubs out of order.

Post by richy486 »

I get this error when I make my program:

psp-fixup-imports invaderR.elf
Error, could not fixup imports, stubs out of order.
Ensure the SDK libraries are linked in last to correct this error
make: *** [invaderR.elf] Error 1

I'm not quite sure what to do because I thought I had linked the SDK libs last.

Here is my makefile:

TARGET = invaderR_4c
OBJS = main.o Base.o BaseSet.o Bomber.o Invader.o InvaderSet.o Player.o Shooter.o Text.o

CFLAGS = -O2 -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

PSPBIN = $(PSPSDK)/../bin
CFLAGS += -I$(PSPSDK)/../include -fsingle-precision-constant -g -Wall -O2
LIBS += -lglut -lGLU -lGL -lm -lc -lpsputility -lpspdebug -lpspge -lpspdisplay -lpspctrl -lpspsdk -lpspvfpu -lpsplibc -lpspuser -lpspkernel -lpsprtc -lpsppower -lstdc++
LDFLAGS += -DMODULE_NAME="invaderR_4c" psp-setup.c

EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = invaderR_4c
# PSP_EBOOT_ICON = hero.png
# PSP_EBOOT_PIC1 = bg.png


PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak


any help would be great.
Thanks
danzel
Posts: 182
Joined: Fri Nov 04, 2005 11:03 pm

Post by danzel »

It means your LIBS= line is out of order.
Not sure what the correct line would be for you, try fiddle them around.
Move rtc further left and pspsdk to the far right maybe?
User avatar
dsn
Posts: 47
Joined: Wed Nov 09, 2005 11:48 am
Location: Indianapolis, Indiana, USA

Post by dsn »

How come you've got all that stuff in LIBS? Mine looks like this:

LIBS = -lpspgum -lpspgu -lpsprtc -lmad -lpspaudio -lpsppower

build.mak adds these to LIBS for you: -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel
Post Reply