[fossil-users] bash: ./fossil: cannot execute binary file

17 views
Skip to first unread message

Bob Chapman

unread,
Mar 18, 2012, 9:18:46 AM3/18/12
to Fossil SCM user's discussion
FWIW on Centos 4.9 or Ubuntu 10.04 LTS:

$ unzip -v fossil-linux-x86-20120317175325.zip
Archive: fossil-linux-x86-20120317175325.zip
Length Method Size Cmpr Date Time CRC-32 Name
-------- ------ ------- ---- ---------- ----- -------- ----
1168448 Defl:N 555495 53% 2012-03-17 13:10 7f267d66 fossil
-------- ------- --- -------
1168448 555495 53% 1 file
$ unzip fossil-linux-x86-20120317175325.zip
Archive: fossil-linux-x86-20120317175325.zip
inflating: fossil
$ vdir fossil
-rwxrwxr-x 1 rchapman rchapman 1168448 2012-03-17 13:10 fossil*
$ ./fossil version
bash: ./fossil: cannot execute binary file <===

--
_______________________________________________
fossil-users mailing list
fossil...@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Richard Hipp

unread,
Mar 18, 2012, 9:45:21 AM3/18/12
to rcha...@acm.org, Fossil SCM user's discussion
On Sun, Mar 18, 2012 at 9:18 AM, Bob Chapman <chapm...@gmail.com> wrote:
FWIW on Centos 4.9 or Ubuntu 10.04 LTS:

$ unzip -v fossil-linux-x86-20120317175325.zip
Archive:  fossil-linux-x86-20120317175325.zip
 Length   Method    Size  Cmpr    Date    Time   CRC-32   Name
--------  ------  ------- ---- ---------- ----- --------  ----
 1168448  Defl:N   555495  53% 2012-03-17 13:10 7f267d66  fossil
--------          -------  ---                            -------
 1168448           555495  53%                            1 file
$ unzip fossil-linux-x86-20120317175325.zip
Archive:  fossil-linux-x86-20120317175325.zip
 inflating: fossil
$ vdir fossil
-rwxrwxr-x 1 rchapman rchapman 1168448 2012-03-17 13:10 fossil*
$ ./fossil version
bash: ./fossil: cannot execute binary file  <===

I uploaded a new binary.  Please try again.

 

--
_______________________________________________
fossil-users mailing list
fossil...@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users



--
D. Richard Hipp
d...@sqlite.org

Bob Chapman

unread,
Mar 18, 2012, 10:23:49 AM3/18/12
to Fossil SCM user's discussion
> I uploaded a new binary.  Please try again.

On Centos 4.9

[~]$ ./fossil version
./fossil: /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required
by ./fossil)
./fossil: /lib/tls/libc.so.6: version `GLIBC_2.7' not found (required
by ./fossil)

I can't try Ubuntu 10.04 until this afternoon.

Richard Hipp

unread,
Mar 18, 2012, 12:08:24 PM3/18/12
to rcha...@acm.org, Fossil SCM user's discussion
On Sun, Mar 18, 2012 at 10:23 AM, Bob Chapman <chapm...@gmail.com> wrote:
> I uploaded a new binary.  Please try again.

On Centos 4.9

[~]$ ./fossil version
./fossil: /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required
by ./fossil)
./fossil: /lib/tls/libc.so.6: version `GLIBC_2.7' not found (required
by ./fossil)

I can't try Ubuntu 10.04 until this afternoon.

I have uploaded a third binary for linux - this one statically linked.

You may recall that people were fussing at me for uploading a statically linked binary last time.  But apparently, that is the only way to be portable on linux.

 

--
_______________________________________________
fossil-users mailing list
fossil...@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Bob Chapman

unread,
Mar 18, 2012, 3:17:32 PM3/18/12
to Fossil SCM user's discussion
>> I can't try Ubuntu 10.04 until this afternoon

Just for completeness, the dynamically linked Fossil worked fine
on Ubuntu 10.04

$ unzip -v fossil-linux-x86-20120317175325.zip
Archive: fossil-linux-x86-20120317175325.zip
Length Method Size Cmpr Date Time CRC-32 Name
-------- ------ ------- ---- ---------- ----- -------- ----

