Erlang/OTP Forums

Author Message

<  Erlang questions mailing list  ~  Compiling R9C in Debian Woody

fillemanjong at hotmail.c
Posted: Wed Dec 03, 2003 3:57 am Reply with quote
Guest
Hi,

I am trying to compile R9C in Debian woody and get the error "undefined
reference to `erts_restore_x87'" (See excerpt below)
My environment is User mode linux linuxuml-2.4.18-45 and root_fs_woody.bz2
(modified to with gcc 3.04) from
http://sourceforge.net/project/showfiles.php?group_id=13751
Compiling R9C in the host environment, which is Redhat 8.0 and gcc 2.95,
works without problems.

Any suggestions to why I get this error?

Best Regards,

Anders

gcc -g -O2 -I/mnt/leafuml/OTP/otp_src_R9C-0/erts/i686-pc-linux-gnu
-DSHARED_HEAP -DHAVE_CONFIG_H -Wall -Wstrict-prototypes -Wmissing-prototypes
-DHIPE_ARCHITECTURE=x86 -Ibeam -Isys/unix -Isys/common -Ii686-pc-linux-gnu
-Ii686-pc-linux-gnu/shared -Izlib -Ihipe -Idrivers/common -Idrivers/unix
-I../etc/unix -c drivers/unix/ttsl_drv.c -o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/ttsl_drv.o
gcc -o /mnt/leafuml/OTP/otp_src_R9C-0/bin/i686-pc-linux-gnu/beam.shared
-Wl,-export-dynamic
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/erl_main.o

/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/preload.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/erl_pbifs.o

/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/benchmark.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/erl_alloc.o

/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/erl_mtrace.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/erl_alloc_util.o

/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/erl_goodfit_alloc.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/erl_bestfit_alloc.o

/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/erl_afit_alloc.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/erl_instrument.o

/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/erl_init.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/erl_atom_table.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/erl_bif_table.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/erl_bif_info.o

/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/erl_bif_op.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/erl_bif_os.o

/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/erl_bif_lists.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/erl_bif_trace.o

/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/erl_bif_wrap.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/erl_trace.o

/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/copy.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/utils.o

/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/bif.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/io.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/erl_debug.o

/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/erl_md5.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/erl_message.o

/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/erl_process.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/erl_process_dict.o

/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/erl_arith.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/time.o

/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/erl_time_sup.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/external.o

/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/dist.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/binary.o

/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/erl_db.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/erl_db_util.o

/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/erl_db_hash.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/erl_db_tree.o

/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/fix_alloc.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/big.o

/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/hash.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/index.o

/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/atom.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/module.o

/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/export.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/register.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/break.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/erl_async.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/sys_threads.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/ggc.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/erl_gc.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/erl_posix_str.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/erl_bits.o

/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/erl_math.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/erl_vector.o

/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/erl_term.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/erl_fun.o

/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/erl_bif_port.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/erl_node_tables.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/erl_process_dump.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/beam_emu.o

/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/beam_opcodes.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/beam_load.o

/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/beam_bif_load.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/beam_debug.o

/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/beam_bp.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/beam_catches.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/sys.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/driver_tab.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/unix_efile.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/gzio.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/elib_malloc.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/elib_memmove.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/erl_mseg.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/unix_ddll_drv.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/sys_float.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/hipe_bif0.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/hipe_bif1.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/hipe_bif2.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/hipe_debug.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/hipe_mode_switch.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/hipe_native_bif.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/hipe_x86_glue.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/hipe_x86_bifs.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/hipe_x86_signal.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/hipe_x86_stack.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/efile_drv.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/ddll_drv.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/inet_drv.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/zlib_drv.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/ram_file_drv.o
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/ttsl_drv.o
-lncurses -lresolv -ldl -lm
-L/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj/i686-pc-linux-gnu -lz
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/hipe_x86_bifs.o:
In function `nbif_handle_fp_exception':
/mnt/leafuml/OTP/otp_src_R9C-0/erts/obj.shared.beam/i686-pc-linux-gnu/hipe_x86_bifs.o(.text+0x717):
undefined reference to `erts_restore_x87'
collect2: ld returned 1 exit status
make[3]: ***
[/mnt/leafuml/OTP/otp_src_R9C-0/bin/i686-pc-linux-gnu/beam.shared] Error 1
make[3]: Leaving directory `/mnt/leafuml/OTP/otp_src_R9C-0/erts/emulator'
make[2]: *** [shared] Error 2
make[2]: Leaving directory `/mnt/leafuml/OTP/otp_src_R9C-0/erts/emulator'
make[1]: *** [shared] Error 2
make[1]: Leaving directory `/mnt/leafuml/OTP/otp_src_R9C-0/erts'
make: *** [emulator] Error 2

