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

macOS clang linker error introduced with 2016-11-23 code level #1

Closed
zebuscat opened this issue Dec 27, 2016 · 1 comment
Closed

macOS clang linker error introduced with 2016-11-23 code level #1

zebuscat opened this issue Dec 27, 2016 · 1 comment
Assignees
Labels
(Invalid/PEBKAC) Likely user error. The described problem does not exist or was otherwise determined to be bogus.

Comments

@zebuscat
Copy link

Hi,
trying to compile on macOS 10.12.2 I get the following error messages.
This issue was introduced with 2016-11-23 code changes:

::
::
4 warnings generated.
CC trace.lo
CC vector.lo
CC vm.lo
CC vmd250.lo
CC vstore.lo
CC w32util.lo
CC xstore.lo
CCLD libherc.la

*** Warning: Linking the shared library libherc.la against the
*** static library decNumber/lib/libdecNumber64.a is not portable!

*** Warning: Linking the shared library libherc.la against the
*** static library SoftFloat/lib/libSoftFloat64.a is not portable!
ld: warning: ignoring file decNumber/lib/libdecNumber64.a, file was built for archive which is not the architecture being linked (x86_64): decNumber/lib/libdecNumber64.a
ld: warning: ignoring file SoftFloat/lib/libSoftFloat64.a, file was built for archive which is not the architecture being linked (x86_64): SoftFloat/lib/libSoftFloat64.a
Undefined symbols for architecture x86_64:
"_decContextDefault", referenced from:
_z900_add_dfp_ext_reg in dfp.o
_z900_add_dfp_long_reg in dfp.o
_z900_compare_dfp_ext_reg in dfp.o
_z900_compare_dfp_long_reg in dfp.o
_z900_compare_and_signal_dfp_ext_reg in dfp.o
_z900_compare_and_signal_dfp_long_reg in dfp.o
_z900_compare_exponent_dfp_ext_reg in dfp.o
...
"_decNumberAdd", referenced from:
::
::
"_ui64_to_f64", referenced from:
_z900_convert_u64_to_bfp_long_reg in ieee.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]: *** [libherc.la] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

MacBook:2016-11-23_hyperion-master$ clang -v
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin16.3.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

I am using the following compile/link parameters:
CFLAGS="-O3 -D_FORTIFY_SOURCE=0" CC="gcc" ./configure --enable-optimization="-O3 -mtune=native -fomit-frame-pointer -Wunreachable-code"
make

2016-11-19 code has no problem to compile !
Any advise to get around this issue ?

cheers Dirk

@zebuscat
Copy link
Author

Downloaded wrong fork ;-) - sorry for any inconvenience

Fish-Git added a commit that referenced this issue Jan 11, 2017
Changes needed for latest and greatest crypto extpkg
Fix for Linux OOS (Out-of-Source) builds. Closes #1.
@Fish-Git Fish-Git added the (Invalid/PEBKAC) Likely user error. The described problem does not exist or was otherwise determined to be bogus. label Apr 4, 2018
chenghlee added a commit to chenghlee/hyperion that referenced this issue Oct 18, 2020
- Fix runtime warning about `libregina3` shared library (used for REXX
  scripting support) being missing.  Closes SDL-Hercules-390#1.
- Add "Provides: hercules" to Debian package control file so allow this
  package can be used with the Hercules Studio GUI.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
(Invalid/PEBKAC) Likely user error. The described problem does not exist or was otherwise determined to be bogus.
Projects
None yet
Development

No branches or pull requests

2 participants