Opened 17 years ago

Closed 17 years ago

Last modified 15 years ago

#11101 closed defect (fixed)

NTL does not compile

Reported by: wlynch@… Owned by: macports-tickets@…
Priority: High Milestone:
Component: ports Version:
Keywords: Cc: ralf@…, wlynch@…,markd@…
Port:

Description

william-lynchs-computer:~ wlynch$ sudo port install ntl ---> Fetching ntl ---> Attempting to fetch ntl-5.4.tar.gz from http://shoup.net/ntl/ ---> Verifying checksum(s) for ntl ---> Extracting ntl ---> Configuring ntl ---> Building ntl with target all Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_math_ntl/work/ntl-5.4/src" && make all CC=/usr/bin/gcc-3.3 CPP=/usr/bin/cpp-3.3 CXX=/usr/bin/g++-3.3" returned error 2 Command output: make setup1 /usr/bin/gcc-3.3 -I../include -I. -O2 -c MakeDescAux.c gcc-3.3: installation problem, cannot exec `cc1': No such file or directory make[1]: * [setup1] Error 1 make: * [all] Error 2

Error: Status 1 encountered during processing.

Attachments (1)

ntl.log (880 bytes) - added by wlynch@… 17 years ago.
NTL Compilation errors

Download all attachments as: .zip

Change History (9)

comment:1 Changed 17 years ago by wlynch@…

Sigh. I hate this formatting. the error is attached. Basically, ntl won't compile because it can't find cc1.

Changed 17 years ago by wlynch@…

Attachment: ntl.log added

NTL Compilation errors

comment:2 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ralf@… wlynch@… added

ntl 5.4 builds just fine for me on my PowerPC G4 Mac. But it looks like the ntl port is written to use gcc 3.3 instead of gcc 4.0 which is standard in Mac OS X 10.4.x. From the output you provided, I cannot tell what processor architecture you're using. If you are on PowerPC, you will need to install gcc 3.3; it's an option in the Xcode installer. If you're on Intel, gcc 3.3 does not work on Intel Macs. The port should be updated to not require gcc 3.3, if possible. The maintainer will have to comment on whether that is possible.

comment:3 Changed 17 years ago by pipping@…

Milestone: Port Bugs

comment:4 Changed 17 years ago by wlynch@…

I am on intel.

comment:5 Changed 17 years ago by markd@…

Cc: markd@… added

Comment out or delete the lines below in the portfile and try installing it. If you have your editor variable set (http://trac.macosforge.org/projects/macports/wiki/InstallingMacPorts) just type 'sudo port ed ntl' and edit the lines out. It installed fine for me on Intel. It looks like the other package managers aren't patching to use gcc3 so I suppose it must work.

platform darwin 8 {

build.args-append CC=/usr/bin/gcc-3.3 CPP=/usr/bin/cpp-3.3 CXX=/usr/bin/g++-3.3

}

comment:6 Changed 17 years ago by ralf@…

Let me explain: The dependency on gcc-3.3 resulted from Apple shipping a broken compiler with MacOS X 10.4.0. This compiler was not able to build NTL but instead bailed out with an internal error. Fast forward to 2007, my Powerbook now has a gcc-4.0.1 [gcc version 4.0.1 (Apple Computer, Inc. build 5250)] as system compiler under OSX 10.4.9, which is able to build NTL just fine. I have also tested the build on my Core Duo iMac (also running OSX 10.4.9) using the system-supplied gcc-4.x, no problem there either. This means that I don't see any problem with removing the "platform darwin 8" clause completely; unless MacPorts is supposed to support "obsoleted" patchlevels of OSX. We might want to introduce a check for the broken gcc and warn the user accordingly, however.

comment:7 Changed 17 years ago by markd@…

Resolution: fixed
Status: newclosed

Ok. I removed the platform statement that forced gcc3 for 10.4. We generally don't worry too much about earlier releases that can be upgraded for free. Thanks!

comment:8 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.