Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 936059 - app-text/ghostscript-gpl different versions does not build with different gcc
Summary: app-text/ghostscript-gpl different versions does not build with different gcc
Status: RESOLVED DUPLICATE of bug 936613
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal trivial (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-14 18:09 UTC by Roman Gruber
Modified: 2024-07-28 16:18 UTC (History)
2 users (show)

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


Attachments
emerge --info (emerge_info.txt,9.46 KB, text/plain)
2024-07-14 18:09 UTC, Roman Gruber
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Gruber 2024-07-14 18:09:26 UTC
for details of box see https://bugs.gentoo.org/936058 See for box emerge --info 

Does not build for over 2 weeks

 * yesno: invalid argument: '/etc/init.d/display-manager'
 * yesno: invalid argument: '/etc/init.d/display-manager'
 * yesno: invalid argument: '/etc/init.d/display-manager'
 * yesno: invalid argument: '/etc/init.d/display-manager'
/var/tmp/portage/app-text/ghostscript-gpl-10.03.1/temp/environment: line 1258:   687 Segmentation fault      ELT_LOGDIR=${T} LD=$(tc-getLD) eltpatch "${@}"
 * ERROR: app-text/ghostscript-gpl-10.03.1::gentoo failed (prepare phase):
 *   eltpatch failed
 * 
 * Call stack:
 *     ebuild.sh, line  136:  Called src_prepare
 *   environment, line 2129:  Called eautoreconf
 *   environment, line 1223:  Called elibtoolize '--force' '/var/tmp/portage/app-text/ghostscript-gpl-10.03.1/work/ghostscript-10.03.1/ijs'
 *   environment, line 1260:  Called die
 * The specific snippet of code:
 *       ELT_LOGDIR=${T} LD=$(tc-getLD) eltpatch "${@}" || die "eltpatch failed"
 * 
 * If you need support, post the output of `emerge --info '=app-text/ghostscript-gpl-10.03.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-text/ghostscript-gpl-10.03.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-text/ghostscript-gpl-10.03.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-text/ghostscript-gpl-10.03.1/temp/environment'.
 * Working directory: '/var/tmp/portage/app-text/ghostscript-gpl-10.03.1/work/ghostscript-10.03.1/ijs'
 * S: '/var/tmp/portage/app-text/ghostscript-gpl-10.03.1/work/ghostscript-10.03.1'

with gcc 13 and 14 
just now tested with gcc 11


both do not build with gcc13 and gcc14
10.03.0-r1 | + ~ + + + + + + ~ ~ ~ ~ ~ ~ ~ | 8 # 0/10.03 | gentoo
10.03.1    | + ~ + + + + + + ~ ~ ~ ~ ~ ~ ~ | 8 o         | gentoo

--

Sienna_Cichlid /home/roman # emerge -av =ghostscript-gpl-10.03.0-r1

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 0.96 s (backtrack: 0/20).

[ebuild  N     ] app-text/ghostscript-gpl-10.03.0-r1:0/10.03::gentoo  USE="dbus (unicode) -X -cups -gtk -static-libs" L10N="-de (-ja) -ko -zh-CN -zh-TW" 0 KiB

Total: 1 package (1 new), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] 
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) app-text/ghostscript-gpl-10.03.0-r1::gentoo


 * yesno: invalid argument: '/etc/init.d/display-manager'
 * yesno: invalid argument: '/etc/init.d/display-manager'
 * yesno: invalid argument: '/etc/init.d/display-manager'
/var/tmp/portage/app-text/ghostscript-gpl-10.03.0-r1/temp/environment: line 1258:   687 Segmentation fault      ELT_LOGDIR=${T} LD=$(tc-getLD) eltpatch "${@}"
 * ERROR: app-text/ghostscript-gpl-10.03.0-r1::gentoo failed (prepare phase):
 *   eltpatch failed
 * 
 * Call stack:
 *     ebuild.sh, line  136:  Called src_prepare
 *   environment, line 2129:  Called eautoreconf
 *   environment, line 1223:  Called elibtoolize '--force' '/var/tmp/portage/app-text/ghostscript-gpl-10.03.0-r1/work/ghostscript-10.03.0/ijs'
 *   environment, line 1260:  Called die
 * The specific snippet of code:
 *       ELT_LOGDIR=${T} LD=$(tc-getLD) eltpatch "${@}" || die "eltpatch failed"
 * 
 * If you need support, post the output of `emerge --info '=app-text/ghostscript-gpl-10.03.0-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-text/ghostscript-gpl-10.03.0-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-text/ghostscript-gpl-10.03.0-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-text/ghostscript-gpl-10.03.0-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/app-text/ghostscript-gpl-10.03.0-r1/work/ghostscript-10.03.0/ijs'
 * S: '/var/tmp/portage/app-text/ghostscript-gpl-10.03.0-r1/work/ghostscript-10.03.0'


Sienna_Cichlid /home/roman # gcc-config -l
 [1] x86_64-pc-linux-gnu-11 *
 [2] x86_64-pc-linux-gnu-13
 [3] x86_64-pc-linux-gnu-14
Sienna_Cichlid /home/roman # gcc-config 3 
 * Switching native-compiler to x86_64-pc-linux-gnu-14 ...
>>> Regenerating /etc/ld.so.cache...                                                                        [ ok ]

 * If you intend to use the gcc from the new profile in an already
 * running shell, please remember to do:

 *   . /etc/profile

Sienna_Cichlid /home/roman # source /etc/profile

Most other stuff does build - hard to find error when 98% of the packages build.
Box up to date -> Can not finish update because package fails to build

 * yesno: invalid argument: '/etc/init.d/display-manager'
 * yesno: invalid argument: '/etc/init.d/display-manager'
 * yesno: invalid argument: 
/var/tmp/portage/app-text/ghostscript-gpl-10.03.0-r1/temp/environment: line 1258:   687 Segmentation fault      ELT_LOGDIR=${T} LD=$(tc-getLD) eltpatch "${@}"
 * ERROR: app-text/ghostscript-gpl-10.03.0-r1::gentoo failed (prepare phase):
 *   eltpatch failed
 * 
 * Call stack:
 *     ebuild.sh, line  136:  Called src_prepare
 *   environment, line 2129:  Called eautoreconf
 *   environment, line 1223:  Called elibtoolize '--force' '/var/tmp/portage/app-text/ghostscript-gpl-10.03.0-r1/work/ghostscript-10.03.0/ijs'
 *   environment, line 1260:  Called die
 * The specific snippet of code:
 *       ELT_LOGDIR=${T} LD=$(tc-getLD) eltpatch "${@}" || die "eltpatch failed"
 * 
 * If you need support, post the output of `emerge --info '=app-text/ghostscript-gpl-10.03.0-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-text/ghostscript-gpl-10.03.0-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-text/ghostscript-gpl-10.03.0-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-text/ghostscript-gpl-10.03.0-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/app-text/ghostscript-gpl-10.03.0-r1/work/ghostscript-10.03.0/ijs'
 * S: '/var/tmp/portage/app-text/ghostscript-gpl-10.03.0-r1/work/ghostscript-10.03.0'


Sienna_Cichlid /home/roman # emerge -av ghostscript-gpl            

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 0.95 s (backtrack: 0/20).

[ebuild  N     ] app-text/ghostscript-gpl-10.03.1:0/10.03::gentoo  USE="dbus (unicode) -X -cups -gtk -static-libs" L10N="-de (-ja) -ko -zh-CN -zh-TW" 0 KiB

Total: 1 package (1 new), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] 

 * yesno: invalid argument: '/etc/init.d/display-manager'
 * yesno: invalid argument: '/etc/init.d/display-manager'
 * yesno: invalid argument: 
/var/tmp/portage/app-text/ghostscript-gpl-10.03.1/temp/environment: line 1258:   687 Segmentation fault      ELT_LOGDIR=${T} LD=$(tc-getLD) eltpatch "${@}"
 * ERROR: app-text/ghostscript-gpl-10.03.1::gentoo failed (prepare phase):
 *   eltpatch failed
 * 
 * Call stack:
 *     ebuild.sh, line  136:  Called src_prepare
 *   environment, line 2129:  Called eautoreconf
 *   environment, line 1223:  Called elibtoolize '--force' '/var/tmp/portage/app-text/ghostscript-gpl-10.03.1/work/ghostscript-10.03.1/ijs'
 *   environment, line 1260:  Called die
 * The specific snippet of code:
 *       ELT_LOGDIR=${T} LD=$(tc-getLD) eltpatch "${@}" || die "eltpatch failed"
 * 
 * If you need support, post the output of `emerge --info '=app-text/ghostscript-gpl-10.03.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-text/ghostscript-gpl-10.03.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-text/ghostscript-gpl-10.03.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-text/ghostscript-gpl-10.03.1/temp/environment'.
 * Working directory: '/var/tmp/portage/app-text/ghostscript-gpl-10.03.1/work/ghostscript-10.03.1/ijs'
 * S: '/var/tmp/portage/app-text/ghostscript-gpl-10.03.1/work/ghostscript-10.03.1'


Sienna_Cichlid /home/roman # emerge -av =ghostscript-gpl-10.02.1

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 0.97 s (backtrack: 0/20).

[ebuild  N     ] app-text/ghostscript-gpl-10.02.1:0/10.02::gentoo  USE="dbus (unicode) -X -cups -gtk -static-libs" L10N="-de (-ja) -ko -zh-CN -zh-TW" 0 KiB

Total: 1 package (1 new), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] 

 * yesno: invalid argument: '/etc/init.d/display-manager'
 * yesno: invalid argument: '/etc/init.d/display-manager'
 * yesno: invalid argument: '/etc/init.d/display-manager'
 * yesno: invalid argument: '/etc/init.d/display-manager'
 * yesno: invalid argument: '/etc/init.d/display-manager'
