Bug 206117 - 64bit linux_compatibility: Binary file is not executable
Summary: 64bit linux_compatibility: Binary file is not executable
Status: Closed Works As Intended
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: 10.2-STABLE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-10 21:10 UTC by Stefan Rumetshofer
Modified: 2016-01-10 21:55 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Rumetshofer 2016-01-10 21:10:54 UTC
I'd like to test the new 64bit linux compatibility layer, so i have installed an actual 10.2-STABLE and patched the ports tree as described in miwi's blog.

sysctl compat.linux.osrelease now says: 2.6.32

in make.conf i have:
OVERRIDE_LINUX_BASE_PORT=c6_64
OVERRIDE_LINUX_NONBASE_PORTS=c6_64

then i installed the port: linux_base-c6

pkg version -v now says:
linux_base-c6_64-6.7

So i thougt i can test a 64bit Linux binary, but when i execute it i get

ELF binary type "0" not known.
Exec format error. Binary file not executable.

So i tried to brandelf the file to type "Linux", but then i get

ELF binary type "3" not known.
Exec format error. Binary file not executable.

Now i dont know if this is a bug in the new linuxulator or it is a problem with my executable.

Btw. The binary is the 64bit installer of X-Plane 10.
Comment 1 Dmitry Chagin freebsd_committer freebsd_triage 2016-01-10 21:16:23 UTC
You should build and install linux_common, linux64 and linprocfs modules
kldload linux64.ko
linux_base-c6 is not completed
Comment 2 Stefan Rumetshofer 2016-01-10 21:25:56 UTC
(In reply to Dmitry Chagin from comment #1)

Oh my mistake. I kldloaded the linux.ko module instead of the linux64.ko module.
Now the binary is executed and i can continue testing.
PR can be closed.
Comment 3 Dmitry Chagin freebsd_committer freebsd_triage 2016-01-10 21:55:35 UTC
please, any questions write to freebsd-emulation@ mailing list. thanks!