[#7328] Fail to compile pthread_test after toolchain update
Submitted By: Vivi Li
Open Date
2012-09-13 05:13:33 Close Date
2012-10-11 23:15:58
Priority:
Medium Assignee:
Vivi Li
Status:
Closed Fixed In Release:
N/A
Found In Release:
N/A Release:
Category:
N/A Board:
N/A
Processor:
ALL Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Fixed
Uboot version or rev.:
Toolchain version or rev.:
trunk
App binary format:
N/A
Summary: Fail to compile pthread_test after toolchain update
Details:
Fail to compile pthread_test after toolchain update.
--
test@uclinux62-548-usbdev:~/work/cruise/checkouts/uclinux-dist> make user/blkfin-test/pthread_test_only make[1]: Entering directory `/home/test/work/cruise/checkouts/uclinux-dist/user'
touch blkfin-test/pthread_test/.sgbuilt_user && make -C blkfin-test/pthread_test -j4
make[2]: Entering directory `/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-test/pthread_test'
bfin-uclinux-gcc -o ex1 ex1.c -Wl,-elf2flt -mcpu=bf548-0.2 -pthread
bfin-uclinux-gcc -o ex2 ex2.c -Wl,-elf2flt -mcpu=bf548-0.2 -pthread
bfin-uclinux-gcc -o ex3 ex3.c -Wl,-elf2flt -mcpu=bf548-0.2 -pthread
bfin-uclinux-gcc -o ex4 ex4.c -Wl,-elf2flt -mcpu=bf548-0.2 -pthread
bfin-uclinux-gcc -o ex5 ex5.c -Wl,-elf2flt -mcpu=bf548-0.2 -pthread
bfin-uclinux-gcc -o ex6 ex6.c -Wl,-elf2flt -mcpu=bf548-0.2 -pthread
bfin-uclinux-gcc -o ex7 ex7.c -Wl,-elf2flt -mcpu=bf548-0.2 -pthread
bfin-uclinux-g++ -O -o ptest ptest.cpp -Wl,-elf2flt -mcpu=bf548-0.2 -pthread
ptest.cpp: In function ‘int main(int, char**, char**)’:
ptest.cpp:32: error: ‘pthread_attr_setstackaddr’ was not declared in this scope
make[2]: *** [ptest] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-test/pthread_test'
make[1]: *** [blkfin-test/pthread_test_only] Error 2
make[1]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/user'
make: *** [user/blkfin-test/pthread_test_only] Error 2
--
Follow-ups
--- Vivi Li 2012-09-20 06:33:43
Stuart said that "pthread_attr_setstackaddr had been deprecated for a while
and was disabled in the latest release of uClibc that we moved to."
--- Vivi Li 2012-10-12 00:15:53
Stuart said that "I've implemented __pthread_attr_setstack and
__pthread_attr_getstack on trunk now. Just a reminder that there's a slight
difference between setstack and setstackaddr, as stackaddr is defined as
"the lowest addressable byte of a buffer" now. Since it also requires
the size of the buffer, it will do the stack end calculation itself."
--- Vivi Li 2012-10-12 00:17:31
Fixed in pthread_test for pthread function change in uClibc.
Close it.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
No Files Were Found