Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#25940 - [libstdc++5] does not compile using recent CFLAGS
Attached to Project:
Arch Linux
Opened by Pierre Schmitz (Pierre) - Friday, 09 September 2011, 21:11 GMT
Last edited by Allan McRae (Allan) - Saturday, 10 September 2011, 01:24 GMT
Opened by Pierre Schmitz (Pierre) - Friday, 09 September 2011, 21:11 GMT
Last edited by Allan McRae (Allan) - Saturday, 10 September 2011, 01:24 GMT
|
DetailsI had a look at some old packages and libstdc++5 does not compile:
In file included from /usr/include/fcntl.h:267:0, from ../../gcc-3.3.6/gcc/system.h:208, from ../../gcc-3.3.6/gcc/collect2.c:30: In function 'open', inlined from 'collect_execute' at ../../gcc-3.3.6/gcc/collect2.c:1575:20: /usr/include/bits/fcntl2.h:51:24: error: call to '__open_missing_mode' declared with attribute error: open with O_CREAT in second argument needs 3 arguments However it compiles when unsetting our CFLAGS. But as I am no gcc expert I pass this on. (I only committed a minor pkgbuild cleanup to trunk) |
This task depends upon
You can fix it by changing line 1537 of gcc/collect2.c to this:
redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT, 0666);