Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build errors in OSX 10.9 Mavericks #114

Open
borogove opened this issue Mar 5, 2014 · 0 comments
Open

Build errors in OSX 10.9 Mavericks #114

borogove opened this issue Mar 5, 2014 · 0 comments

Comments

@borogove
Copy link

borogove commented Mar 5, 2014

Trying to build CumulusServer on OSX, I get:

creating CumulusServer executable CumulusServer
ld: warning: ignoring file ./../CumulusLib//libCumulus.dylib, file was built for x86_64 which is not the architecture being linked (i386): ./../CumulusLib//libCumulus.dylib
ld: warning: ignoring file /usr/local/lib//libPocoFoundation.dylib, file was built for x86_64 which is not the architecture being linked (i386): /usr/local/lib//libPocoFoundation.dylib
ld: warning: ignoring file /usr/local/lib//libPocoXML.dylib, file was built for x86_64 which is not the architecture being linked (i386): /usr/local/lib//libPocoXML.dylib
ld: warning: ignoring file /usr/local/lib//libPocoUtil.dylib, file was built for x86_64 which is not the architecture being linked (i386): /usr/local/lib//libPocoUtil.dylib
ld: warning: ignoring file /usr/local/lib//libPocoNet.dylib, file was built for x86_64 which is not the architecture being linked (i386): /usr/local/lib//libPocoNet.dylib
ld: warning: ignoring file /usr/local/lib//libluajit-5.1.dylib, file was built for x86_64 which is not the architecture being linked (i386): /usr/local/lib//libluajit-5.1.dylib
Undefined symbols for architecture i386:
"DetectMemoryLeak()", referenced from:
_main in main.o
"Poco::ThreadImpl::currentImpl()", referenced from:
Poco::Thread::current() in main.o
...

Followed by many additional undefined symbols. I built poco locally with configure && make, built CumulusLib locally with make, installed luajit via homebrew, and then just did make to build CumulusServer.

Obviously the problem is all the libs are x86_64, while the server is trying to build i386, but I don't see anything in the makefiles for either CumulusLib or CumulusServer that's obviously controlling that. My environment includes:

CFLAGS='-arch x86_64 -arch i386'
CXXFLAGS='-arch x86_64 -arch i386'
LDFLAGS='-arch x86_64 -arch i386'

So I would expect fat (32/64-bit) binaries to be built by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant