Opened 19 years ago

Closed 19 years ago

#3568 closed defect (fixed)

octave fails due to gcc34 failure on Tiger

Reported by: stephen.thomas@… Owned by: gwright@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
Port:

Description

sudo port install octave fails. Output below

---> Building gcc34 with target bootstrap-lean Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_lang_gcc34/work/ build" && make bootstrap-lean" returned error 2 Command output: make[2]: Nothing to be done for `all'. make[1]: Nothing to be done for `all'. Bootstrapping the compiler make CC=" stage1/xgcc -Bstage1/ -B/opt/local/powerpc-apple-darwin8.1.0/bin/" CC_FOR_BUILD=" stage1/xgcc -Bstage1/ -B/opt/local/powerpc-apple-darwin8.1.0/bin/" \

STAGE_PREFIX=stage1/ \ ADAFLAGS="" CFLAGS="-g -O2" LDFLAGS="" WARN_CFLAGS="\$(GCC_WARN_CFLAGS)"

STRICT_WARN="-pedantic -Wno-long-long -Wold-style-definition " libdir=/opt/local/lib/gcc-3.4 LANGUAGES="c gcov gcov-dump c++ f77 objc" MAKEINFO="makeinfo --split-size=5000000" MAKEINFOFLAGS="--no-split" MAKEOVERRIDES= OUTPUT_OPTION="-o \$@" \

CFLAGS="-g -O2" WERROR=""

stage1/xgcc -Bstage1/ -B/opt/local/powerpc-apple-darwin8.1.0/bin/ -g -O2 -DIN_GCC -W -Wall - Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wold-style- definition -DHAVE_CONFIG_H -DGENERATOR_FILE -o genmodes \

genmodes.o errors.o ../libiberty/libiberty.a

/usr/bin/ld: warning prebinding disabled because of undefined symbols /usr/bin/ld: Undefined symbols: _fprintf$LDBLStub collect2: ld returned 1 exit status make[2]: * [genmodes] Error 1 make[1]: * [stage2_build] Error 2 make: * [bootstrap-lean] Error 2

Error: The following dependencies failed to build: gcc34 gnuplot gd2 pdflib readline hdf5 teTeX texi2html texinfo

Attachments (3)

Portfile (1.5 KB) - added by gwright@… 19 years ago.
octave portfile to test
Portfile.2 (1.5 KB) - added by gwright@… 19 years ago.
portfile to test, version 2
dpdebug.txt (11.8 KB) - added by stephen.thomas@… 19 years ago.
Output from sudo port -dv install

Download all attachments as: .zip

Change History (15)

comment:1 Changed 19 years ago by gwright@…

Status: newassigned

Please update your DP installation using the 'selfupdate' command and try again. This bug was believed to have been fixed a month or so ago.

Greg

comment:2 Changed 19 years ago by stephen.thomas@…

after selfupdate, new error is as below:

sudo port -v install octave

Unable to execute port: couldn't compile regular expression pattern: quantifier operand invalid

Changed 19 years ago by gwright@…

Attachment: Portfile added

octave portfile to test

comment:3 Changed 19 years ago by stephen.thomas@…

Probably because I'm not doing something right, but after replacing the Portfile ...

sudo port install octave

Portfile changed since last build; discarding previous state. Unable to execute port: couldn't compile regular expression pattern: quantifier operand invalid

comment:4 Changed 19 years ago by gwright@…

Could you run 'sudo port -dv install'? The -dv options produce verbose debug output. I can't reproduce your error, so I'll need more information to fix it.

-Greg

comment:5 Changed 19 years ago by stephen.thomas@…

sudo port -dv install

