Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build failure #2515

Closed
vicuna opened this issue Apr 27, 2004 · 3 comments
Closed

build failure #2515

vicuna opened this issue Apr 27, 2004 · 3 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Apr 27, 2004

Original bug ID: 2515
Reporter: administrator
Status: closed
Resolution: not a bug
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: John Skaller
Version: 3.07p2
OS: Solaris SPARC
Submission from: ppp119-113.lns1.syd2.internode.on.net (150.101.119.113)

Builing on Sourceforge compile farm machine N, Sun Solaris SPARC

Using command: make world.opt

bash-2.05$ gcc --version
gcc (GCC) 3.3.2

Configure summary:

Directories where Objective Caml will be installed:
binaries.................. /usr/local/bin
standard library.......... /usr/local/lib/ocaml
manual pages.............. /usr/local/man (with extension .1)
Configuration for the bytecode compiler:
C compiler used........... gcc
options for compiling..... -fno-defer-pop -Wall -Wno-unused
-D_FILE_OFFSET_BITS=64 -D_REENTRANT
options for linking....... -lnsl -lsocket -lm -ldl -lcurses -lpthread
-lposix4
shared libraries are supported
options for compiling..... -fPIC -fno-defer-pop -Wall -Wno-unused
-D_FILE_OFFSET_BITS=64 -D_REENTRANT
command for building...... gcc -shared -o lib.so -R/a/path objs
Configuration for the native-code compiler:
hardware architecture..... sparc
OS variant................ solaris
C compiler used........... gcc
options for compiling..... -Wall -Wno-unused -D_FILE_OFFSET_BITS=64
-D_REENTRANT
options for linking....... -lnsl -lsocket -lm
assembler ................ $(AS)
preprocessed assembler ... gcc -c -DSYS_$(SYSTEM)
profiling with gprof ..... supported
ocamlopt -pack ........... supported
Source-level replay debugger: supported
Additional libraries supported:
unix str num dynlink bigarray systhreads threads graph dbm
Configuration for the "num" library:
target architecture ...... supersparc-solaris
Configuration for the "graph" library:
options for compiling ....
options for linking ...... -lX11
The "labltk" library: not found

bash-2.05$ uname -a
SunOS sparc-solaris2 5.9 Generic_112233-03 sun4u sparc SUNW,Ultra-60

Tail of the build output:

../ocamlcomp.sh -c -warn-error A -I ../utils -I ../parsing -I ../typing -I
../bytecomp -I ../toplevel -I ../otherlibs/unix -I ../otherlibs/dynlink main.ml
../ocamlcomp.sh -linkall -I ../otherlibs/unix -o ocamldebug -linkall
../otherlibs/unix/unix.cma ../utils/misc.cmo ../utils/config.cmo
../utils/tbl.cmo ../utils/clflags.cmo ../utils/consistbl.cmo
../parsing/longident.cmo ../typing/ident.cmo ../typing/path.cmo
../typing/types.cmo ../typing/btype.cmo ../typing/primitive.cmo
../typing/typedtree.cmo ../typing/subst.cmo ../typing/predef.cmo
../typing/datarepr.cmo ../typing/env.cmo ../typing/oprint.cmo
../typing/ctype.cmo ../typing/printtyp.cmo ../typing/mtype.cmo
../bytecomp/runtimedef.cmo ../bytecomp/bytesections.cmo ../bytecomp/dll.cmo
../bytecomp/symtable.cmo ../bytecomp/opcodes.cmo ../bytecomp/meta.cmo
../toplevel/genprintval.cmo ../otherlibs/dynlink/dynlink.cmo int64ops.cmo
primitives.cmo unix_tools.cmo debugger_config.cmo envaux.cmo parameters.cmo
lexer.cmo input_handling.cmo debugcom.cmo exec.cmo source.cmo checkpoints.cmo
symbols.cmo events.cmo breakpoints.cmo trap_barrier.cmo history.cmo
program_loading.cmo printval.cmo show_source.cmo time_travel.cmo
program_management.cmo frames.cmo eval.cmo show_information.cmo loadprinter.cmo
parser.cmo command_line.cmo main.cmo
Error on dynamically loaded library: ld.so.1: ../ocamlc.opt: fatal:
libgcc_s.so.1: open failed: No such file or directory
make[1]: *** [ocamldebug] Error 2
make[1]: Leaving directory `/home/users/s/sk/skaller/ocaml-3.07/debugger'
make: *** [ocamldebugger] Error 2

@vicuna
Copy link
Author

vicuna commented May 9, 2004

Comment author: administrator

Builing on Sourceforge compile farm machine N, Sun Solaris SPARC
Using command: make world.opt
Error on dynamically loaded library: ld.so.1: ../ocamlc.opt: fatal:
libgcc_s.so.1: open failed: No such file or directory

This looks like a problem in the way gcc was installed on the
machine. Probably, libgcc_s.so was installed in a directory that is
not in the default search path for ld.so. See:

http://www.experts-exchange.com/Operating_Systems/Solaris/Q_20970486.html

Let me know if that doesn't explain the problem.

  • Xavier Leroy

@vicuna
Copy link
Author

vicuna commented May 9, 2004

Comment author: administrator

Probably due to a gcc installation problem, see follow-up.

@vicuna vicuna closed this as completed May 9, 2004
@vicuna
Copy link
Author

vicuna commented May 10, 2004

Comment author: administrator

On Sun, 2004-05-09 at 20:46, Xavier Leroy wrote:

Builing on Sourceforge compile farm machine N, Sun Solaris SPARC
Using command: make world.opt
Error on dynamically loaded library: ld.so.1: ../ocamlc.opt: fatal:
libgcc_s.so.1: open failed: No such file or directory

This looks like a problem in the way gcc was installed on the
machine. Probably, libgcc_s.so was installed in a directory that is
not in the default search path for ld.so. See:

You're right, I didn't set LD_LIBRARY_PATH:
after I did it built fine. Sorry!

That ld.so there isn't even the GNU one.
Very confusing: typing ld on the command
line invokes the GNU ld, but gcc is hard
coded to invoke the Sun ld..

--
John Skaller, mailto:skaller@users.sf.net
voice: 061-2-9660-0850,
snail: PO BOX 401 Glebe NSW 2037 Australia
Checkout the Felix programming language http://felix.sf.net

@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant