Build issue with interval package 3.1.0

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Build issue with interval package 3.1.0

Marius Schamschula-5
Hi all,

I just tried updating the interval package to version 3.1.0. However, I got a build error while building crlibm:

/opt/local/bin/g++-mp-7 -I/opt/local/include/octave-4.2.1/octave/.. -I/opt/local/include/octave-4.2.1/octave -I/opt/local/include  -D_THREAD_SAFE -pthread -pipe -Os -std=c++11 -stdlib=libc++ -arch x86_64 -bundle -bundle_loader /opt/local/bin/octave-4.2.1  -o crlibm_function.oct  crlibm_function.o crlibm/asincos.o crlibm/atan_accurate.o crlibm/atan_fast.o crlibm/crlibm_private.o crlibm/csh_fast.o crlibm/exp-td-standalone.o crlibm/exp-td.o crlibm/expm1-standalone.o crlibm/expm1.o crlibm/log.o crlibm/log1p.o crlibm/pow.o crlibm/rem_pio2_accurate.o crlibm/trigo_accurate.o crlibm/trigo_fast.o crlibm/trigpi.o crlibm/triple-double.o crlibm/scs_lib/addition_scs.o crlibm/scs_lib/division_scs.o crlibm/scs_lib/double2scs.o crlibm/scs_lib/multiplication_scs.o crlibm/scs_lib/print_scs.o crlibm/scs_lib/scs2double.o crlibm/scs_lib/scs2mpfr.o crlibm/scs_lib/scs_private.o crlibm/scs_lib/zero_scs.o   -L/opt/local/lib/octave/4.2.1 -L/opt/local/lib -loctinterp -loctave  
g++-mp-7: error: unrecognized command line option '-stdlib=libc++'
make: *** [crlibm_function.oct] Error 1

The above option applies to llvm, not gcc. I’m not sure how to tweak the Makefile.in to fix this.

I’m building against octave 4.2.1, built using gcc 7 under macOS High Sierra (10.13.3 Beta), under MacPorts.

Marius
_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: Build issue with interval package 3.1.0

Oliver Heimlich


Am 21. Dezember 2017 17:37:14 MEZ schrieb Marius Schamschula <[hidden email]>:

>Hi all,
>
>I just tried updating the interval package to version 3.1.0. However, I
>got a build error while building crlibm:
>
>/opt/local/bin/g++-mp-7 -I/opt/local/include/octave-4.2.1/octave/..
>-I/opt/local/include/octave-4.2.1/octave -I/opt/local/include
>-D_THREAD_SAFE -pthread -pipe -Os -std=c++11 -stdlib=libc++ -arch
>x86_64 -bundle -bundle_loader /opt/local/bin/octave-4.2.1  -o
>crlibm_function.oct  crlibm_function.o crlibm/asincos.o
>crlibm/atan_accurate.o crlibm/atan_fast.o crlibm/crlibm_private.o
>crlibm/csh_fast.o crlibm/exp-td-standalone.o crlibm/exp-td.o
>crlibm/expm1-standalone.o crlibm/expm1.o crlibm/log.o crlibm/log1p.o
>crlibm/pow.o crlibm/rem_pio2_accurate.o crlibm/trigo_accurate.o
>crlibm/trigo_fast.o crlibm/trigpi.o crlibm/triple-double.o
>crlibm/scs_lib/addition_scs.o crlibm/scs_lib/division_scs.o
>crlibm/scs_lib/double2scs.o crlibm/scs_lib/multiplication_scs.o
>crlibm/scs_lib/print_scs.o crlibm/scs_lib/scs2double.o
>crlibm/scs_lib/scs2mpfr.o crlibm/scs_lib/scs_private.o
>crlibm/scs_lib/zero_scs.o   -L/opt/local/lib/octave/4.2.1
>-L/opt/local/lib -loctinterp -loctave  
>g++-mp-7: error: unrecognized command line option '-stdlib=libc++'
>make: *** [crlibm_function.oct] Error 1
>
>The above option applies to llvm, not gcc. I’m not sure how to tweak
>the Makefile.in to fix this.
>
>I’m building against octave 4.2.1, built using gcc 7 under macOS High
>Sierra (10.13.3 Beta), under MacPorts.
>
>Marius

Hi Marius,

it has nothing to do with Makefile.in. This seems to be a problematic mkoctfile parameter that comes from Octave in this line:

