* ccc linking errors
@ 2000-05-27 4:00 h0l0gRaM
2000-05-27 4:00 ` Tony Hammitt
2000-05-27 4:00 ` Michal Jaegermann
0 siblings, 2 replies; 5+ messages in thread
From: h0l0gRaM @ 2000-05-27 4:00 UTC (permalink / raw)
Hi!
I'm compiling mc-4.5.42 ,midnight commander ,with ccc
It almost gets done ,but when linking main executable it gives error :
ccc -o plain-gmc gmount.o main.o mad.o dlg.o screen.o widget.o wtools.o
info.o boxes.o file.o find.o dialog.o key.o chmod.o chown.o view.o
panelize.o hotlist.o background.o dir.o util.o win.o color.o profile.o
user.o ext.o setup.o subshell.o terms.o achown.o fsusage.o mountlist.o
regex.o complete.o command.o option.o cmd.o utilunix.o xslint.o
gdialogs.o filenot.o fileopctx.o treestore.o gaction.o gcache.o
gcliplabel.o gcmd.o gcustom-layout.o gdesktop-icon.o gdesktop-init.o
gdesktop-prefs.o gdesktop.o gdnd.o ghelp.o gicon.o ginfo.o gkey.o
glayout.o gmain.o gmc-chargrid.o gmenu.o gmetadata.o gpageprop.o
gpopup2.o gprefs.o gprint.o gprop.o gnome-file-property-dialog.o
gnome-open-dialog.o gscreen.o gsession.o gtools.o gtree.o gutil.o
gview.o gtkdtree.o gtkflist.o gwidget.o -L../vfs -lvfs-mc -L../gtkedit
-lgtkedit -rdynamic -L/usr/lib -L/usr/X11R6/lib -rdynamic -lgnomeui
-lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXi -lXext
-lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl
-L/usr/lib -lglib
gmain.o: In function `iiop_byteswap':
/usr/include/IIOP/iiop-endian.h:31: multiple definition of
`iiop_byteswap'
main.o:/usr/include/IIOP/iiop-endian.h:31: first defined here
util.o: In function `get_current_wd':
:834: the `getwd' function is dangerous and should not be used.
gtkdtree.o: In function `gtk_dtree_do_select_dir':
:316: undefined reference to `alloca'
:316: undefined reference to `alloca'
:316: undefined reference to `alloca'
collect2: ld returned 1 exit status
ok ,there's lot of text.
but look in end of that ,theres :316:undefined reference to 'alloca'
what's that ?
I didn't see any text in sources ,which references to 'alloca'
what is alloca anyway ?
This problem repeats with many sources ,especially with gnome-???
Thanks to all who understand this and gives some clue/help
--
It's getting uncommonly easy to kill people in large numbers, and the first
thing a principle does -- if it really is a principle -- is to kill somebody.
-- Dorothy L. Sayers, "Gaudy Night"
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: ccc linking errors
2000-05-27 4:00 ccc linking errors h0l0gRaM
@ 2000-05-27 4:00 ` Tony Hammitt
2000-05-27 4:00 ` Michal Jaegermann
1 sibling, 0 replies; 5+ messages in thread
From: Tony Hammitt @ 2000-05-27 4:00 UTC (permalink / raw)
Hey h0l0gRaM,
I got similar errors to this a while ago with beta versions of the
compiler but haven't seen any since I got the release tools. Try
running just the link with gcc and see if it is a problem with the
.o files or the linker. That's what I had to do when I had my
similar problem.
I'd say that there is something wrong with the linker. alloca is
in the standard c library and can't be missing really..
Compaq has released updated versions of the binutils package, just
in case... These are the current versions as of 2 days ago:
ccc-6.2.9.002-2.alpha.rpm
compaq_rh60_binutils-2.9.1.0.23-12.alpha.rpm
compaq_rh60_gdb-4.17.0.11-11.alpha.rpm
compaq_rh61_binutils-2.9.1.0.23-12.alpha.rpm
compaq_rh61_gdb-4.18-6.alpha.rpm
compaq_rh62_binutils-2.9.5.0.22-8.alpha.rpm
compaq_rh62_gdb-4.18-12.alpha.rpm
cpml_ev5-5.0.0-1.alpha.rpm
cxx-6.3.6.10-18.alpha.rpm
ladebug-4.0.61-11.alpha.rpm
libots-2.2.7-2.alpha.rpm
BTW, I have now installed a complete RH6.2 on my spare alpha and
will be rebuilding everything I can based on it. Then I'll need
another spare box to install the things I build...
Later,
Tony
h0l0gRaM wrote:
>
> Hi!
>
> I'm compiling mc-4.5.42 ,midnight commander ,with ccc
> It almost gets done ,but when linking main executable it gives error :
>
> ccc -o plain-gmc gmount.o main.o mad.o dlg.o screen.o widget.o wtools.o
> info.o boxes.o file.o find.o dialog.o key.o chmod.o chown.o view.o
> panelize.o hotlist.o background.o dir.o util.o win.o color.o profile.o
> user.o ext.o setup.o subshell.o terms.o achown.o fsusage.o mountlist.o
> regex.o complete.o command.o option.o cmd.o utilunix.o xslint.o
> gdialogs.o filenot.o fileopctx.o treestore.o gaction.o gcache.o
> gcliplabel.o gcmd.o gcustom-layout.o gdesktop-icon.o gdesktop-init.o
> gdesktop-prefs.o gdesktop.o gdnd.o ghelp.o gicon.o ginfo.o gkey.o
> glayout.o gmain.o gmc-chargrid.o gmenu.o gmetadata.o gpageprop.o
> gpopup2.o gprefs.o gprint.o gprop.o gnome-file-property-dialog.o
> gnome-open-dialog.o gscreen.o gsession.o gtools.o gtree.o gutil.o
> gview.o gtkdtree.o gtkflist.o gwidget.o -L../vfs -lvfs-mc -L../gtkedit
> -lgtkedit -rdynamic -L/usr/lib -L/usr/X11R6/lib -rdynamic -lgnomeui
> -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXi -lXext
> -lX11 -lgnome -lgnomesupport -lesd -laudiofile -lm -ldb1 -lglib -ldl
> -L/usr/lib -lglib
> gmain.o: In function `iiop_byteswap':
> /usr/include/IIOP/iiop-endian.h:31: multiple definition of
> `iiop_byteswap'
> main.o:/usr/include/IIOP/iiop-endian.h:31: first defined here
> util.o: In function `get_current_wd':
> :834: the `getwd' function is dangerous and should not be used.
> gtkdtree.o: In function `gtk_dtree_do_select_dir':
> :316: undefined reference to `alloca'
> :316: undefined reference to `alloca'
> :316: undefined reference to `alloca'
> collect2: ld returned 1 exit status
>
> ok ,there's lot of text.
> but look in end of that ,theres :316:undefined reference to 'alloca'
> what's that ?
> I didn't see any text in sources ,which references to 'alloca'
> what is alloca anyway ?
>
> This problem repeats with many sources ,especially with gnome-???
>
> Thanks to all who understand this and gives some clue/help
>
> --
> It's getting uncommonly easy to kill people in large numbers, and the first
> thing a principle does -- if it really is a principle -- is to kill somebody.
> -- Dorothy L. Sayers, "Gaudy Night"
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ccc linking errors
2000-05-27 4:00 ccc linking errors h0l0gRaM
2000-05-27 4:00 ` Tony Hammitt
@ 2000-05-27 4:00 ` Michal Jaegermann
2000-05-28 4:00 ` Tony Hammitt
2000-05-29 4:00 ` Takeyasu Wakabayashi
1 sibling, 2 replies; 5+ messages in thread
From: Michal Jaegermann @ 2000-05-27 4:00 UTC (permalink / raw)
h0l0gRaM (hgm@saunalahti.fi) wrote:
: I'm compiling mc-4.5.42 ,midnight commander ,with ccc
Unless this is considered a "learning experience" then one has
to ask what is the point in recompiling something like 'mc' with ccc?
This is an example of a program which spends practically all its time
waiting for a user input so it is not likely that a speed with
which is doing that is particularly relevant.
: util.o: In function `get_current_wd':
: :834: the `getwd' function is dangerous and should not be used.
^^^^^^^^^^^^^^
I would be more worried about that. This warning is correct.
: gtkdtree.o: In function `gtk_dtree_do_select_dir':
: :316: undefined reference to `alloca'
^^^^
In gcc 'alloca()' is usually a "builtin"; therefore it is ccc
responsibility to provide a replacement one way or another (as a builtin
or by providing a command to link with an appriopriate library). Is
this the current version of ccc and binary utilities? If this fails
then you should have big problems all over the place. In the worst
case find which library supplies a replacement alloca and add it to
a link list yourself.
Michal
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: ccc linking errors
2000-05-27 4:00 ` Michal Jaegermann
@ 2000-05-28 4:00 ` Tony Hammitt
2000-05-29 4:00 ` Takeyasu Wakabayashi
1 sibling, 0 replies; 5+ messages in thread
From: Tony Hammitt @ 2000-05-28 4:00 UTC (permalink / raw)
This is a learning experience =-]
We're trying to determine what packages can be compiled with
ccc/cxx as part of the feasability study portion of a ccc based
Linux distro. That and h0l0gRaM is trying to speed up an EV5/300
box.
I have several rpms built, but don't want to try to host a site
for them. My goal is to only modify the rpm spec file and get
the package to build. h0l0gRaM is building from .tar.gz files.
So, that's what's going on.
Regards,
Tony Hammitt
Michal Jaegermann wrote:
>
> h0l0gRaM (hgm@saunalahti.fi) wrote:
>
> : I'm compiling mc-4.5.42 ,midnight commander ,with ccc
>
> Unless this is considered a "learning experience" then one has
> to ask what is the point in recompiling something like 'mc' with ccc?
> This is an example of a program which spends practically all its time
> waiting for a user input so it is not likely that a speed with
> which is doing that is particularly relevant.
>
> : util.o: In function `get_current_wd':
> : :834: the `getwd' function is dangerous and should not be used.
> ^^^^^^^^^^^^^^
> I would be more worried about that. This warning is correct.
>
> : gtkdtree.o: In function `gtk_dtree_do_select_dir':
> : :316: undefined reference to `alloca'
> ^^^^
> In gcc 'alloca()' is usually a "builtin"; therefore it is ccc
> responsibility to provide a replacement one way or another (as a builtin
> or by providing a command to link with an appriopriate library). Is
> this the current version of ccc and binary utilities? If this fails
> then you should have big problems all over the place. In the worst
> case find which library supplies a replacement alloca and add it to
> a link list yourself.
>
> Michal
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ccc linking errors
2000-05-27 4:00 ` Michal Jaegermann
2000-05-28 4:00 ` Tony Hammitt
@ 2000-05-29 4:00 ` Takeyasu Wakabayashi
1 sibling, 0 replies; 5+ messages in thread
From: Takeyasu Wakabayashi @ 2000-05-29 4:00 UTC (permalink / raw)
michal@gortel.phys.ualberta.ca (Michal Jaegermann) writes:
> : gtkdtree.o: In function `gtk_dtree_do_select_dir':
> : :316: undefined reference to `alloca'
> ^^^^
> In gcc 'alloca()' is usually a "builtin"; therefore it is ccc
> responsibility to provide a replacement one way or another (as a builtin
> or by providing a command to link with an appriopriate library). Is
> this the current version of ccc and binary utilities? If this fails
> then you should have big problems all over the place. In the worst
> case find which library supplies a replacement alloca and add it to
> a link list yourself.
I think
#include <alloca.h>
#pragama intrinsic (alloca)
will work. Try the following program:
#include <alloca.h>
#pragma intrinsic (alloca)
#include <stdio.h>
int main(void)
{
int *var;
var = alloca(sizeof(int));
*var = 1;
printf("value of *var: %d\n", *var);
return 0;
}
--
Takeyasu Wakabayashi
Faculty of Economics, Toyama University
twakaba@eco.toyama-u.ac.jp
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2000-05-29 4:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-05-27 4:00 ccc linking errors h0l0gRaM
2000-05-27 4:00 ` Tony Hammitt
2000-05-27 4:00 ` Michal Jaegermann
2000-05-28 4:00 ` Tony Hammitt
2000-05-29 4:00 ` Takeyasu Wakabayashi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox