#15702: makefile_engine: can't build 64bit drivers
----------------------------+----------------------------
Reporter: X512 | Owner: bonefish
Type: bug | Status: new
Priority: normal | Milestone: Unscheduled
Component: Build System | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking: 15832
Has a Patch: 0 | Platform: x86-64
----------------------------+----------------------------
Comment (by nielx):
I added the line from comment:3 in the LINKFLAGS, but I still get a
compiler error.
{{{
mkdir -p objects.x86_64-cc8-release; \
mkdepend -I./ -p .c:objects.x86_64-cc8-release/%n.o -m -f
"objects.x86_64-cc8-release/i2c_hid.d" i2c_hid.c
cc -c i2c_hid.c -iquote./ -iquote./ -D_KERNEL_MODE=1 -fno-pic -O3 -o
"objects.x86_64-cc8-release/i2c_hid.o"
cc -o "objects.x86_64-cc8-release/i2c_hid"
objects.x86_64-cc8-release/i2c_hid.o -nostdlib
/boot/system/develop/lib/_KERNEL_
/boot/system/develop/lib/haiku_version_glue.o -L./ -shared -Xlinker
-soname=i2c_hid -z max-page-size=0x1000
/boot/system/develop/tools/bin/../lib/gcc/x86_64-unknown-
haiku/8.3.0/../../../../x86_64-unknown-haiku/bin/ld:
objects.x86_64-cc8-release/i2c_hid.o: relocation R_X86_64_32 against
`.rodata.str1.1' can not be used when making a shared object; recompile
with -fPIC
/boot/system/develop/tools/bin/../lib/gcc/x86_64-unknown-
haiku/8.3.0/../../../../x86_64-unknown-haiku/bin/ld: final link failed:
nonrepresentable section on output
collect2: error: ld returned 1 exit status
/boot/system/develop/etc/makefile-engine:246: recipe for target
'objects.x86_64-cc8-release/i2c_hid' failed
make: *** [objects.x86_64-cc8-release/i2c_hid] Error
}}}
--
Ticket URL: <https://dev.haiku-os.org/ticket/15702#comment:7>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.