Actions
Bug #11674
openRestore support for GCC 4
Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
Description
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 Rich Lowe almost 3 years ago
This seems like something's gone wrong at your end?
The kernel not supporting PIC is obviously true, but -mcmodel=kernel should only be supported in 64bit mode, whereas your message claims it's not supported.
Updated by Andrew Stormont almost 3 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.
Updated by Joshua M. Clulow almost 3 years ago
It would be good if we can get somebody to take a look at those dmake
core files!
Actions