[MacPorts] #37441: gle-graphics: universal variant doesn't work
MacPorts
noreply at macports.org
Sun Dec 30 01:22:59 PST 2012
#37441: gle-graphics: universal variant doesn't work
--------------------------+--------------------------
Reporter: ryandesign@… | Owner: swinbank@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.1.2
Keywords: | Port: gle-graphics
--------------------------+--------------------------
Trying to install gle-graphics with the +universal variant results in this
error:
{{{
ccache /usr/bin/clang++ -DHAVE_CONFIG_H -DGLEVN="\"4.2.4c\"" -Wno-write-
strings -D_REENTRANT -I/opt/local/include/poppler/glib
-I/opt/local/include/poppler -I/opt/local/include/glib-2.0
-I/opt/local/lib/glib-2.0/include -I/opt/local/include
-I/opt/local/include/cairo -I/opt/local/include/pixman-1
-I/opt/local/include/freetype2 -I/opt/local/include/libpng15
-I/opt/local/include/cairo -I/opt/local/include/glib-2.0
-I/opt/local/lib/glib-2.0/include -I/opt/local/include
-I/opt/local/include/pixman-1 -I/opt/local/include/freetype2
-I/opt/local/include/libpng15 -I/opt/local/include -I/opt/local/include
-I/opt/local/include -I/opt/local/include -I/opt/local/include
-L/opt/local/lib -arch x86_64 -arch i386 glebtool.cpp cutils.o file_io.o
-o ../../build/bin/glebtool
ld: warning: ld: warning: ignoring file file_io.o, file was built for
unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x
0 0x 0 0x 0 0x 1 0x 0 0x 0 0x 0 ) which is not the architecture being
linked (i386): file_io.oignoring file cutils.o, file was built for
unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x
0 0x 0 0x 0 0x 1 0x 0 0x 0 0x 0 ) which is not the architecture being
linked (i386): cutils.o
Undefined symbols for architecture i386:
"ReadFileLine(std::istream&, std::string&)", referenced from:
do_setrelpath(char**) in glebtool-TXnhOi.o
"str_i_equals(std::string const&, std::string const&)", referenced from:
GLEFindRelPath(std::string const&, std::string const&, std::string*,
int*) in glebtool-TXnhOi.o
"str_i_str(char const*, char const*)", referenced from:
do_setrelpath(char**) in glebtool-TXnhOi.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
}}}
Although we see that the correct `-arch` flags are being used here, they
are not being used earlier where file_io.o is compiled:
{{{
ccache /usr/bin/clang++ -DHAVE_CONFIG_H -DGLEVN="\"4.2.4c\"" -Wno-write-
strings -D_REENTRANT -I/opt/local/include/poppler/glib
-I/opt/local/include/poppler -I/opt/local/include/glib-2.0
-I/opt/local/lib/glib-2.0/include -I/opt/local/include
-I/opt/local/include/cairo -I/opt/local/include/pixman-1
-I/opt/local/include/freetype2 -I/opt/local/include/libpng15
-I/opt/local/include/cairo -I/opt/local/include/glib-2.0
-I/opt/local/lib/glib-2.0/include -I/opt/local/include
-I/opt/local/include/pixman-1 -I/opt/local/include/freetype2
-I/opt/local/include/libpng15 -I/opt/local/include -I/opt/local/include
-I/opt/local/include -I/opt/local/include -I/opt/local/include -c
file_io.cpp -o file_io.o
}}}
Full log attached.
--
Ticket URL: <https://trac.macports.org/ticket/37441>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list