Opened 4 years ago

Last modified 4 years ago

#15702 closed bug

makefile_engine: can't build 64bit drivers — at Initial Version

Reported by: X512 Owned by: bonefish
Priority: normal Milestone: R1/beta3
Component: Build System Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: x86-64

Description

This is hrev53780 x86_64.

When building test driver on x86_64, link fails:

cc -o "objects.x86_64-cc8-release/acpi_test"    objects.x86_64-cc8-release/acpi_test.o  -nostdlib /boot/system/develop/lib/_KERNEL_ /boot/system/develop/lib/haiku_version_glue.o  -L./    
/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/acpi_test.o: relocation R_X86_64_32 against `.bss' 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/acpi_test' failed
make: *** [objects.x86_64-cc8-release/acpi_test] Error 1

If add -fPIC to compiler options, drivers compiles, but don't load, bad data error is written in syslog.

Change History (0)

Note: See TracTickets for help on using tickets.