/var/tmp/portage/app-text/ghostscript-gpl-10.02.1/temp/environment: line 1258:   687 Segmentation fault      ELT_LOGDIR=${T} LD=$(tc-getLD) eltpatch "${@}"
 * ERROR: app-text/ghostscript-gpl-10.02.1::gentoo failed (prepare phase):
 *   eltpatch failed
 * 
 * Call stack:
 *     ebuild.sh, line  136:  Called src_prepare
 *   environment, line 2129:  Called eautoreconf
 *   environment, line 1223:  Called elibtoolize '--force' '/var/tmp/portage/app-text/ghostscript-gpl-10.02.1/work/ghostscript-10.02.1/ijs'
 *   environment, line 1260:  Called die
 * The specific snippet of code:
 *       ELT_LOGDIR=${T} LD=$(tc-getLD) eltpatch "${@}" || die "eltpatch failed"
 * 
 * If you need support, post the output of `emerge --info '=app-text/ghostscript-gpl-10.02.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-text/ghostscript-gpl-10.02.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-text/ghostscript-gpl-10.02.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-text/ghostscript-gpl-10.02.1/temp/environment'.
 * Working directory: '/var/tmp/portage/app-text/ghostscript-gpl-10.02.1/work/ghostscript-10.02.1/ijs'
 * S: '/var/tmp/portage/app-text/ghostscript-gpl-10.02.1/work/ghostscript-10.02.1'


Sienna_Cichlid /home/roman # emerge -pv ghostscript-gpl

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 0.99 s (backtrack: 0/20).

[ebuild  N     ] app-text/ghostscript-gpl-10.03.1:0/10.03::gentoo  USE="dbus (unicode) -X -cups -gtk -static-libs" L10N="-de (-ja) -ko -zh-CN -zh-TW" 0 KiB

Total: 1 package (1 new), Size of downloads: 0 KiB
Sienna_Cichlid /home/roman # echo "app-text/ghostscript-gpl -dbus" >> /etc/portage/package.use 
Sienna_Cichlid /home/roman # emerge -av ghostscript-gpl

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 0.95 s (backtrack: 0/20).

[ebuild  N     ] app-text/ghostscript-gpl-10.03.1:0/10.03::gentoo  USE="(unicode) -X -cups -dbus -gtk -static-libs" L10N="-de (-ja) -ko -zh-CN -zh-TW" 0 KiB

Total: 1 package (1 new), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] 

So without any use flags - fails to build

 * yesno: invalid argument: '/etc/init.d/display-manager'
 * yesno: invalid argument: '/etc/init.d/display-manager'
 * yesno: invalid argument: 
/var/tmp/portage/app-text/ghostscript-gpl-10.03.1/temp/environment: line 1258:   687 Segmentation fault      ELT_LOGDIR=${T} LD=$(tc-getLD) eltpatch "${@}"
 * ERROR: app-text/ghostscript-gpl-10.03.1::gentoo failed (prepare phase):
 *   eltpatch failed
 * 
 * Call stack:
 *     ebuild.sh, line  136:  Called src_prepare
 *   environment, line 2129:  Called eautoreconf
 *   environment, line 1223:  Called elibtoolize '--force' '/var/tmp/portage/app-text/ghostscript-gpl-10.03.1/work/ghostscript-10.03.1/ijs'
 *   environment, line 1260:  Called die
 * The specific snippet of code:
 *       ELT_LOGDIR=${T} LD=$(tc-getLD) eltpatch "${@}" || die "eltpatch failed"
 * 
 * If you need support, post the output of `emerge --info '=app-text/ghostscript-gpl-10.03.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-text/ghostscript-gpl-10.03.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-text/ghostscript-gpl-10.03.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-text/ghostscript-gpl-10.03.1/temp/environment'.
 * Working directory: '/var/tmp/portage/app-text/ghostscript-gpl-10.03.1/work/ghostscript-10.03.1/ijs'
 * S: '/var/tmp/portage/app-text/ghostscript-gpl-10.03.1/work/ghostscript-10.03.1'

