Bug 206117

Summary: 64bit linux_compatibility: Binary file is not executable
Product: Base System Reporter: Stefan Rumetshofer <sterum77>
Component: miscAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed Works As Intended    
Severity: Affects Only Me CC: amd64, dchagin
Priority: ---    
Version: 10.2-STABLE   
Hardware: amd64   
OS: Any   

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!