Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenWatcom v2 build: SUSE Linux Tumbleweed fails due to bug with c99 stub #1341

Open
LowLevelMahn opened this issue Oct 12, 2024 · 0 comments

Comments

@LowLevelMahn
Copy link

LowLevelMahn commented Oct 12, 2024

c99 on Tumbleweed (maybe also normal SUSE Linux) is buggy - c99 is not part of gcc but provided by the distros

see bug-report: https://bugzilla.opensuse.org/show_bug.cgi?id=1156949

current fix of that problem is a patch to build.sh (by jmalak)

if [ "$OWTOOLS" = "WATCOM" ]; then
    output_redirect wmake -m -f ../wmake clean
    output_redirect wmake -m -f ../wmake
else
    if [ "$OWTOOLS" = "GCC" ]; then
        if [ "$OWTOOLSVER" = "14" ]; then
            # workaround for gcc 14 on SUSE
            TCC="CC=gcc"
        fi 
    fi
    case `uname` in
        FreeBSD)
            output_redirect make -f ../posmake clean
            output_redirect make -f ../posmake TARGETDEF=-D__BSD__ $TCC
            ;;
        Darwin)
            output_redirect make -f ../posmake clean
            output_redirect make -f ../posmake TARGETDEF=-D__OSX__ $TCC
            ;;
        Haiku)
            output_redirect make -f ../posmake clean
            output_redirect make -f ../posmake TARGETDEF=-D__HAIKU__ $TCC
            ;;
#        Linux)
        *)
            output_redirect make -f ../posmake clean
            output_redirect make -f ../posmake TARGETDEF=-D__LINUX__ $TCC
            ;;
    esac
fi

but its not an gcc 14 problem but only a distro bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant