Re: [uClinux-dev] 68k cross compiler issue when compiling microwindows?

From: Tom Walsh (tom@cyberiansoftware.com)
Date: Fri Jan 19 2001 - 07:40:29 EST


Your relocation & truncation problem (text segment) means that you need
to discard the compiler that you are using and get the m68k-pic32-coff
compiler.  The PIC32 compiler will let you build LARGER binaries (>
32K).

TomW




Zhang Hong-W17904 wrote:
> 
> Would anybody give me a hint?
> 
> Buliding log message:
> 
> Compiling devrgn2.c ...
> Compiling progbar.c ...
> Compiling static.c ...
> Compiling combobox.c ...
> Compiling caret.c ...
> Compiling scrlbar.c ...
> Compiling medit.c ...
> Creating library /home/hongz/microwin/src/lib/libmwinlib.a ...
> Compiling winmain.c ...
> Compiling winuser.c ...
> winuser.c: In function `MwFindClassByName':
> winuser.c:212: warning: passing arg 2 of `strcasecmp' discards `const' from pointer target type
> Compiling wingdi.c ...
> Compiling winexpos.c ...
> Compiling winclip.c ...
> Compiling winevent.c ...
> Compiling windefw.c ...
> Compiling winrgn.c ...
> Compiling winfont.c ...
> Compiling winsbar.c ...
> Creating library /home/hongz/microwin/src/lib/libmwin.a ...
> Updating dependencies in /home/hongz/microwin/src/demos/mwin ...
> Compiling mdemo.c ...
> mdemo.c: In function `WndProc':
> mdemo.c:310: warning: implicit declaration of function `GdSetForeground'
> mdemo.c:310: warning: implicit declaration of function `GdFindColor'
> mdemo.c:311: warning: implicit declaration of function `GdArcAngle'
> mdemo.c:200: warning: unused variable `countup'
> Compiling mterm.c ...
> mterm.c: In function `CreatePtyShell':
> mterm.c:288: warning: implicit declaration of function `fork_not_available_use_vfork'
> mterm.c:298: warning: implicit declaration of function `setsid'
> mterm.c:304: warning: implicit declaration of function `dup2'
> mterm.c:310: warning: implicit declaration of function `execv'
> Compiling malpha.c ...
> Compiling mtest.c ...
> Compiling mine.c ...
> mine.c: In function `TestMyWinProc':
> mine.c:720: warning: implicit declaration of function `srandom'
> mine.c:724: warning: implicit declaration of function `random'
> Compiling mtest2.c ...
> /opt/uClinux/lib/gcc-lib/m68k-pic-coff/2.7.2.3-pic-060999/libgcc.a(__main.o): In function `__main':
> libgcc2.c(.text+0x5a): multiple definition of `__main'
> /opt/uClinux/m68k-pic-coff/lib/crt0.o(.text+0x4a):fake: first defined here
> /opt/uClinux/m68k-pic-coff/bin/gld: region a5world is full (/home/hongz/microwin/src/bin/mdemo section .data)
> mdemo.o(.text+0x900):mdemo.c: relocation truncated to fit: 16 image_microwin
> /home/hongz/microwin/src/lib/libmwin.a(winmain.o)(.text+0x630):winmain.c: relocation truncated to fit: 16 errno
> /home/hongz/microwin/src/lib/libmwinlib.a(edit.o)(.text+0x1e6):edit.c: relocation truncated to fit: 16 stderr
> /home/hongz/microwin/src/lib/libmwinlib.a(progbar.o)(.text+0x5ea):progbar.c: relocation truncated to fit: 16 stderr
> /home/hongz/microwin/src/lib/libmwengine.a(devrgn.o)(.text+0x64a):devrgn.c: undefined reference to `realloc'
> /home/hongz/microwin/src/lib/libmwengine.a(devrgn.o)(.text+0xa7a):devrgn.c: undefined reference to `realloc'
> /home/hongz/microwin/src/lib/libmwengine.a(devrgn.o)(.text+0xc48):devrgn.c: undefined reference to `realloc'
> /home/hongz/microwin/src/lib/libmwengine.a(devrgn.o)(.text+0xcce):devrgn.c: undefined reference to `realloc'
> /home/hongz/microwin/src/lib/libmwengine.a(devrgn.o)(.text+0xd5e):devrgn.c: undefined reference to `realloc'
> /home/hongz/microwin/src/lib/libmwengine.a(devrgn.o)(.text+0xdf4):devrgn.c: more undefined references to `realloc' follow
> /opt/uClinux/lib/gcc-lib/m68k-pic-coff/2.7.2.3-pic-060999/libgcc.a(_exit.o): In function `exit':
> libgcc2.c(.text+0xc): undefined reference to `_cleanup'
> libgcc2.c(.text+0xc): relocation truncated to fit: DISP16 _cleanup
> /opt/uClinux/m68k-pic-coff/lib/libc.a(select.o)(.text+0x16):select.c: relocation truncated to fit: 16 errno
> /opt/uClinux/m68k-pic-coff/lib/libc.a(errno_loc.o)(.text+0x6):errno_loc.c: relocation truncated to fit: 16 data
> /opt/uClinux/m68k-pic-coff/lib/libc.a(strcasecmp.o)(.text+0x1e):strcasecmp.c: relocation truncated to fit: 16 __ctype
> /opt/uClinux/m68k-pic-coff/lib/libc.a(strcasecmp.o)(.text+0x42):strcasecmp.c: relocation truncated to fit: 16 __ctype
> /opt/uClinux/m68k-pic-coff/lib/libc.a(printf.o)(.text+0xe):printf.c: relocation truncated to fit: 16 stdout
> /opt/uClinux/m68k-pic-coff/lib/libc.a(_stdio_init.o)(.text+0x8):stdio.c: relocation truncated to fit: 16 data
> /opt/uClinux/m68k-pic-coff/lib/libc.a(_stdio_init.o)(.text+0x10):stdio.c: relocation truncated to fit: 16 data
> /opt/uClinux/m68k-pic-coff/lib/libc.a(_stdio_init.o)(.text+0x18):stdio.c: relocation truncated to fit: 16 data
> /opt/uClinux/m68k-pic-coff/lib/libc.a(_stdio_init.o)(.text+0x54):stdio.c: relocation truncated to fit: 16 data
> /opt/uClinux/m68k-pic-coff/lib/libc.a(_stdio_init.o)(.text+0x62):stdio.c: relocation truncated to fit: 16 data
> /opt/uClinux/m68k-pic-coff/lib/libc.a(_stdio_init.o)(.text+0x94):stdio.c: relocation truncated to fit: 16 data
> /opt/uClinux/m68k-pic-coff/lib/libc.a(_stdio_init.o)(.text+0xca):stdio.c: relocation truncated to fit: 16 data
> /opt/uClinux/m68k-pic-coff/lib/libc.a(strncasecmp.o)(.text+0x24):strncasecmp.c: relocation truncated to fit: 16 __ctype
> /opt/uClinux/m68k-pic-coff/lib/libc.a(strncasecmp.o)(.text+0x48):strncasecmp.c: relocation truncated to fit: 16 __ctype
> /opt/uClinux/m68k-pic-coff/lib/libc.a(sprintf.o)(.text+0x8):printf.c: relocation truncated to fit: 16 data
> /opt/uClinux/m68k-pic-coff/lib/libc.a(__assert.o)(.text+0xaa):__assert.c: undefined reference to `abort'
> /opt/uClinux/m68k-pic-coff/lib/libc.a(__assert.o)(.text+0xaa):__assert.c: relocation truncated to fit: DISP16 abort
> /opt/uClinux/m68k-pic-coff/lib/libc.a(vsprintf.o)(.text+0x8):printf.c: relocation truncated to fit: 16 data
> /opt/uClinux/m68k-pic-coff/lib/libc.a(mmap.o)(.text+0x40):mmap.c: relocation truncated to fit: 16 errno
> /opt/uClinux/m68k-pic-coff/lib/libc.a(ctype.o)(.text+0xa):ctype.c: relocation truncated to fit: 16 data
> /opt/uClinux/m68k-pic-coff/lib/libc.a(ctype.o)(.text+0x26):ctype.c: relocation truncated to fit: 16 data
> /opt/uClinux/m68k-pic-coff/lib/libc.a(vfprintf.o)(.text+0x3f2):printf.c: relocation truncated to fit: 16 stderr
> /opt/uClinux/m68k-pic-coff/lib/libc.a(fflush.o)(.text+0x16):stdio.c: relocation truncated to fit: 16 stdin
> /opt/uClinux/m68k-pic-coff/lib/libc.a(fflush.o)(.text+0x26):stdio.c: relocation truncated to fit: 16 stdout
> /opt/uClinux/m68k-pic-coff/lib/libc.a(fflush.o)(.text+0x36):stdio.c: relocation truncated to fit: 16 stderr
> /opt/uClinux/m68k-pic-coff/lib/libc.a(fflush.o)(.text+0x44):stdio.c: relocation truncated to fit: 16 __IO_list
> /opt/uClinux/m68k-pic-coff/lib/libc.a(fflush.o)(.text+0xa2):stdio.c: relocation truncated to fit: 16 errno
> /opt/uClinux/m68k-pic-coff/lib/libc.a(isatty.o)(.text+0xa):isatty.c: relocation truncated to fit: 16 errno
> /opt/uClinux/m68k-pic-coff/lib/libc.a(atexit.o)(.text+0xe):atexit.c: relocation truncated to fit: 16 __on_exit_count
> /opt/uClinux/m68k-pic-coff/lib/libc.a(atexit.o)(.text+0x1c):atexit.c: relocation truncated to fit: 16 errno
> /opt/uClinux/m68k-pic-coff/lib/libc.a(__do_exit.o)(.text+0xe):atexit.c: relocation truncated to fit: 16 data
> mv: /home/hongz/microwin/src/bin/mdemo: No such file or directory
> Can't open /home/hongz/microwin/src/bin/mdemo.coff
> make[2]: *** [/home/hongz/microwin/src/bin/mdemo] Error 1
> 
> This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/

-- 
Tom Walsh - WN3L - Embedded Systems Consultant
'www.openhardware.net', 'www.cyberiansoftware.com'
"Windows? No thanks, I have work to do..."
This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/


This archive was generated by hypermail 2.1.4 : Thu Sep 19 2002 - 13:19:26 EDT