LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-27-2007, 08:29 PM   #1
Chryzmo
Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware 10.1
Posts: 180

Rep: Reputation: 30
Need Help Cross-compiling for Dreamcast


Hey,

I'm trying to follow a tutorial for building a Linux distro for the Sega Dreamcast. The article is quite old, however I do not see why it should not work. I've tried going through it a few times now and always fail at the point where I need to cross-compile the busybox package.

I'm using this tutorial: http://www.linuxdevices.com/articles/AT7466555948.html

This is the step that causes the error:
Code:
root@lappy:/home/chryzmo/downloads/dreamcastLinux/busybox-0.60.1# make CROSS=sh4-
linux- DOSTATIC=true CFLAGS_EXTRA="-I ${PREFIX}/${TARGET}/include" PREFIX=${INIT
RD} clean all install
(echo -n "APPLET_SOURCES := "; BB_SRC_DIR= /bin/sh busybox.sh Config.h) > applet
_source_list
cd tests && make clean
make[1]: Entering directory `/home/chryzmo/downloads/dreamcastLinux/busybox-0.60
.1/tests'
rm -rf cp_tests cp_*.{gnu,bb} cp
rm -rf ln_tests ln_*.{gnu,bb} ln
rm -rf mv_tests mv_*.{gnu,bb} mv
make[1]: Leaving directory `/home/chryzmo/downloads/dreamcastLinux/busybox-0.60.
1/tests'
rm -f docs/BusyBox.txt docs/BusyBox.1 docs/BusyBox.html \
            docs/busybox.lineo.com/BusyBox.html
rm -f docs/busybox.txt docs/busybox.dvi docs/busybox.ps \
            docs/busybox.pdf docs/busybox.lineo.com/busybox.html
rm -f multibuild.log Config.h.orig *.gdb *.elf
rm -rf docs/busybox _install libpwd.a libbb.a pod2htm*
rm -f busybox.links libbb/loop.h *~ slist.mk core applet_source_list
find -name \*.o -exec rm -f {} \;
mkdir -p libbb
sh4-linux-gcc -Wall -Wshadow -Os -fomit-frame-pointer -D_GNU_SOURCE  -DBB_VER='"
0.60.1"' -DBB_BT='"2007.05.28-01:21+0000"' -DUSE_SYSTEM_PWD_GRP -I /usr/local/sh
4-linux/include -Ilibbb -DL_full_version -c libbb/messages.c -o libbb/full_versi
on.o
In file included from /usr/local/sh4-linux/include/_G_config.h:44,
                 from /usr/local/sh4-linux/include/libio.h:32,
                 from /usr/local/sh4-linux/include/stdio.h:65,
                 from libbb/libbb.h:27,
                 from libbb/messages.c:22:
/usr/local/sh4-linux/include/gconv.h:71: parse error before "size_t"
/usr/local/sh4-linux/include/gconv.h:84: parse error before "size_t"
/usr/local/sh4-linux/include/gconv.h:93: parse error before "size_t"
/usr/local/sh4-linux/include/gconv.h:169: parse error before "size_t"
/usr/local/sh4-linux/include/gconv.h:169: warning: no semicolon at end of struct
 or union
/usr/local/sh4-linux/include/gconv.h:172: parse error before '}' token
/usr/local/sh4-linux/include/gconv.h:172: warning: type defaults to `int' in dec
laration of `__gconv_t'
/usr/local/sh4-linux/include/gconv.h:172: warning: data definition has no type o
r storage class
In file included from /usr/local/sh4-linux/include/libio.h:32,
                 from /usr/local/sh4-linux/include/stdio.h:65,
                 from libbb/libbb.h:27,
                 from libbb/messages.c:22:
/usr/local/sh4-linux/include/_G_config.h:47: field `__cd' has incomplete type
/usr/local/sh4-linux/include/_G_config.h:50: field `__cd' has incomplete type
In file included from /usr/local/sh4-linux/include/stdio.h:65,
                 from libbb/libbb.h:27,
                 from libbb/messages.c:22:
/usr/local/sh4-linux/include/libio.h:344: parse error before "size_t"
/usr/local/sh4-linux/include/libio.h:353: parse error before "size_t"
/usr/local/sh4-linux/include/libio.h:461: parse error before "_IO_sgetn"
/usr/local/sh4-linux/include/libio.h:461: parse error before "size_t"
/usr/local/sh4-linux/include/libio.h:461: warning: type defaults to `int' in dec
laration of `_IO_sgetn'
/usr/local/sh4-linux/include/libio.h:461: warning: data definition has no type o
r storage class
In file included from libbb/libbb.h:27,
                 from libbb/messages.c:22:
/usr/local/sh4-linux/include/stdio.h:242: parse error before "size_t"
/usr/local/sh4-linux/include/stdio.h:248: parse error before "size_t"
/usr/local/sh4-linux/include/stdio.h:259: parse error before "size_t"
/usr/local/sh4-linux/include/stdio.h:265: parse error before "size_t"
/usr/local/sh4-linux/include/stdio.h:293: parse error before "size_t"
/usr/local/sh4-linux/include/stdio.h:297: parse error before "size_t"
/usr/local/sh4-linux/include/stdio.h:427: parse error before "size_t"
/usr/local/sh4-linux/include/stdio.h:430: parse error before "size_t"
/usr/local/sh4-linux/include/stdio.h:435: parse error before "size_t"
/usr/local/sh4-linux/include/stdio.h:459: parse error before "fread"
/usr/local/sh4-linux/include/stdio.h:459: parse error before "size_t"
/usr/local/sh4-linux/include/stdio.h:460: warning: type defaults to `int' in dec
laration of `fread'
/usr/local/sh4-linux/include/stdio.h:460: warning: data definition has no type o
r storage class
/usr/local/sh4-linux/include/stdio.h:462: parse error before "fwrite"
/usr/local/sh4-linux/include/stdio.h:462: parse error before "size_t"
/usr/local/sh4-linux/include/stdio.h:463: warning: type defaults to `int' in dec
laration of `fwrite'
/usr/local/sh4-linux/include/stdio.h:463: warning: data definition has no type o
r storage class
/usr/local/sh4-linux/include/stdio.h:467: parse error before "fread_unlocked"
/usr/local/sh4-linux/include/stdio.h:467: parse error before "size_t"
/usr/local/sh4-linux/include/stdio.h:468: warning: type defaults to `int' in dec
laration of `fread_unlocked'
/usr/local/sh4-linux/include/stdio.h:468: warning: data definition has no type o
r storage class
/usr/local/sh4-linux/include/stdio.h:469: parse error before "fwrite_unlocked"
/usr/local/sh4-linux/include/stdio.h:469: parse error before "size_t"
/usr/local/sh4-linux/include/stdio.h:470: warning: type defaults to `int' in dec
laration of `fwrite_unlocked'
/usr/local/sh4-linux/include/stdio.h:470: warning: data definition has no type o
r storage class
In file included from /usr/local/sh4-linux/include/netinet/in.h:212,
                 from /usr/local/sh4-linux/include/netdb.h:28,
                 from libbb/libbb.h:32,
                 from libbb/messages.c:22:
/usr/local/sh4-linux/include/bits/socket.h:232: parse error before "size_t"
/usr/local/sh4-linux/include/bits/socket.h:232: warning: no semicolon at end of
struct or union
/usr/local/sh4-linux/include/bits/socket.h:238: parse error before '}' token
In file included from /usr/local/sh4-linux/include/netdb.h:33,
                 from libbb/libbb.h:32,
                 from libbb/messages.c:22:
/usr/local/sh4-linux/include/rpc/netdb.h:61: parse error before "size_t"
/usr/local/sh4-linux/include/rpc/netdb.h:65: parse error before "size_t"
/usr/local/sh4-linux/include/rpc/netdb.h:69: parse error before "size_t"
In file included from libbb/libbb.h:32,
                 from libbb/messages.c:22:
/usr/local/sh4-linux/include/netdb.h:154: parse error before "size_t"
/usr/local/sh4-linux/include/netdb.h:161: parse error before "size_t"
/usr/local/sh4-linux/include/netdb.h:167: parse error before "size_t"
/usr/local/sh4-linux/include/netdb.h:173: parse error before "size_t"
/usr/local/sh4-linux/include/netdb.h:205: parse error before "size_t"
/usr/local/sh4-linux/include/netdb.h:211: parse error before "size_t"
/usr/local/sh4-linux/include/netdb.h:217: parse error before "size_t"
/usr/local/sh4-linux/include/netdb.h:258: parse error before "size_t"
/usr/local/sh4-linux/include/netdb.h:264: parse error before "size_t"
/usr/local/sh4-linux/include/netdb.h:269: parse error before "size_t"
/usr/local/sh4-linux/include/netdb.h:304: parse error before "size_t"
/usr/local/sh4-linux/include/netdb.h:309: parse error before "size_t"
/usr/local/sh4-linux/include/netdb.h:314: parse error before "size_t"
/usr/local/sh4-linux/include/netdb.h:340: parse error before "size_t"
In file included from libbb/messages.c:22:
libbb/libbb.h:105: parse error before "size_t"
libbb/libbb.h:139: parse error before "size"
libbb/libbb.h:140: parse error before "size_t"
libbb/libbb.h:141: parse error before "nmemb"
libbb/libbb.h:145: parse error before "size_t"
/usr/local/sh4-linux/include/gconv.h:171: warning: array `__data' assumed to hav           e one element
/usr/local/sh4-linux/include/bits/socket.h:236: warning: array `__cmsg_data' ass           umed to have one element
make: *** [libbb/full_version.o] Error 1
All the steps up to this point have gone through without any errors or warnings. I am completely stumped as to what is going on here since nothing has caused a problem before this.

gcc -v shows:
Code:
root@lappy:/home/chryzmo/downloads/dreamcastLinux/busybox-0.60.1# gcc -v
Reading specs from /usr/lib/gcc/i486-slackware-linux/3.4.6/specs
Configured with: ../gcc-3.4.6/configure --prefix=/usr --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --target=i486-slackware-linux --host=i486-slackware-linux
Thread model: posix
gcc version 3.4.6
Any help or suggestions would be appreciated.

Thanks,
Chris

*Also, I'm not sure if this is in the wrong forum. I didn't see any forum that seemed to fit it better, if I am wrong either more it or let me know and I'll move it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cross compiling Mike Davies Linux - Kernel 5 02-23-2018 11:30 AM
Cross Compiling dosnlinux Programming 5 03-01-2006 11:12 AM
cross compiling cerin Linux - Software 1 02-11-2006 10:47 PM
cross-compiling? jon_k Programming 3 12-09-2004 09:36 AM
cross compiling with g++ hornofsalvation Linux - Newbie 2 10-09-2004 10:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration