[Linux] Error when launching a nightly build: binary file

• Apr 11, 2013 - 06:43
Type
Functional
Severity
S4 - Minor
Status
closed
Project

unbuntu 12.10, mscore is 775 after uncompressed
./mscore generates an error :

-rwxrwxr-x 1 olivier olivier 270462816 avril 10 18:01 mscore*
-rw-rw-r-- 1 olivier olivier 97400929 avril 10 22:47 mscore-2013-04-10-18-01-4f5befc.tar.bz2

olivier@chaumont02:~/Téléchargements$ ./mscore
bash: ./mscore : fichier binaire impossible à lancer
olivier@chaumont02:~/Téléchargements$

Do I miss something ?


Comments

@ Jojo-Schmitz,

the script I use reads as follows

git pull
make revision
make
echo ******* | sudo -S make install

what should I modify ?

PS note that :

"make -h" returns
".................................
Ce logiciel est construit pour x86_64-pc-linux-gnu"

I guess you'd need to tell the compiler to generate 32-bit code and link against 32-bit libs.
A quick Google search indicated the use of "CFLAGS=-m32" should do the trick?

I have no knowledge of compilation tricks, and, for the next 3 weeks, have no time to investigate the numerous but not so clear links given by Google.

However I could copy some code lines in my script… if someone knows which

mscore-2013-04-11-17-49-1db1667.tar.bz2
is the last file uploaded without the

export CFLAGS="-m32"

line

I hope I hear about my next compilation

grazie to ABL for his suggestion

I just compiled
mscore-2013-04-12-11-01-be3f703.tar.bz2
with the line
export CFLAGS="-m32"

it runs under my Mint14 (64 bits)

Could someone check if it runs under a 32 bits system ?

Thanks

I fear that it is still a 64bit binary.
I tried to launch it (be3f703) in my Mint 9.0 (Isadora) 32bit, but it did not work.

Here is the output of "file" command:
$ file mscore
mscore: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), dynamically
linked (uses shared libs), for GNU/Linux 2.6.24, not stripped

You can try "file mscore" on your pc to check if the binary file is 32 or 64bit.

Ciao,
ABL

Could well be that CFLAGS only influences the compile- but not the link step, so ABL's

export CC="gcc -m32"
export CXX="g++ -m32"

might be better? Possibly also adding

export LDFLAGS="-m32"

Title Error when launching a nightly build : binary file Error when launching a nightly build: binary file
Status (old) active needs info

Hi lholivier

Are you still having trouble?

Status (old) needs info closed

As there has been no further information, I close this.

Please post if you continue to have problems :).

It just sprang to my mind, that MuseScore is C++, so it is not CFLAGS but CXXFLAGS (I believe).
Probably better would be ABL's CC and CXX settings.

Status (old) active closed

I think this old report can be closed, since, thanks to robert leleu, 32bit Linux build are available since long. Please re-open if necessary.