#324 closed defect (fixed)
m68k-rtems-gcc-3.2.1-20021203 is broken
Reported by: | Ralf Corsepius | Owned by: | Joel Sherrill |
---|---|---|---|
Priority: | normal | Milestone: | 2 |
Component: | tool | Version: | unknown |
Severity: | major | Keywords: | |
Cc: | bugs@…, ralf.corsepius@… | Blocked By: | |
Blocking: |
Description
m68k-rtems BSPs want to link against crti.o.
gcc-3.2.1 apparently doesn't provide crti.o's for the m68k.
I assume the cause for this to be the EXTRA_* parts of former RTEMS-gcc-3.2 patch having gone lost in gcc-3.2.1 patches.
diff -uNr /usr1/rtems/work-tools/original/gcc-3.2/gcc/config/m68k/t-crtstuff gcc-3.2/gcc/config/m68k/t-crts
--- /usr1/rtems/work-tools/original/gcc-3.2/gcc/config/m68k/t-crtstuff Tue Sep 14 04:52:09 1999
+++ gcc-3.2/gcc/config/m68k/t-crtstuff Wed Oct 23 11:08:04 2002
@@ -1,11 +1,10 @@
-# from ../t-svr4
-EXTRA_PARTS=crtbegin.o crtend.o crti.o crtn.o
+EXTRA_MULTILIB_PARTS=crtbegin.o crtend.o crti.o crtn.o
# Add flags here as required.
CRTSTUFF_T_CFLAGS =
# Assemble startup files.
-crti.o: $(srcdir)/config/m68k/crti.s $(GCC_PASSES)
- $(GCC_FOR_TARGET) -c -o crti.o $(srcdir)/config/m68k/crti.s
-crtn.o: $(srcdir)/config/m68k/crtn.s $(GCC_PASSES)
- $(GCC_FOR_TARGET) -c -o crtn.o $(srcdir)/config/m68k/crtn.s
+$(T)crti.o: $(srcdir)/config/m68k/crti.s $(GCC_PASSES)
+ $(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -o $(T)crti.o $(srcdir)/config/m68k/crti.s
+$(T)crtn.o: $(srcdir)/config/m68k/crtn.s $(GCC_PASSES)
+ $(GCC_FOR_TARGET) $(MULTILIB_CFLAGS) -c -o $(T)crtn.o $(srcdir)/config/m68k/crtn.s
Release:
N/A
How-To-Repeat:
Build any arbitrary m68k-rtems bsp.
Linking hello fails with:
m68k-rtems-gcc --pipe -B../../../../../lib/ -B../../../../../idp/lib/ -specs bsp_specs -qrtems -msoft-float -O4 -fomit-frame-pointer -g -Wall -ansi -fasm -o o-optimize/hello.nxe o-optimize/init.o ../../../../../idp/lib/no-dpmem.rel ../../../../../idp/lib/no-event.rel ../../../../../idp/lib/no-msg.rel ../../../../../idp/lib/no-mp.rel ../../../../../idp/lib/no-part.rel ../../../../../idp/lib/no-signal.rel ../../../../../idp/lib/no-timer.rel ../../../../../idp/lib/no-rtmon.rel
/opt/rtems/lib/gcc-lib/m68k-rtems/3.2.1/../../../../m68k-rtems/bin/ld: cannot open crti.o: No such file or directory
collect2: ld returned 1 exit status
gmake[5]: * [o-optimize/hello.exe] Error 1
Attachments (1)
Change History (2)
comment:1 Changed on 12/12/02 at 00:14:12 by Joel Sherrill
Status: | assigned → closed |
---|
Changed on 12/03/06 at 13:31:13 by Ralf Corsepius
Attachment: | gcc-3.2.1-rtems-rc-20021207-1.diff added |
---|
gcc-3.2.1-rtems-rc-20021207-1.diff
State-Changed-From-To: analyzed->closed
State-Changed-Why: new RPMs have been built and will be made available