Help - Search - Members - Calendar
Full Version: Errors In Crosscompiling
OESF Forums > Distros, Development, and Model Specific Forums > Distro Support and Discussion > pdaXrom
Ferdy
Hi,

I'm having a problem with the SDK tutorial found on pdaxrom.org. Every command is successfull, except the "make"-command. I got a lot of errors.

I used the latest SDK (pdaxromsdk-1.1.0-softfloat.tar.bz2) and I'm running a fresh Ubuntu install.

Does anyone know what went wrong?

Regards,
Ferdy

CODE
sh-2.05b$ cd newvox-1.0
sh-2.05b$ ls
acinclude.m4  configure     depcomp     Makefile.am  mkinstalldirs
aclocal.m4    configure.in  INSTALL     Makefile.in  newvox.c
bootstrapper  COPYING       install-sh  missing      README
sh-2.05b$ ./configure --host=armv5tel-cacko-linux --build=i686-linux --x-includes=/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/X11R6/include --x-libraries=/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/X11R6/lib --disable-debug --prefix=/usr/local
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/home/ferdy/newvox-1.0/missing: Unknown `--run' option
Try `/home/ferdy/newvox-1.0/missing --help' for more information
configure: WARNING: `missing' script is too old or missing
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for armv5tel-cacko-linux-strip... armv5tel-cacko-linux-strip
checking for armv5tel-cacko-linux-gcc... armv5tel-cacko-linux-gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether armv5tel-cacko-linux-gcc accepts -g... yes
checking for armv5tel-cacko-linux-gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of armv5tel-cacko-linux-gcc... gcc3
checking for sdl-config... /opt/arm/3.3.2-vfp/bin/sdl-config
checking for SDL - version >= 1.0.1... cross compiling; assumed OK...
yes
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
sh-2.05b$ make
if armv5tel-cacko-linux-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"newvox\" -DVERSION=\"1.0\"  -I. -I.     -g -O2 -I/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/include/SDL -D_REENTRANT -MT newvox.o -MD -MP -MF ".deps/newvox.Tpo" \
 -c -o newvox.o `test -f 'newvox.c' || echo './'`newvox.c; \
then mv ".deps/newvox.Tpo" ".deps/newvox.Po"; \
else rm -f ".deps/newvox.Tpo"; exit 1; \
fi
armv5tel-cacko-linux-gcc  -g -O2 -I/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/include/SDL -D_REENTRANT   -o newvox  newvox.o  -L/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib -Wl,-rpath,/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib -lSDL -lpthread
/opt/arm/3.3.2-vfp/lib/gcc-lib/armv5tel-cacko-linux/3.3.2/../../../../armv5tel-cacko-linux/bin/ld: warning: libX11.so.6, needed by /opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so, not found (try using -rpath or -rpath-link)
/opt/arm/3.3.2-vfp/lib/gcc-lib/armv5tel-cacko-linux/3.3.2/../../../../armv5tel-cacko-linux/bin/ld: warning: libXext.so.6, needed by /opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so, not found (try using -rpath or -rpath-link)
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XSetWMProtocols'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XSetWMIconName'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XShmDetach'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XGetErrorDatabaseText'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XSetWindowBackground'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XSetTransientForHint'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XListPixmapFormats'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XGrabKeyboard'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XSync'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XDefineCursor'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XFreeCursor'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XChangePointerControl'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XMapWindow'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XGetVisualInfo'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XCloseDisplay'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XIconifyWindow'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XRaiseWindow'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XPending'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XSetClassHint'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XGetModifierMapping'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XCreateSimpleWindow'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XESetEventToWire'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XCreateImage'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XextAddDisplay'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XFreeColormap'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XGetWindowAttributes'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XResizeWindow'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XFreeGC'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XKeysymToKeycode'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XAllocSizeHints'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XMoveResizeWindow'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XDeleteProperty'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XStoreColors'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XGrabPointer'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XGetWMHints'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `_XFlushGCCache'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XStringListToTextProperty'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XLookupString'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XMoveWindow'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XSendEvent'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XQueryPointer'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XSetWMHints'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XSetWMName'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XReparentWindow'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XFree'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XFreeModifiermap'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XFreeColors'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XAllocClassHint'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XSetErrorHandler'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XSetIOErrorHandler'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `_XReadPad'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XChangeProperty'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XDestroyWindow'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XQueryKeymap'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XSetWindowColormap'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XKeycodeToKeysym'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XCreateColormap'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XextFindDisplay'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `_XReply'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XShmCreateImage'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XChangeWindowAttributes'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XShmPutImage'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XMatchVisualInfo'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XSetWindowBackgroundPixmap'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XShmAttach'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XMaskEvent'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XPeekEvent'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XCheckTypedEvent'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XQueryColors'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XSetWMNormalHints'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XextCreateExtension'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XGetPointerControl'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `_XSetLastRequestRead'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `_XEatData'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `_XFlush'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XInternAtom'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XAllocColor'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XCreatePixmapCursor'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XShmQueryExtension'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XFlush'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XCreateWindow'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XNextEvent'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `_XSend'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XSelectInput'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `_XRead'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XGetWMName'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XextRemoveDisplay'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XEventsQueued'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XClearWindow'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XDisplayName'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XMissingExtension'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XWarpPointer'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XUngrabKeyboard'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XCreatePixmapFromBitmapData'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XUngrabPointer'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XESetWireToEvent'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XPutImage'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XCreatePixmap'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XUnmapWindow'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XAllocWMHints'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XGetWMIconName'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XCreateGC'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XOpenDisplay'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XInstallColormap'
/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/lib/libSDL.so: undefined reference to `XMapRaised'
collect2: ld returned 1 exit status
make: *** [newvox] Error 1
sh-2.05b$
pgas
It doesn't have the path to the X11 libraries for some reason
try to run configure like this:

CODE
LDFLAGS="-Wl,-rpath-link,/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/X11R6/lib" ./configure --host=armv5tel-cacko-linux --build=i686-linux --x-includes=/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/X11R6/include --x-libraries=/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/X11R6/lib --disable-debug --prefix=/usr/local


If this works, I think Laze shoulf modify the tutorial

or modify the makefile and add -Wl,-rpath-link,/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/X11R6/lib somewher so that it is added to the build line.
Ferdy
Thanks for your quick reply, I now could compile the program successfully smile.gif . But there is another small thing that went wrong in the IPK-creation process. I could strip the binary and add the control file without a problem, but when I issue the last command ("mkipkg ipkg_tmp"), I get another error..

CODE
sh-2.05b$ mkipkg ipkg_tmp
rsh: ./newvox_1.0_ipkg-build: Name or service not known
tar: ./newvox_1.0_ipkg-build\:: Cannot open: Input/output error
tar: Error is not recoverable: exiting now
pgas
Hmm, I never had a problem with mkipkg...I was not aware that it was using rsh...

I have no idea, the only thing in my mind is that maybe it's another mkipkg that is called. issue a

CODE
which mkipkg


in your terminal and check that it is in /opt/arm/something

Also double check the content of you control file.
Laze
I will update it now...
pgas
Laze: don't forget to specify for which SDK the tutorial is for, because of the -vfp that has been added in the directory name.
pgas
now you put

[CODE]LDFLAGS="-Wl,-rpath-link,/opt/arm/3.3.2-vfp/armv5tel-cacko-linux/X11R6/lib" ./configure --host=armv5tel-cacko-linux --build=i686-linux --x-includes=/opt/arm/3.3.2/armv5tel-cacko-linux/X11R6/include --x-libraries=/opt/arm/3.3.2/armv5tel-cacko-linux/X11R6/lib --disable-debug --prefix=/usr/local[CODE]

the 3.3.2 should be all either "3.3.2-vfp" since RC5 or "3.3.2" before RC5
pgas
anf while you are at it maybe you could add the step
run /opt/arm/3.3.2/runzgcc.sh ( or run /opt/arm/3.3.2-vfp/runzgcc.sh for RC>5)

in the steps, just in case ...
Ferdy
QUOTE(pgas @ Jan 12 2005, 08:41 AM)
Hmm,  I never had a problem with mkipkg...I was not aware that it was using rsh...

I have no idea, the only thing in my mind is that maybe it's another mkipkg that is called. issue a

CODE
which mkipkg


in your terminal and check that it is in /opt/arm/something

Also double check the content of you control file.

It turned out to be a problem in the control file as you suggested. I typed Architcture instead of Architecture.. unsure.gif (English is not my first language, so I didn't see it in an instant tongue.gif)

Thanks for the quick replies, everything works fine now, and I can continue to experiment with my new Zaurus. smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.