• Compiling GoldEd+ under FreeBSD

    From Sean Dennis@1:18/200 to All on Mon Jan 30 15:54:19 2023
    Hi everyone,

    I'm running FreeBSD 13.1 and am trying to compile the GoldEd+ code from the
    Git repo at https://github.com/golded-plus/golded-plus. Unfortunately, I'm
    not real experienced with using cmake and I am getting this error:

    ===
    In file included from /opt/mbse/golded-plus/golded3/../goldlib/gall/gdefs.h:93: /opt/mbse/golded-plus/golded3/../goldlib/gall/gcmpall.h:34:6: error:
    Goldware Library requires -funsigned-char to operate properly
    #error Goldware Library requires -funsigned-char to operate properly
    ===

    I can't figure out how to set that flag properly.

    I'm also getting several warnings but that's not an issue.

    GED+ compiled fine before this month's quarterly pkg update so I figured
    they upgraded something along the way.

    Using gcc:
    gcc version 12.2.0 (FreeBSD Ports Collection)

    Any help is appreciated.

    Thanks,
    Sean

    ... A feature is a bug with seniority.
    --- MMail/FreeBSD
    * Origin: Outpost BBS * Johnson City, TN (1:18/200)
  • From andrew clarke@3:633/267 to Sean Dennis on Sun Feb 5 14:42:22 2023
    On 2023-01-30 15:54:18, Sean Dennis (1:18/200) wrote to All:

    I'm running FreeBSD 13.1 and am trying to compile the GoldEd+ code from the Git repo at https://github.com/golded-plus/golded-plus.

    This is how I build GoldED+ with CMake on FreeBSD 13.1-RELEASE:

    git clone https://github.com/golded-plus/golded-plus
    cd golded-plus
    cp -p golded3/mygolded.__h golded3/mygolded.h
    cmake -B workdir --install-prefix=$HOME/opt/golded .
    cmake --build workdir --parallel
    cmake --install workdir

    Clang outputs several harmless warnings as the GoldED code isn't 100% clean, but it builds OK.

    Unfortunately, I'm not real experienced with using cmake and I am
    getting this error:

    ===
    In file included from /opt/mbse/golded-plus/golded3/../goldlib/gall/gdefs.h:93: /opt/mbse/golded-plus/golded3/../goldlib/gall/gcmpall.h:34:6: error:
    Goldware Library requires -funsigned-char to operate properly
    #error Goldware Library requires -funsigned-char to operate properly ===

    I can't figure out how to set that flag properly.

    I'm also getting several warnings but that's not an issue.

    GED+ compiled fine before this month's quarterly pkg update so I figured they upgraded something along the way.

    Presumably Ports GCC is now defaulting to -fsigned-char for some reason.
    I see you were able to resolve that in another message.

    Using gcc:
    gcc version 12.2.0 (FreeBSD Ports Collection)

    It's not necessary to build GoldED with GCC from Ports since it builds just fine with Clang 13.0 in FreeBSD base.

    --- GoldED+/BSD 1.1.5-b20220504
    * Origin: Blizzard of Ozz, Melbourne, Victoria, Australia (3:633/267)