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 error on 10.6: Undefined symbols: "_gomp_thread_attr", referenced from: _gomp_run_sched_chunk in libgomp.a(env.o) #44

Open
barracuda156 opened this issue May 18, 2022 · 4 comments

Comments

@barracuda156
Copy link

I am trying to build the latest commit from here on 10.6 for PPC, and get the following error:

Undefined symbols:
  "_gomp_thread_attr", referenced from:
      _gomp_run_sched_chunk in libgomp.a(env.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[3]: *** [test_apop] Error 1
make[2]: *** [check-am] Error 2
make[1]: *** [check-recursive] Error 1
make: *** [distcheck] Error 1

---------------------

OK, built. From the apophenia-1.0 directory, you can run: make && sudo make install
--->  Building apophenia
Executing:  cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_apophenia/apophenia/work/apophenia-113671c16afa1724f9f225acdc88e838770071ce" && /usr/bin/make -j4 -w all 
make: Entering directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_math_apophenia/apophenia/work/b-k-apophenia-113671c'
make: *** No rule to make target `all'.  Stop.

Any idea how to fix this?

@b-k
Copy link
Owner

b-k commented Jul 13, 2022

It looks like the script is looking for the OpenMP library for threading. Is that installed?

If you'd like to work on adding a check to autoconf, we could perhaps work on that.

@barracuda156
Copy link
Author

It looks like the script is looking for the OpenMP library for threading. Is that installed?
If you’d like to work on adding a check to autoconf, we could perhaps work on that.

@b-k libgomp is a part of gcc, isn’t it? I need to check however if that library actually builds for PowerPC. But I don’t recall any similar errors with other ports, and I have built many.

I am eager to add a check, but at the moment I am not sure how exactly to do that.

@barracuda156
Copy link
Author

@b-k Will something like this help? https://cta-redmine.irap.omp.eu/issues/420#note-3
There is an autoconf check.

@barracuda156
Copy link
Author

It looks like the script is looking for the OpenMP library for threading. Is that installed?

@b-k So yes, GCC adds it automatically when relevant flag is passed, but apparently it is broken with Apple gcc-4.2. Like here: https://cta-redmine.irap.omp.eu/journals/diff/1140?detail_id=1665

When using gcc-12, there is no libgomp-related error anymore.

P. S. mysql argument passing remains broken, I had to patch mysql out to fix the failure.

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

2 participants