DeadSix27 / python_cross_compile_script

Easy to use Linux to Windows cross compile script.
Mozilla Public License 2.0
31 stars 9 forks source link

error encoutered building libflac #97

Closed hydra3333 closed 4 years ago

hydra3333 commented 4 years ago

Using a fresh ubuntu 18.04.3, here's the build log below. Suggestions would be appreciated.

### Environment variables:  ###
    CLUTTER_IM_MODULE : xim
    LD_LIBRARY_PATH : /usr/local/cuda-10.1/lib64
    LS_COLORS : rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
    LESSCLOSE : /usr/bin/lesspipe %s %s
    XDG_MENU_PREFIX : gnome-
    LANG : en_US.UTF-8
    DISPLAY : :0
    OLDPWD : /home/u/Desktop/ds27
    GNOME_SHELL_SESSION_MODE : ubuntu
    COLORTERM : truecolor
    USERNAME : u
    XDG_VTNR : 2
    SSH_AUTH_SOCK : /run/user/1000/keyring/ssh
    XDG_SESSION_ID : 2
    USER : u
    DESKTOP_SESSION : ubuntu
    QT4_IM_MODULE : xim
    TEXTDOMAINDIR : /usr/share/locale/
    GNOME_TERMINAL_SCREEN : /org/gnome/Terminal/screen/d0790e69_9111_442a_aa73_b37e18598f13
    PWD : /home/u/Desktop/ds27/python_cross_compile_script
    HOME : /home/u
    TEXTDOMAIN : im-config
    SSH_AGENT_PID : 1487
    QT_ACCESSIBILITY : 1
    XDG_SESSION_TYPE : x11
    XDG_DATA_DIRS : /usr/share/ubuntu:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
    XDG_SESSION_DESKTOP : ubuntu
    GJS_DEBUG_OUTPUT : stderr
    GTK_MODULES : gail:atk-bridge
    WINDOWPATH : 2
    VTE_VERSION : 5202
    SHELL : /bin/bash
    TERM : xterm-256color
    QT_IM_MODULE : xim
    XMODIFIERS : @im=ibus
    IM_CONFIG_PHASE : 2
    XDG_CURRENT_DESKTOP : ubuntu:GNOME
    GPG_AGENT_INFO : /run/user/1000/gnupg/S.gpg-agent:0:1
    GNOME_TERMINAL_SERVICE : :1.67
    SHLVL : 2
    XDG_SEAT : seat0
    GDMSESSION : ubuntu
    GNOME_DESKTOP_SESSION_ID : this-is-deprecated
    LOGNAME : u
    DBUS_SESSION_BUS_ADDRESS : unix:path=/run/user/1000/bus
    XDG_RUNTIME_DIR : /run/user/1000
    XAUTHORITY : /run/user/1000/gdm/Xauthority
    XDG_CONFIG_DIRS : /etc/xdg/xdg-ubuntu:/etc/xdg
    PATH : /home/u/Desktop/ds27/python_cross_compile_script/workdir/toolchain/x86_64-w64-mingw32/bin:/home/u/Desktop/ds27/python_cross_compile_script/workdir/toolchain/x86_64-w64-mingw32/bin:/usr/local/cuda-10.1/bin:/usr/local/cuda-10.1/NsightCompute-2020.1:/usr/local/cuda-10.1/bin:/usr/local/cuda-10.1/NsightCompute-2020.1:/home/u/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
    GJS_DEBUG_TOPICS : JS ERROR;JS LOG
    SESSION_MANAGER : local/ubuntu:@/tmp/.ICE-unix/1392,unix/ubuntu:/tmp/.ICE-unix/1392
    LESSOPEN : | /usr/bin/lesspipe %s
    GTK_IM_MODULE : ibus
    _ : ./cross_compiler.py
    PKG_CONFIG_PATH : /home/u/Desktop/ds27/python_cross_compile_script/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/lib/pkgconfig
    PKG_CONFIG_LIBDIR : 
    COLOR : ON
    CLICOLOR_FORCE : ON
    CFLAGS : -O3
    CXXFLAGS : -O3