1045120 Defl:N 520481 50% 2012-03-18 08:43 17d47de7 fossil
-------- ------- --- -------
1045120 520481 50% 1 file


$ unzip fossil-linux-x86-20120317175325.zip
Archive: fossil-linux-x86-20120317175325.zip
inflating: fossil
$ vdir fossil

-rwxrwxr-x 1 rchapman rchapman 1045120 2012-03-18 08:43 fossil*
$ ./fossil version
This is fossil version 1.22 [f7e215bcac] 2012-03-17 17:53:25 UTC

> I have uploaded a third binary for linux - this one statically linked.
>
> You may recall that people were fussing at me for uploading a statically
> linked binary last time. But apparently, that is the only way to be
> portable on linux.

The statically linked fossil worked just fine on Ubuntu 10.04. However,
to my great surprise, the statically linked fossil produced the following
result on Centos 4.9 (<--which I KNOW has just passed its end of life ;)

$ unz -v fossil-linux-x86-20120317175325.zip
Length Method Size Ratio Date Time CRC-32 Name


-------- ------ ------- ----- ---- ---- ------ ----

1656852 Defl:N 824976 50% 03-18-12 11:03 edd7ce1c fossil
-------- ------- --- -------
1656852 824976 50% 1 file
$ unz fossil-linux-x86-20120317175325.zip
Archive: fossil-linux-x86-20120317175325.zip
inflating: fossil
$ ./fossil version
FATAL: kernel too old <==
Segmentation fault <==

As is my usual custom, I have since compiled fossil from the tarball
on both systems without any problems (given the manifest ;)

Thank you Dr Hipp for taking the time on this issue and for your great
achievements fossil and sqlite.

--

Bill Burdick

unread,
Mar 19, 2012, 11:43:09 AM3/19/12
to Fossil SCM user's discussion, rcha...@acm.org
Personally, I'm a HUGE fan of static linking for reasons like this!  Really -- the fossil executable isn't very large, compared to git; statically linked fossil is 1/4 the size of dynamically linked git.  Dynamically linked git even depends on more libraries than dynamically linked fossil.  Here's some info on static vs dynamic linking that I found pretty compelling (too bad this statically linked linux distro hasn't been maintained): http://sta.li/faq


Bill


On Sun, Mar 18, 2012 at 11:08 AM, Richard Hipp <d...@sqlite.org> wrote:

Bill Burdick

unread,
Mar 19, 2012, 11:45:40 AM3/19/12
to rcha...@acm.org, Fossil SCM user's discussion
On Sun, Mar 18, 2012 at 2:17 PM, Bob Chapman <chapm...@gmail.com> wrote:
The statically linked fossil worked just fine on Ubuntu 10.04. However,
to my great surprise, the statically linked fossil produced the following
result on Centos 4.9 (<--which I KNOW has just passed its end of life ;)

$ unz -v fossil-linux-x86-20120317175325.zip
 Length   Method    Size  Ratio   Date   Time   CRC-32    Name
--------  ------  ------- -----   ----   ----   ------    ----
 1656852  Defl:N   824976  50%  03-18-12 11:03  edd7ce1c  fossil
--------          -------  ---                            -------
 1656852           824976  50%                            1 file
$ unz fossil-linux-x86-20120317175325.zip
Archive:  fossil-linux-x86-20120317175325.zip
 inflating: fossil
$ ./fossil version
FATAL: kernel too old  <==
Segmentation fault      <==

Yeah, the kernel is one dynamic library you can't get around in Linux!  Even static binaries are dynamic, in that sense.


Bill

Eduardo Tongson

unread,
Mar 20, 2012, 11:21:06 AM3/20/12
to Fossil SCM user's discussion
If anyone needs a statically compiled x86_64 binary:
-rwxr-xr-x 1 root root 1830728 Mar 20 11:05 /usr/bin/fsl

It was compiled with GCC 4.6.2 and Musl. Compile options:
https://github.com/tongson/Gimokod/blob/7296c5b381994a06b0a13bd6445833f13426910c/core/fsl/PKGBUILD

Reply all
Reply to author
Forward
0 new messages