https://sourceforge.net/p/octave/interval/ci/15d1a3142e16a25744a5dcfd3f750d8a53358cbd/tree/src/Makefile#l38

I am also not sure how to fix this.

Oliver

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: Build issue with interval package 3.1.0

Marius Schamschula-5

On Dec 21, 2017, at 2:44 PM, Oliver Heimlich <[hidden email]> wrote:



Am 21. Dezember 2017 17:37:14 MEZ schrieb Marius Schamschula <[hidden email]>:
Hi all,

I just tried updating the interval package to version 3.1.0. However, I
got a build error while building crlibm:

/opt/local/bin/g++-mp-7 -I/opt/local/include/octave-4.2.1/octave/..
-I/opt/local/include/octave-4.2.1/octave -I/opt/local/include 
-D_THREAD_SAFE -pthread -pipe -Os -std=c++11 -stdlib=libc++ -arch
x86_64 -bundle -bundle_loader /opt/local/bin/octave-4.2.1  -o
crlibm_function.oct  crlibm_function.o crlibm/asincos.o
crlibm/atan_accurate.o crlibm/atan_fast.o crlibm/crlibm_private.o
crlibm/csh_fast.o crlibm/exp-td-standalone.o crlibm/exp-td.o
crlibm/expm1-standalone.o crlibm/expm1.o crlibm/log.o crlibm/log1p.o
crlibm/pow.o crlibm/rem_pio2_accurate.o crlibm/trigo_accurate.o
crlibm/trigo_fast.o crlibm/trigpi.o crlibm/triple-double.o
crlibm/scs_lib/addition_scs.o crlibm/scs_lib/division_scs.o
crlibm/scs_lib/double2scs.o crlibm/scs_lib/multiplication_scs.o
crlibm/scs_lib/print_scs.o crlibm/scs_lib/scs2double.o
crlibm/scs_lib/scs2mpfr.o crlibm/scs_lib/scs_private.o
crlibm/scs_lib/zero_scs.o   -L/opt/local/lib/octave/4.2.1
-L/opt/local/lib -loctinterp -loctave  
g++-mp-7: error: unrecognized command line option '-stdlib=libc++'
make: *** [crlibm_function.oct] Error 1

The above option applies to llvm, not gcc. I’m not sure how to tweak
the Makefile.in to fix this.

I’m building against octave 4.2.1, built using gcc 7 under macOS High
Sierra (10.13.3 Beta), under MacPorts.

Marius

Hi Marius,

it has nothing to do with Makefile.in. This seems to be a problematic mkoctfile parameter that comes from Octave in this line:

https://sourceforge.net/p/octave/interval/ci/15d1a3142e16a25744a5dcfd3f750d8a53358cbd/tree/src/Makefile#l38

I am also not sure how to fix this.

Oliver

Thanks for that clarification.

I’ve poked around and had mkoctfile print out the various variables, but could not find anything that would add "-std=c++11 -stdlib=libc++”. Indeed, running ‘strings /opt/local/bin/mkoctfile | grep stdlib’ came up empty.

Thus, this must come in from somewhere else.

Marius


_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: Build issue with interval package 3.1.0

Olaf Till-2
On Thu, Dec 21, 2017 at 08:28:45PM -0800, Marius Schamschula wrote:

