Package Details: libstdc++5 3.3.6-9

Git Clone URL: (read-only, click to copy)
Package Base: libstdc++5
Description: GNU Standard C++ library version 3
Upstream URL:
Licenses: GPL, LGPL
Submitter: eworm
Maintainer: JstKddng
Last Packager: JstKddng
Votes: 6
Popularity: 0.004413
First Submitted: 2022-02-10 14:18 (UTC)
Last Updated: 2022-03-06 12:24 (UTC)

Latest Comments

MarsSeed commented on 2022-03-07 18:22 (UTC) (edited on 2022-03-07 18:23 (UTC) by MarsSeed)

@grcancelliere Please recheck, @JstKddng has pushed a fix commit for the issue you reported.

Please note, however, that bash is mandatory for base, a package required on all Arch Linux installations.

Also, on Arch, bash is the only package that provides sh.

Therefore, it is not the job of package maintainers to customize packages for non-Arch-compliant setups.

Consequently, users of other shells are advised to make sure makepkg is executed via bash.

It is also important to note that fish is not compatible with either bash or POSIX.

grcancelliere commented on 2022-03-06 07:44 (UTC) (edited on 2022-03-06 10:12 (UTC) by grcancelliere)

@JstKddng I got an error today:

make[1]: *** [Makefile:2745:] Error 2

Since lib32-libstdc++5 works I checked the PKGBUILD and I saw that lib32-libstdc++5 forces the build() function to use bash:

export SHELL='/usr/bin/bash' # doesn't work with fish

probably because uses bashisms from the user shell, and fish doesn't support them. Could you update the PKGBUILD like lib32-libstc++5 did?

EDIT: I just tried and the export SHELL addition fixed the compilation.

MarsSeed commented on 2022-03-05 19:51 (UTC) (edited on 2022-03-05 21:24 (UTC) by MarsSeed)

@JstKddng Thanks for updating and fixing the package! :)

You can now delete these two patch files as they are no longer used:

  • gcc-3.4.6-ucontext.patch
  • siginfo.patch

MarsSeed commented on 2022-03-05 15:04 (UTC) (edited on 2022-03-05 21:23 (UTC) by MarsSeed)

I was able to fix this by aligning it with the working lib32-libstdc++5.

Uploaded my suggested patch.

libstdc++5-0001-fix-build.patch (Edit: removed; not needed - package fixed by @JstKddng)

FabioLolix commented on 2022-02-22 18:28 (UTC)

The Arch package exists at for the moment

jonathanschillin commented on 2022-02-20 16:35 (UTC)

I got below error message too now. This package is required e.g. for iscan, thus I cannot use my scanner now with this bug in place. It would be amazing if someone could fix this!

synthead commented on 2022-02-20 05:31 (UTC)

There's a segmentation fault when building this package. This was attempted 2022-02-19 with glibc 2.35-2 and gcc 11.2.0-3.

make[1]: Entering directory '/home/max/aur/libstdc++5/src/gcc-build/libiberty'
if [ x"-fpic" != x ] && [ ! -d pic ]; then \
  mkdir pic; \
else true; fi
touch stamp-picdir
if [ x"-fpic" != x ]; then \
  gcc -c -DHAVE_CONFIG_H -march=x86-64 -O2 -I. -I../../gcc-3.3.6/libiberty/../include  -W -Wall -Wtraditional -pedantic -fpic ../../gcc-3.3.6/libiberty/regex.c -o pic/regex.o; \
else true; fi
In file included from /usr/include/features.h:490,
                 from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdlib.h:26,
                 from ../../gcc-3.3.6/libiberty/regex.c:130:
/usr/include/sys/cdefs.h:1: internal compiler error: Segmentation fault
    1 | /* Copyright (C) 1992-2022 Free Software Foundation, Inc.
0x153c6a4 internal_error(char const*, ...)
0x154b15f cpp_classify_number(cpp_reader*, cpp_token const*, char const**, unsigned int)
0x15629ba _cpp_parse_expr
0x155e528 _cpp_handle_directive
0x155e788 _cpp_lex_token
0x6ded17 c_lex_with_flags(tree_node**, unsigned int*, unsigned char*, int)
0x68a06c c_parse_file()
0x6ecef2 c_common_parse_file()