[m-dev.] [reuse] diff: fix gcc problems

Peter Ross peter.ross at miscrit.be
Wed Feb 28 23:26:12 AEDT 2001


On Wed, Feb 28, 2001 at 03:49:14AM +1100, Fergus Henderson wrote:
> On 27-Feb-2001, Peter Ross <peter.ross at miscrit.be> wrote:
> > > Which version of gcc did you have a problem with?
> > > What was the problem symptom?
> > > 
> > > It seems to work fine for me using gcc-2.7.2.3 on i586-pc-linux-gnu.
> >
> > gcc-2.7.2.3 on a i686-pc-linux-gnu (Debian 2.1) and the symptom was at
> > link time __builtin_setjmp and __builtin_longjmp were undefined symbols.
> 
> Referenced from which object file?
> What compilation options was that object file compiled with?
> 
> > Were you compiling in the hlc.gc grade?
> 
> Yes.
> 
> I'm using SuSE Linux 6.3.
> 

Here is the output of mmake in the library directory in grade hlc.gc
using rotd-2001-02-06

MERCURY_INT_DIR=. MERCURY_ALL_C_INCL_DIRS=" -I../trace -I../runtime -I../boehm_gc -I../boehm_gc/include " /cw/prolog/mercury/mercury-rotd.2001.02.06.linux/bin/mmc --no-unboxed-float --conf-low-tag-bits 2 --bits-per-word 32 --bytes-per-word 4 --make-short-interface --transitive-intermodule-optimization --enable-termination --no-infer-all --halt-at-warn    term_io.m
MERCURY_INT_DIR=. MERCURY_ALL_C_INCL_DIRS=" -I../trace -I../runtime -I../boehm_gc -I../boehm_gc/include " /cw/prolog/mercury/mercury-rotd.2001.02.06.linux/bin/mmc --no-unboxed-float --conf-low-tag-bits 2 --bits-per-word 32 --bytes-per-word 4 --make-interface --transitive-intermodule-optimization --enable-termination --no-infer-all --halt-at-warn    term_io.m
MERCURY_INT_DIR=. MERCURY_ALL_C_INCL_DIRS=" -I../trace -I../runtime -I../boehm_gc -I../boehm_gc/include " /cw/prolog/mercury/mercury-rotd.2001.02.06.linux/bin/mmc --no-unboxed-float --conf-low-tag-bits 2 --bits-per-word 32 --bytes-per-word 4 --make-opt-int --transitive-intermodule-optimization --enable-termination --no-infer-all --halt-at-warn    term_io.m
MERCURY_INT_DIR=. MERCURY_ALL_C_INCL_DIRS=" -I../trace -I../runtime -I../boehm_gc -I../boehm_gc/include " /cw/prolog/mercury/mercury-rotd.2001.02.06.linux/bin/mmc --no-unboxed-float --conf-low-tag-bits 2 --bits-per-word 32 --bytes-per-word 4 --make-trans-opt --transitive-intermodule-optimization --enable-termination --no-infer-all --halt-at-warn    term_io.m
rm -f term_io.c
MERCURY_INT_DIR=. MERCURY_ALL_C_INCL_DIRS=" -I../trace -I../runtime -I../boehm_gc -I../boehm_gc/include " /cw/prolog/mercury/mercury-rotd.2001.02.06.linux/bin/mmc --no-unboxed-float --conf-low-tag-bits 2 --bits-per-word 32 --bytes-per-word 4 --compile-to-c --trace minimum --transitive-intermodule-optimization  --grade hlc.gc     --no-infer-all --halt-at-warn    term_io.m > term_io.err 2>&1
MERCURY_INT_DIR=. MERCURY_ALL_C_INCL_DIRS=" -I../trace -I../runtime -I../boehm_gc -I../boehm_gc/include " ../scripts/mgnuc --grade hlc.gc             -c term_io.c -o term_io.o
term_io.m: In function `mercury__term_io__quote_atom_4_p_0_1':
term_io.m:451: warning: implicit declaration of function `__builtin_longjmp'
term_io.m: In function `mercury__term_io__quote_atom_4_p_0_4':
term_io.m:451: warning: implicit declaration of function `__builtin_setjmp'
rm -f libmer_std.a
ar cr   \
	libmer_std.a \
	array.o assoc_list.o bag.o benchmarking.o bimap.o bintree.o bintree_set.o bitmap.o bool.o bt_array.o builtin.o char.o counter.o dir.o enum.o eqvclass.o exception.o float.o gc.o getopt.o graph.o group.o hash_table.o int.o integer.o io.o lexer.o library.o list.o map.o math.o multi_map.o ops.o parser.o pprint.o pqueue.o private_builtin.o prolog.o queue.o random.o rational.o rbtree.o relation.o require.o set.o set_bbbtree.o set_ordlist.o set_unordlist.o sparse_bitset.o stack.o std_util.o store.o string.o table_builtin.o term.o term_io.o time.o tree234.o varset.o
