32-bit builds?

Joshua Root jmr at macports.org
Thu Nov 26 19:56:45 PST 2015


On 2015-11-27 14:37 , Mark Brethen wrote:
> 
>> On Nov 26, 2015, at 4:51 PM, Ryan Schmidt <ryandesign at macports.org> wrote:
>>
>>
>> On Nov 26, 2015, at 9:03 AM, Mark Brethen wrote:
>>
>>> The error message:
>>>
>>> :info:build ld: symbol(s) not found for architecture x86_64
>>> :info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)
>>> :info:build make[1]: *** [astgen] Error 1
>>>
>>> says "symbol(s) not found for architecture x86_64" instead of "symbol(s) not found for architecture i386”. Can I tweak my build settings to allow a 32-bit build?
>>
>> This error message means you are building for x86_64, and the symbols were not found for that architecture. It does not make any statement as to whether the symbols would be found for any other architecture nor whether the software supports or does not support x86_64. It might mean you forgot to specify the name of the library in which the symbols are found, or it could indicate a libc++/libstdc++ incompatibility. Or it could mean there is an architecture mismatch between the program and the library it's using, but since Macs have been x86_64 for many years that's not the first place I'd look.
>>
>>
> 
> The last update of elkhound by the original developer was in 2006. Since then, there have been a few updates by other parties. I think the one I was using has some issues. I tried building another today that is bundled with oink-stack (https://github.com/dsw/oink-stack). This one was updated in june and gets to the last build phase with these errors:
> 
> :info:build /usr/bin/clang++ -o elkhound -DGRAMANL_MAIN -g -Wall -Wno-deprecated -D__UNIX__ -O2 -DNDEBUG -I. -I../smbase -I../ast -Ic -fno-strict-aliasing gramanl.cc gramexpl.o asockind.o grammar.o emitcode.o mlsstr.o genml.o gramast.ast.gen.o gramlex.yy.o grampar.o grampar.tab.o parsetables.o -g -Wall -Werror ../ast/libast.a ../smbase/libsmbase.a
> :info:build In file included from gramanl.cc:4:
> :info:build In file included from ./gramanl.h:20:
> :info:build ./grammar.h:197:18: error: 'Terminal::toString' hides overloaded virtual function [-Werror,-Woverloaded-virtual]
> :info:build   virtual string toString(bool quoteAliases = false) const;
> :info:build                  ^

It's good to fix warnings, but make sure you remove -Werror from the
build commands in the final version of the port.

- Josh


More information about the macports-dev mailing list