[MacPorts] #21795: asymptote compile errors
MacPorts
noreply at macports.org
Sat Oct 3 22:07:09 PDT 2009
#21795: asymptote compile errors
----------------------------------------+-----------------------------------
Reporter: a.random.chance@… | Owner: macports-tickets@…
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: ports | Version: 1.8.1
Resolution: duplicate | Keywords:
Port: asymptote |
----------------------------------------+-----------------------------------
Changes (by macsforever2000@…):
* keywords: asymptote =>
* status: new => closed
* resolution: => duplicate
Old description:
> asymptote 1.85 failed to compile successfully.
>
> ---> Building asymptote
> Error: Target org.macports.build returned: shell command " cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_asymptote/work/asymptote-1.85"
> && /usr/bin/make -j2 all " returned error 2
> Command output: Creating prc/PRCdouble.d
> Creating prc/PRCbitStream.d
> /usr/bin/g++-4.2 -Wall -ansi -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64
> -DUSEGC -I/opt/local/include -O2 -arch x86_64 -I .
> -I/opt/local/include/gc -I/usr/include/gc -o prc/PRCbitStream.o -c
> prc/PRCbitStream.cc
> /usr/bin/g++-4.2 -Wall -ansi -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64
> -DUSEGC -I/opt/local/include -O2 -arch x86_64 -I .
> -I/opt/local/include/gc -I/usr/include/gc -o prc/oPRCFile.o -c
> prc/oPRCFile.cc
> In file included from prc/PRCbitStream.cc:27:
> prc/PRCdouble.h:80:9: error: #error "Big/Little endian to be defined"
> prc/PRCbitStream.cc: In member function 'PRCbitStream&
> PRCbitStream::operator<<(double)':
> prc/PRCbitStream.cc:167: error: 'struct ieee754_double::<anonymous>' has
> no member named 'exponent'
> prc/PRCbitStream.cc:167: error: 'struct ieee754_double::<anonymous>' has
> no member named 'exponent'
> prc/PRCbitStream.cc:188: error: 'struct ieee754_double::<anonymous>' has
> no member named 'negative'
> prc/PRCbitStream.cc:193: error: 'struct ieee754_double::<anonymous>' has
> no member named 'mantissa0'
> prc/PRCbitStream.cc:193: error: 'struct ieee754_double::<anonymous>' has
> no member named 'mantissa1'
> prc/PRCbitStream.cc:209: error: 'NEXTBYTE' was not declared in this scope
> prc/PRCbitStream.cc:219: error: 'BEFOREBYTE' was not declared in this
> scope
> prc/PRCbitStream.cc:221: error: 'PREVIOUSBYTE' was not declared in this
> scope
> prc/PRCbitStream.cc:223: error: 'BEFOREBYTE' was not declared in this
> scope
> prc/PRCbitStream.cc:226: error: 'MOREBYTE' was not declared in this scope
> prc/PRCbitStream.cc:228: error: 'BEFOREBYTE' was not declared in this
> scope
> prc/PRCbitStream.cc:228: error: 'DIFFPOINTERS' was not declared in this
> scope
> prc/PRCbitStream.cc:228: error: 'SEARCHBYTE' was not declared in this
> scope
> prc/PRCbitStream.cc:240: error: 'BEFOREBYTE' was not declared in this
> scope
> prc/PRCbitStream.cc:240: error: 'MOREBYTE' was not declared in this scope
> prc/PRCbitStream.cc:256: error: 'DIFFPOINTERS' was not declared in this
> scope
> prc/PRCbitStream.cc:256: error: 'SEARCHBYTE' was not declared in this
> scope
> make: *** [prc/PRCbitStream.o] Error 1
> make: *** Waiting for unfinished jobs....
> Error: Status 1 encountered during processing.
> ---> Executing: /opt/local/bin/port install asymptote
>
> To fix this I just
> cd
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_asymptote/work/asymptote-1.85
>
> edit the Makefile to include -DWORDS_LITTLE_ENDIAN in the DEFS section
>
> make all
>
> I then went back and re-ran the macports install process, and it worked.
>
> I didn't have time to figure out why the configure script failed to set
> this variable
New description:
asymptote 1.85 failed to compile successfully.
{{{
---> Building asymptote
Error: Target org.macports.build returned: shell command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_asymptote/work/asymptote-1.85"
&& /usr/bin/make -j2 all " returned error 2
Command output: Creating prc/PRCdouble.d
Creating prc/PRCbitStream.d
/usr/bin/g++-4.2 -Wall -ansi -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64
-DUSEGC -I/opt/local/include -O2 -arch x86_64 -I .
-I/opt/local/include/gc -I/usr/include/gc -o prc/PRCbitStream.o -c
prc/PRCbitStream.cc
/usr/bin/g++-4.2 -Wall -ansi -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64
-DUSEGC -I/opt/local/include -O2 -arch x86_64 -I .
-I/opt/local/include/gc -I/usr/include/gc -o prc/oPRCFile.o -c
prc/oPRCFile.cc
In file included from prc/PRCbitStream.cc:27:
prc/PRCdouble.h:80:9: error: #error "Big/Little endian to be defined"
prc/PRCbitStream.cc: In member function 'PRCbitStream&
PRCbitStream::operator<<(double)':
prc/PRCbitStream.cc:167: error: 'struct ieee754_double::<anonymous>' has
no member named 'exponent'
prc/PRCbitStream.cc:167: error: 'struct ieee754_double::<anonymous>' has
no member named 'exponent'
prc/PRCbitStream.cc:188: error: 'struct ieee754_double::<anonymous>' has
no member named 'negative'
prc/PRCbitStream.cc:193: error: 'struct ieee754_double::<anonymous>' has
no member named 'mantissa0'
prc/PRCbitStream.cc:193: error: 'struct ieee754_double::<anonymous>' has
no member named 'mantissa1'
prc/PRCbitStream.cc:209: error: 'NEXTBYTE' was not declared in this scope
prc/PRCbitStream.cc:219: error: 'BEFOREBYTE' was not declared in this
scope
prc/PRCbitStream.cc:221: error: 'PREVIOUSBYTE' was not declared in this
scope
prc/PRCbitStream.cc:223: error: 'BEFOREBYTE' was not declared in this
scope
prc/PRCbitStream.cc:226: error: 'MOREBYTE' was not declared in this scope
prc/PRCbitStream.cc:228: error: 'BEFOREBYTE' was not declared in this
scope
prc/PRCbitStream.cc:228: error: 'DIFFPOINTERS' was not declared in this
scope
prc/PRCbitStream.cc:228: error: 'SEARCHBYTE' was not declared in this
scope
prc/PRCbitStream.cc:240: error: 'BEFOREBYTE' was not declared in this
scope
prc/PRCbitStream.cc:240: error: 'MOREBYTE' was not declared in this scope
prc/PRCbitStream.cc:256: error: 'DIFFPOINTERS' was not declared in this
scope
prc/PRCbitStream.cc:256: error: 'SEARCHBYTE' was not declared in this
scope
make: *** [prc/PRCbitStream.o] Error 1
make: *** Waiting for unfinished jobs....
Error: Status 1 encountered during processing.
---> Executing: /opt/local/bin/port install asymptote
}}}
To fix this I just
{{{
cd
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_asymptote/work/asymptote-1.85
}}}
edit the Makefile to include -DWORDS_LITTLE_ENDIAN in the DEFS section
{{{
make all
}}}
I then went back and re-ran the macports install process, and it worked.
I didn't have time to figure out why the configure script failed to set
this variable
--
--
Ticket URL: <http://trac.macports.org/ticket/21795#comment:3>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list