*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content

Installation fails as io.h is required in linux install

After using the word around for #1 the installation script fails with a new error:

Error Message: Click to expand
./install_script.sh
/home/staudi/Documents/001_Data/01_TU-Wien/02_Vorlesungen/008_2025S/2025S_360.033_VU_Modellierung-elektronischer-Bauelemente/003_Uebung/ZZ_Installer/sgframework/sgbin
Cleaning...
rm -f -r bin
cd       lib ; make clean
make[1]: Entering directory '/home/staudi/Documents/001_Data/01_TU-Wien/02_Vorlesungen/008_2025S/2025S_360.033_VU_Modellierung-elektronischer-Bauelemente/003_Uebung/ZZ_Installer/sgframework/lib'
rm -f sgnam.o mathfunc.o cmdparse.o xgraph.o
make[1]: Leaving directory '/home/staudi/Documents/001_Data/01_TU-Wien/02_Vorlesungen/008_2025S/2025S_360.033_VU_Modellierung-elektronischer-Bauelemente/003_Uebung/ZZ_Installer/sgframework/lib'
cd   CMDLINE ; make clean
make[1]: Entering directory '/home/staudi/Documents/001_Data/01_TU-Wien/02_Vorlesungen/008_2025S/2025S_360.033_VU_Modellierung-elektronischer-Bauelemente/003_Uebung/ZZ_Installer/sgframework/CMDLINE'
rm -f *.o order sgxlat
make[1]: Leaving directory '/home/staudi/Documents/001_Data/01_TU-Wien/02_Vorlesungen/008_2025S/2025S_360.033_VU_Modellierung-elektronischer-Bauelemente/003_Uebung/ZZ_Installer/sgframework/CMDLINE'
cd     MESHD ; make clean
make[1]: Entering directory '/home/staudi/Documents/001_Data/01_TU-Wien/02_Vorlesungen/008_2025S/2025S_360.033_VU_Modellierung-elektronischer-Bauelemente/003_Uebung/ZZ_Installer/sgframework/MESHD'
rm -f *.o mesh r2sk
make[1]: Leaving directory '/home/staudi/Documents/001_Data/01_TU-Wien/02_Vorlesungen/008_2025S/2025S_360.033_VU_Modellierung-elektronischer-Bauelemente/003_Uebung/ZZ_Installer/sgframework/MESHD'
cd      GRID ; make clean
make[1]: Entering directory '/home/staudi/Documents/001_Data/01_TU-Wien/02_Vorlesungen/008_2025S/2025S_360.033_VU_Modellierung-elektronischer-Bauelemente/003_Uebung/ZZ_Installer/sgframework/GRID'
rm -f *.o sggrid
make[1]: Leaving directory '/home/staudi/Documents/001_Data/01_TU-Wien/02_Vorlesungen/008_2025S/2025S_360.033_VU_Modellierung-elektronischer-Bauelemente/003_Uebung/ZZ_Installer/sgframework/GRID'
cd    REFINE ; make clean
make[1]: Entering directory '/home/staudi/Documents/001_Data/01_TU-Wien/02_Vorlesungen/008_2025S/2025S_360.033_VU_Modellierung-elektronischer-Bauelemente/003_Uebung/ZZ_Installer/sgframework/REFINE'
rm -f *.o
make[1]: Leaving directory '/home/staudi/Documents/001_Data/01_TU-Wien/02_Vorlesungen/008_2025S/2025S_360.033_VU_Modellierung-elektronischer-Bauelemente/003_Uebung/ZZ_Installer/sgframework/REFINE'
cd     UTILS ; make clean
make[1]: Entering directory '/home/staudi/Documents/001_Data/01_TU-Wien/02_Vorlesungen/008_2025S/2025S_360.033_VU_Modellierung-elektronischer-Bauelemente/003_Uebung/ZZ_Installer/sgframework/UTILS'
rm -f *.o bldgram brkpnts extract format group dumpmesh extract_opt.[ch]
make[1]: Leaving directory '/home/staudi/Documents/001_Data/01_TU-Wien/02_Vorlesungen/008_2025S/2025S_360.033_VU_Modellierung-elektronischer-Bauelemente/003_Uebung/ZZ_Installer/sgframework/UTILS'
sh -c "if [ -d /home/staudi/Documents/001_Data/01_TU-Wien/02_Vorlesungen/008_2025S/2025S_360.033_VU_Modellierung-elektronischer-Bauelemente/003_Uebung/ZZ_Installer/sgframework/sgbin ]; then rm -rf /home/staudi/Documents/001_Data/01_TU-Wien/02_Vorlesungen/008_2025S/2025S_360.033_VU_Modellierung-elektronischer-Bauelemente/003_Uebung/ZZ_Installer/sgframework/sgbin; fi"
sh -c "if [ ! -d bin ]; then mkdir bin; fi"
rm -f bin/sgbuild
A new sgbuild is constructed.
chmod 755  bin/sgbuild
cp lib/SG lib/SK bin/
cd       lib ; make
make[1]: Entering directory '/home/staudi/Documents/001_Data/01_TU-Wien/02_Vorlesungen/008_2025S/2025S_360.033_VU_Modellierung-elektronischer-Bauelemente/003_Uebung/ZZ_Installer/sgframework/lib'
g++ -O2 -c sgnam.cpp -DGNU -Wno-narrowing -I../inc 
sgnam.cpp:37:10: fatal error: io.h: No such file or directory
   37 | #include <io.h>
      |          ^~~~~~
