Greetings, and thanks for your feedback! Could you also please send the plt.h produced in both cases? Your pcl failure report needs more context, as the error was somehwere earlier in the log (You can tell by the double bracket error prompt >>).
The idea of the plt stuff is to make an explicit table of addresses to functions which the compiler will write directly. I.e. the compiler writes asin(x), gcc compiles a needed reference to the symbol _asin, the loader needs its address, so it finds the entry in the table if it is not elswhere in the image. You might want to try removing the leading underscores of _mcount, _getc, and _putc in plt.h, compile plt.o (make plt.o), and use nm to make sure the symbols look the same as in plttest.o. Apprently gcc-4.0 is using builtin functions for all the ommitted entries. You can also try -fno-builtin in CFLAGS. Take care, Antoine Hersen <[EMAIL PROTECTED]> writes: > Hello, > > I switched to gcc 3.3 which is included with Tiger. > On gcl 2.6.6 with the previously mentioned patch the compilation > complete but the following ansi-test fail. > > There is indeed a difference in nm plttest.o, with 3.3 : > nm plttest.o > U _acos > U _acosh > U _asin > U _asinh > U _atan > U _atanh > U _cos > U _cosh > U _exp > U _getc > U _log > 00000000 T _main > U _putc > U _setjmp > U _sin > U _sinh > U _tan > U _tanh > U dyld_stub_binding_helper > U restFP > U saveFP > > with 4.0 : > U _getc > 00000000 T _main > U _putc > U _setjmp > U dyld_stub_binding_helper > > The test failing : > > Compiling PCL_PRECOM2... > Compiling /Users/antoinehersen/Project/axiom/gcl/gcl-2.6.6/ > unixport/../pcl/pcl_precom2.lisp. > ; (DEFUN #:|(PRECOMPILE-INITIALIZE-INSTANCE-SIMPLE PCL 3)9995| ...) > is being compiled. > ;; Warning: The variable CVECTOR is not used. > ; (DEFUN #:|(PRECOMPILE-INITIALIZE-INSTANCE-SIMPLE PCL 4)9995| ...) > is being compiled. > ;; Warning: The variable CVECTOR is not used. > ; (DEFUN #:|(PRECOMPILE-INITIALIZE-INSTANCE-SIMPLE PCL 5)9995| ...) > is being compiled. > ;; Warning: The variable CVECTOR is not used. > ; (DEFUN #:|(PRECOMPILE-INITIALIZE-INSTANCE-SIMPLE PCL 7)9995| ...) > is being compiled. > ;; Warning: The variable CVECTOR is not used. > ; (DEFUN #:|(PRECOMPILE-INITIALIZE-INSTANCE-SIMPLE PCL 11)9995| ...) > is being compiled. > ;; Warning: The variable CVECTOR is not used. > ; (DEFUN #:|(PRECOMPILE-INITIALIZE-INSTANCE-SIMPLE PCL 13)9995| ...) > is being compiled. > ;; Warning: The variable CVECTOR is not used. > ; (DEFUN #:|(PRECOMPILE-INITIALIZE-INSTANCE-SIMPLE PCL 15)9995| ...) > is being compiled. > ;; Warning: The variable CVECTOR is not used. > ; (DEFUN #:|(PRECOMPILE-INITIALIZE-INSTANCE-SIMPLE PCL 17)9995| ...) > is being compiled. > ;; Warning: The variable CVECTOR is not used. > ; (DEFUN #:|(PRECOMPILE-INITIALIZE-INSTANCE-SIMPLE PCL 19)9995| ...) > is being compiled. > ;; Warning: The variable CVECTOR is not used. > ; (DEFUN #:|(PRECOMPILE-INITIALIZE-INSTANCE-SIMPLE PCL 20)9995| ...) > is being compiled. > ;; Warning: The variable CVECTOR is not used. > End of Pass 1. > End of Pass 2. > OPTIMIZE levels: Safety=1 (No runtime error checking), Space=0, Speed=3 > Finished compiling /Users/antoinehersen/Project/axiom/gcl/gcl-2.6.6/ > unixport/../pcl/pcl_precom2.o. > T > ANSI-LOOP>>make[1]: *** [pcl_boot.c] Error 255 > make: *** [unixport/saved_pcl_gcl] Error 2 > > > > On Jun 15, 2005, at 5:56 PM, Camm Maguire wrote: > > > Greetings! > > > > Could you please post > > > > nm plttest.o > > > > Thanks! > > > > Clemens Heitzinger <[EMAIL PROTECTED]> writes: > > > > > >> There is a problem in plt.h: > >> > >> > >> gcc -c -Wall -DVOL=volatile -fsigned-char -pipe -O3 -fomit-frame- > >> pointer -I/Users/Clemens/src/gcl-cvs/o -I../h -I../gcl-tk plt.c > >> In file included from plt.c:44: > >> plt.h:1: error: '__mcount' undeclared here (not in a function) > >> plt.h:1: error: initializer element is not constant > >> plt.h:1: error: (near initialization for 'mplt[0].ad') > >> plt.h:1: error: initializer element is not constant > >> plt.h:1: error: (near initialization for 'mplt[0]') > >> plt.h:2: error: '_getc' undeclared here (not in a function) > >> plt.h:2: error: initializer element is not constant > >> plt.h:2: error: (near initialization for 'mplt[1].ad') > >> plt.h:2: error: initializer element is not constant > >> plt.h:2: error: (near initialization for 'mplt[1]') > >> plt.h:3: error: '_putc' undeclared here (not in a function) > >> plt.h:3: error: initializer element is not constant > >> plt.h:3: error: (near initialization for 'mplt[2].ad') > >> plt.h:3: error: initializer element is not constant > >> plt.h:3: error: (near initialization for 'mplt[2]') > >> plt.h:4: error: initializer element is not constant > >> plt.h:4: error: (near initialization for 'mplt[3]') > >> make[1]: *** [plt.o] Error 1 > >> make: *** [unixport/saved_pre_gcl] Error 2 > >> > >> > >> > >> _______________________________________________ > >> Gcl-devel mailing list > >> [email protected] > >> http://lists.gnu.org/mailman/listinfo/gcl-devel > >> > >> > >> > >> > > > > -- > > Camm Maguire [EMAIL PROTECTED] > > ====================================================================== > > ==== > > "The earth is but one country, and mankind its citizens." -- > > Baha'u'llah > > > > > > _______________________________________________ > > Gcl-devel mailing list > > [email protected] > > http://lists.gnu.org/mailman/listinfo/gcl-devel > > > > > > > > > _______________________________________________ > Gcl-devel mailing list > [email protected] > http://lists.gnu.org/mailman/listinfo/gcl-devel > > > -- Camm Maguire [EMAIL PROTECTED] ========================================================================== "The earth is but one country, and mankind its citizens." -- Baha'u'llah _______________________________________________ Gcl-devel mailing list [email protected] http://lists.gnu.org/mailman/listinfo/gcl-devel