##############################
[18:52:23][INFO] Building dependency 'libflac'
[18:52:23][DEBUG] Reset CFLAGS/CXXFLAGS to: -O3
Changing dir from /home/u/Desktop/ds27/python_cross_compile_script/workdir to x86_64
[18:52:23][INFO] GIT cloning 'https://github.com/xiph/flac' to '/home/u/Desktop/ds27/python_cross_compile_script/workdir/x86_64/flac_git'
[18:52:23][DEBUG] Running 'git clone --progress "https://github.com/xiph/flac" "flac_git.tmp"' in '/home/u/Desktop/ds27/python_cross_compile_script/workdir/x86_64'
Cloning into 'flac_git.tmp'...
remote: Enumerating objects: 36, done.        
remote: Counting objects: 100% (36/36), done.        
remote: Compressing objects: 100% (25/25), done.        
remote: Total 34700 (delta 15), reused 18 (delta 11), pack-reused 34664        
Receiving objects: 100% (34700/34700), 6.84 MiB | 1.25 MiB/s, done.
Resolving deltas: 100% (27846/27846), done.
[18:52:30][DEBUG] Running 'mv "flac_git.tmp" "flac_git"' in '/home/u/Desktop/ds27/python_cross_compile_script/workdir/x86_64'
[18:52:30][INFO] Finished GIT cloning 'https://github.com/xiph/flac' to 'flac_git'
Changing dir from /home/u/Desktop/ds27/python_cross_compile_script/workdir/x86_64 to flac_git
[18:52:30][DEBUG] Running 'git clean -ffdx' in '/home/u/Desktop/ds27/python_cross_compile_script/workdir/x86_64/flac_git'
[18:52:30][DEBUG] Running 'git submodule foreach --recursive git clean -ffdx' in '/home/u/Desktop/ds27/python_cross_compile_script/workdir/x86_64/flac_git'
[18:52:30][DEBUG] Running 'git reset --hard' in '/home/u/Desktop/ds27/python_cross_compile_script/workdir/x86_64/flac_git'
HEAD is now at cdcf0d55 cmake_minimum_required() cleanup:
[18:52:30][DEBUG] Running 'git submodule foreach --recursive git reset --hard' in '/home/u/Desktop/ds27/python_cross_compile_script/workdir/x86_64/flac_git'
[18:52:30][DEBUG] Running 'git submodule update --init --recursive' in '/home/u/Desktop/ds27/python_cross_compile_script/workdir/x86_64/flac_git'
Changing dir from /home/u/Desktop/ds27/python_cross_compile_script/workdir/x86_64/flac_git to _build
[18:52:30][DEBUG] Setting CFLAGS to '-O3 -D_FORTIFY_SOURCE=0'
Changing dir from /home/u/Desktop/ds27/python_cross_compile_script/workdir/x86_64/flac_git/_build to ..
[18:52:30][INFO] Moving to patch folder: /home/u/Desktop/ds27/python_cross_compile_script/workdir/x86_64/flac_git
[18:52:30][DEBUG] Applying patch 'flac/0001-mingw-fix.patch' in '/home/u/Desktop/ds27/python_cross_compile_script/workdir/x86_64/flac_git'
[18:52:30][INFO] Copying patch from '/home/u/Desktop/ds27/python_cross_compile_script/patches/flac/0001-mingw-fix.patch' to '/home/u/Desktop/ds27/python_cross_compile_script/workdir/x86_64/flac_git/0001-mingw-fix.patch'
[18:52:30][INFO] Patching source using: '0001-mingw-fix.patch'
[18:52:30][DEBUG] Running 'patch -p1 < "0001-mingw-fix.patch"' in '/home/u/Desktop/ds27/python_cross_compile_script/workdir/x86_64/flac_git'
patching file include/FLAC++/export.h
patching file include/FLAC/export.h
Changing dir from /home/u/Desktop/ds27/python_cross_compile_script/workdir/x86_64/flac_git to /home/u/Desktop/ds27/python_cross_compile_script/workdir/x86_64/flac_git/_build
Changing dir from /home/u/Desktop/ds27/python_cross_compile_script/workdir/x86_64/flac_git/_build to ..
[18:52:30][INFO] Moving to patch folder: /home/u/Desktop/ds27/python_cross_compile_script/workdir/x86_64/flac_git
[18:52:30][DEBUG] Applying patch 'https://github.com/DeadSix27/flac/commit/d8f189ac0e5d0f051e5d844bc21c253ce505e18e.patch' in '/home/u/Desktop/ds27/python_cross_compile_script/workdir/x86_64/flac_git'
[18:52:30][INFO] Downloading patch 'https://github.com/DeadSix27/flac/commit/d8f189ac0e5d0f051e5d844bc21c253ce505e18e.patch' to: d8f189ac0e5d0f051e5d844bc21c253ce505e18e.patch
[18:52:31][INFO] Requesting : https://github.com/DeadSix27/flac/commit/d8f189ac0e5d0f051e5d844bc21c253ce505e18e.patch - ?
Downloading: d8f189ac0e5d0f051e5d844bc /   0.0 B
Downloading: d8f189ac0e5d0f051e5d844bc |   0.0 B
[18:52:31][INFO] Patching source using: 'd8f189ac0e5d0f051e5d844bc21c253ce505e18e.patch'
[18:52:31][DEBUG] Running 'patch -p1 < "d8f189ac0e5d0f051e5d844bc21c253ce505e18e.patch"' in '/home/u/Desktop/ds27/python_cross_compile_script/workdir/x86_64/flac_git'
patching file src/libFLAC++/CMakeLists.txt
patching file src/libFLAC/CMakeLists.txt
Hunk #1 succeeded at 125 (offset -2 lines).
Changing dir from /home/u/Desktop/ds27/python_cross_compile_script/workdir/x86_64/flac_git to /home/u/Desktop/ds27/python_cross_compile_script/workdir/x86_64/flac_git/_build
[18:52:31][INFO] C-Making 'libflac' with: .. -G"Unix Makefiles" -DCMAKE_SYSTEM_PROCESSOR="x86_64" -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_RANLIB=/home/u/Desktop/ds27/python_cross_compile_script/workdir/toolchain/x86_64-w64-mingw32/bin/x86_64-w64-mingw32-ranlib -DCMAKE_C_COMPILER=/home/u/Desktop/ds27/python_cross_compile_script/workdir/toolchain/x86_64-w64-mingw32/bin/x86_64-w64-mingw32-gcc -DCMAKE_CXX_COMPILER=/home/u/Desktop/ds27/python_cross_compile_script/workdir/toolchain/x86_64-w64-mingw32/bin/x86_64-w64-mingw32-g++ -DCMAKE_RC_COMPILER=/home/u/Desktop/ds27/python_cross_compile_script/workdir/toolchain/x86_64-w64-mingw32/bin/x86_64-w64-mingw32-windres -DCMAKE_FIND_ROOT_PATH=/home/u/Desktop/ds27/python_cross_compile_script/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32 -DCMAKE_INSTALL_PREFIX=/home/u/Desktop/ds27/python_cross_compile_script/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32 -DBUILD_SHARED_LIBS=OFF -DENABLE_STATIC_RUNTIME=ON -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF -DVERSION=1.3.3 -DCMAKE_BUILD_TYPE=Release
[18:52:31][DEBUG] Running 'cmake .. -G"Unix Makefiles" -DCMAKE_SYSTEM_PROCESSOR="x86_64" -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_RANLIB=/home/u/Desktop/ds27/python_cross_compile_script/workdir/toolchain/x86_64-w64-mingw32/bin/x86_64-w64-mingw32-ranlib -DCMAKE_C_COMPILER=/home/u/Desktop/ds27/python_cross_compile_script/workdir/toolchain/x86_64-w64-mingw32/bin/x86_64-w64-mingw32-gcc -DCMAKE_CXX_COMPILER=/home/u/Desktop/ds27/python_cross_compile_script/workdir/toolchain/x86_64-w64-mingw32/bin/x86_64-w64-mingw32-g++ -DCMAKE_RC_COMPILER=/home/u/Desktop/ds27/python_cross_compile_script/workdir/toolchain/x86_64-w64-mingw32/bin/x86_64-w64-mingw32-windres -DCMAKE_FIND_ROOT_PATH=/home/u/Desktop/ds27/python_cross_compile_script/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32 -DCMAKE_INSTALL_PREFIX=/home/u/Desktop/ds27/python_cross_compile_script/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32 -DBUILD_SHARED_LIBS=OFF -DENABLE_STATIC_RUNTIME=ON -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF -DVERSION=1.3.3 -DCMAKE_BUILD_TYPE=Release' in '/home/u/Desktop/ds27/python_cross_compile_script/workdir/x86_64/flac_git/_build'
-- The C compiler identification is GNU 9.2.0
-- The CXX compiler identification is GNU 9.2.0
-- Check for working C compiler: /home/u/Desktop/ds27/python_cross_compile_script/workdir/toolchain/x86_64-w64-mingw32/bin/x86_64-w64-mingw32-gcc
-- Check for working C compiler: /home/u/Desktop/ds27/python_cross_compile_script/workdir/toolchain/x86_64-w64-mingw32/bin/x86_64-w64-mingw32-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /home/u/Desktop/ds27/python_cross_compile_script/workdir/toolchain/x86_64-w64-mingw32/bin/x86_64-w64-mingw32-g++
-- Check for working CXX compiler: /home/u/Desktop/ds27/python_cross_compile_script/workdir/toolchain/x86_64-w64-mingw32/bin/x86_64-w64-mingw32-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") 
-- Found OGG: /home/u/Desktop/ds27/python_cross_compile_script/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/include (found version "1.3.4") 
-- Performing Test DODEFINE_FORTIFY_SOURCE
-- Performing Test DODEFINE_FORTIFY_SOURCE - Failed
-- Performing Test HAVE_MBSTATE
-- Performing Test HAVE_MBSTATE - Success
-- Performing Test DODEFINE_EXTENSIONS
-- Performing Test DODEFINE_EXTENSIONS - Success
-- Looking for byteswap.h
-- Looking for byteswap.h - not found
-- Looking for inttypes.h
-- Looking for inttypes.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for x86intrin.h
-- Looking for x86intrin.h - found
-- Looking for fseeko
-- Looking for fseeko - found
-- Performing Test HAVE_BSWAP16
-- Performing Test HAVE_BSWAP16 - Success
-- Performing Test HAVE_BSWAP32
-- Performing Test HAVE_BSWAP32 - Success
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Performing Test HAVE_WERROR_FLAG
-- Performing Test HAVE_WERROR_FLAG - Success
-- Performing Test HAVE_DECL_AFTER_STMT_FLAG
-- Performing Test HAVE_DECL_AFTER_STMT_FLAG - Success
-- Performing Test HAVE_SSP_FLAG
-- Performing Test HAVE_SSP_FLAG - Success
-- Performing Test HAVE_STACKREALIGN_FLAG
-- Performing Test HAVE_STACKREALIGN_FLAG - Success
-- Performing Test HAVE_WEFFCXX_FLAG
-- Performing Test HAVE_WEFFCXX_FLAG - Success
-- Looking for iconv.h
-- Looking for iconv.h - not found
-- Looking for cpuid.h
-- Looking for cpuid.h - found
-- Looking for sys/param.h
-- Looking for sys/param.h - found
-- Looking for lround
-- Looking for lround - found
-- Looking for a ASM_NASM compiler
-- Looking for a ASM_NASM compiler - /usr/bin/nasm
-- The ASM_NASM compiler identification is NASM
-- Found assembler: /usr/bin/nasm
-- Performing Test HAVE_CXX_VARARRAYS
-- Performing Test HAVE_CXX_VARARRAYS - Success
-- Looking for string.h
-- Looking for string.h - found
-- Found Intl: /usr/include  
-- Looking for iconv
-- Looking for iconv - not found
-- Looking for sys/ioctl.h
-- Looking for sys/ioctl.h - not found
-- Looking for termios.h
-- Looking for termios.h - not found
-- Looking for clock_gettime
-- Looking for clock_gettime - not found
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    ENABLE_STATIC_RUNTIME

-- Build files have been written to: /home/u/Desktop/ds27/python_cross_compile_script/workdir/x86_64/flac_git/_build
[18:52:34][DEBUG] Running 'make clean' in '/home/u/Desktop/ds27/python_cross_compile_script/workdir/x86_64/flac_git/_build'
### Environment variables:  ###
    CLUTTER_IM_MODULE : xim
    LD_LIBRARY_PATH : /usr/local/cuda-10.1/lib64
    LS_COLORS : rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
    LESSCLOSE : /usr/bin/lesspipe %s %s
    XDG_MENU_PREFIX : gnome-
    LANG : en_US.UTF-8
    DISPLAY : :0
    OLDPWD : /home/u/Desktop/ds27
    GNOME_SHELL_SESSION_MODE : ubuntu
    COLORTERM : truecolor
    USERNAME : u
    XDG_VTNR : 2
    SSH_AUTH_SOCK : /run/user/1000/keyring/ssh
    XDG_SESSION_ID : 2
    USER : u
    DESKTOP_SESSION : ubuntu
    QT4_IM_MODULE : xim
    TEXTDOMAINDIR : /usr/share/locale/
    GNOME_TERMINAL_SCREEN : /org/gnome/Terminal/screen/d0790e69_9111_442a_aa73_b37e18598f13
    PWD : /home/u/Desktop/ds27/python_cross_compile_script
    HOME : /home/u
    TEXTDOMAIN : im-config
    SSH_AGENT_PID : 1487
    QT_ACCESSIBILITY : 1
    XDG_SESSION_TYPE : x11
    XDG_DATA_DIRS : /usr/share/ubuntu:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
    XDG_SESSION_DESKTOP : ubuntu
    GJS_DEBUG_OUTPUT : stderr
    GTK_MODULES : gail:atk-bridge
    WINDOWPATH : 2
    VTE_VERSION : 5202
    SHELL : /bin/bash
    TERM : xterm-256color
    QT_IM_MODULE : xim
    XMODIFIERS : @im=ibus
    IM_CONFIG_PHASE : 2
    XDG_CURRENT_DESKTOP : ubuntu:GNOME
    GPG_AGENT_INFO : /run/user/1000/gnupg/S.gpg-agent:0:1
    GNOME_TERMINAL_SERVICE : :1.67
    SHLVL : 2
    XDG_SEAT : seat0
    GDMSESSION : ubuntu
    GNOME_DESKTOP_SESSION_ID : this-is-deprecated
    LOGNAME : u
    DBUS_SESSION_BUS_ADDRESS : unix:path=/run/user/1000/bus
    XDG_RUNTIME_DIR : /run/user/1000
    XAUTHORITY : /run/user/1000/gdm/Xauthority
    XDG_CONFIG_DIRS : /etc/xdg/xdg-ubuntu:/etc/xdg
    PATH : /home/u/Desktop/ds27/python_cross_compile_script/workdir/toolchain/x86_64-w64-mingw32/bin:/home/u/Desktop/ds27/python_cross_compile_script/workdir/toolchain/x86_64-w64-mingw32/bin:/usr/local/cuda-10.1/bin:/usr/local/cuda-10.1/NsightCompute-2020.1:/usr/local/cuda-10.1/bin:/usr/local/cuda-10.1/NsightCompute-2020.1:/home/u/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
    GJS_DEBUG_TOPICS : JS ERROR;JS LOG
    SESSION_MANAGER : local/ubuntu:@/tmp/.ICE-unix/1392,unix/ubuntu:/tmp/.ICE-unix/1392
    LESSOPEN : | /usr/bin/lesspipe %s
    GTK_IM_MODULE : ibus
    _ : ./cross_compiler.py
    PKG_CONFIG_PATH : /home/u/Desktop/ds27/python_cross_compile_script/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32/lib/pkgconfig
    PKG_CONFIG_LIBDIR : 
    COLOR : ON
    CLICOLOR_FORCE : ON
    CFLAGS : -O3 -D_FORTIFY_SOURCE=0
    CXXFLAGS : -O3 -D_FORTIFY_SOURCE=0
