You are here

error when compiling on ubuntu-10.10

11 posts / 0 new
Last post
error when compiling on ubuntu-10.10
#1

I had tried to compile (build) rosetta-3.2 on PC running Ubuntu-10.10 (64 bits),
I have conducted downgrade of gcc to version 4.1,
with this command:

$/> ./scons bin mode=release

but, after approx. half an hour compiling, I got the following errors:

-Lsrc -L/usr/local/lib -L/usr/lib -lObjexxFCL -lz
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
scons: *** [build/src/release/linux/2.6/64/x86/gcc/libutility.so] Error 1
scons: building terminated because of errors.

What should I do to resolve this errors?

I am looking forward for any suggestion regarding this.
Thanking you.......

Regards,
Rustaman

Post Situation: 
Fri, 2011-04-29 21:46
Rustaman

It looks like you're having problems with the zlib compression library. Make sure you've installed the library on your system. If it's not installed, I believe that an "apt-get install zlib" on the command line will fork for Ubuntu. You may have to also install the developer libraries as well ("apt-get install zlib-devel")

Additionally, there is a zlib version included in rosetta_source/external/lib/z.lib which sometimes confuses windows builds (http://www.rosettacommons.org/node/2280) - I don't know if that would be an issue for Ubuntu builds, though.

P.S. This is actually the (sub)forum for the Rosetta 2.x (Rosetta++) series. Rosetta 3.x ("mini") is quite a bit different, and has it's own set of (sub)forums on https://www.rosettacommons.org/forum

Sat, 2011-04-30 12:17
rmoretti

Dear Moretti,
Thank You very much for your help.
I have compiled it and success.

Rustaman

Tue, 2011-05-10 20:09
Rustaman

Specifically, the package is zlib1g-dev.

As root: "sudo apt-get install zlib1g-dev", then recompile.

Sat, 2011-04-30 17:24
smlewis

Dear SMLewis,
Thank you very much for your help.
I have recompiled it, and success.

Rustaman

Tue, 2011-05-10 20:15
Rustaman

I have the same problem.
scons: *** [build/src/release/linux/2.6/64/x86/gcc/libutility.so] Error 1
scons: building terminated because of errors.

Can you tell me your solution in detail?

Fri, 2011-06-03 20:17
libai2098

"building terminated because of errors" is a generic error message used when anything goes wrong. To better determine what specifically went wrong in your case, we'd need to see more context - e.g. the five-or-so lines prior to that final message.

Sat, 2011-06-04 10:37
rmoretti

hi I downloaded rosetta 3.4 codes recently.....
I ran scons bin mode=release
But I am not getting any linuxgccrelease files, only getting .os files.
Nothing in /bin directory.
Please help.

Mon, 2012-09-24 09:36
nawsad

What output did you get from scons?

Mon, 2012-09-24 10:11
smlewis

I am getting .os files.

Sat, 2012-09-29 23:24
nawsad

What Steven meant was what sort of output to the console (stdout/stderr) are you getting? When you run scons, what is it printing? Is there any sort of error message?

Probably the best thing is to copy and paste the last page or so of the console output, and post it to this thread. Usually if you re-run scons, it will exit with an error message quickly, and there will be less than page of output total, in which case you can post all of it.

(I have the suspicion that your problem (getting .os files but no executables) is probably the no zlib problem that crops up frequently. Read the other posts in this thread to see how to fix it.)

Sun, 2012-09-30 12:50
rmoretti