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 fails: undefined reference to `main' #181

Open
yurivict opened this issue Mar 8, 2020 · 3 comments
Open

Build fails: undefined reference to `main' #181

yurivict opened this issue Mar 8, 2020 · 3 comments

Comments

@yurivict
Copy link

yurivict commented Mar 8, 2020

5.6.1 fails to build on FreeBSD:

/usr/local/bin/ld: /usr/lib/crt1.o: in function `_start':
/usr/src/lib/csu/amd64/crt1.c:76: undefined reference to `main'
collect2: error: ld returned 1 exit status
error: Command "/usr/local/bin/gfortran9 -Wall -g -Wl,-rpath=/usr/local/lib/gcc9 -L/usr/local/lib/gcc9 -B/usr/local/bin -fstack-protector-strong build/temp.freebsd-12.0-STABLE-amd64-3.7/build/src.freebsd-12.0-STABLE-amd64-3.7/clawpack/riemann/acoustics_1D_ptwisemodule.o build/temp.freebsd-12.0-STABLE-amd64-3.7/build/src.freebsd-12.0-STABLE-amd64-3.7/build/src.freebsd-12.0-STABLE-amd64-3.7/clawpack/riemann/fortranobject.o build/temp.freebsd-12.0-STABLE-amd64-3.7/riemann/src/rp1_ptwise.o build/temp.freebsd-12.0-STABLE-amd64-3.7/riemann/src/rp1_acoustics_ptwise.o build/temp.freebsd-12.0-STABLE-amd64-3.7/build/src.freebsd-12.0-STABLE-amd64-3.7/clawpack/riemann/acoustics_1D_ptwise-f2pywrappers.o -L/usr/local/lib/gcc9/gcc/x86_64-portbld-freebsd12.0/9.2.0 -L/usr/local/lib -lpython3.7m -lgfortran -o build/lib.freebsd-12.0-STABLE-amd64-3.7/clawpack/riemann/acoustics_1D_ptwise.so" failed with exit status 1
*** Error code 1
@mandli
Copy link
Member

mandli commented Mar 8, 2020

Can you provide some more info regarding the issue?

@yurivict
Copy link
Author

yurivict commented Mar 8, 2020

I tried to build it in the FreeBSD ports framework, using python-3.7 on FreeBSD 12.

Now sure what other info can I provide.

@mandli
Copy link
Member

mandli commented Mar 9, 2020

It looks like one of the Fortran point-wise solvers failed to build, which I think means that it got stuck when installing the Fortran code for PyClaw. Can you post an install.log or pyclaw.log that it generated?

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