##############################
[18:52:34][INFO][MAKE] Building 'libflac' with:  in /home/u/Desktop/ds27/python_cross_compile_script/workdir/x86_64/flac_git/_build
[18:52:34][DEBUG] Running 'make -j 4 ' in '/home/u/Desktop/ds27/python_cross_compile_script/workdir/x86_64/flac_git/_build'
Scanning dependencies of target replaygain_analysis
Scanning dependencies of target replaygain_synthesis
Scanning dependencies of target getopt
[  1%] Building C object src/share/replaygain_analysis/CMakeFiles/replaygain_analysis.dir/replaygain_analysis.c.obj
[  2%] Building C object src/share/replaygain_synthesis/CMakeFiles/replaygain_synthesis.dir/replaygain_synthesis.c.obj
[  3%] Building C object src/share/getopt/CMakeFiles/getopt.dir/getopt.c.obj
In file included from /home/u/Desktop/ds27/python_cross_compile_script/workdir/x86_64/flac_git/src/share/getopt/getopt.c:56:
/usr/include/stdio.h:27:10: fatal error: bits/libc-header-start.h: No such file or directory
   27 | #include <bits/libc-header-start.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
src/share/getopt/CMakeFiles/getopt.dir/build.make:63: recipe for target 'src/share/getopt/CMakeFiles/getopt.dir/getopt.c.obj' failed
make[2]: *** [src/share/getopt/CMakeFiles/getopt.dir/getopt.c.obj] Error 1
CMakeFiles/Makefile2:371: recipe for target 'src/share/getopt/CMakeFiles/getopt.dir/all' failed
make[1]: *** [src/share/getopt/CMakeFiles/getopt.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Scanning dependencies of target FLAC
[  5%] Building C object src/libFLAC/CMakeFiles/FLAC.dir/bitmath.c.obj
[  5%] Building C object src/libFLAC/CMakeFiles/FLAC.dir/bitreader.c.obj
[  6%] Linking C static library libreplaygain_synthesis.a
[  7%] Building C object src/libFLAC/CMakeFiles/FLAC.dir/bitwriter.c.obj
[  7%] Built target replaygain_synthesis
[  8%] Building C object src/libFLAC/CMakeFiles/FLAC.dir/cpu.c.obj
[  9%] Linking C static library libreplaygain_analysis.a
[  9%] Built target replaygain_analysis
[ 10%] Building C object src/libFLAC/CMakeFiles/FLAC.dir/crc.c.obj
[ 11%] Building C object src/libFLAC/CMakeFiles/FLAC.dir/fixed.c.obj
[ 12%] Building C object src/libFLAC/CMakeFiles/FLAC.dir/fixed_intrin_sse2.c.obj
[ 13%] Building C object src/libFLAC/CMakeFiles/FLAC.dir/fixed_intrin_ssse3.c.obj
[ 15%] Building C object src/libFLAC/CMakeFiles/FLAC.dir/float.c.obj
[ 16%] Building C object src/libFLAC/CMakeFiles/FLAC.dir/format.c.obj
[ 17%] Building C object src/libFLAC/CMakeFiles/FLAC.dir/lpc.c.obj
[ 18%] Building C object src/libFLAC/CMakeFiles/FLAC.dir/lpc_intrin_sse.c.obj
[ 19%] Building C object src/libFLAC/CMakeFiles/FLAC.dir/lpc_intrin_sse2.c.obj
[ 20%] Building C object src/libFLAC/CMakeFiles/FLAC.dir/lpc_intrin_sse41.c.obj
[ 21%] Building C object src/libFLAC/CMakeFiles/FLAC.dir/lpc_intrin_avx2.c.obj
[ 22%] Building C object src/libFLAC/CMakeFiles/FLAC.dir/lpc_intrin_vsx.c.obj
[ 23%] Building C object src/libFLAC/CMakeFiles/FLAC.dir/md5.c.obj
[ 24%] Building C object src/libFLAC/CMakeFiles/FLAC.dir/memory.c.obj
[ 25%] Building C object src/libFLAC/CMakeFiles/FLAC.dir/metadata_iterators.c.obj
[ 26%] Building C object src/libFLAC/CMakeFiles/FLAC.dir/metadata_object.c.obj
[ 27%] Building C object src/libFLAC/CMakeFiles/FLAC.dir/stream_decoder.c.obj
[ 29%] Building C object src/libFLAC/CMakeFiles/FLAC.dir/stream_encoder.c.obj
[ 30%] Building C object src/libFLAC/CMakeFiles/FLAC.dir/stream_encoder_intrin_sse2.c.obj
[ 31%] Building C object src/libFLAC/CMakeFiles/FLAC.dir/stream_encoder_intrin_ssse3.c.obj
[ 32%] Building C object src/libFLAC/CMakeFiles/FLAC.dir/stream_encoder_intrin_avx2.c.obj
[ 33%] Building C object src/libFLAC/CMakeFiles/FLAC.dir/stream_encoder_framing.c.obj
[ 34%] Building C object src/libFLAC/CMakeFiles/FLAC.dir/window.c.obj
[ 35%] Building C object src/libFLAC/CMakeFiles/FLAC.dir/ogg_decoder_aspect.c.obj
[ 36%] Building C object src/libFLAC/CMakeFiles/FLAC.dir/ogg_encoder_aspect.c.obj
[ 37%] Building C object src/libFLAC/CMakeFiles/FLAC.dir/ogg_helper.c.obj
[ 38%] Building C object src/libFLAC/CMakeFiles/FLAC.dir/ogg_mapping.c.obj
[ 39%] Building C object src/libFLAC/CMakeFiles/FLAC.dir/windows_unicode_filenames.c.obj
[ 40%] Linking C static library libFLAC.a
[ 40%] Built target FLAC
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2
[18:52:39][ERROR] Error [2] running process: 'make -j 4 ' in '/home/u/Desktop/ds27/python_cross_compile_script/workdir/x86_64/flac_git/_build'
[18:52:39][ERROR] You can try deleting the product/dependency folder: '/home/u/Desktop/ds27/python_cross_compile_script/workdir/x86_64/flac_git/_build' and re-run the script