compilation terminated.
make[1]: *** [Makefile:18: sgnam.o] Error 1
make[1]: Leaving directory '/home/staudi/Documents/001_Data/01_TU-Wien/02_Vorlesungen/008_2025S/2025S_360.033_VU_Modellierung-elektronischer-Bauelemente/003_Uebung/ZZ_Installer/sgframework/lib'
make: *** [Makefile:17: all] Error 2
sh -c "if [ ! -d /home/staudi/Documents/001_Data/01_TU-Wien/02_Vorlesungen/008_2025S/2025S_360.033_VU_Modellierung-elektronischer-Bauelemente/003_Uebung/ZZ_Installer/sgframework/sgbin ]; then mkdir /home/staudi/Documents/001_Data/01_TU-Wien/02_Vorlesungen/008_2025S/2025S_360.033_VU_Modellierung-elektronischer-Bauelemente/003_Uebung/ZZ_Installer/sgframework/sgbin; fi"
cp bin/* /home/staudi/Documents/001_Data/01_TU-Wien/02_Vorlesungen/008_2025S/2025S_360.033_VU_Modellierung-elektronischer-Bauelemente/003_Uebung/ZZ_Installer/sgframework/sgbin
# added [TG]
cp iue/sgrun /home/staudi/Documents/001_Data/01_TU-Wien/02_Vorlesungen/008_2025S/2025S_360.033_VU_Modellierung-elektronischer-Bauelemente/003_Uebung/ZZ_Installer/sgframework/sgbin
# ----- [TG]
cd /home/staudi/Documents/001_Data/01_TU-Wien/02_Vorlesungen/008_2025S/2025S_360.033_VU_Modellierung-elektronischer-Bauelemente/003_Uebung/ZZ_Installer/sgframework/sgbin; chmod 755 SG SK  sgbuild brkpnts dumpmesh format group extract mesh order r2sk sggrid sgxlat bldgram
chmod: cannot access 'brkpnts': No such file or directory
chmod: cannot access 'dumpmesh': No such file or directory
chmod: cannot access 'format': No such file or directory
chmod: cannot access 'group': No such file or directory
chmod: cannot access 'extract': No such file or directory
chmod: cannot access 'mesh': No such file or directory
chmod: cannot access 'order': No such file or directory
chmod: cannot access 'r2sk': No such file or directory
chmod: cannot access 'sggrid': No such file or directory
chmod: cannot access 'sgxlat': No such file or directory
chmod: cannot access 'bldgram': No such file or directory
make: *** [Makefile:56: install] Error 1
export PATH=/home/staudi/Documents/001_Data/01_TU-Wien/02_Vorlesungen/008_2025S/2025S_360.033_VU_Modellierung-elektronischer-Bauelemente/003_Uebung/ZZ_Installer/sgframework/sgbin:$PATH
Path already exists in .bashrc

It seems to me that some of the unix to windows macro switches are commented out.

System information

GCC

Click to expand
gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/14.2.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc/src/gcc/configure --enable-languages=ada,c,c++,d,fortran,go,lto,m2,objc,obj-c++,rust --enable-bootstrap --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://gitlab.archlinux.org/archlinux/packaging/packages/gcc/-/issues --with-build-config=bootstrap-lto --with-linker-hash-style=gnu --with-system-zlib --enable-__cxa_atexit --enable-cet=auto --enable-checking=release --enable-clocale=gnu --enable-default-pie --enable-default-ssp --enable-gnu-indirect-function --enable-gnu-unique-object --enable-libstdcxx-backtrace --enable-link-serialization=1 --enable-linker-build-id --enable-lto --enable-multilib --enable-plugin --enable-shared --enable-threads=posix --disable-libssp --disable-libstdcxx-pch --disable-werror
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 14.2.1 20250207 (GCC)

Make

Click to expand
make -v
GNU Make 4.4.1
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

System information

Click to expand
neofetch
                   -`                    ###########
                  .o+`                   --------------
                 `ooo/                   OS: Arch Linux x86_64
                `+oooo:                  Kernel: 6.13.6-arch1-1
               `+oooooo:                 Uptime: 9 hours, 31 mins
               -+oooooo+:                Packages: 2174 (pacman), 37 (flatpak)
             `/:-:++oooo+:               Shell: fish 4.0.1
            `/++++/+++++++:              Resolution: 3840x2160
           `/++++++++++++++:             DE: Plasma 6.3.3
          `/+++ooooooooooooo/`           WM: kwin
         ./ooosssso++osssssso+`          Theme: [Plasma], Breeze-Dark [GTK2], Breeze [
        .oossssso-````/ossssss+`         Icons: ePapirus-Dark [Plasma], ePapirus-Dark
       -osssssso.      :ssssssso.        Terminal: alacritty
      :osssssss/        osssso+++.       Terminal Font: black: '0x232627'
     /ossssssss/        +ssssooo/-       CPU: Intel i9-9900K (16) @ 5.000GHz
   `/ossssso+/:-        -:/+osssso+-     GPU: NVIDIA GeForce RTX 2070 Rev. A
  `+sso+:-`                 `.-/+oso:    Memory: 13259MiB / 32000MiB
 `++:.                           `-/+/
 .`                                 `/
Edited by Staudenmayer, Patrik