2013/9/16 Zbigniew Bodek <z...@freebsd.org>: > Log: > Fix GCC build error when building for ARMv6 > > Apply theravens's idea to move __strong_reference > macros into the proper ifdef section. > > Approved by: cognet (mentor) > Approved by: re > > Modified: > head/sys/arm/arm/stdatomic.c
For some reason, this still breaks the build of the AVILA kernel: /usr/edje/projects/freebsd-head-4/sys/arm/arm/stdatomic.c:842: error: '__sync_lock_test_and_set_1_c' undeclared here (not in a function) /usr/edje/projects/freebsd-head-4/sys/arm/arm/stdatomic.c:842: warning: type defaults to 'int' in declaration of '__sync_lock_test_and_set_1' /usr/edje/projects/freebsd-head-4/sys/arm/arm/stdatomic.c:842: error: '__sync_lock_test_and_set_1' redeclared as different kind of symbol /usr/edje/projects/freebsd-head-4/sys/arm/arm/stdatomic.c:843: error: '__sync_lock_test_and_set_2_c' undeclared here (not in a function) /usr/edje/projects/freebsd-head-4/sys/arm/arm/stdatomic.c:843: warning: type defaults to 'int' in declaration of '__sync_lock_test_and_set_2' /usr/edje/projects/freebsd-head-4/sys/arm/arm/stdatomic.c:843: error: '__sync_lock_test_and_set_2' redeclared as different kind of symbol /usr/edje/projects/freebsd-head-4/sys/arm/arm/stdatomic.c:844: error: '__sync_lock_test_and_set_4_c' undeclared here (not in a function) /usr/edje/projects/freebsd-head-4/sys/arm/arm/stdatomic.c:844: warning: type defaults to 'int' in declaration of '__sync_lock_test_and_set_4' /usr/edje/projects/freebsd-head-4/sys/arm/arm/stdatomic.c:844: error: '__sync_lock_test_and_set_4' redeclared as different kind of symbol /usr/edje/projects/freebsd-head-4/sys/arm/arm/stdatomic.c:845: error: '__sync_val_compare_and_swap_1_c' undeclared here (not in a function) /usr/edje/projects/freebsd-head-4/sys/arm/arm/stdatomic.c:845: warning: type defaults to 'int' in declaration of '__sync_val_compare_and_swap_1' /usr/edje/projects/freebsd-head-4/sys/arm/arm/stdatomic.c:845: error: '__sync_val_compare_and_swap_1' redeclared as different kind of symbol /usr/edje/projects/freebsd-head-4/sys/arm/arm/stdatomic.c:846: error: '__sync_val_compare_and_swap_2_c' undeclared here (not in a function) /usr/edje/projects/freebsd-head-4/sys/arm/arm/stdatomic.c:846: warning: type defaults to 'int' in declaration of '__sync_val_compare_and_swap_2' /usr/edje/projects/freebsd-head-4/sys/arm/arm/stdatomic.c:846: error: '__sync_val_compare_and_swap_2' redeclared as different kind of symbol /usr/edje/projects/freebsd-head-4/sys/arm/arm/stdatomic.c:847: error: '__sync_val_compare_and_swap_4_c' undeclared here (not in a function) /usr/edje/projects/freebsd-head-4/sys/arm/arm/stdatomic.c:847: warning: type defaults to 'int' in declaration of '__sync_val_compare_and_swap_4' /usr/edje/projects/freebsd-head-4/sys/arm/arm/stdatomic.c:847: error: '__sync_val_compare_and_swap_4' redeclared as different kind of symbol /usr/edje/projects/freebsd-head-4/sys/arm/arm/stdatomic.c:848: error: '__sync_fetch_and_add_1_c' undeclared here (not in a function) /usr/edje/projects/freebsd-head-4/sys/arm/arm/stdatomic.c:848: warning: type defaults to 'int' in declaration of '__sync_fetch_and_add_1' /usr/edje/projects/freebsd-head-4/sys/arm/arm/stdatomic.c:848: error: '__sync_fetch_and_add_1' redeclared as different kind of symbol /usr/edje/projects/freebsd-head-4/sys/arm/arm/stdatomic.c:849: error: '__sync_fetch_and_add_2_c' undeclared here (not in a function) /usr/edje/projects/freebsd-head-4/sys/arm/arm/stdatomic.c:849: warning: type defaults to 'int' in declaration of '__sync_fetch_and_add_2' /usr/edje/projects/freebsd-head-4/sys/arm/arm/stdatomic.c:849: error: '__sync_fetch_and_add_2' redeclared as different kind of symbol /usr/edje/projects/freebsd-head-4/sys/arm/arm/stdatomic.c:850: error: '__sync_fetch_and_add_4_c' undeclared here (not in a function) /usr/edje/projects/freebsd-head-4/sys/arm/arm/stdatomic.c:850: warning: type defaults to 'int' in declaration of '__sync_fetch_and_add_4' /usr/edje/projects/freebsd-head-4/sys/arm/arm/stdatomic.c:850: error: '__sync_fetch_and_add_4' redeclared as different kind of symbol /usr/edje/projects/freebsd-head-4/sys/arm/arm/stdatomic.c:851: error: '__sync_fetch_and_and_1_c' undeclared here (not in a function) /usr/edje/projects/freebsd-head-4/sys/arm/arm/stdatomic.c:851: warning: type defaults to 'int' in declaration of '__sync_fetch_and_and_1' /usr/edje/projects/freebsd-head-4/sys/arm/arm/stdatomic.c:851: error: '__sync_fetch_and_and_1' redeclared as different kind of symbol /usr/edje/projects/freebsd-head-4/sys/arm/arm/stdatomic.c:852: error: '__sync_fetch_and_and_2_c' undeclared here (not in a function) /usr/edje/projects/freebsd-head-4/sys/arm/arm/stdatomic.c:852: warning: type defaults to 'int' in declaration of '__sync_fetch_and_and_2' /usr/edje/projects/freebsd-head-4/sys/arm/arm/stdatomic.c:852: error: '__sync_fetch_and_and_2' redeclared as different kind of symbol /usr/edje/projects/freebsd-head-4/sys/arm/arm/stdatomic.c:853: error: '__sync_fetch_and_and_4_c' undeclared here (not in a function) /usr/edje/projects/freebsd-head-4/sys/arm/arm/stdatomic.c:853: warning: type defaults to 'int' in declaration of '__sync_fetch_and_and_4' /usr/edje/projects/freebsd-head-4/sys/arm/arm/stdatomic.c:853: error: '__sync_fetch_and_and_4' redeclared as different kind of symbol /usr/edje/projects/freebsd-head-4/sys/arm/arm/stdatomic.c:854: error: '__sync_fetch_and_sub_1_c' undeclared here (not in a function) /usr/edje/projects/freebsd-head-4/sys/arm/arm/stdatomic.c:854: warning: type defaults to 'int' in declaration of '__sync_fetch_and_sub_1' /usr/edje/projects/freebsd-head-4/sys/arm/arm/stdatomic.c:854: error: '__sync_fetch_and_sub_1' redeclared as different kind of symbol /usr/edje/projects/freebsd-head-4/sys/arm/arm/stdatomic.c:855: error: '__sync_fetch_and_sub_2_c' undeclared here (not in a function) etc. -- Ed Schouten <e...@80386.nl> _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"