<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>13772</bug_id>
          
          <creation_ts>2020-02-03 12:15:33 +0000</creation_ts>
          <short_desc>perl reproducibility issue in perl-dev (host config leaking to target?)</short_desc>
          <delta_ts>2020-02-08 13:51:28 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>3.0</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>3.1 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Richard Purdie">richard.purdie</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>jpuhlman</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>86268</commentid>
    <comment_count>0</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-02-03 12:15:33 +0000</bug_when>
    <thetext>│ │ ├── ./usr/lib/perl5/5.30.1/x86_64-linux/CORE/config.h
│ │ │ @@ -2317,15 +2317,15 @@
│ │ │  #define HAS_BUILTIN_ADD_OVERFLOW	/**/
│ │ │  #define HAS_BUILTIN_SUB_OVERFLOW	/**/
│ │ │  #define HAS_BUILTIN_MUL_OVERFLOW	/**/
│ │ │  
│ │ │  /* HAS_C99_VARIADIC_MACROS:
│ │ │   *	If defined, the compiler supports C99 variadic macros.
│ │ │   */
│ │ │ -#define	HAS_C99_VARIADIC_MACROS	/**/
│ │ │ +/*#define	HAS_C99_VARIADIC_MACROS	/ **/
│ │ │  
│ │ │  /* HAS_CLASS:
│ │ │   *	This symbol, if defined, indicates that the class routine is
│ │ │   *	available to classify doubles.  Available for example in AIX.
│ │ │   *	The returned values are defined in &lt;float.h&gt; and are:
│ │ │   *
│ │ │   *	FP_PLUS_NORM	Positive normalized, nonzero
│ │ ├── ./usr/lib/perl5/5.30.1/x86_64-linux/CORE/xconfig.h
│ │ │ @@ -2217,17 +2217,17 @@
│ │ │   *	Note that this variable is initialized from the sig_num_init,
│ │ │   *	not from sig_num (which is unused).
│ │ │   */
│ │ │  /* SIG_SIZE:
│ │ │   *	This variable contains the number of elements of the SIG_NAME
│ │ │   *	and SIG_NUM arrays, excluding the final NULL entry.
│ │ │   */
│ │ │ -#define SIG_NAME &quot;ZERO&quot;, &quot;HUP&quot;, &quot;INT&quot;, &quot;QUIT&quot;, &quot;ILL&quot;, &quot;TRAP&quot;, &quot;ABRT&quot;, &quot;BUS&quot;, &quot;FPE&quot;, &quot;KILL&quot;, &quot;USR1&quot;, &quot;SEGV&quot;, &quot;USR2&quot;, &quot;PIPE&quot;, &quot;ALRM&quot;, &quot;TERM&quot;, &quot;STKFLT&quot;, &quot;CHLD&quot;, &quot;CONT&quot;, &quot;STOP&quot;, &quot;TSTP&quot;, &quot;TTIN&quot;, &quot;TTOU&quot;, &quot;URG&quot;, &quot;XCPU&quot;, &quot;XFSZ&quot;, &quot;VTALRM&quot;, &quot;PROF&quot;, &quot;WINCH&quot;, &quot;IO&quot;, &quot;PWR&quot;, &quot;SYS&quot;, &quot;IOT&quot;, &quot;CLD&quot;, &quot;POLL&quot;, &quot;UNUSED&quot;, 0		/**/
│ │ │ -#define SIG_NUM  0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 6, 17, 29, 31, 0		/**/
│ │ │ -#define SIG_SIZE 36			/**/
│ │ │ +#define SIG_NAME &quot;ZERO&quot;, &quot;HUP&quot;, &quot;INT&quot;, &quot;QUIT&quot;, &quot;ILL&quot;, &quot;TRAP&quot;, &quot;ABRT&quot;, &quot;BUS&quot;, &quot;FPE&quot;, &quot;KILL&quot;, &quot;USR1&quot;, &quot;SEGV&quot;, &quot;USR2&quot;, &quot;PIPE&quot;, &quot;ALRM&quot;, &quot;TERM&quot;, &quot;STKFLT&quot;, &quot;CHLD&quot;, &quot;CONT&quot;, &quot;STOP&quot;, &quot;TSTP&quot;, &quot;TTIN&quot;, &quot;TTOU&quot;, &quot;URG&quot;, &quot;XCPU&quot;, &quot;XFSZ&quot;, &quot;VTALRM&quot;, &quot;PROF&quot;, &quot;WINCH&quot;, &quot;IO&quot;, &quot;PWR&quot;, &quot;SYS&quot;, &quot;IOT&quot;, &quot;CLD&quot;, &quot;POLL&quot;, 0	/**/
│ │ │ +#define SIG_NUM  0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 6, 17, 29, 0		/**/
│ │ │ +#define SIG_SIZE 35			/**/
│ │ │  
│ │ │  /* USE_CROSS_COMPILE:
│ │ │   *	This symbol, if defined, indicates that Perl is being cross-compiled.
│ │ │   */
│ │ │  /* PERL_TARGETARCH:
│ │ │   *	This symbol, if defined, indicates the target architecture
│ │ │   *	Perl has been cross-compiled to.  Undefined if not a cross-compile.
│ │ │ @@ -2317,15 +2317,15 @@
│ │ │  #define HAS_BUILTIN_ADD_OVERFLOW	/**/
│ │ │  #define HAS_BUILTIN_SUB_OVERFLOW	/**/
│ │ │  #define HAS_BUILTIN_MUL_OVERFLOW	/**/
│ │ │  
│ │ │  /* HAS_C99_VARIADIC_MACROS:
│ │ │   *	If defined, the compiler supports C99 variadic macros.
│ │ │   */
│ │ │ -#define	HAS_C99_VARIADIC_MACROS	/**/
│ │ │ +/*#define	HAS_C99_VARIADIC_MACROS	/ **/
│ │ │  
│ │ │  /* HAS_CLASS:
│ │ │   *	This symbol, if defined, indicates that the class routine is
│ │ │   *	available to classify doubles.  Available for example in AIX.
│ │ │   *	The returned values are defined in &lt;float.h&gt; and are:
│ │ │   *
│ │ │   *	FP_PLUS_NORM	Positive normalized, nonzero
│ │ │ @@ -3079,15 +3079,15 @@
│ │ │   *	include &lt;xlocale.h&gt; to get uselocale() and its friends.
│ │ │   */
│ │ │  #define	HAS_NEWLOCALE	/**/
│ │ │  #define	HAS_FREELOCALE	/**/
│ │ │  #define	HAS_USELOCALE	/**/
│ │ │  #define	HAS_DUPLOCALE	/**/
│ │ │  /*#define	HAS_QUERYLOCALE	/ **/
│ │ │ -#define	I_XLOCALE               /**/
│ │ │ +/*#define	I_XLOCALE               / **/
│ │ │  
│ │ │  /* HAS_NEXTAFTER:
│ │ │   *	This symbol, if defined, indicates that the nextafter routine is
│ │ │   *	available to return the next machine representable double from
│ │ │   *	x in direction y.
│ │ │   */
│ │ │  #define HAS_NEXTAFTER		/**/
│ │ │ @@ -3692,15 +3692,15 @@
│ │ │   */
│ │ │  /*#define	I_PROT		/ **/
│ │ │  
│ │ │  /* I_QUADMATH:
│ │ │   *	This symbol, if defined, indicates that &lt;quadmath.h&gt; exists and
│ │ │   *	should be included.
│ │ │   */
│ │ │ -/*#define	I_QUADMATH		/ **/
│ │ │ +#define	I_QUADMATH		/**/
│ │ │  
│ │ │  /* I_SHADOW:</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86310</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2020-02-05 14:28:49 +0000</bug_when>
    <thetext>Filed with perl-cross at https://github.com/arsv/perl-cross/issues/87</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86312</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-02-05 17:48:25 +0000</bug_when>
    <thetext>Further testing suggests HAS_C99_VARIADIC_MACROS is a dash vs bash issue. Whether that is the only issue, not sure but its one problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86322</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-02-05 23:09:41 +0000</bug_when>
    <thetext>Also https://github.com/arsv/perl-cross/issues/88</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86350</commentid>
    <comment_count>4</comment_count>
      <attachid>4630</attachid>
    <who name="Jeremy A. Puhlman">jpuhlman</who>
    <bug_when>2020-02-06 17:31:19 +0000</bug_when>
    <thetext>Created attachment 4630
Output of configure with +x

It appears at a glance that the problem is the test is using the host compiler to determine if the variadic macros are available.

It is a try and run test.

set try
if eval $compile &amp;&amp; $run ./try 2&gt;&amp;1 &gt;/dev/null; then
    case &quot;`$run ./try`&quot; in
    &quot;123 456 789&quot;)
    echo &quot;You have C99 variadic macros.&quot; &gt;&amp;4
    d_c99_variadic_macros=&quot;$define&quot;
    ;;
    *)
    echo &quot;You don&apos;t have functional C99 variadic macros.&quot; &gt;&amp;4
    d_c99_variadic_macros=&quot;$undef&quot;
    ;;
    esac
else
    echo &quot;I couldn&apos;t compile and run the test program, so I assume that you don&apos;t have functional C99 variadic macros.&quot; &gt;&amp;4
    d_c99_variadic_macros=&quot;$undef&quot;
fi
$rm_try

The output from the configure run with all the output indicates that it is using the host gcc to make the determination.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86353</commentid>
    <comment_count>5</comment_count>
    <who name="Jeremy A. Puhlman">jpuhlman</who>
    <bug_when>2020-02-06 18:33:16 +0000</bug_when>
    <thetext>nm, was looking at the wrong configure code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86364</commentid>
    <comment_count>6</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2020-02-06 23:56:22 +0000</bug_when>
    <thetext>HAS_C99_VARIADIC_MACROS is a dash-vs-bash issue and can be fixed by removing a \n.

The rest are in a host-specific file that shouldn&apos;t be shipped, Alex has a sent a patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86365</commentid>
    <comment_count>7</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-02-07 00:03:38 +0000</bug_when>
    <thetext>Also seeing 	

HOSTCFLAGS·​=·​-​DPERL_CORE·​-​DUSE_CROSS_COMPILE·​-​D_LARGEFILE_SOURCE·​-​D_FILE_OFFSET_BITS=64​

vs

HOSTCFLAGS·​=·​-​DPERL_CORE·​-​DUSE_CROSS_COMPILE·​-​D_LARGEFILE_SOURCE·​-​D_FILE_OFFSET_BITS=64​·​-​fwrapv·​-​fno-​strict-​aliasing

in ptest/Makefile.config which is another piece of host contamination :(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86366</commentid>
    <comment_count>8</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-02-07 00:05:00 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; nm, was looking at the wrong configure code.

It gets confusing as the configure code runs twice, once for native for building miniperl, then again for the target...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86383</commentid>
    <comment_count>9</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2020-02-08 13:48:31 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=2ac1632f1823a680322782d99fa8021317998add
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=155d79d5265b124eef728c0c4bd15efd5601af21</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>4630</attachid>
            <date>2020-02-06 17:31:19 +0000</date>
            <delta_ts>2020-02-06 17:31:19 +0000</delta_ts>
            <desc>Output of configure with +x</desc>
            <filename>varadict_macros.txt</filename>
            <type>text/plain</type>
            <size>1229</size>
            <attacher name="Jeremy A. Puhlman">jpuhlman</attacher>
            
              <data encoding="base64">KysgbXN0YXJ0ICdDaGVja2luZyBDOTkgdmFyaWFkaWMgbWFjcm9zJworKyBlY2hvICdDaGVja2lu
ZyBDOTkgdmFyaWFkaWMgbWFjcm9zJworKyBub25sICdDaGVja2luZyBDOTkgdmFyaWFkaWMgbWFj
cm9zIC4uLiAnCisrIGVjaG8gLW4gJ0NoZWNraW5nIEM5OSB2YXJpYWRpYyBtYWNyb3MgLi4uICcK
Q2hlY2tpbmcgQzk5IHZhcmlhZGljIG1hY3JvcyAuLi4gKysgbm90IGhpbnRlZCBkX2M5OV92YXJp
YWRpY19tYWNyb3Mgc3VwcG9ydGVkIG1pc3NpbmcKKysgaGludGVkIGRfYzk5X3ZhcmlhZGljX21h
Y3JvcyBzdXBwb3J0ZWQgbWlzc2luZworKyBnZXRlbnYgdiBkX2M5OV92YXJpYWRpY19tYWNyb3MK
KysgZXZhbCAndj0kZF9jOTlfdmFyaWFkaWNfbWFjcm9zJworKysgdj0KKysgZ2V0ZW52IHggeF9k
X2M5OV92YXJpYWRpY19tYWNyb3MKKysgZXZhbCAneD0keF9kX2M5OV92YXJpYWRpY19tYWNyb3Mn
CisrKyB4PQorKyB0ZXN0IC16ICcnCisrIHJldHVybiAxCisrIHRydWUKKysgdHJ5X3N0YXJ0Cisr
IHRydWUKKysgdHJ5X2FkZCAnI2luY2x1ZGUgPHN0ZGlvLmg+JworKyBlY2hvICcjaW5jbHVkZSA8
c3RkaW8uaD4nCisrIHRyeV9hZGQgJyNkZWZpbmUgZm9vKGZtdCwgLi4uKSBwcmludGYoZm10LCBf
X1ZBX0FSR1NfXyknCisrIGVjaG8gJyNkZWZpbmUgZm9vKGZtdCwgLi4uKSBwcmludGYoZm10LCBf
X1ZBX0FSR1NfXyknCisrIHRyeV9hZGQgJ2ludCBtYWluKHZvaWQpIHsgZm9vKCIlaVxuIiwgMTIz
NCk7IHJldHVybiAwOyB9JworKyBlY2hvICdpbnQgbWFpbih2b2lkKSB7IGZvbygiJWlcbiIsIDEy
MzQpOyByZXR1cm4gMDsgfScKKysgdHJ5X2NvbXBpbGUKKysgcmVxdWlyZSBjYworKyBnZXRlbnYg
diBjYworKyBldmFsICd2PSRjYycKKysrIHY9Z2NjCisrIHRlc3QgLXogZ2NjCisrIHJlcXVpcmUg
X28KKysgZ2V0ZW52IHYgX28KKysgZXZhbCAndj0kX28nCisrKyB2PS5vCisrIHRlc3QgLXogLm8K
KysgdHJ5X2R1bXAKKysgY2F0IHRyeS5jCisrIHNlZCAtZSAncy9eL3wgLycKKysgcnVuIGdjYyAt
RF9MQVJHRUZJTEVfU09VUkNFIC1EX0ZJTEVfT0ZGU0VUX0JJVFM9NjQgLWMgLW8gdHJ5Lm8gdHJ5
LmMKKysgcmVzZGVmIGRfYzk5X3ZhcmlhZGljX21hY3JvcyBzdXBwb3J0ZWQgbWlzc2luZworKyAn
WycgMCA9IDAgJ10nCisrIGRlZmluZSBkX2M5OV92YXJpYWRpY19tYWNyb3MgZGVmaW5lCisrIGdl
dGVudiB4IHhfZF9jOTlfdmFyaWFkaWNfbWFjcm9zCgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>