Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 583920 - =dev-libs/libffi-3.2.1 - src_test() ignores CC
Summary: =dev-libs/libffi-3.2.1 - src_test() ignores CC
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks: tc-directly
  Show dependency tree
 
Reported: 2016-05-24 05:49 UTC by Jeroen Roovers (RETIRED)
Modified: 2021-05-03 21:49 UTC (History)
1 user (show)

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


Attachments
dev-libs:libffi-3.2.1:20160523-045016.log.xz (dev-libs:libffi-3.2.1:20160523-045016.log.xz,5.86 KB, application/x-xz)
2016-05-24 05:49 UTC, Jeroen Roovers (RETIRED)
Details
dev-libs:libffi-3.2.1:20160523-044658.log.xz (dev-libs:libffi-3.2.1:20160523-044658.log.xz,5.95 KB, application/x-xz)
2016-05-24 05:50 UTC, Jeroen Roovers (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Roovers (RETIRED) gentoo-dev 2016-05-24 05:49:51 UTC
Created attachment 435152 [details]
dev-libs:libffi-3.2.1:20160523-045016.log.xz

>>> Test phase: dev-libs/libffi-3.2.1
 * .hppa: running multilib-minimal_abi_src_test
make -j3   check
Making check in include
make[1]: Entering directory '/var/tmp/portage/dev-libs/libffi-3.2.1/work/libffi-3.2.1-.hppa/include'
make[1]: Nothing to be done for 'check'.
make[1]: Leaving directory '/var/tmp/portage/dev-libs/libffi-3.2.1/work/libffi-3.2.1-.hppa/include'
Making check in testsuite
make[1]: Entering directory '/var/tmp/portage/dev-libs/libffi-3.2.1/work/libffi-3.2.1-.hppa/testsuite'
make  check-DEJAGNU
make[2]: Entering directory '/var/tmp/portage/dev-libs/libffi-3.2.1/work/libffi-3.2.1-.hppa/testsuite'
Making a new site.exp file ...
srcdir='/var/tmp/portage/dev-libs/libffi-3.2.1/work/libffi-3.2.1/testsuite'; export srcdir; \
EXPECT=expect; export EXPECT; \
if /bin/sh -c "runtest --version" > /dev/null 2>&1; then \
  exit_status=0; l='libffi'; for tool in $l; do \
    if runtest  --tool $tool --srcdir $srcdir ; \
    then :; else exit_status=1; fi; \
  done; \
else echo "WARNING: could not find 'runtest'" 1>&2; :;\
fi; \
exit $exit_status
WARNING: Couldn't find the global config file.
Test Run By portage on Mon May 23 06:55:00 2016
Native configuration is hppa2.0-unknown-linux-gnu

                === libffi tests ===

Schedule of variations:
    unix

Running target unix
Using /usr/share/dejagnu/baseboards/unix.exp as board description file for target.
Using /usr/share/dejagnu/config/unix.exp as generic interface file for target.
Using /var/tmp/portage/dev-libs/libffi-3.2.1/work/libffi-3.2.1/testsuite/config/default.exp as tool-and-target-specific interface file.
Running /var/tmp/portage/dev-libs/libffi-3.2.1/work/libffi-3.2.1/testsuite/libffi.call/call.exp ...
ERROR: tcl error sourcing /var/tmp/portage/dev-libs/libffi-3.2.1/work/libffi-3.2.1/testsuite/libffi.call/call.exp.
ERROR: .;
!!! JeR-QA: gcc -> hppa2.0-unknown-linux-gnu-gcc
    while executing
"exec $compiler --print-multi-lib"
    (procedure "get_multilibs" line 62)
    invoked from within
"get_multilibs"
    (procedure "g++_include_flags" line 9)
    invoked from within
"g++_include_flags"
    (procedure "default_target_compile" line 34)
    invoked from within
"default_target_compile $source $destfile $type $options"
    (procedure "target_compile" line 6)
    invoked from within
"target_compile $source $dest $type $options"
    (procedure "libffi_target_compile" line 57)
    invoked from within
"libffi_target_compile "$prog" "$output_file" "$compile_type" $options"
    (procedure "libffi-dg-test-1" line 52)
    invoked from within
"libffi-dg-test-1 target_compile $prog $do_what $extra_tool_flags"
    (procedure "libffi-dg-test" line 2)
    invoked from within
"${tool}-dg-test $prog [lindex ${dg-do-what} 0] "$tool_flags ${dg-extra-tool-flags}""
    (procedure "saved-dg-test" line 112)
    invoked from within
"saved-dg-test /var/tmp/portage/dev-libs/libffi-3.2.1/work/libffi-3.2.1/testsuite/libffi.call/unwindtest.cc {-W -Wall -Wno-psabi -O0} {}"
    ("eval" body line 1)
    invoked from within
"eval saved-dg-test $args "
    (procedure "dg-test" line 6)
    invoked from within
"dg-test $test $options """
    (procedure "run-many-tests" line 36)
    invoked from within
"run-many-tests $tlist """
    (file "/var/tmp/portage/dev-libs/libffi-3.2.1/work/libffi-3.2.1/testsuite/libffi.call/call.exp" line 25)
    invoked from within
"source /var/tmp/portage/dev-libs/libffi-3.2.1/work/libffi-3.2.1/testsuite/libffi.call/call.exp"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 source /var/tmp/portage/dev-libs/libffi-3.2.1/work/libffi-3.2.1/testsuite/libffi.call/call.exp"
    invoked from within
"catch "uplevel #0 source $test_file_name""

                === libffi Summary ===

# of expected passes            1780
make[2]: Leaving directory '/var/tmp/portage/dev-libs/libffi-3.2.1/work/libffi-3.2.1-.hppa/testsuite'

The failure here is triggered by the unexpected (scraped) output, it seems, but the important bit is that it was running `gcc' directly.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2016-05-24 05:50:16 UTC
Created attachment 435154 [details]
dev-libs:libffi-3.2.1:20160523-044658.log.xz
Comment 2 Sergei Trofimovich gentoo-dev 2019-11-24 22:26:00 UTC
Seems to be relevant for =dev-libs/libffi-3.3 as well.
I tried to substitute /usr/bin/gcc with:

    #!/bin/bash
    echo "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA: $0 $@" >&2
    echo "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA: $0 $@" >>/tmp/bad-cc
    exec /usr/x86_64-pc-linux-gnu/gcc-bin/9.2.0/gcc "$@"

and it triggered as:

ERROR: tcl error sourcing /tmp/portage/dev-libs/libffi-3.3/work/libffi-3.3/testsuite/libffi.closures/closure.exp.
ERROR: .;
32;@m32
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA: /usr/bin/gcc --print-multi-lib
    while executing
"exec $compiler --print-multi-lib"
    (procedure "get_multilibs" line 62)
    invoked from within
"get_multilibs"
    (procedure "g++_include_flags" line 9)
    invoked from within
"g++_include_flags"
    (procedure "default_target_compile" line 52)
    invoked from within
"default_target_compile $source $destfile $type $options"
    (procedure "target_compile" line 6)
    invoked from within
"target_compile $source $dest $type $options"
    (procedure "libffi_target_compile" line 62)
    invoked from within
"libffi_target_compile "$prog" "$output_file" "$compile_type" $options"
    (procedure "libffi-dg-test-1" line 52)
    invoked from within
"libffi-dg-test-1 target_compile $prog $do_what $extra_tool_flags"
    (procedure "libffi-dg-test" line 2)
    invoked from within
"${tool}-dg-test $prog [lindex ${dg-do-what} 0] "$tool_flags ${dg-extra-tool-flags}""
    (procedure "saved-dg-test" line 112)
    invoked from within
"saved-dg-test /tmp/portage/dev-libs/libffi-3.3/work/libffi-3.3/testsuite/libffi.closures/unwindtest.cc {-W -Wall -Wno-psabi -O0} {}"
    ("eval" body line 1)
    invoked from within
"eval saved-dg-test $args "
    (procedure "dg-test" line 6)
    invoked from within
"dg-test $test $options """
    (procedure "run-many-tests" line 63)
    invoked from within
"run-many-tests $tlist  $additional_options"
    (file "/tmp/portage/dev-libs/libffi-3.3/work/libffi-3.3/testsuite/libffi.closures/closure.exp" line 55)
    invoked from within
"source /tmp/portage/dev-libs/libffi-3.3/work/libffi-3.3/testsuite/libffi.closures/closure.exp"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 source /tmp/portage/dev-libs/libffi-3.3/work/libffi-3.3/testsuite/libffi.closures/closure.exp"
    invoked from within
"catch "uplevel #0 source $test_file_name""
Comment 3 Sergei Trofimovich gentoo-dev 2020-06-21 22:36:19 UTC
Curiously not reproducible on sys-devel/gcc-config[-native-symlinks] system.