> > On Dec 21, 2017, at 2:44 PM, Oliver Heimlich <[hidden email]> wrote:
> > Am 21. Dezember 2017 17:37:14 MEZ schrieb Marius Schamschula <[hidden email] <mailto:[hidden email]>>:
> >> /opt/local/bin/g++-mp-7 -I/opt/local/include/octave-4.2.1/octave/..
> >> -I/opt/local/include/octave-4.2.1/octave -I/opt/local/include
> >> -D_THREAD_SAFE -pthread -pipe -Os -std=c++11 -stdlib=libc++ -arch
> >> x86_64 -bundle -bundle_loader /opt/local/bin/octave-4.2.1  -o
> >> crlibm_function.oct  crlibm_function.o crlibm/asincos.o
> >> crlibm/atan_accurate.o crlibm/atan_fast.o crlibm/crlibm_private.o
> >> crlibm/csh_fast.o crlibm/exp-td-standalone.o crlibm/exp-td.o
> >> crlibm/expm1-standalone.o crlibm/expm1.o crlibm/log.o crlibm/log1p.o
> >> crlibm/pow.o crlibm/rem_pio2_accurate.o crlibm/trigo_accurate.o
> >> crlibm/trigo_fast.o crlibm/trigpi.o crlibm/triple-double.o
> >> crlibm/scs_lib/addition_scs.o crlibm/scs_lib/division_scs.o
> >> crlibm/scs_lib/double2scs.o crlibm/scs_lib/multiplication_scs.o
> >> crlibm/scs_lib/print_scs.o crlibm/scs_lib/scs2double.o
> >> crlibm/scs_lib/scs2mpfr.o crlibm/scs_lib/scs_private.o
> >> crlibm/scs_lib/zero_scs.o   -L/opt/local/lib/octave/4.2.1
> >> -L/opt/local/lib -loctinterp -loctave  
> >> g++-mp-7: error: unrecognized command line option '-stdlib=libc++'
> >> make: *** [crlibm_function.oct] Error 1
>
> I’ve poked around and had mkoctfile print out the various variables, but could not find anything that would add "-std=c++11 -stdlib=libc++”. Indeed, running ‘strings /opt/local/bin/mkoctfile | grep stdlib’ came up empty.
Can you paste more context for the error message you pasted, in
particular the commandline of the corresponding call to mkoctfile?

Olaf

--
public key id EAFE0591, e.g. on x-hkp://pool.sks-keyservers.net

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave

signature.asc (836 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Build issue with interval package 3.1.0

Olaf Till-2
On Fri, Dec 22, 2017 at 10:26:08AM +0100, Olaf Till wrote:

> On Thu, Dec 21, 2017 at 08:28:45PM -0800, Marius Schamschula wrote:
> > > On Dec 21, 2017, at 2:44 PM, Oliver Heimlich <[hidden email]> wrote:
> > > Am 21. Dezember 2017 17:37:14 MEZ schrieb Marius Schamschula <[hidden email] <mailto:[hidden email]>>:
> > >> /opt/local/bin/g++-mp-7 -I/opt/local/include/octave-4.2.1/octave/..
> > >> -I/opt/local/include/octave-4.2.1/octave -I/opt/local/include
> > >> -D_THREAD_SAFE -pthread -pipe -Os -std=c++11 -stdlib=libc++ -arch
> > >> x86_64 -bundle -bundle_loader /opt/local/bin/octave-4.2.1  -o
> > >> crlibm_function.oct  crlibm_function.o crlibm/asincos.o
> > >> crlibm/atan_accurate.o crlibm/atan_fast.o crlibm/crlibm_private.o
> > >> crlibm/csh_fast.o crlibm/exp-td-standalone.o crlibm/exp-td.o
> > >> crlibm/expm1-standalone.o crlibm/expm1.o crlibm/log.o crlibm/log1p.o
> > >> crlibm/pow.o crlibm/rem_pio2_accurate.o crlibm/trigo_accurate.o
> > >> crlibm/trigo_fast.o crlibm/trigpi.o crlibm/triple-double.o
> > >> crlibm/scs_lib/addition_scs.o crlibm/scs_lib/division_scs.o
> > >> crlibm/scs_lib/double2scs.o crlibm/scs_lib/multiplication_scs.o
> > >> crlibm/scs_lib/print_scs.o crlibm/scs_lib/scs2double.o
> > >> crlibm/scs_lib/scs2mpfr.o crlibm/scs_lib/scs_private.o
> > >> crlibm/scs_lib/zero_scs.o   -L/opt/local/lib/octave/4.2.1
> > >> -L/opt/local/lib -loctinterp -loctave  
> > >> g++-mp-7: error: unrecognized command line option '-stdlib=libc++'
> > >> make: *** [crlibm_function.oct] Error 1
> >
> > I’ve poked around and had mkoctfile print out the various variables, but could not find anything that would add "-std=c++11 -stdlib=libc++”. Indeed, running ‘strings /opt/local/bin/mkoctfile | grep stdlib’ came up empty.
>
> Can you paste more context for the error message you pasted, in
> particular the commandline of the corresponding call to mkoctfile?
And, after identifying the line containing the call
(src/Makefile:38?), modify the identified line:

        <your-systems-command-to-print-all-environment-vars> && <original-line>

and paste the printed environment also?

Olaf

--
public key id EAFE0591, e.g. on x-hkp://pool.sks-keyservers.net

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave

signature.asc (836 bytes) Download Attachment