I do not set any thumb or thumb interworking flags yet I get errors on linking indicated the problem. I have attached a file with the captured build commands and link commands? Any help would be appreciated.
—– begin —–
arm-elf-gcc (GCC) 4.1.1 (WinARM)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Compiling C (ARM-only): processctl.c
arm-elf-gcc -c
-mcpu=arm7tdmi
-I.
-g
-DROM_RUN
-DGCC_ARM7
-DUSE_FREE_RTOS
-Os
-Wall
-Wextra
-Wshadow
-Wpointer-arith
-Wbad-function-cast
-Wcast-align
-Wsign-compare
-Waggregate-return
-Wreturn-type
-Wstrict-prototypes
-Wmissing-prototypes
-Wmissing-declarations
-Wunused
-fomit-frame-pointer
-fno-strict-aliasing
-std=gnu99
-I/Cyber/SfwLibraries/arm7
-I/Cyber/SfwLibraries/arm7/LPC21xx
-I/Cyber/SfwLibraries/DevHandlers/arm7/LPC21xx
-I/Cyber/SfwLibraries/Utilities
-I/FreeRTOS/Source/include
-I/Cyber/SfwLibraries/FreeRTOS/LPC21xx
-MD
-MP
-MF
.dep/processctl.o.d
processctl.c
-o processctl.o
Linking: ProcessControl.elf
arm-elf-gcc
-mcpu=arm7tdmi
-I.
-g
-DROM_RUN
-DGCC_ARM7
-DUSE_FREE_RTOS
-Os
-Wall
-Wextra
-Wshadow
-Wpointer-arith
-Wbad-function-cast
-Wcast-align
-Wsign-compare
-Waggregate-return
-Wreturn-type
-Wstrict-prototypes
-Wmissing-prototypes
-Wmissing-declarations
-Wunused
-fomit-frame-pointer
-fno-strict-aliasing
-std=gnu99
-I/Cyber/SfwLibraries/arm7
-I/Cyber/SfwLibraries/arm7/LPC21xx
-I/Cyber/SfwLibraries/DevHandlers/arm7/LPC21xx
-I/Cyber/SfwLibraries/Utilities
-I/FreeRTOS/Source/include
-I/Cyber/SfwLibraries/FreeRTOS/LPC21xx
processctl.o
/Cyber/SfwLibraries/DevHandlers/arm7/LPC21xx/sysconf.o
/Cyber/SfwLibraries/DevHandlers/arm7/LPC21xx/tm0hand.o
/Cyber/SfwLibraries/DevHandlers/arm7/LPC21xx/vichand.o
/FreeRTOS/Source/list.o
/FreeRTOS/Source/queue.o
/FreeRTOS/Source/tasks.o
/Cyber/SfwLibraries/FreeRTOS/LPC21xx/port.o
/FreeRTOS/Source/portable/MemMang/heap_2.o
-nostartfiles
/Cyber/SfwLibraries/arm7/LPC21xx/crt0.o
-Xlinker
-oProcessControl.elf
-Xlinker
-M
-Xlinker
-Map=ProcessControl.map
G:CyberProcessControllerctlsfw>make >make.txt
processctl.c: In function ‘LedTask’:
processctl.c:150: warning: statement with no effect
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/bin/ld.exe:
Warning: /Cyber/SfwLibraries/arm7/LPC21xx/crt0.o does not support interworking,
whereas ProcessControl.elf does
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/bin/ld.exe:
Warning: c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1libgcc.a(_udivsi3.o) do
es not support interworking, whereas ProcessControl.elf does
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/bin/ld.exe:
Warning: c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1libgcc.a(_dvmd_tls.o) d
oes not support interworking, whereas ProcessControl.elf does
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/bin/ld.exe:
Warning: c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1libgcc.a(_addsubdf3.o)
does not support interworking, whereas ProcessControl.elf does
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/bin/ld.exe:
Warning: c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1libgcc.a(_muldivdf3.o)
does not support interworking, whereas ProcessControl.elf does
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/bin/ld.exe:
Warning: c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1libgcc.a(_fixunsdfsi.o)
does not support interworking, whereas ProcessControl.elf does
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/bin/ld.exe:
Warning: c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/lib
libg.a(memcpy.o) does not support interworking, whereas ProcessControl.elf does
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/bin/ld.exe:
Warning: c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/lib
libg.a(memset.o) does not support interworking, whereas ProcessControl.elf does
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/bin/ld.exe:
Warning: c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/lib
libg.a(sprintf.o) does not support interworking, whereas ProcessControl.elf doe
s
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/bin/ld.exe:
Warning: c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/lib
libg.a(strcat.o) does not support interworking, whereas ProcessControl.elf does
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/bin/ld.exe:
Warning: c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/lib
libg.a(strncpy.o) does not support interworking, whereas ProcessControl.elf doe
s
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/bin/ld.exe:
Warning: c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/lib
libg.a(vfprintf.o) does not support interworking, whereas ProcessControl.elf do
es
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/bin/ld.exe:
Warning: c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/lib
libg.a(wcrtomb.o) does not support interworking, whereas ProcessControl.elf doe
s
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/bin/ld.exe:
Warning: c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/lib
libg.a(wcsrtombs.o) does not support interworking, whereas ProcessControl.elf d
oes
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/bin/ld.exe:
Warning: c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/lib
libg.a(wctomb_r.o) does not support interworking, whereas ProcessControl.elf do
es
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/bin/ld.exe:
Warning: c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/lib
libg.a(wsetup.o) does not support interworking, whereas ProcessControl.elf does
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/bin/ld.exe:
Warning: c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/lib
libg.a(dtoa.o) does not support interworking, whereas ProcessControl.elf does
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/bin/ld.exe:
Warning: c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/lib
libg.a(fflush.o) does not support interworking, whereas ProcessControl.elf does
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/bin/ld.exe:
Warning: c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/lib
libg.a(findfp.o) does not support interworking, whereas ProcessControl.elf does
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/bin/ld.exe:
Warning: c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/lib
libg.a(freer.o) does not support interworking, whereas ProcessControl.elf does
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/bin/ld.exe:
Warning: c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/lib
libg.a(fvwrite.o) does not support interworking, whereas ProcessControl.elf doe
s
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/bin/ld.exe:
Warning: c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/lib
libg.a(fwalk.o) does not support interworking, whereas ProcessControl.elf does
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/bin/ld.exe:
Warning: c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/lib
libg.a(impure.o) does not support interworking, whereas ProcessControl.elf does
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/bin/ld.exe:
Warning: c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/lib
libg.a(locale.o) does not support interworking, whereas ProcessControl.elf does
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/bin/ld.exe:
Warning: c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/lib
libg.a(makebuf.o) does not support interworking, whereas ProcessControl.elf doe
s
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/bin/ld.exe:
Warning: c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/lib
libg.a(mallocr.o) does not support interworking, whereas ProcessControl.elf doe
s
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/bin/ld.exe:
Warning: c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/lib
libg.a(memchr.o) does not support interworking, whereas ProcessControl.elf does
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/bin/ld.exe:
Warning: c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/lib
libg.a(memmove.o) does not support interworking, whereas ProcessControl.elf doe
s
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/bin/ld.exe:
Warning: c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/lib
libg.a(mlock.o) does not support interworking, whereas ProcessControl.elf does
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/bin/ld.exe:
Warning: c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/lib
libg.a(mprec.o) does not support interworking, whereas ProcessControl.elf does
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/bin/ld.exe:
Warning: c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/lib
libg.a(reallocr.o) does not support interworking, whereas ProcessControl.elf do
es
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/bin/ld.exe:
Warning: c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/lib
libg.a(s_isinf.o) does not support interworking, whereas ProcessControl.elf doe
s
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/bin/ld.exe:
Warning: c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/lib
libg.a(s_isnan.o) does not support interworking, whereas ProcessControl.elf doe
s
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/bin/ld.exe:
Warning: c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/lib
libg.a(stdio.o) does not support interworking, whereas ProcessControl.elf does
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/bin/ld.exe:
Warning: c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/lib
libg.a(strcmp.o) does not support interworking, whereas ProcessControl.elf does
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/bin/ld.exe:
Warning: c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/lib
libg.a(strlen.o) does not support interworking, whereas ProcessControl.elf does
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/bin/ld.exe:
Warning: c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/lib
libg.a(callocr.o) does not support interworking, whereas ProcessControl.elf doe
s
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/bin/ld.exe:
Warning: c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/lib
libg.a(fclose.o) does not support interworking, whereas ProcessControl.elf does
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/bin/ld.exe:
Warning: c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1libgcc.a(_divsi3.o) doe
s not support interworking, whereas ProcessControl.elf does
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/bin/ld.exe:
Warning: c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1libgcc.a(_umodsi3.o) do
es not support interworking, whereas ProcessControl.elf does
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/bin/ld.exe:
Warning: c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1libgcc.a(_modsi3.o) doe
s not support interworking, whereas ProcessControl.elf does
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/bin/ld.exe:
Warning: c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1libgcc.a(_cmpdf2.o) doe
s not support interworking, whereas ProcessControl.elf does
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/bin/ld.exe:
Warning: c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1libgcc.a(_fixdfsi.o) do
es not support interworking, whereas ProcessControl.elf does
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/bin/ld.exe:
/FreeRTOS/Source/tasks.o(vTaskSuspendAll): warning: interworking not enabled.
first occurrence: /FreeRTOS/Source/portable/MemMang/heap_2.o: thumb call to ar
m
/FreeRTOS/Source/portable/MemMang/heap_2.o: In function `pvPortMalloc’:
heap_2.c:(.text+0xe): warning: internal error: dangerous error
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/bin/ld.exe:
/FreeRTOS/Source/tasks.o(xTaskResumeAll): warning: interworking not enabled.
first occurrence: /FreeRTOS/Source/portable/MemMang/heap_2.o: thumb call to ar
m
heap_2.c:(.text+0x186): warning: internal error: dangerous error
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/bin/ld.exe:
/FreeRTOS/Source/tasks.o(vTaskSuspendAll): warning: interworking not enabled.
first occurrence: /FreeRTOS/Source/portable/MemMang/heap_2.o: thumb call to ar
m
/FreeRTOS/Source/portable/MemMang/heap_2.o: In function `vPortFree’:
heap_2.c:(.text+0x1e2): warning: internal error: dangerous error
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/bin/ld.exe:
/FreeRTOS/Source/tasks.o(xTaskResumeAll): warning: interworking not enabled.
first occurrence: /FreeRTOS/Source/portable/MemMang/heap_2.o: thumb call to ar
m
heap_2.c:(.text+0x228): warning: internal error: dangerous error
/Cyber/SfwLibraries/arm7/LPC21xx/crt0.o: In function `abort’:
/Cyber/SfwLibraries/arm7/LPC21xx/crt0.S:165: undefined reference to `_data’
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/liblibg.a(f
reer.o): In function `_malloc_trim_r’:
mallocr.c:(.text+0x48): undefined reference to `_sbrk_r’
mallocr.c:(.text+0x64): undefined reference to `_sbrk_r’
mallocr.c:(.text+0x84): undefined reference to `_sbrk_r’
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/liblibg.a(m
akebuf.o): In function `__smakebuf’:
makebuf.c:(.text+0x3c): undefined reference to `_fstat_r’
makebuf.c:(.text+0x110): undefined reference to `isatty’
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/liblibg.a(m
allocr.o): In function `_malloc_r’:
mallocr.c:(.text+0x424): undefined reference to `_sbrk_r’
mallocr.c:(.text+0x4cc): undefined reference to `_sbrk_r’
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/liblibg.a(s
tdio.o): In function `__sclose’:
stdio.c:(.text+0xc): undefined reference to `_close_r’
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/liblibg.a(s
tdio.o): In function `__sseek’:
stdio.c:(.text+0x30): undefined reference to `_lseek_r’
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/liblibg.a(s
tdio.o): In function `__swrite’:
stdio.c:(.text+0x84): undefined reference to `_lseek_r’
stdio.c:(.text+0xac): undefined reference to `_write_r’
c:/winarm-20060606/bin/../lib/gcc/arm-elf/4.1.1/../../../../arm-elf/liblibg.a(s
tdio.o): In function `__sread’:
stdio.c:(.text+0xd0): undefined reference to `_read_r’
collect2: ld returned 1 exit status
make: *** Error 1
G:CyberProcessControllerctlsfw>
NOTE:This is a read only archive of threads posted to the FreeRTOS support forum. Use these archive pages to search previous posts. New forum support threads can be started at the FreeRTOS forums.
FreeRTOS Support Archive
The FreeRTOS support forum can be used for active support both from Amazon Web Services and the community. In return for using our software for free, we request you play fair and do your bit to help others! Sign up for an account and receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum. Use these archive pages to search previous posts. New forum support threads can be started at the FreeRTOS forums.
[FreeRTOS Home]
[Live FreeRTOS Forum]
[FAQ]
[Archive Top]
[October 2009 Threads]
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.