<?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>8198</bug_id>
          
          <creation_ts>2015-08-21 15:38:20 +0000</creation_ts>
          <short_desc>Ubuntu x86_64 host that won&apos;t compila byacc-native</short_desc>
          <delta_ts>2015-11-19 14:01:17 +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>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>x86_64</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Lars Wadefalk">lars</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>bogdanx.a.voiculescu</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
          
          <qa_contact name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>53334</commentid>
    <comment_count>0</comment_count>
    <who name="Lars Wadefalk">lars</who>
    <bug_when>2015-08-21 15:38:20 +0000</bug_when>
    <thetext>Building from poky the raspberry pi2 qt4 demo or any other raspberry pi demo.
Can go directly from a clean build and still fails.
This succeeds on other hosts but fails for some reason on my Ubuntu 14.04 host. I have no clue why it passes wrong amount of parameters to the fcntl2.h open call.

DEBUG: Executing shell function do_compile
NOTE: make -j 8
gcc  -c -isystem/media/lars/Data/rpi2/build/tmp/sysroots/x86_64-linux/usr/include -O2 -pipe -I. -I/media/lars/Data/rpi2/build/tmp/work/x86_64-linux/byacc-native/20150711-r0/byacc-20150711  -DHAVE_CONFIG_H -DYYPATCH=`cat /media/lars/Data/rpi2/build/tmp/work/x86_64-linux/byacc-native/20150711-r0/byacc-20150711/VERSION` -isystem/media/lars/Data/rpi2/build/tmp/sysroots/x86_64-linux/usr/include -D_GNU_SOURCE  /media/lars/Data/rpi2/build/tmp/work/x86_64-linux/byacc-native/20150711-r0/byacc-20150711/closure.c
gcc  -c -isystem/media/lars/Data/rpi2/build/tmp/sysroots/x86_64-linux/usr/include -O2 -pipe -I. -I/media/lars/Data/rpi2/build/tmp/work/x86_64-linux/byacc-native/20150711-r0/byacc-20150711  -DHAVE_CONFIG_H -DYYPATCH=`cat /media/lars/Data/rpi2/build/tmp/work/x86_64-linux/byacc-native/20150711-r0/byacc-20150711/VERSION` -isystem/media/lars/Data/rpi2/build/tmp/sysroots/x86_64-linux/usr/include -D_GNU_SOURCE  /media/lars/Data/rpi2/build/tmp/work/x86_64-linux/byacc-native/20150711-r0/byacc-20150711/error.c
gcc  -c -isystem/media/lars/Data/rpi2/build/tmp/sysroots/x86_64-linux/usr/include -O2 -pipe -I. -I/media/lars/Data/rpi2/build/tmp/work/x86_64-linux/byacc-native/20150711-r0/byacc-20150711  -DHAVE_CONFIG_H -DYYPATCH=`cat /media/lars/Data/rpi2/build/tmp/work/x86_64-linux/byacc-native/20150711-r0/byacc-20150711/VERSION` -isystem/media/lars/Data/rpi2/build/tmp/sysroots/x86_64-linux/usr/include -D_GNU_SOURCE  /media/lars/Data/rpi2/build/tmp/work/x86_64-linux/byacc-native/20150711-r0/byacc-20150711/graph.c
gcc  -c -isystem/media/lars/Data/rpi2/build/tmp/sysroots/x86_64-linux/usr/include -O2 -pipe -I. -I/media/lars/Data/rpi2/build/tmp/work/x86_64-linux/byacc-native/20150711-r0/byacc-20150711  -DHAVE_CONFIG_H -DYYPATCH=`cat /media/lars/Data/rpi2/build/tmp/work/x86_64-linux/byacc-native/20150711-r0/byacc-20150711/VERSION` -isystem/media/lars/Data/rpi2/build/tmp/sysroots/x86_64-linux/usr/include -D_GNU_SOURCE  /media/lars/Data/rpi2/build/tmp/work/x86_64-linux/byacc-native/20150711-r0/byacc-20150711/lalr.c
gcc  -c -isystem/media/lars/Data/rpi2/build/tmp/sysroots/x86_64-linux/usr/include -O2 -pipe -I. -I/media/lars/Data/rpi2/build/tmp/work/x86_64-linux/byacc-native/20150711-r0/byacc-20150711  -DHAVE_CONFIG_H -DYYPATCH=`cat /media/lars/Data/rpi2/build/tmp/work/x86_64-linux/byacc-native/20150711-r0/byacc-20150711/VERSION` -isystem/media/lars/Data/rpi2/build/tmp/sysroots/x86_64-linux/usr/include -D_GNU_SOURCE  /media/lars/Data/rpi2/build/tmp/work/x86_64-linux/byacc-native/20150711-r0/byacc-20150711/lr0.c
gcc  -c -isystem/media/lars/Data/rpi2/build/tmp/sysroots/x86_64-linux/usr/include -O2 -pipe -I. -I/media/lars/Data/rpi2/build/tmp/work/x86_64-linux/byacc-native/20150711-r0/byacc-20150711  -DHAVE_CONFIG_H -DYYPATCH=`cat /media/lars/Data/rpi2/build/tmp/work/x86_64-linux/byacc-native/20150711-r0/byacc-20150711/VERSION` -isystem/media/lars/Data/rpi2/build/tmp/sysroots/x86_64-linux/usr/include -D_GNU_SOURCE  /media/lars/Data/rpi2/build/tmp/work/x86_64-linux/byacc-native/20150711-r0/byacc-20150711/main.c
gcc  -c -isystem/media/lars/Data/rpi2/build/tmp/sysroots/x86_64-linux/usr/include -O2 -pipe -I. -I/media/lars/Data/rpi2/build/tmp/work/x86_64-linux/byacc-native/20150711-r0/byacc-20150711  -DHAVE_CONFIG_H -DYYPATCH=`cat /media/lars/Data/rpi2/build/tmp/work/x86_64-linux/byacc-native/20150711-r0/byacc-20150711/VERSION` -isystem/media/lars/Data/rpi2/build/tmp/sysroots/x86_64-linux/usr/include -D_GNU_SOURCE  /media/lars/Data/rpi2/build/tmp/work/x86_64-linux/byacc-native/20150711-r0/byacc-20150711/mkpar.c
gcc  -c -isystem/media/lars/Data/rpi2/build/tmp/sysroots/x86_64-linux/usr/include -O2 -pipe -I. -I/media/lars/Data/rpi2/build/tmp/work/x86_64-linux/byacc-native/20150711-r0/byacc-20150711  -DHAVE_CONFIG_H -DYYPATCH=`cat /media/lars/Data/rpi2/build/tmp/work/x86_64-linux/byacc-native/20150711-r0/byacc-20150711/VERSION` -isystem/media/lars/Data/rpi2/build/tmp/sysroots/x86_64-linux/usr/include -D_GNU_SOURCE  /media/lars/Data/rpi2/build/tmp/work/x86_64-linux/byacc-native/20150711-r0/byacc-20150711/mstring.c
gcc  -c -isystem/media/lars/Data/rpi2/build/tmp/sysroots/x86_64-linux/usr/include -O2 -pipe -I. -I/media/lars/Data/rpi2/build/tmp/work/x86_64-linux/byacc-native/20150711-r0/byacc-20150711  -DHAVE_CONFIG_H -DYYPATCH=`cat /media/lars/Data/rpi2/build/tmp/work/x86_64-linux/byacc-native/20150711-r0/byacc-20150711/VERSION` -isystem/media/lars/Data/rpi2/build/tmp/sysroots/x86_64-linux/usr/include -D_GNU_SOURCE  /media/lars/Data/rpi2/build/tmp/work/x86_64-linux/byacc-native/20150711-r0/byacc-20150711/output.c
gcc  -c -isystem/media/lars/Data/rpi2/build/tmp/sysroots/x86_64-linux/usr/include -O2 -pipe -I. -I/media/lars/Data/rpi2/build/tmp/work/x86_64-linux/byacc-native/20150711-r0/byacc-20150711  -DHAVE_CONFIG_H -DYYPATCH=`cat /media/lars/Data/rpi2/build/tmp/work/x86_64-linux/byacc-native/20150711-r0/byacc-20150711/VERSION` -isystem/media/lars/Data/rpi2/build/tmp/sysroots/x86_64-linux/usr/include -D_GNU_SOURCE  /media/lars/Data/rpi2/build/tmp/work/x86_64-linux/byacc-native/20150711-r0/byacc-20150711/reader.c
gcc  -c -isystem/media/lars/Data/rpi2/build/tmp/sysroots/x86_64-linux/usr/include -O2 -pipe -I. -I/media/lars/Data/rpi2/build/tmp/work/x86_64-linux/byacc-native/20150711-r0/byacc-20150711  -DHAVE_CONFIG_H -DYYPATCH=`cat /media/lars/Data/rpi2/build/tmp/work/x86_64-linux/byacc-native/20150711-r0/byacc-20150711/VERSION` -isystem/media/lars/Data/rpi2/build/tmp/sysroots/x86_64-linux/usr/include -D_GNU_SOURCE  /media/lars/Data/rpi2/build/tmp/work/x86_64-linux/byacc-native/20150711-r0/byacc-20150711/yaccpar.c
gcc  -c -isystem/media/lars/Data/rpi2/build/tmp/sysroots/x86_64-linux/usr/include -O2 -pipe -I. -I/media/lars/Data/rpi2/build/tmp/work/x86_64-linux/byacc-native/20150711-r0/byacc-20150711  -DHAVE_CONFIG_H -DYYPATCH=`cat /media/lars/Data/rpi2/build/tmp/work/x86_64-linux/byacc-native/20150711-r0/byacc-20150711/VERSION` -isystem/media/lars/Data/rpi2/build/tmp/sysroots/x86_64-linux/usr/include -D_GNU_SOURCE  /media/lars/Data/rpi2/build/tmp/work/x86_64-linux/byacc-native/20150711-r0/byacc-20150711/symtab.c
gcc  -c -isystem/media/lars/Data/rpi2/build/tmp/sysroots/x86_64-linux/usr/include -O2 -pipe -I. -I/media/lars/Data/rpi2/build/tmp/work/x86_64-linux/byacc-native/20150711-r0/byacc-20150711  -DHAVE_CONFIG_H -DYYPATCH=`cat /media/lars/Data/rpi2/build/tmp/work/x86_64-linux/byacc-native/20150711-r0/byacc-20150711/VERSION` -isystem/media/lars/Data/rpi2/build/tmp/sysroots/x86_64-linux/usr/include -D_GNU_SOURCE  /media/lars/Data/rpi2/build/tmp/work/x86_64-linux/byacc-native/20150711-r0/byacc-20150711/verbose.c
gcc  -c -isystem/media/lars/Data/rpi2/build/tmp/sysroots/x86_64-linux/usr/include -O2 -pipe -I. -I/media/lars/Data/rpi2/build/tmp/work/x86_64-linux/byacc-native/20150711-r0/byacc-20150711  -DHAVE_CONFIG_H -DYYPATCH=`cat /media/lars/Data/rpi2/build/tmp/work/x86_64-linux/byacc-native/20150711-r0/byacc-20150711/VERSION` -isystem/media/lars/Data/rpi2/build/tmp/sysroots/x86_64-linux/usr/include -D_GNU_SOURCE  /media/lars/Data/rpi2/build/tmp/work/x86_64-linux/byacc-native/20150711-r0/byacc-20150711/warshall.c
In file included from /usr/include/fcntl.h:279:0,
                 from /media/lars/Data/rpi2/build/tmp/work/x86_64-linux/byacc-native/20150711-r0/byacc-20150711/main.c:16:
