Opened 15 years ago

Closed 15 years ago

#21260 closed defect (duplicate)

swi-prolog fails because of ncurses (missing required architecture x86_64 in file)

Reported by: herbert.fischer@… Owned by: J.Wielemaker@…
Priority: Normal Milestone:
Component: ports Version: 1.8.0
Keywords: Cc: pmoura (Paulo Moura), herbert.fischer+macports@…, jvliwanag@…, marco.comini@…, cvanweelden@…, dominick.saputo@…, nils.reiter@…, macports@…, arnsholt@…, J.Liem@…
Port: swi-prolog

Description (last modified by tobypeterson)

Build of swi-prolog fails because ncurses (build at the same time) does not support x86_64.

_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_swi-prolog/work/destroot/opt/local/lib/swipl-5.6.63/doc/Manual; fi; \
		  for f in ../man/Manual/*.html ../man/Manual/*.gif; do \
		    /usr/bin/install -c -m 644 $f /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_swi-prolog/work/destroot/opt/local/lib/swipl-5.6.63/doc/Manual; \
		  done; \
		fi
cd packages && /usr/bin/make install
for p in clib cpp odbc table xpce sgml sgml/RDF semweb http chr clpqr nlp ssl pldoc plunit jpl zlib; do \
	    if [ -r $p/Makefile ]; then ( cd $p && make install ) || exit 1; fi; \
        done
../plld.sh -O2 -fno-strict-aliasing -Wall -fpic -I. -Imaildrop/rfc2045 -Imaildrop/rfc822 -DHAVE_CONFIG_H   -c -o random.o random.c
../plld.sh -shared -o random.dylib random.o
ld: in /usr/lib/libncurses.5.dylib, missing required architecture x86_64 in file
collect2: ld returned 1 exit status
/usr/bin/gcc-4.2 returned code 256
*** /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_swi-prolog/work/pl-5.6.63/src/../src/plld exit status 1
make[2]: *** [random.dylib] Error 1
make[1]: *** [install] Error 1
make: *** [install-world] Error 2

Error: Status 1 encountered during processing.

Attachments (2)

log_21260.txt (184.2 KB) - added by blb@… 15 years ago.
error log
debug2.txt (173.8 KB) - added by cvanweelden@… 15 years ago.
Same problem, slightly different output.

Download all attachments as: .zip

Change History (23)

comment:1 Changed 15 years ago by herbert.fischer@…

Forgot to mention. It's on Snow Leopard.

comment:2 Changed 15 years ago by tobypeterson

Description: modified (diff)

comment:3 Changed 15 years ago by tobypeterson

It shouldn't be linking against that library under any circumstances.

comment:4 Changed 15 years ago by herbert.fischer@…

Managed to reinstall ncurses using +universal and swi-prolog build passed from this point. However, it stops on this new error: (see attachment)

comment:5 Changed 15 years ago by tobypeterson

comment:6 Changed 15 years ago by jmroot (Joshua Root)

Cc: pmoura@… added
Owner: changed from macports-tickets@… to J.Wielemaker@…
Port: swi-prolog added

Changed 15 years ago by blb@…

Attachment: log_21260.txt added

error log

comment:7 Changed 15 years ago by blb@…

(Comment converted to attachment)

comment:8 Changed 15 years ago by tobypeterson

Looks like the same error to me - it's still trying to link against a library in /usr/lib

comment:9 Changed 15 years ago by jvliwanag@…

Cc: jvliwanag@… added

Cc Me!

comment:10 in reply to:  4 Changed 15 years ago by guiguan@…

Replying to herbert.fischer@…:

Managed to reinstall ncurses using +universal and swi-prolog build passed from this point. However, it stops on this new error: (see attachment)

It seems the building process stopped at the same point for me even reinstalled ncurses with +universal

comment:11 Changed 15 years ago by marco.comini@…

Cc: marco.comini@… added

Cc Me!

comment:12 Changed 15 years ago by cvanweelden@…

Cc: cvanweelden@… added

Cc Me!

comment:13 in reply to:  4 Changed 15 years ago by cvanweelden@…

Replying to herbert.fischer@…:

Managed to reinstall ncurses using +universal and swi-prolog build passed from this point. However, it stops on this new error: (see attachment)

Seems I have the same problem. Also tried reinstalling ncurses using +universal.

Changed 15 years ago by cvanweelden@…

Attachment: debug2.txt added

Same problem, slightly different output.

comment:14 Changed 15 years ago by dominick.saputo@…

Cc: dominick.saputo@… added

Cc Me!

comment:15 Changed 15 years ago by nils.reiter@…

Cc: nils.reiter@… added

Cc Me!

comment:16 Changed 15 years ago by macports@…

Cc: macports@… added

Cc Me!

comment:17 Changed 15 years ago by arnsholt@…

Cc: arnsholt@… added

Cc Me!

comment:18 in reply to:  description Changed 15 years ago by arnsholt@…

I've encountered the same problem when trying to install on Snow Leopard (10.6.2 to be precise). To me, it looks like the problem is that the linker starts looking for candidates in /usr/lib, rather than /opt/local/lib and that /usr/lib/libncurses.5.dylib for some bizarre reason only has i386 and ppc versions, while libncurses.5.4.dylib (which is linked to by libncurses.dylib) has x86_64 as well.

A quick fix that worked for me was to install swi-prolog-lite instead. Making libncurses.5.dylib link to libncurses.5.4.dylib should also fix it (I think that's the way it's supposed to be anyways), but I'd rather not muck around too much in my /usr/lib. Another option would be to get the linker to use /opt/local/lib/libncurses.5.dylib instead, which is x86_64.

comment:19 Changed 15 years ago by J.Liem@…

Cc: J.Liem@… added

Cc Me!

comment:20 Changed 15 years ago by J.Liem@…

I think this is a duplicate of #21977, which also provides a patch to the Portfile which resolves this issue.

comment:21 Changed 15 years ago by mf2k (Frank Schima)

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