Opened 14 years ago

Closed 14 years ago

#25350 closed defect (fixed)

ncursesw universal build x86_64 fails on 32 bit platforms

Reported by: mcl_guard-netmail@… Owned by: jmroot (Joshua Root)
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: Cc:
Port: ncursesw

Description

The port file for ncursesw assumes a 64 bit platform when determining what archs require cross compiling turned on. This results in an error trying build the universal variant on a 32 bit machine.

See output:

--->  Computing dependencies for ncursesw.
--->  Fetching ncursesw
--->  Verifying checksum(s) for ncursesw
--->  Checksumming ncurses-5.7.tar.gz
--->  Extracting ncursesw
--->  Extracting ncurses-5.7.tar.gz
--->  Applying patches to ncursesw
--->  Applying /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/ncursesw/files/patch-configure.diff
patching file configure
--->  Configuring ncursesw
--->  Configuring ncursesw for architecture x86_64
checking for egrep... grep -E
Configuring NCURSES 5.7 ABI 5 (Sat Jun 19 14:36:14 EDT 2010)
checking build system type... i386-apple-darwin10.3.0
checking host system type... i386-apple-darwin10.3.0
checking target system type... i386-apple-darwin10.3.0
Configuring for darwin10.3.0
checking for prefix... /opt/local
checking for gcc... /usr/bin/gcc-4.2 -arch x86_64
checking for C compiler default output... a.out
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ncursesw/work/ncurses-5.7-x86_64" && ./configure --prefix=/opt/local --disable-dependency-tracking --enable-widec --disable-rpath --with-shared --without-debug --without-ada --enable-sigwinch --mandir=/opt/local/share/man --with-manpage-format=normal --disable-dependency-tracking  " returned error 1
Error: Target org.macports.configure returned: configure failure: shell command failed
Warning: the following items did not execute (for ncursesw): org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install
Log for ncursesw is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ncursesw/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Change History (6)

comment:1 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Why do you want to build for 64-bit on a 32-bit machine?

comment:2 Changed 14 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to imajes@…

Please remember to cc the maintainer.

This is one of the drawbacks of using muniversal.

comment:3 Changed 14 years ago by mcl_guard-netmail@…

The idea here is to be able link apps with with both 32bit and 64 bit code against the libraries. I am trying to build the universal variant for both 64 and 32 bit. Yes just 64 bit would not make much sense.

comment:4 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from imajes@… to macports-tickets@…

James Cox (imajes) retires as MacPorts maintainer (see macports-mgr archives)

comment:5 Changed 14 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to jmr@…
Status: newassigned

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

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