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

pbuild: mwrank.so needs to be build as a C++ extension #3101

Closed
sagetrac-mabshoff mannequin opened this issue May 4, 2008 · 3 comments
Closed

pbuild: mwrank.so needs to be build as a C++ extension #3101

sagetrac-mabshoff mannequin opened this issue May 4, 2008 · 3 comments

Comments

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented May 4, 2008

Some people have reported mwrank.so missing some symbols at startup when compiled with pbuild, but the old build system is fine.

Working:

g++ -pthread -shared build/temp.linux-x86_64-2.5/sage/libs/mwrank/mwrank.o 
build/temp.linux-x86_64-2.5/sage/libs/mwrank/wrap.o -L/scratch/mabshoff/
release-cycle/sage-3.0.1.final/local//lib -lcsage -lcurvesntl -lg0nntl 
-ljcntl -lrankntl -lntl -lgmp -lgmpxx -lstdc++ -lm -lpari -lstdc++ -lntl 
-o build/lib.linux-x86_64-2.5/sage/libs/mwrank/mwrank.so

Non-working:

gcc -O3 -g -fwrapv -shared -fno-strict-aliasing /mnt/drive_hda1/sagefiles/
sage-3.0.1.rc0/devel/sage/build/temp/sage/libs/mwrank/mwrank.o -L/home/wdj/
wdj/sagefiles/sage-3.0.1.rc0/local/lib  -lcsage  -lcurvesntl  -lg0nntl  
-ljcntl  -lrankntl  -lntl -lgmp  -lgmpxx  -lstdc++  -lm  -lpari  -lstdc++  
-lntl  -o /mnt/drive_hda1/sagefiles/sage-3.0.1.rc0/devel/sage-main/build/
sage/libs/mwrank/mwrank.so

mwrank.so is a C wrapper around a C++ extension, so on some systems the linker ends up either being stupid or clever depending on your perspective.

Cheers,

Michael

Component: pbuild

Issue created by migration from https://trac.sagemath.org/ticket/3101

@sagetrac-mabshoff sagetrac-mabshoff mannequin added this to the sage-3.0.2 milestone May 4, 2008
@garyfurnish
Copy link
Mannequin

garyfurnish mannequin commented May 4, 2008

comment:1

Attachment: trac_extcode_3101.patch.gz

@sagetrac-mabshoff
Copy link
Mannequin Author

sagetrac-mabshoff mannequin commented May 4, 2008

comment:2

Patch looks good to me.

Cheers,

Michael

@sagetrac-mabshoff
Copy link
Mannequin Author

sagetrac-mabshoff mannequin commented May 4, 2008

comment:3

Merged in Sage 3.0.1.final

@sagetrac-mabshoff sagetrac-mabshoff mannequin closed this as completed May 4, 2008
@sagetrac-mabshoff sagetrac-mabshoff mannequin modified the milestones: sage-3.0.2, sage-3.0.1 May 4, 2008
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0 participants