In function &apos;open&apos;,
    inlined from &apos;my_mkstemp&apos; at /media/lars/Data/rpi2/build/tmp/work/x86_64-linux/byacc-native/20150711-r0/byacc-20150711/main.c:529:5,
    inlined from &apos;open_tmpfile&apos; at /media/lars/Data/rpi2/build/tmp/work/x86_64-linux/byacc-native/20150711-r0/byacc-20150711/main.c:588:5:
/usr/include/x86_64-linux-gnu/bits/fcntl2.h:50:24: error: call to &apos;__open_missing_mode&apos; declared with attribute error: open with O_CREAT in second argument needs 3 arguments
    __open_missing_mode ();
                        ^
make: *** [main.o] Error 1
make: *** Waiting for unfinished jobs....
WARNING: exit code 1 from a shell command.
ERROR: oe_runmake failed
ERROR: Function failed: do_compile (log file is located at /media/lars/Data/rpi2/build/tmp/work/x86_64-linux/byacc-native/20150711-r0/temp/log.do_compile.11051)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53443</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-08-26 20:15:50 +0000</bug_when>
    <thetext>I believe Ubuntu passes hardening flags by default which is exposing a bug in byacc.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53444</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-08-26 20:17:33 +0000</bug_when>
    <thetext>Yes, https://wiki.ubuntu.com/ToolChain/CompilerFlags.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53447</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-08-26 20:49:01 +0000</bug_when>
    <thetext>I&apos;m guessing there must be something weird about the raspberry pi layer that is making this happen as I can&apos;t replicate it with base poky...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54378</commentid>
    <comment_count>4</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-09-21 12:57:01 +0000</bug_when>
    <thetext>Fixed in oe-core f906c5eb722de07eb09858fd058eb7e20103df71.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56624</commentid>
    <comment_count>5</comment_count>
    <who name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</who>
    <bug_when>2015-11-19 14:01:17 +0000</bug_when>
    <thetext>Verified on master: no compiler errors: 1b25a70991589ed1f123015c16ee4806c46e3199

bitbake rpi-basic-image
Parsing recipes: 100% |##########################################################################################################################################################| Time: 00:00:19
Parsing of 907 .bb files complete (0 cached, 907 parsed). 1332 targets, 59 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = &quot;1.28.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;Ubuntu-14.04&quot;
TARGET_SYS        = &quot;arm-poky-linux-gnueabi&quot;
MACHINE           = &quot;raspberrypi2&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;2.0&quot;
TUNE_FEATURES     = &quot;arm armv7a vfp thumb neon callconvention-hard vfpv4 cortexa7&quot;
TARGET_FPU        = &quot;vfp-vfpv4-neon&quot;
meta
meta-yocto
meta-yocto-bsp    = &quot;master:1b25a70991589ed1f123015c16ee4806c46e3199&quot;
meta-raspberrypi  = &quot;master:0776b86c6629b7294ff61e67609f2d4e10e9712c&quot;


lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.3 LTS
Release:        14.04
Codename:       trusty</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>