Opened 19 years ago
Closed 18 years ago
#6689 closed defect (invalid)
DarwinPorts emacs, sdl, ... fail to build on MacOS 10.4.4
Reported by: | OpenDarwin@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | High | Milestone: | |
Component: | base | Version: | 1.0 |
Keywords: | Cc: | olegb@…, markd@… | |
Port: |
Description
DarwinPorts items "emacs" and "sdl" but not "simh" have this bug: They fail to build because configure mistakenly indicates gcc-4.0 on a system that only goes up to gcc-3.3 and when they explicitly specify gcc-4.0 they fail with confusing messages like this:
# port install emacs ---> Configuring emacs Error: Target com.apple.configure returned: configure failure: shell command "cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_editors_emacs/work/emacs-21.4" && LDFLAGS="-L/opt/local/lib" CFLAGS="-I/opt/local/include" CPPFLAGS="-I/opt/local/include" CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0 ./configure --prefix=/opt/local --without-x --without-carbon" returned error 1 Command output: loading cache ./config.cache checking host system type... powerpc-apple-darwin8.4.0 checking for gcc... /usr/bin/gcc-4.0 checking whether the C compiler (/usr/bin/gcc-4.0 -I/opt/local/include -L/opt/local/lib) works... no configure: error: installation or configuration problem: C compiler cannot create executables.
Error: /opt/local/bin/port: Status 1 encountered during processing.
Here is a workaround for emacs:
# port install emacs # cd /opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_editors_emacs/work/emacs-21.4/ # make distclean # ./configure # make install # emacs Illegal instruction (core dumped)
Okay, so it's not a great workaround but it is better than before.
On the other hand, certain packages install without a hitch, like this:
# port install simh ---> Fetching simh ---> Attempting to fetch simhv35-1.zip from http://simh.trailing-edge.com/sources/ ---> Verifying checksum(s) for simh ---> Extracting simh ---> Configuring simh ---> Building simh with target all ---> Staging simh into destroot ---> Packaging tgz archive for simh v35-1_0 ---> Installing simh v35-1_0 ---> Activating simh v35-1_0 ---> Cleaning simh #
Change History (16)
comment:1 Changed 19 years ago by blb@…
comment:2 Changed 19 years ago by olegb@…
Cc: | olegb@… added |
---|
To second Bryan - this shouldn't be a problem on darwinbased systems.
Please try to convince us why we shouldnt close this bug with WONTFIX/INVALID/WORKSFORME?
comment:3 Changed 19 years ago by OpenDarwin@…
Why do my replies to comments #1 and #2 not appear here?
The first reply bounced so I tried DarwinPorts Bugs <DarwinPorts-Bugs@…> which did not bounce, is this incorrect?
Must I re-send the information I already mailed by pasting it into this web form?
comment:4 Changed 19 years ago by OpenDarwin@…
Date: Tue, 24 Jan 2006 14:07:40 -0500 (EST)From: Devon Sean McCullough <OpenDarwin@Jovi.Net> To: DarwinPorts Bugs <DarwinPorts-Bugs@…> In-reply-to: <20060124093130.A5DA026987F@…>
(bugzilla-daemon@…)
Subject: Re: [Bug 6689] DarwinPorts emacs, sdl, ... fail to build on MacOS 10.4.4
If it requires GCC 4 it should either
(A) say so
or
(B) install GCC 4 like any other dependency
but it does neither, which is a bug. Based on my guess that GCC 4 might possibly help, I installed the latest XCODE including gcc-4.0 but emacs, sdl, etc. still fail to install with the exact same ./configure crash. Manually downloading and building emacs from gnu.org works fine in -nw mode, I'll try building /Applications/Emacs.app later. Manually downloading and building libSDL appears to work better than the "DarwinPort" installer did but I still get SDLmain not found errors which I am still tracking down, maybe a mere makefile or -I path error.
comment:5 Changed 19 years ago by OpenDarwin@…
(In reply to comment #2)
To second Bryan - this shouldn't be a problem on darwinbased systems.
Please try to convince us why we shouldnt close this bug with WONTFIX/INVALID/WORKSFORME?
If it requires GCC 4 it should either
(A) say so
or
(B) install GCC 4 like any other dependency
but it does neither, which is a bug.
Based on my guess that GCC 4 might possibly help, I installed the latest XCODE including gcc-4.0 but emacs, sdl, etc. still fail to install with the exact same ./configure crash.
comment:6 Changed 19 years ago by blb@…
(In reply to comment #3)
Why do my replies to comments #1 and #2 not appear here?
The first reply bounced so I tried DarwinPorts Bugs <DarwinPorts-Bugs@…>
which did not
bounce, is this incorrect?
I'm not sure if there's any sort of bridging from email going on...
(In reply to comment #5)
If it requires GCC 4 it should either
(A) say so
This may be a good idea, the "what's needed" list on the guide (or wherever it may be) should state gcc4 and gcc3 should both be installed with Xcode.
comment:7 Changed 19 years ago by toby@…
severity: | blocker → normal |
---|
comment:8 Changed 19 years ago by olegb@…
Resolution: | → wontfix |
---|---|
Status: | new → closed |
http://darwinports.org/getdp/
States that you must have Xcode installed - a default install of Xcode installs gcc4.
I really think that suffies.
comment:9 Changed 19 years ago by OpenDarwin@…
Resolution: | wontfix |
---|---|
Status: | closed → reopened |
Two unresolved troubles:
(1) ./configure crashes in MacOS 1.4.4 with the latest Xcode and gcc4. (2) If Xcode is missing or outdated, a user friendly message should say so.
Merely adding text to the instructions is not good enough.
comment:10 Changed 18 years ago by markd@…
Cc: | markd@… added |
---|---|
Resolution: | → wontfix |
Status: | reopened → closed |
It's been awhile and I don't see anything to fix so I'm closing this one.
comment:11 Changed 18 years ago by OpenDarwin@…
Resolution: | wontfix |
---|---|
Status: | closed → reopened |
Sorry you're having trouble replicating these very real bugs but "LA-LA-LA I CAN'T HEAR YOU" is a poor policy.
comment:12 Changed 18 years ago by danielluke (Daniel J. Luke)
(In reply to comment #10)
Sorry you're having trouble replicating these very real bugs but "LA-LA-LA I CAN'T HEAR YOU" is a poor policy.
So you have a patch you're offering to fix the issue, then?
comment:13 Changed 18 years ago by markd@…
(In reply to comment #11)
(In reply to comment #10)
Sorry you're having trouble replicating these very real bugs but "LA-LA-LA I CAN'T HEAR YOU" is a poor policy.
Having a rambling and unfocused bug is poor policy. Please identify clearly the problem as you experience it now. If it is (1), how is configure breaking and on which port? And if it is (2) you are interested in that would be an RFC, though I can't imagine it ever getting done. But either way if you want even the most remote chance of having anyone ever pay attention to this now, you need to state the problem clearly as you see it now.
comment:14 Changed 18 years ago by markd@…
Please tell us what Xcode you are using, make sure the command gcc_select reports gcc 4.01, and then attach a log of the current errors you experience installing emacs. There are outstanding bugs on emacs for Mac Intel.
comment:16 Changed 18 years ago by markd@…
Resolution: | → invalid |
---|---|
Status: | reopened → closed |
Need specfic information to keep this.
What do you mean by this bit:
(In reply to comment #0)
Are you saying you don't have gcc4 installed? What version of Xcode? Some ports (emacs and libsdl, as mentioned in this case) specifically use gcc4 to do a build so it is a necessity.