Sienna_Cichlid /home/roman # gcc-config -l
 [1] x86_64-pc-linux-gnu-11
 [2] x86_64-pc-linux-gnu-13
 [3] x86_64-pc-linux-gnu-14 *
Sienna_Cichlid /home/roman # gcc-config 1
 * Switching native-compiler to x86_64-pc-linux-gnu-11 ...
>>> Regenerating /etc/ld.so.cache...                                                                        [ ok ]

 * If you intend to use the gcc from the new profile in an already
 * running shell, please remember to do:

 *   . /etc/profile

Sienna_Cichlid /home/roman # source /etc/profile
Sienna_Cichlid /home/roman # emerge -av    
=emerge: command-line interface to the Portage system
Usage:
   emerge [ options ] [ action ] [ ebuild | tbz2 | file | @set | atom ] [ ... ]
   emerge [ options ] [ action ] < @system | @world >
   emerge < --sync | --metadata | --info >
   emerge --resume [ --pretend | --ask | --skipfirst ]
   emerge --help
Options: -[abBcCdDefgGhjkKlnNoOpPqrsStuUvVwW]
          [ --color < y | n >            ] [ --columns    ]
          [ --complete-graph             ] [ --deep       ]
          [ --jobs JOBS ] [ --keep-going ] [ --load-average LOAD            ]
          [ --newrepo   ] [ --newuse     ] [ --noconfmem  ] [ --nospinner   ]
          [ --oneshot   ] [ --onlydeps   ] [ --quiet-build [ y | n ]        ]
          [ --reinstall changed-use      ] [ --with-bdeps < y | n >         ]
