Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 775983 - net-print/cups-filters-1.28.7 fails to compile
Summary: net-print/cups-filters-1.28.7 fails to compile
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 807442
  Show dependency tree
 
Reported: 2021-03-14 12:11 UTC by Agostino Sarubbo
Modified: 2021-11-11 04:26 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge_info (emerge_info,5.42 KB, text/plain)
2021-03-14 12:11 UTC, Agostino Sarubbo
Details
net-print:cups-filters-1.28.7:20210314-114010.log (net-print:cups-filters-1.28.7:20210314-114010.log,25.86 KB, text/plain)
2021-03-14 12:11 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2021-03-14 12:11:27 UTC
This package fails to compile on a stable system. Attached relevant logs and emerge --info
Comment 1 Agostino Sarubbo gentoo-dev 2021-03-14 12:11:38 UTC
Created attachment 691377 [details]
emerge_info

emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2021-03-14 12:11:40 UTC
Created attachment 691380 [details]
net-print:cups-filters-1.28.7:20210314-114010.log

build log
Comment 3 Jack 2021-10-02 23:34:37 UTC
The attached build log doesn't seem to have the actual error.  I get

/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../lib64/libqpdf.so: undefined reference to `std::__throw_bad_array_new_length()@GLIBCXX_3.4.29'
collect2: error: ld returned 1 exit status

but I just realized this is with gcc-10.3.0.  I had previously successfully emerged cups-filters-1.28.7 with gcc-11.2.0, so perhaps some change to the program or ebuild to allow the newer gcc has inadvertently disabled successful build with older gcc.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-10-02 23:41:08 UTC
(In reply to Jack from comment #3)
> The attached build log doesn't seem to have the actual error.  I get
> 
> /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/
> ld: /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../lib64/libqpdf.so:
> undefined reference to `std::__throw_bad_array_new_length()@GLIBCXX_3.4.29'
> collect2: error: ld returned 1 exit status
> 
> but I just realized this is with gcc-10.3.0.  I had previously successfully
> emerged cups-filters-1.28.7 with gcc-11.2.0, so perhaps some change to the
> program or ebuild to allow the newer gcc has inadvertently disabled
> successful build with older gcc.

This occurs when you downgrade GCC but things have been linked against symbols only available in a newer version of libstdc++ (which in Gentoo, means a newer GCC).

See https://wiki.gentoo.org/wiki/Upgrading_GCC#libstdc.2B.2B.so.6:_version_.60GLIBCXX_3.4.15.27_not_found => https://wiki.gentoo.org/wiki/Upgrading_GCC#ABI_changes_before_gcc-5.1.
Comment 5 Pacho Ramos gentoo-dev 2021-10-28 08:37:08 UTC
Are you able to reproduce with 1.28.10-r1? In my case it builds fine (but also older versions)