Restore support for GCC 4
After syncing up with master by builds are now failing:
dmake: Fatal error: Command failed for target `dmod/pcplusmp.o' Current working directory /code/illumos-gate/usr/src/cmd/mdb/i86pc/modules/pcplusmp/amd64 Waiting for 1 job to finish omniosce --> Job output + /opt/gcc-4.4.4/bin/gcc -fident -finline -fno-inline-functions -fno-builtin -fno-asm -fdiagnostics-show-option -nodefaultlibs -D__sun -fno-strict-aliasing -fno-unit-at-a-time -fno-optimize-sibling-calls -O2 -m64 -mtune=opteron -Ui386 -U__i386 -Wall -Wextra -Werror -Wno-missing-braces -Wno-sign-compare -Wno-unknown-pragmas -Wno-unused-parameter -Wno-missing-field-initializers -Wno-array-bounds -Wno-unused-function -std=gnu99 -fno-inline-small-functions -fno-inline-functions-called-once -fno-ipa-cp -g -gdwarf-2 -std=gnu99 -msave-args -ffreestanding -mno-red-zone -mno-mmx -mno-sse -msave-args -fPIC -DTEXT_DOMAIN="SUNW_OST_OSCMD" -I/code/illumos-gate/proto/root_i386/usr/include -D_ELF64 -D_KERNEL -ffreestanding -I../../../common -DMP -D_MACHDEP -I../../../../common -I../../common -I/code/illumos-gate/usr/src/uts/intel -I/code/illumos-gate/usr/src/uts/i86pc -D_KMDB -c -o /tmp/cw.2Iq28z/cw1Jq78z.o ../pcplusmp.c -mcmodel=kernel ../pcplusmp.c:1: error: code model kernel does not support PIC mode ../pcplusmp.c:1: error: code model 'kernel' not supported in the 64 bit mode *** Error code 1
Updated by Andrew Stormont almost 2 years ago
I don't know why this was happening. As you can see from the make output it was trying to build dmod with CFLAGS that should have only been set for kmod. There were no changes to the source code that could account for this. Interestingly - and maybe related - I have a bunch of core files from make in my workspace.