Bison.exe I/O error building Qt5.2 on Windows



  • Hi:

    I am doing a shadow build with Qt5.2 on Windows, but I got some bison.exe I/O error. Wondering whether anybody has seen similar issues or has any suggestion what might go wrong.

    Thanks in advance.
    -Y

    Here is what I did:
    @
    unzip source to L:\qt-everywhere-enterprise-src-5.2.0
    In VS2010 x64 command prompt
    mkdir qt5_src_build
    cd qt5_src_build
    setup dependencies like python, icu, zlib
    SET PATH=%PATH%;L:\qt-everywhere-enterprise-src-5.2.0\gnuwin32\bin
    SET CL=/MP
    @



  • @
    L:\qt-everywhere-enterprise-src-5.2.0\configure -prefix L:\qt5_src_build -commercial -nomake tests -debug -confirm-license -opengl desktop
    nmake
    @

    Here is the error I got
    @
    ( if not exist Makefile.ANGLE.DerivedSources L:\qt5_src_build\qtbase\bin\qmake L:\qt-everywhere-enterprise-src-5.2.0\qtwebkit\Source
    \ThirdParty\ANGLE\DerivedSources.pri -o Makefile.ANGLE.DerivedSources ) && "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64
    \nmake.exe" -f Makefile.ANGLE.DerivedSources

    Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
    Copyright (C) Microsoft Corporation. All rights reserved.

        win_flex --noline --nounistd --outfile=generated\glslang_lex.cpp L:\qt-everywhere-enterprise-src-5.2.0\qtwebkit\Source\ThirdParty\AN
    

    GLE\src\compiler\glslang.l
    win_flex --noline --nounistd --outfile=generated\Tokenizer_lex.cpp L:\qt-everywhere-enterprise-src-5.2.0\qtwebkit\Source\ThirdParty
    ANGLE\src\compiler\preprocessor\Tokenizer.l
    bison --no-lines --skeleton=yacc.c --defines=generated\glslang_tab.h --output=generated\glslang_tab.cpp L:\qt-everywhere-enterprise-
    src-5.2.0\qtwebkit\Source\ThirdParty\ANGLE\src\compiler\glslang.y
    m4: Unknown option -I
    Usage: m4 [-ps] [-Dname[=value]] [-Uname] [file ...]
    L:\qt-everywhere-enterprise-src-5.2.0\gnuwin32\bin\bison.EXE: I/O error
    NMAKE : fatal error U1077: 'L:\qt-everywhere-enterprise-src-5.2.0\gnuwin32\bin\bison.EXE' : return code '0x1'
    Stop.
    NMAKE : fatal error U1077: '(' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    @



  • Looks like the problem is I have another version of m4 in my path. Put the "L:\qt-everywhere-enterprise-src-5.2.0\gnuwin32\bin" before all the system path will solve the problem


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.