Bug 476370
Summary: | floor_log2 and exact_log2 redef in gcc | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Brennan Ashton <bashton> |
Component: | gcc | Assignee: | Jakub Jelinek <jakub> |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 10 | CC: | jakub |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2009-02-12 10:21:13 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Brennan Ashton
2008-12-13 18:41:39 UTC
You need to use -fgnu89-inline then, the default in gcc 4.3 and later is -fno-gnu89-inline, i.e. ISO C99 semantics of extern inline. GCC 4.1.2 in toplev.h assumed that when GCC >= 3.0 was used as bootstrap compiler, it would have the GNU extern inline semantics. That did not fix it, I also get this on 4.3.2 which is what I am using. gcc -std=gnu99 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -fno-gnu89-inline -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -I. -I../../gcc-4.3.2/gcc -I../../gcc-4.3.2/gcc/. -I../../gcc-4.3.2/gcc/../include -I../../gcc-4.3.2/gcc/../libcpp/include -I../../gcc-4.3.2/gcc/../libdecnumber -I../../gcc-4.3.2/gcc/../libdecnumber/dpd -I../libdecnumber -DUSE_GAS \ -DTARGET_NAME=\"m6812-elf\" \ -c ../../gcc-4.3.2/gcc/toplev.c -o toplev.o ../../gcc-4.3.2/gcc/toplev.c:545: error: redefinition of 'floor_log2' ../../gcc-4.3.2/gcc/toplev.h:178: error: previous definition of 'floor_log2' was here ../../gcc-4.3.2/gcc/toplev.c:580: error: redefinition of 'exact_log2' ../../gcc-4.3.2/gcc/toplev.h:184: error: previous definition of 'exact_log2' was here ../../gcc-4.3.2/gcc/toplev.c: In function 'pch_option_mismatch': ../../gcc-4.3.2/gcc/toplev.c:1511: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result make[2]: *** [toplev.o] Error 1 make[2]: Leaving directory `/home/makerpm/rpmbuild/BUILD/m6812-elf-gcc-4.3.2/gcc-m6812-elf/gcc' make[1]: *** [all-gcc] Error 2 make[1]: Leaving directory `/home/makerpm/rpmbuild/BUILD/m6812-elf-gcc-4.3.2/gcc-m6812-elf' make: *** [all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.fu8pFI (%build) You are using -fno-gnu89-inline, not -fgnu89-inline as I told you to. |