Opened 15 years ago

Closed 15 years ago

#20151 closed defect (fixed)

swi-prolog does not search $prefix/lib for libraries

Reported by: jeremyhu (Jeremy Huddleston Sequoia) Owned by: J.Wielemaker@…
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: Cc: pmoura (Paulo Moura)
Port: swi-prolog

Description (last modified by jeremyhu (Jeremy Huddleston Sequoia))

****************
Making SWI-Prolog 5.6.63 for powerpc-darwin9.8.0
To be installed in /opt/local/bin/swipl
Home (libraries) in /opt/local/lib/swipl-5.6.63
****************
No GIT version change
make[2]: Nothing to be done for `all'.
make[2]: Nothing to be done for `all'.
rm -f ../lib/powerpc-darwin9.8.0/libpl.a
ar r ../lib/powerpc-darwin9.8.0/libpl.a pl-atom.o pl-wam.o pl-stream.o pl-error.o pl-arith.o pl-bag.o pl-comp.o pl-rc.o pl-dwim.o pl-ext.o pl-file.o pl-flag.o pl-fmt.o pl-funct.o pl-gc.o pl-glob.o pl-itf.o pl-list.o pl-load.o pl-modul.o pl-op.o pl-os.o pl-prims.o pl-pro.o pl-proc.o pl-prof.o pl-read.o pl-rec.o pl-rl.o pl-setup.o pl-sys.o pl-table.o pl-trace.o pl-util.o pl-wic.o pl-write.o pl-term.o pl-buffer.o pl-thread.o pl-xterm.o pl-feature.o pl-ctype.o pl-beos.o pl-attvar.o pl-gvar.o pl-btree.o pl-utf8.o pl-main.o pl-text.o pl-gmp.o pl-tai.o pl-segstack.o pl-hash.o pl-version.o pl-codetable.o rc/access.o rc/build.o rc/html.o rc/util.o libtai/caltime_utc.o libtai/caltime_tai.o libtai/leapsecs_sub.o libtai/leapsecs_add.o libtai/caldate_fmjd.o libtai/caldate_mjd.o libtai/leapsecs_init.o libtai/leapsecs_read.o libtai/tai_pack.o libtai/tai_unpack.o 
ar: creating archive ../lib/powerpc-darwin9.8.0/libpl.a
ranlib: file: ../lib/powerpc-darwin9.8.0/libpl.a(pl-beos.o) has no symbols
ranlib ../lib/powerpc-darwin9.8.0/libpl.a
ranlib: file: ../lib/powerpc-darwin9.8.0/libpl.a(pl-beos.o) has no symbols
/usr/bin/gcc-4.0 -dynamiclib -current_version 5.6.63 \
                        -install_name /opt/local/lib/swipl-5.6.63/lib/powerpc-darwin9.8.0/libpl.dylib \
                        -O3 -fno-strict-aliasing -o ../lib/powerpc-darwin9.8.0/libpl.dylib \
                        pl-atom.o pl-wam.o pl-stream.o pl-error.o pl-arith.o pl-bag.o pl-comp.o pl-rc.o pl-dwim.o pl-ext.o pl-file.o pl-flag.o pl-fmt.o pl-funct.o pl-gc.o pl-glob.o pl-itf.o pl-list.o pl-load.o pl-modul.o pl-op.o pl-os.o pl-prims.o pl-pro.o pl-proc.o pl-prof.o pl-read.o pl-rec.o pl-rl.o pl-setup.o pl-sys.o pl-table.o pl-trace.o pl-util.o pl-wic.o pl-write.o pl-term.o pl-buffer.o pl-thread.o pl-xterm.o pl-feature.o pl-ctype.o pl-beos.o pl-attvar.o pl-gvar.o pl-btree.o pl-utf8.o pl-main.o pl-text.o pl-gmp.o pl-tai.o pl-segstack.o pl-hash.o pl-version.o pl-codetable.o rc/access.o rc/build.o rc/html.o rc/util.o libtai/caltime_utc.o libtai/caltime_tai.o libtai/leapsecs_sub.o libtai/leapsecs_add.o libtai/caldate_fmjd.o libtai/caldate_mjd.o libtai/leapsecs_init.o libtai/leapsecs_read.o libtai/tai_pack.o libtai/tai_unpack.o  -O3  -lgmp -lreadline -lncursesw -lm -lpthread -ldl  /opt/local/lib/libreadline.dylib
ld: library not found for -lgmp
collect2: ld returned 1 exit status
make[1]: *** [../lib/powerpc-darwin9.8.0/libpl.dylib] Error 1
make: *** [lite] Error 2

(09:10:29 Fri Jul 03 2009 jeremy@yuffie Power Macintosh)
~/src/macports-trunk/dports/lang/swi-prolog/work/pl-5.6.63 $ ls /opt/local/lib/libgmp*
/opt/local/lib/libgmp.3.5.0.dylib  /opt/local/lib/libgmp.a      /opt/local/lib/libgmp.la             /opt/local/lib/libgmpxx.4.dylib  /opt/local/lib/libgmpxx.dylib
/opt/local/lib/libgmp.3.dylib      /opt/local/lib/libgmp.dylib  /opt/local/lib/libgmpxx.4.1.0.dylib  /opt/local/lib/libgmpxx.a        /opt/local/lib/libgmpxx.la

Change History (3)

comment:1 Changed 15 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Description: modified (diff)

comment:2 Changed 15 years ago by jeremyhu (Jeremy Huddleston Sequoia)

It also fails to build parallel:

Loading boot file ...
Loading Prolog startup files
%  messages boot compiled into $messages 0.02 sec, 85,104 bytes
%  toplevel boot compiled into $toplevel 0.00 sec, 40,700 bytes
%  attvar boot compiled into $attvar 0.00 sec, 12,252 bytes
%  bags boot compiled into $bags 0.01 sec, 6,512 bytes
%  apply boot compiled into $apply 0.00 sec, 3,676 bytes
%  writef boot compiled into $writef 0.00 sec, 10,884 bytes
%  history boot compiled into $history 0.00 sec, 13,388 bytes
%  dwim boot compiled into $dwim 0.01 sec, 19,728 bytes
%  parms boot compiled into $parms 0.00 sec, 3,368 bytes
%  autoload boot compiled into $autoload 0.00 sec, 18,184 bytes
%  qlf boot compiled into $qlf 0.00 sec, 4,372 bytes
%  rc boot compiled into $rc 0.00 sec, 3,776 bytes
%  topvars boot compiled into toplevel_variables 0.00 sec, 8,440 bytes
% /opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_lang_swi-prolog/work/pl-5.6.63/boot/load.pl boot compiled 0.05 sec, 287,488 bytes
SWI-Prolog boot files loaded
Boot compilation has created swipl.prc
./pl.sh -x swipl.prc \
			-f none -F none \
			-g make_library_index\(\'../library\'\) \
			-t halt
% Updating index for library /opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_lang_swi-prolog/work/pl-5.6.63/library/
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_lang_swi-prolog/work/pl-5.6.63" && /usr/bin/make -j5 all " returned error 2

comment:3 Changed 15 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.