Opened 12 years ago
Last modified 3 months ago
#37441 assigned defect
gle-graphics: universal variant doesn't work
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.2 |
Keywords: | Cc: | ||
Port: | gle-graphics |
Description
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.
Attachments (1)
Change History (4)
Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
comment:1 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)
Owner: | changed from swinbank@… to john@… |
---|
comment:2 Changed 7 years ago by mf2k (Frank Schima)
Owner: | john@… deleted |
---|---|
Status: | new → assigned |
See #51225.
comment:3 Changed 3 months ago by ryandesign (Ryan Carsten Schmidt)
This may be fixed once gle-graphics is updated to 4.3.x which now builds using CMake instead of autotools. I'm working with upstream to resolve a variety of problems before we can update to that series.
Note: See
TracTickets for help on using
tickets.
Just to re-confirm, the issue remains with gle-graphics @4.2.5.
To work around the build failure, I disabled the universal variant in r100860. This bug should be reported to the developers of gle-graphics, and the universal variant should be re-enabled once the developers have fixed it.