_________________________________________________________________
Hitta r
mikpe at csd.uu.se
Posted: Wed Dec 03, 2003 12:34 pm Reply with quote
Guest
fille manjong writes:
> Hi,
>
> I am trying to compile R9C in Debian woody and get the error "undefined
> reference to `erts_restore_x87'" (See excerpt below)
> My environment is User mode linux linuxuml-2.4.18-45 and root_fs_woody.bz2
> (modified to with gcc 3.04) from
> http://sourceforge.net/project/showfiles.php?group_id=13751
> Compiling R9C in the host environment, which is Redhat 8.0 and gcc 2.95,
> works without problems.
>
> Any suggestions to why I get this error?

In the ./configure step, did it or did it not detect support for
reliable floating-point exceptions?

HiPE requires reliable f.p. exceptions on Linux/x86. If they aren't
available, a linkage error like the one you showed will occur.

What does `uname -s` and `uname -m` say in your UML environment?

If your UML environment doesn't provide reliable f.p. exceptions,
then you should use ./configure --disable-hipe.

On an unrelated note: gcc-3.0 is known to have bugs related to it
generating code that touches stack slots _below_ the stack pointer.
Please switch to a saner compiler, like 3.2.3 or 3.3.2.

/Mikael


Post generated using Mail2Forum (http://m2f.sourceforge.net)
fillemanjong at hotmail.c
Posted: Thu Dec 04, 2003 12:04 pm Reply with quote
Guest
Thanks,

with ./configure --disable-hipe the error disappeared
uname -s -> Linux
uname -m -> i686

I will continue with changing gcc version according to your recommendation.

/Anders

>From: Mikael Pettersson <mikpe_at_csd.uu.se>
>To: "fille manjong" <fillemanjong_at_hotmail.com>
>CC: erlang-questions_at_erlang.org
>Subject: Re: Compiling R9C in Debian Woody
>Date: Wed, 3 Dec 2003 13:34:48 +0100
>
>fille manjong writes:
> > Hi,
> >
> > I am trying to compile R9C in Debian woody and get the error "undefined
> > reference to `erts_restore_x87'" (See excerpt below)
> > My environment is User mode linux linuxuml-2.4.18-45 and
>root_fs_woody.bz2
> > (modified to with gcc 3.04) from
> > http://sourceforge.net/project/showfiles.php?group_id=13751
> > Compiling R9C in the host environment, which is Redhat 8.0 and gcc
>2.95,
> > works without problems.
> >
> > Any suggestions to why I get this error?
>
>In the ./configure step, did it or did it not detect support for
>reliable floating-point exceptions?
>
>HiPE requires reliable f.p. exceptions on Linux/x86. If they aren't
>available, a linkage error like the one you showed will occur.
>
>What does `uname -s` and `uname -m` say in your UML environment?
>
>If your UML environment doesn't provide reliable f.p. exceptions,
>then you should use ./configure --disable-hipe.
>
>On an unrelated note: gcc-3.0 is known to have bugs related to it
>generating code that touches stack slots _below_ the stack pointer.
>Please switch to a saner compiler, like 3.2.3 or 3.3.2.
>
>/Mikael

_________________________________________________________________
L
ioven
Posted: Fri Mar 23, 2012 6:25 am Reply with quote
Joined: 23 Mar 2012 Posts: 8 Location: new york
Not many cloaking is finished having detrimental motive. Lots of years before, When i worked with an exceptionally substantial comparison-shopping web page, encouraging this overseas designs connected with it is web-sites crank out far more targeted visitors. On the list of useful factors When i recognized promptly seemed to be so it seemed to be cloaking its very own property websites! Rather than the type of which mankind discovered having merchandise, pics in addition to advertising and marketing content, this cloaked type seemed to be an effective directory inbound links to help the vast majority of different types which is services received merchandise.

When When i added this trouble to help light-weight, the item turned out which the electrical engineer in charge received knowingly performed that. He / she idea it becomes far more useful to yahoo and google to provide an effective directory inbound links to enable them to obtain the information in the exact location. He / she decided not to possibly are aware that cloaking seemed to be up against the policies and may even find the web-sites suspended!
Cheap Soccer Jerseys
Custom Soccer Jerseys
Soccer Jerseys
Monster Beats Headphones
Dr Dre Headphones
Dre Beats
Monster Headphones
Beats By Dre Pro
Beats Headphones
Dr Dre Beats
Monster Beats
Beats By Dr Dre
Dre Beats
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum