473,387 Members | 1,512 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Odd build errors

We have a GCC in /usr/rcf that was not built with --disable-shared.
As such, there is a /usr/rcf/lib/libgcc_s.so.

We also have a (preferred) GCC in /afs/rcf/lang/gcc/current that
was built with --disable-shared. As such, there is no
/afs/rcf/lang/gcc/current/lib/libgcc_s.so and binaries built
with this compiler do not link to any shared libgcc_s.

I have the following problem with Python 2.4.2. I also tried
2.4.4. Moving up to 2.5 is not an option.

Problem: Builds fine! Rebuild after dropping in Setup.local
causes some magic new build process that ends up
finding and linking in /usr/rcf/lib/libgcc_s.so !

================================================== =============================
PATH=/afs/rcf/lang/gcc/sun4x_59/4.1.1/bin:/usr/ccs/bin:/usr/bin:/bin:/usr/ucb
# NOTE: No reference to /usr/rcf/bin, therefore NO picking up the bogus
# GCC and its shared libgcc_s.so
================================================== =============================
sun4x_59:cairo../configure --prefix=/afs/rcf/lang/python/sun4x_59/2.4.2
sun4x_59:cairomake
....
================================================== =============================
# after successful build...
sun4x_59:cairoldd python
libresolv.so.2 = /usr/lib/libresolv.so.2
libsocket.so.1 = /usr/lib/libsocket.so.1
libnsl.so.1 = /usr/lib/libnsl.so.1
librt.so.1 = /usr/lib/librt.so.1
libdl.so.1 = /usr/lib/libdl.so.1
libm.so.1 = /usr/lib/libm.so.1
libpthread.so.1 = /usr/lib/libpthread.so.1
libc.so.1 = /usr/lib/libc.so.1
libmp.so.2 = /usr/lib/libmp.so.2
libaio.so.1 = /usr/lib/libaio.so.1
libmd5.so.1 = /usr/lib/libmd5.so.1
libthread.so.1 = /usr/lib/libthread.so.1
/usr/platform/SUNW,Sun-Fire-280R/lib/libc_psr.so.1
/usr/platform/SUNW,Sun-Fire-280R/lib/libmd5_psr.so.1
sun4x_59:cairo>
#
# Ta daaa! No libgcc_s.so linked in. GOOD.
#
# Now we drop our Setup.local in place for Solaris 9.
#
sun4x_59:cairocp ~/Python242.sun4x_59.Setup.local Modules/Setup.local
================================================== =============================
sun4x_59:cairomake
....
c++ -pthread -o python \
Modules/python.o \
libpython2.4.a -lresolv -lsocket -lnsl -lrt -ldl
-L/afs/rcf/lang/tcl/@sys/8.2.3/lib -R/afs/rcf/lang/tcl/@sys/8.2.3/lib
-L/afs/rcf/lang/tk/@sys/8.2.3/lib -R/afs/rcf/lang/tk/@sys/8.2.3/lib
-ltk8.2 -ltcl8.2 -L/usr/openwin/lib -R/usr/openwin/lib -lX11
-R/usr/rcf/lib -L/usr/rcf/lib -lreadline -ltermcap -L/usr/rcf/lib
-R/usr/rcf/lib -lssl -lcrypto -L/usr/rcf/lib -R/usr/rcf/lib -lgdbm
-L/usr/rcf/lib -R/usr/rcf/lib -lz -lm
ld: warning: global symbol `_GLOBAL_OFFSET_TABLE_' has non-global binding:
(file /usr/rcf/lib/libstdc++.so value=LOCL);
ld: warning: global symbol `_GLOBAL_OFFSET_TABLE_' has non-global binding:
(file /usr/rcf/lib/libgcc_s.so.1 value=LOCL);
case $MAKEFLAGS in \
*-s*) CC='gcc -pthread' LDSHARED='gcc -pthread -shared' OPT='-DNDEBUG
-g -O3 -Wall -Wstrict-prototypes' ./python -E ../setup.py -q build;; \
*) CC='gcc -pthread' LDSHARED='gcc -pthread -shared' OPT='-DNDEBUG -g
-O3 -Wall -Wstrict-prototypes' ./python -E ../setup.py build;; \
esac
ld.so.1: python: fatal: libgcc_s.so.1: open failed: No such file or
directory
Killed
make: *** [sharedmods] Error 137
sun4x_59:cairoldd python
libresolv.so.2 = /usr/lib/libresolv.so.2
libsocket.so.1 = /usr/lib/libsocket.so.1
libnsl.so.1 = /usr/lib/libnsl.so.1
librt.so.1 = /usr/lib/librt.so.1
libdl.so.1 = /usr/lib/libdl.so.1
libX11.so.4 = /usr/openwin/lib/libX11.so.4
libcurses.so.1 = /usr/lib/libcurses.so.1
libgdbm.so.2 = /usr/rcf/lib/libgdbm.so.2
libstdc++.so.5 = /usr/rcf/lib/libstdc++.so.5
libm.so.1 = /usr/lib/libm.so.1
libpthread.so.1 = /usr/lib/libpthread.so.1
libc.so.1 = /usr/lib/libc.so.1
libmp.so.2 = /usr/lib/libmp.so.2
libaio.so.1 = /usr/lib/libaio.so.1
libmd5.so.1 = /usr/lib/libmd5.so.1
libXext.so.0 = /usr/openwin/lib/libXext.so.0
libgcc_s.so.1 = (file not found) # NOOOOOO
libthread.so.1 = /usr/lib/libthread.so.1
/usr/platform/SUNW,Sun-Fire-280R/lib/libc_psr.so.1
/usr/platform/SUNW,Sun-Fire-280R/lib/libmd5_psr.so.1
sun4x_59:cairo>

Oct 30 '06 #1
0 1119

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: AIM | last post by:
Error in msvc in building inheritance.obj to build hello.pyd Hello, I am trying to build the boost 1.31.0 sample extension hello.cpp. I can not compile the file inheritance.cpp because the two...
1
by: John Tighe | last post by:
Changing the max or min size of a form can be in code, but if I do that then it causes build errors in my application. The build error is: Expression is a value and therefore cannot be the target...
15
by: cody | last post by:
We have a huge project, the solutuion spans 50 projects growing. Everytime I want to start the project I have to wait nearly over 1 minute for the compiler to complete building. This is...
10
by: Douglas Buchanan | last post by:
I am using the following code instead of a very lengthly select case statement. (I have a lot of lookup tables in a settings form that are selected from a ListBox. The data adapters are given a...
0
by: Igor | last post by:
Hi all! As many of you, I have a big VB.NET solution and quite often get bogus build errors out of the blue. This isn't declared, that is not a property of some shit and so on... It's very...
0
by: pcgxk | last post by:
Due to some bugs in .NET SP1 which we are currently review with MS under separate cover, I am having to regress the patching levels of several of my desktops to rebuild and retest several versions...
5
by: David++ | last post by:
Hi there, I have built a DLL in Visual C++ 6. When I build the DLL it builds fine for the debug version of the DLL (and this DLL works fine), however, I seem unable to build a Release version of...
5
by: Jon | last post by:
I am constantly getting reports in my task list like these: * 'someObjectName" is not a member of 'someOtherObjectName' * Handles clause requires a WithEvents variable. * Name 'someName' is not...
2
by: Lisa Calla | last post by:
My aspnet web was working perfectly fine, then I added a second datalist to a page. The datalist can be formatted in the designer and everything looks fine. In the codefile, I can see the...
1
by: Proteus | last post by:
Hi, I am using ASP.NET 2.0 with VS.NET 2005. Recently when I build a web project I am getting a lot of failed builds. But no build errors are displyed. Then I look for ages and manually find the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.