Re: [PPL-devel] Compile error on last versions

Dario Meloni wrote:
Maybe if i send it as a reply... ^^ However i have zipped the compiler error log to avoid size problems hoping no one has problems with zip attachments
Dear Dario,
the problem we experienced is the content-filtering functionality of Mailman, as explained here:
http://mail.python.org/pipermail/mailman-users/2005-February/043009.html
I don't know which kind of attachment you had in your original message, but I would like to check: please resend only to me that message once again.
Concerning zip, yes, our mailman configuration disliked it, so the message was discarded. For the future, I have added application/zip to the set of allowed attachment types. Now I need to authorize also the kind of attachment you sent yesterday and on December 4.
Here there is the original mail
I am having a problem while installing the library on Mac OS X Leopard (10.5) on a Mac Intel. I tried the last beta and then tried the CVS version (last update done just 5-10 minutes ago [was 4 december]) since i need the jni libraries and there isn't such thing in 0.9.
I am trying to put everything in a specific path (/opt/julia), to do so I have manualy installed the GMP library with enabled the cxx interface with that prefix, and i am building the PPL with this configuration: ./configure --prefix=/opt/julia --with-libgmp-prefix=/opt/julia --with-libgmpxx-prefix=/opt/julia
The result of the makefile is in the attached file
This looks like a compiler problem. Which version of GCC are you using? My recommendation is to use GCC 4.1.2 or later version. All the best,
Roberto

Roberto Bagnara wrote:
I don't know which kind of attachment you had in your original message, but I would like to check: please resend only to me that message once again.
Dear all,
it seems that mailman discarded Dario's message because it was digitally signed, i.e., it contained an attachment of type application/pkcs7-signature. I have now changed the mailman configuration so that messages with this type of attachment are no longer discarded.
Concerning zip, yes, our mailman configuration disliked it, so the message was discarded. For the future, I have added application/zip to the set of allowed attachment types.
Enea, made me observe that allowing zip attachments is dangerous for some ppl-devel subscribers: I have thus restored the previous situation whereby messages containing zip attachments are discarded. All the best,
Roberto

That was helpfull. I have installed gcc 4.2.2 and had no problem on that. To test the my environment works correctly i am trying to compile version 0.9 and then i'll try the beta version which i need.
I had some problems with the recognition of the gmp version. The script wasn't able to determine the right version stating that mine was prior of 4.1.3 and had the cxx interface disbled, i have version 4.2.2. So i have deleted the test in the file ac_check_gmp.m4 and made it pass in any case, this was working with gcc 4.0.1 but now i get this error
checking for shared library run path origin... done checking how to link with libgmp... -L/opt/local/lib -lgmp checking how to link with libgmpxx... -lgmpxx -L/opt/local/lib -lgmp checking for the GMP library version 4.1.3 or above... yes <-- hacked test checking for mp_limb_t... yes checking size of mp_limb_t... configure: error: cannot compute sizeof (mp_limb_t)
GMP is installed with a 32bit ABI and with --enable-cxx flag in /opt/ local I am using this configure script (gmp and gcc are installed in the / opt/local path) ./configure --prefix=/opt/julia --with-libgmpxx-prefix=/opt/local -- with-cxx=/opt/local/bin/g++-mp-4.2
I think i'll give up installing the library on mac os x, i can think where the error is, if in gmp, the compilers or the library
Here there is the original mail
I am having a problem while installing the library on Mac OS X Leopard (10.5) on a Mac Intel. I tried the last beta and then tried the CVS version (last update done just 5-10 minutes ago [was 4 december]) since i need the jni libraries and there isn't such thing in 0.9.
I am trying to put everything in a specific path (/opt/julia), to do so I have manualy installed the GMP library with enabled the cxx interface with that prefix, and i am building the PPL with this configuration: ./configure --prefix=/opt/julia --with-libgmp-prefix=/opt/julia -- with-libgmpxx-prefix=/opt/julia
The result of the makefile is in the attached file
This looks like a compiler problem. Which version of GCC are you using? My recommendation is to use GCC 4.1.2 or later version. All the best,
Roberto
Dario Meloni mellon85@gmail.com

Dario Meloni wrote:
That was helpfull. I have installed gcc 4.2.2 and had no problem on that. To test the my environment works correctly i am trying to compile version 0.9 and then i'll try the beta version which i need.
I had some problems with the recognition of the gmp version. The script wasn't able to determine the right version stating that mine was prior of 4.1.3 and had the cxx interface disbled, i have version 4.2.2. So i have deleted the test in the file ac_check_gmp.m4 and made it pass in any case, this was working with gcc 4.0.1 but now i get this error
checking for shared library run path origin... done checking how to link with libgmp... -L/opt/local/lib -lgmp checking how to link with libgmpxx... -lgmpxx -L/opt/local/lib -lgmp checking for the GMP library version 4.1.3 or above... yes <-- hacked test checking for mp_limb_t... yes checking size of mp_limb_t... configure: error: cannot compute sizeof (mp_limb_t)
GMP is installed with a 32bit ABI and with --enable-cxx flag in /opt/ local I am using this configure script (gmp and gcc are installed in the / opt/local path) ./configure --prefix=/opt/julia --with-libgmpxx-prefix=/opt/local -- with-cxx=/opt/local/bin/g++-mp-4.2
Dario,
I assume you have compiled GMP with the same compiler that you are using to compile the PPL. My suggestion is to
1) download http://www.cs.unipr.it/ppl/Download/ftp/snapshots/ppl-0.10pre14.tar.bz2 2) configure with your favorite options (BTW, is your C++ compiler executable really named `g++-mp-4.2'?); 3) if it fails locating GMP, please send me (compressed) the config.log file created by configure.
I think i'll give up installing the library on mac os x, i can think where the error is, if in gmp, the compilers or the library
It is a rather common experience for us that people have various problems with Mac OS X. Unfortunately, not having access to such machines, we can only rely on people telling us exactly what happens and (possibly) about the peculiarities of such systems. However, I suggest we make another attempt before giving up. All the best,
Roberto

I have deleted everything and tryed various times. It worked, but i had to set both with environment variables and configure script options regarding the compiler. The compiler name is strange because it is made by MacPorts (mp) software distribution to avoid name clash with future update of apple gcc version, the problem seems related to not using the default one (which doesn't work). My problem i caused by the outdated distributed gcc
Il giorno 09/dic/07, alle ore 09:44, Roberto Bagnara ha scritto:
Dario Meloni wrote:
That was helpfull. I have installed gcc 4.2.2 and had no problem on that. To test the my environment works correctly i am trying to compile version 0.9 and then i'll try the beta version which i need. I had some problems with the recognition of the gmp version. The script wasn't able to determine the right version stating that mine was prior of 4.1.3 and had the cxx interface disbled, i have version 4.2.2. So i have deleted the test in the file ac_check_gmp.m4 and made it pass in any case, this was working with gcc 4.0.1 but now i get this error checking for shared library run path origin... done checking how to link with libgmp... -L/opt/local/lib -lgmp checking how to link with libgmpxx... -lgmpxx -L/opt/local/lib -lgmp checking for the GMP library version 4.1.3 or above... yes <-- hacked test checking for mp_limb_t... yes checking size of mp_limb_t... configure: error: cannot compute sizeof (mp_limb_t) GMP is installed with a 32bit ABI and with --enable-cxx flag in / opt/ local I am using this configure script (gmp and gcc are installed in the / opt/local path) ./configure --prefix=/opt/julia --with-libgmpxx-prefix=/opt/local -- with-cxx=/opt/local/bin/g++-mp-4.2
Dario,
I assume you have compiled GMP with the same compiler that you are using to compile the PPL. My suggestion is to
- download http://www.cs.unipr.it/ppl/Download/ftp/snapshots/ppl-0.10pre14.tar.bz2
- configure with your favorite options (BTW, is your C++ compiler
executable really named `g++-mp-4.2'?); 3) if it fails locating GMP, please send me (compressed) the config.log file created by configure.
I think i'll give up installing the library on mac os x, i can think where the error is, if in gmp, the compilers or the library
It is a rather common experience for us that people have various problems with Mac OS X. Unfortunately, not having access to such machines, we can only rely on people telling us exactly what happens and (possibly) about the peculiarities of such systems. However, I suggest we make another attempt before giving up. All the best,
Roberto
Dario Meloni mellon85@gmail.com

Dario Meloni wrote:
I have deleted everything and tryed various times. It worked, but i had to set both with environment variables and configure script options regarding the compiler.
I guess you mean you had to set LD_LIBRARY_PATH in addition to specify the non-standard compiler executable path. If so, this is normal.
The compiler name is strange because it is made by MacPorts (mp) software distribution to avoid name clash with future update of apple gcc version, the problem seems related to not using the default one (which doesn't work).
Yes, 4.0.1 has so many bugs concerning (among other things) C++ templates that it cannot be used to build the PPL.
My problem i caused by the outdated distributed gcc
I am glad that the problem is solved. Please do not hesitate to come back to us in case you need further help. All the best,
Roberto
participants (2)
-
Dario Meloni
-
Roberto Bagnara