DEBUG: Changing to port directory: /Users/stephen DEBUG: Requested variant powerpc is not provided by port octave. DEBUG: Requested variant darwin is not provided by port octave. DEBUG: Requested variant macosx is not provided by port octave. DEBUG: Executing variant test provides test DEBUG: Found port in file:///opt/local/var/db/dports/sources/ rsync.rsync.opendarwin.org_dpupdate_dports/math/gnuplot DEBUG: Changing to port directory: /opt/local/var/db/dports/sources/ rsync.rsync.opendarwin.org_dpupdate_dports/math/gnuplot DEBUG: Searching for dependency: gnuplot DEBUG: Didn't find receipt, going to depspec regex for: gnuplot DEBUG: Found port in file:///opt/local/var/db/dports/sources/ rsync.rsync.opendarwin.org_dpupdate_dports/lang/gcc34 DEBUG: Changing to port directory: /opt/local/var/db/dports/sources/ rsync.rsync.opendarwin.org_dpupdate_dports/lang/gcc34 DEBUG: Searching for dependency: gcc34 DEBUG: Didn't find receipt, going to depspec regex for: gcc34 Unable to execute port: couldn't compile regular expression pattern: quantifier operand invalid

Changed 19 years ago by gwright@…

Attachment: Portfile.2 added

portfile to test, version 2

comment:6 Changed 19 years ago by gwright@…

attachments.isobsolete: 01

comment:7 Changed 19 years ago by gwright@…

Owner: changed from darwinports-bugs@… to gwright@…
Status: assignednew

I've made a new version of the portfile ot test. The regexps that seem to be the trouble are replaced with the 'port:' dependency specifier.

Let me know if it works.

Thanks, Greg

Changed 19 years ago by stephen.thomas@…

Attachment: dpdebug.txt added

Output from sudo port -dv install

comment:8 Changed 19 years ago by gwright@…

Status: newassigned

Stephen,

Try this:

sudo port clean gcc34 sudo port -dv install gcc34 > gcc34.log 2>&1 sudo port -dv install octave > octave.log 2>&1

It looks as if the gcc34 port is not cleaning and rebuilding (it should automatically whenever the portfile changes), so you're just hitting the same old failure over and over.

If it doesn't work, send me the log outputs. There may still be a bug in the DP infrastructure.

Best Wishes, Greg

comment:9 Changed 19 years ago by fgrasser@…

Greg,

I ran into (what seems to me) the same problem as Stephen. Carrying out the steps you outlined in comment #10 fixed the problems and octave would install correctly. Here is what the terminal output looked like.

Oh, btw, the log file is rather huge (15 MB) - let me know if you need it and I will try to get it to you somehow. You can catch me on fgrasser at dplanet dot ch.

Felix

* Terminal History Last login: Mon Jun 20 10:30:15 on console Welcome to Darwin! leimac2:~ grasser$ sudo port install octave Password: Unable to execute port: couldn't compile regular expression pattern: quantifier operand invalid leimac2:~ grasser$ sudo port clean gccc34 Password: Port gccc34 not found leimac2:~ grasser$ sudo port clean gcc34 ---> Cleaning gcc34 leimac2:~ grasser$ sudo port -dv install gcc34 > gcc34.log 2>&1 leimac2:~ grasser$ sudo port -dv install octave > octave.log 2>&1 Password: leimac2:~ grasser$ End Terminal History *

(In reply to comment #10)

Stephen,

Try this:

sudo port clean gcc34 sudo port -dv install gcc34 > gcc34.log 2>&1 sudo port -dv install octave > octave.log 2>&1

It looks as if the gcc34 port is not cleaning and rebuilding (it should automatically whenever the portfile changes), so you're just hitting the same old failure over and over.

If it doesn't work, send me the log outputs. There may still be a bug in the DP infrastructure.

Best Wishes, Greg

comment:10 Changed 19 years ago by stephen.thomas@…

Took forever, but that worked. As Felix notes, the log files are absolutely huge, but I can attach them if they're helpful.

Stephen

comment:11 Changed 19 years ago by gwright@…

So everyone is happy and I can close this bug?

I think what you've discovered tells us that we need a new target for the port command, say 'cleanall', which cleans a port _and_ all of its dependencies so you are certain to get a fresh build of everything.

Best Wishes, Greg

comment:12 Changed 19 years ago by gwright@…

Resolution: fixed
Status: assignedclosed

Bug closed. I'll work with the DP team to find the best way to clean up dependencies.

Best Wishes, Greg

Note: See TracTickets for help on using tickets.