archimedes-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[archimedes-discuss] Undefined symbols for architecture x86_64


From: Marius Schamschula
Subject: [archimedes-discuss] Undefined symbols for architecture x86_64
Date: Thu, 28 Feb 2019 02:08:17 -0000

Hello,

I’m trying to update the MacPorts Portfile for archimedes. I’ve run into an 
error similar to that which has been previously reported on StackOverflow:

https://stackoverflow.com/questions/46954677/gnu-archimedes-fails-to-build-undefined-symbols-for-architecture-even-though

In my case I find

make[2]: Entering directory 
`/opt/local/var/macports/build/_Users_marius_Development_MacPorts_ports_science_archimedes/archimedes/work/archimedes-2.0.1/src'
/usr/bin/clang -DHAVE_CONFIG_H -I. -I..   -I/opt/local/include  -pipe -Os -arch 
x86_64 -MT archimedes.o -MD -MP -MF .deps/archimedes.Tpo -c -o archimedes.o 
archimedes.c
mv -f .deps/archimedes.Tpo .deps/archimedes.Po
/usr/bin/clang  -pipe -Os -arch x86_64  -L/opt/local/lib 
-Wl,-headerpad_max_install_names -arch x86_64 -o archimedes archimedes.o -lm 
-lm 
Undefined symbols for architecture x86_64:
  "_creation", referenced from:
      _EMC in archimedes.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [archimedes] Error 1
make[2]: Leaving directory 
`/opt/local/var/macports/build/_Users_marius_Development_MacPorts_ports_science_archimedes/archimedes/work/archimedes-2.0.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory 
`/opt/local/var/macports/build/_Users_marius_Development_MacPorts_ports_science_archimedes/archimedes/work/archimedes-2.0.1'
make: *** [all] Error 2

I’m building under macOS 10.13.6 with the current Xcode developer tool chain:

marius$ /usr/bin/clang --version
Apple LLVM version 10.0.0 (clang-1000.11.45.5)
Target: x86_64-apple-darwin17.7.0
Thread model: posix
InstalledDir: 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Any ideas would be greatly appreciated!

Marius
--
Marius Schamschula







reply via email to

[Prev in Thread] Current Thread [Next in Thread]