Go to the FreeLists Home Page Home Signup Help Login
 



[openbeos] || [Date Prev] [02-2006 Date Index] [Date Next] || [Thread Prev] [02-2006 Thread Index] [Thread Next]

[openbeos] Re: gcc questions

  • From: "François Revol" <revol@xxxxxxx>
  • To: openbeos@xxxxxxxxxxxxx
  • Date: Thu, 02 Feb 2006 10:58:03 +0100 CET
> Hello!
> 
> Have gcc 4 changes been sent to and accepted by gcc team? If not,

Dunno

> will they be proposed?

Certainly.
Them being accepted is another matter :)

> Have building gcc 4 from svn yet been tested under BeOS?
> 
> Is there a way to download a snapshot of the buildtools part of the
> source tree? Or is there any other way of obtaining the gcc 4 source
> in svn without doing a co? (Have no possibility to do that)

Someone should probably make a diff against official 4.0.2.

> 
> I'm interested in this as I'm trying to compile gcc 4.0.2 for avr
> processors under BeOS, but running into a problem with missing libm.so.
> If I understand correctly the functions in libm.so (on other platforms)
> are in libroot.so on BeOS instead. This is probably a problem with
> configuration scripts. Is this fixed in svn?

No it's a problem with gcc4's makefiles which hardcodes -lm in 
several places. I just removed them in the ZETA port, but seen they are 
still there in the Haiku tree. They will have to be changed with checks 
in the configure script to be accepted.
But you can manually remove the -lm from the few Makefile.in. You can 
try to apply this patch (though I'm not sure all should go away for a 
cross compiler):

=============================== begin
diff -urN -x .svn /boot/home/devel/haiku/buildtools/trunk/gcc/gcc/Makefile.in 
./gcc/Makefile.in
--- /boot/home/devel/haiku/buildtools/trunk/gcc/gcc/Makefile.in Wed Jan 18 
23:36:48 2006
+++ ./gcc/Makefile.in   Tue Oct  4 07:54:51 2005
@@ -2589,7 +2589,7 @@
        $(CC_FOR_BUILD) $(BUILD_CFLAGS) $(BUILD_LDFLAGS) -o $@ \
         build/genattrtab.o build/genautomata.o \
         $(BUILD_RTL) $(BUILD_SUPPORT) $(BUILD_PRINT) $(BUILD_ERRORS) \
-        $(BUILD_VARRAY) $(BUILD_LIBS) -lm
+        $(BUILD_VARRAY) $(BUILD_LIBS)
 
 build/genattrtab.o : genattrtab.c $(RTL_BASE_H) $(OBSTACK_H) $(BCONFIG_H) \
   $(SYSTEM_H) coretypes.h $(GTM_H) errors.h $(GGC_H) gensupport.h genattrtab.h
diff -urN -x .svn 
/boot/home/devel/haiku/buildtools/trunk/gcc/libstdc++-v3/src/Makefile.am 
./libstdc++-v3/src/Makefile.am
--- /boot/home/devel/haiku/buildtools/trunk/gcc/libstdc++-v3/src/Makefile.am    
Wed Jan 18 23:40:53 2006
+++ ./libstdc++-v3/src/Makefile.am      Tue Sep 20 19:33:53 2005
@@ -153,7 +153,7 @@
 libstdc___la_DEPENDENCIES = ${version_dep} $(libstdc___la_LIBADD)
 
 libstdc___la_LDFLAGS = \
-       -version-info $(libtool_VERSION) ${version_arg} -lm 
+       -version-info $(libtool_VERSION) ${version_arg}  
 
 
 # Use special rules for the deprecated source files so that they find
diff -urN -x .svn 
/boot/home/devel/haiku/buildtools/trunk/gcc/libstdc++-v3/src/Makefile.in 
./libstdc++-v3/src/Makefile.in
--- /boot/home/devel/haiku/buildtools/trunk/gcc/libstdc++-v3/src/Makefile.in    
Wed Jan 18 23:40:37 2006
+++ ./libstdc++-v3/src/Makefile.in      Tue Sep 20 19:33:53 2005
@@ -357,7 +357,7 @@
 
 libstdc___la_DEPENDENCIES = ${version_dep} $(libstdc___la_LIBADD)
 libstdc___la_LDFLAGS = \
-       -version-info $(libtool_VERSION) ${version_arg} -lm 
+       -version-info $(libtool_VERSION) ${version_arg}  
 
 
 # Use special rules for the deprecated source files so that they find
=============================== end

Btw there are some bugs and unimplemented stuff in gthr-beos.h which I've 
fixed for the ZETA port. I'll probably be checking them in when I get time, 
maybe with the rest of the ZETA port, and sync them so we could submit a 
single official diff.

François.






[ Home | Signup | Help | Login | Archives | Lists ]

All trademarks and copyrights within the FreeLists archives are owned by their respective owners.
Everything else ©2007 Avenir Technologies, LLC.