sworda / serf

Automatically exported from code.google.com/p/serf
Apache License 2.0
0 stars 0 forks source link

SCons build breaks, can't seem to find libgcc_s.so.1 #163

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. scons APR=/Path/to/APR APU=/Path/to/APU OPENSSL=/Path/to/Openssl 
PREFIX=/home/local
2.
3.

What is the expected output? What do you see instead?
This is what I get...

scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
gcc -o context.o -c -std=c89 -g -O2 -DNDEBUG -DSOLARIS2=10 
-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE -I. 
-I/home/local/sparc-solaris2.10/Svn/include/apr-1 
-I/home/local/sparc-solaris2.10/include context.c
ld.so.1: as: fatal: libgcc_s.so.1: open failed: No such file or directory
gcc: Internal error: Killed (program as)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
scons: *** [context.o] Error 1
scons: building terminated because of errors.

What version of the product are you using? On what operating system?
Scons-2.3.4
Serf-1.3.8
GCC-4.2.4
APR-1.4.6 (came w/ svn-1.8.11)
APU-1.5.1
sparc-solaris2.10

Please provide any additional information below.

I have libgcc_s.so.1 in my $LD_LIBRARY_PATH...is there another env var I need 
to set for SCons to find the libgcc?

Original issue reported on code.google.com by ptrc...@gmail.com on 24 Feb 2015 at 2:35

GoogleCodeExporter commented 9 years ago
I contacted the SCons group and the response I got was that they believe that 
the  Serf setup might not be propagating a required environment variable to my 
environment where I'm executing the "scons" build and "scons check" commands.

Can anyone help me with this? My first post went unanswered for over a week...

Thanks

Original comment by ptrc...@gmail.com on 3 Mar 2015 at 2:16

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Please reference a public archive of the discussion with the SCons developers.

Please name the environment variable claimed to be missing.

Original comment by andreas.stieger@gmx.de on 3 Mar 2015 at 7:37

GoogleCodeExporter commented 9 years ago
This isn't a public archive? Could a link to one be provided?

Currently, the "scons check" command gives me an error...

scons check
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
/home/local/Python/sparc-solaris2.10/2.7.9/bin/python build/check.py
ld.so.1: python2.7: fatal: libgcc_s.so.1: open failed: No such file or directory
Killed
scons: *** [check] Error 137
scons: building terminated because of errors.

The SCons folks then recommended I run the above python command directly from 
my consoles, where I get this...

/home/local/Python/sparc-solaris2.10/2.7.9/bin/python build/check.py
== Testing test/testcases/chunked-empty.response ==
== Testing test/testcases/chunked-trailers.response ==
this is 1 test.
i am a test.this is a test.
Trailer-Test: f
== Testing test/testcases/chunked.response ==
this is 1 test.
i am a test.this is a test.
== Testing test/testcases/deflate.response ==
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
 <head>
  <title>Test of gzip Content-Encoding</title>
 </head>
 <body>
<h1>This is a test</h1>

<p>This file was created with mod_deflate on the server side.</p>
<pre>curl -i --output gzip.response -H "Accept-Encoding: gzip" 
http://localhost:8080/1.html</pre>
<hr />
<address>Apache</address>
</body></html>
== Testing test/testcases/simple.response ==
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>scotch.ics.uci.edu</title>
<!--base href="http://scotch.ics.uci.edu/" /-->
<link href="default.css" rel="stylesheet" type="text/css" />
</head>

<body>

<p>More to come!</p>

<p><a href="manual/">Apache httpd 2.0 manual</a></p>

<p><a href="CA.cert.pem">Trust our CA!</a></p>

<p><img src="apache_pb.gif" alt="Powered by Apache!" /></p>

</body>

</html>
== Running the unit tests ==

ERROR: test(s) failed in test_all

The results of the "scons check" indicate that libgcc cannot be found; however, 
its path is in my LD_LIBRARY_PATH env var

Do I need to set it somewhere else?

Thanks!

Original comment by ptrc...@gmail.com on 3 Mar 2015 at 8:55

GoogleCodeExporter commented 9 years ago
> This isn't a public archive? Could a link to one be provided?

What I mean is: Show us what the scons developers said. But you hinted at that.

Note that your issue seems to be in the execution of python itself. As such 
this is a runtime error on your side, not a libserv error?

Original comment by andreas.stieger@gmx.de on 3 Mar 2015 at 8:59

GoogleCodeExporter commented 9 years ago
https://pairlist4.pair.net/pipermail/scons-users/2015-February/003449.html

Original comment by lieven.govaerts@gmail.com on 3 Mar 2015 at 9:01

GoogleCodeExporter commented 9 years ago
Ah yes! That's the one, thanks!

How do I fix the runtime error? Where do I start looking?

Thx!

Original comment by ptrc...@gmail.com on 3 Mar 2015 at 9:46

GoogleCodeExporter commented 9 years ago
OK, I've gotten past the missing libgcc error by creating a symbolic link in 
/usr/lib to where my libgcc is located.

So now I'm getting a test failed error when I run "scons check"...

scons check
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
/home/local/Python/sparc-solaris2.10/2.7.9/bin/python build/check.py
== Testing test/testcases/chunked-empty.response ==
== Testing test/testcases/chunked-trailers.response ==
this is 1 test.
i am a test.this is a test.
Trailer-Test: f
== Testing test/testcases/chunked.response ==
this is 1 test.
i am a test.this is a test.
== Testing test/testcases/deflate.response ==
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
 <head>
  <title>Test of gzip Content-Encoding</title>
 </head>
 <body>
<h1>This is a test</h1>

<p>This file was created with mod_deflate on the server side.</p>
<pre>curl -i --output gzip.response -H "Accept-Encoding: gzip" 
http://localhost:8080/1.html</pre>
<hr />
<address>Apache</address>
</body></html>
== Testing test/testcases/simple.response ==
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>scotch.ics.uci.edu</title>
<!--base href="http://scotch.ics.uci.edu/" /-->
<link href="default.css" rel="stylesheet" type="text/css" />
</head>

<body>

<p>More to come!</p>

<p><a href="manual/">Apache httpd 2.0 manual</a></p>

<p><a href="CA.cert.pem">Trust our CA!</a></p>

<p><img src="apache_pb.gif" alt="Powered by Apache!" /></p>

</body>

</html>
== Running the unit tests ==
ERROR: test(s) failed in test_all
scons: *** [check] Error 1
scons: building terminated because of errors.

Thx!

Original comment by ptrc...@gmail.com on 5 Mar 2015 at 12:15

GoogleCodeExporter commented 9 years ago
Issue invalid as filed - runtime/ so symlimk issue

Please use the mailing list for your desired level of help, not the issue 
tracker.

Original comment by andreas.stieger@gmx.de on 5 Mar 2015 at 6:18