Opened 5 years ago

Last modified 4 years ago

#15702 closed bug

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

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 (last modified by X512)

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.

32 bit version compile and run without problems.

Change History (1)

comment:1 by X512, 5 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.