ranlib libmer_std.a
MERCURY_INT_DIR=. MERCURY_ALL_C_INCL_DIRS=" -I../trace -I../runtime -I../boehm_gc -I../boehm_gc/include " ../scripts/mgnuc --grade hlc.gc             -fpic -DPIC \
	-c term_io.c -o term_io.pic_o
term_io.m: In function `mercury__term_io__quote_atom_4_p_0_1':
term_io.m:451: warning: implicit declaration of function `__builtin_longjmp'
term_io.m: In function `mercury__term_io__quote_atom_4_p_0_4':
term_io.m:451: warning: implicit declaration of function `__builtin_setjmp'
/tmp/mmake.a01617:7216: warning: undefined variable `EXTRA_LDFLAGS'
/tmp/mmake.a01617:7216: warning: undefined variable `EXTRA_LDLIBS'
gcc -shared  				\
-o libmer_std.so array.pic_o assoc_list.pic_o bag.pic_o benchmarking.pic_o bimap.pic_o bintree.pic_o bintree_set.pic_o bitmap.pic_o bool.pic_o bt_array.pic_o builtin.pic_o char.pic_o counter.pic_o dir.pic_o enum.pic_o eqvclass.pic_o exception.pic_o float.pic_o gc.pic_o getopt.pic_o graph.pic_o group.pic_o hash_table.pic_o int.pic_o integer.pic_o io.pic_o lexer.pic_o library.pic_o list.pic_o map.pic_o math.pic_o multi_map.pic_o ops.pic_o parser.pic_o pprint.pic_o pqueue.pic_o private_builtin.pic_o prolog.pic_o queue.pic_o random.pic_o rational.pic_o rbtree.pic_o relation.pic_o require.pic_o set.pic_o set_bbbtree.pic_o set_ordlist.pic_o set_unordlist.pic_o sparse_bitset.pic_o stack.pic_o std_util.pic_o store.pic_o string.pic_o table_builtin.pic_o term.pic_o term_io.pic_o time.pic_o tree234.pic_o varset.pic_o		\
-Wl,-rpath,''/cw/prolog/mercury/mercury-rotd.2001.02.06.linux/lib/mercury/lib/hlc.gc/i686-pc-linux-gnu'' -Wl,-rpath,''/cw/prolog/mercury/mercury-rotd.2001.02.06.linux/lib/mercury/lib/i686-pc-linux-gnu					\
-L../boehm_gc -L../runtime  -lmer_rt ` case "hlc.gc" in *.par*.gc*.prof*)	echo "-lpar_gc_prof" ;; *.par*.gc*)		echo "-lpar_gc" ;; *.gc*.prof*)	echo "-lgc_prof" ;; *.gc*)		echo "-lgc" ;; esac ` 				\
	`gcc -print-libgcc-file-name` -lm -lc

--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list