Actions:  [ --depclean | --list-sets | --search | --sync | --version        ]

   For more help consult the man page.
Sienna_Cichlid /home/roman # =^C
Sienna_Cichlid /home/roman # emerge -av =ghostscript-gpl-10.02.1

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 0.97 s (backtrack: 0/20).

[ebuild  N     ] app-text/ghostscript-gpl-10.02.1:0/10.02::gentoo  USE="(unicode) -X -cups -dbus -gtk -static-libs" L10N="-de (-ja) -ko -zh-CN -zh-TW" 0 KiB

Total: 1 package (1 new), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] 

So old trick building with less use flags also does not work
 * yesno: invalid argument: '/etc/init.d/display-manager'
 * yesno: invalid argument: '/etc/init.d/display-manager'
 * yesno: invalid argument: '/etc/init.d/display-manager'
 * yesno: invalid argument: '/etc/init.d/display-manager'
 * yesno: invalid argument: 
/var/tmp/portage/app-text/ghostscript-gpl-10.02.1/temp/environment: line 1258:   687 Segmentation fault      ELT_LOGDIR=${T} LD=$(tc-getLD) eltpatch "${@}"
 * ERROR: app-text/ghostscript-gpl-10.02.1::gentoo failed (prepare phase):
 *   eltpatch failed
 * 
 * Call stack:
 *     ebuild.sh, line  136:  Called src_prepare
 *   environment, line 2129:  Called eautoreconf
 *   environment, line 1223:  Called elibtoolize '--force' '/var/tmp/portage/app-text/ghostscript-gpl-10.02.1/work/ghostscript-10.02.1/ijs'
 *   environment, line 1260:  Called die
 * The specific snippet of code:
 *       ELT_LOGDIR=${T} LD=$(tc-getLD) eltpatch "${@}" || die "eltpatch failed"
 * 
 * If you need support, post the output of `emerge --info '=app-text/ghostscript-gpl-10.02.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-text/ghostscript-gpl-10.02.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-text/ghostscript-gpl-10.02.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-text/ghostscript-gpl-10.02.1/temp/environment'.
 * Working directory: '/var/tmp/portage/app-text/ghostscript-gpl-10.02.1/work/ghostscript-10.02.1/ijs'
 * S: '/var/tmp/portage/app-text/ghostscript-gpl-10.02.1/work/ghostscript-10.02.1'




-- Please fix that

Reproducible: Always
Comment 1 Roman Gruber 2024-07-14 18:09:50 UTC
Created attachment 897618 [details]
emerge --info
Comment 2 Roman Gruber 2024-07-14 18:10:25 UTC
None of the packages in portage tree does build for whatever reason
Comment 3 Roman Gruber 2024-07-14 18:11:17 UTC
I'll remove those test changes

Sienna_Cichlid /home/roman # tail -2 /etc/portage/package.use 
app-text/ghostscript-gpl -gtk -cups -X
app-text/ghostscript-gpl -dbus


I only added those to find root cause in the first place anyway
Comment 4 Roman Gruber 2024-07-14 18:12:44 UTC
Sienna_Cichlid /home/roman # nano /etc/portage/package.use 
Sienna_Cichlid /home/roman # gcc-config -l
 [1] x86_64-pc-linux-gnu-11 *
 [2] x86_64-pc-linux-gnu-13
 [3] x86_64-pc-linux-gnu-14
Sienna_Cichlid /home/roman # emerge -av ghostscript-gpl

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 0.97 s (backtrack: 0/20).

[ebuild  N     ] app-text/ghostscript-gpl-10.03.1:0/10.03::gentoo  USE="X cups dbus gtk (unicode) -static-libs" L10N="-de (-ja) -ko -zh-CN -zh-TW" 0 KiB

Total: 1 package (1 new), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] 
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) app-text/ghostscript-gpl-10.03.1::gentoo


 * yesno: invalid argument: '/etc/init.d/display-manager'
 * yesno: invalid argument: '/etc/init.d/display-manager'
 * yesno: invalid argument: '/etc/init.d/display-manager'
/var/tmp/portage/app-text/ghostscript-gpl-10.03.1/temp/environment: line 1258:   686 Segmentation fault      ELT_LOGDIR=${T} LD=$(tc-getLD) eltpatch "${@}"
 * ERROR: app-text/ghostscript-gpl-10.03.1::gentoo failed (prepare phase):
 *   eltpatch failed
 * 
 * Call stack:
 *     ebuild.sh, line  136:  Called src_prepare
 *   environment, line 2129:  Called eautoreconf
 *   environment, line 1223:  Called elibtoolize '--force' '/var/tmp/portage/app-text/ghostscript-gpl-10.03.1/work/ghostscript-10.03.1/ijs'
 *   environment, line 1260:  Called die
 * The specific snippet of code:
 *       ELT_LOGDIR=${T} LD=$(tc-getLD) eltpatch "${@}" || die "eltpatch failed"
 * 
 * If you need support, post the output of `emerge --info '=app-text/ghostscript-gpl-10.03.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-text/ghostscript-gpl-10.03.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-text/ghostscript-gpl-10.03.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-text/ghostscript-gpl-10.03.1/temp/environment'.
 * Working directory: '/var/tmp/portage/app-text/ghostscript-gpl-10.03.1/work/ghostscript-10.03.1/ijs'
 * S: '/var/tmp/portage/app-text/ghostscript-gpl-10.03.1/work/ghostscript-10.03.1'
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-07-14 18:31:55 UTC
Your bash appears to be segfaulting. Try get a backtrace please.
Comment 6 Mike Gilbert gentoo-dev 2024-07-24 14:40:45 UTC
Please attach the environment file as well. I suspect you have EINFO_VERBOSE or some related variable set to a strange value.

Set the status to UNCONFIRMED once the requesting info has been provided.
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-07-26 15:47:57 UTC
Please provide the information requested in https://bugs.gentoo.org/936613#c2.
Comment 8 kfm 2024-07-28 15:40:26 UTC

*** This bug has been marked as a duplicate of bug 936613 ***