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

add cddlib/0.94m #6759

Closed
wants to merge 3 commits into from
Closed

add cddlib/0.94m #6759

wants to merge 3 commits into from

Conversation

SpaceIm
Copy link
Contributor

@SpaceIm SpaceIm commented Aug 8, 2021

Specify library name and version: lib/1.0

This is also a good place to share with all of us why you are submitting this PR (specially if it is a new addition to ConanCenter): is it a dependency of other libraries you want to package? Are you the author of the library? Thanks!


  • I've read the guidelines for contributing.
  • I've followed the PEP8 style guides for Python code in the recipes.
  • I've used the latest Conan client version.
  • I've tried at least one configuration locally with the
    conan-center hook activated.

@SpaceIm
Copy link
Contributor Author

SpaceIm commented Aug 8, 2021

For the moment, Visual Studio fails to test link to gmp:

conftest.c
configure:12364: $? = 0
configure:12364: result: yes
configure:12364: checking for gmp.h
configure:12364: result: yes
configure:12367: checking for __gmpz_init in -lgmp
configure:12392: /c/users/spaceim/.conan/data/cddlib/0.94m/_/_/build/0e7d04ed18490e578b8e3b9b337aeaedf9a1e051/source_subfolder/compile cl.exe -o conftest.exe -O2 -Ob2 -MD -FS -I/c/users/spaceim/.conan/data/gmp/6.2.1/_/_/package/c1430fa7339501202f6eff5c00c1be2706543a7c/include -DNDEBUG -LIBPATH:/c/users/spaceim/.conan/data/gmp/6.2.1/_/_/package/c1430fa7339501202f6eff5c00c1be2706543a7c/lib conftest.c -lgmp   >&5
conftest.c
Microsoft (R) Incremental Linker Version 14.29.30040.0
Copyright (C) Microsoft Corporation.  All rights reserved.

/out:conftest.exe 
-LIBPATH:IBPATH;C:\users\spaceim\.conan\data\gmp\6.2.1\_\_\package\c1430fa7339501202f6eff5c00c1be2706543a7c\lib 
conftest.obj 
gmp.lib 
LINK : fatal error LNK1181: cannot open input file 'gmp.lib'
Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30040 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

@conan-center-bot

This comment has been minimized.

@madebr
Copy link
Contributor

madebr commented Aug 8, 2021

I think the problem is you're passing MSVC style library paths to a gcc style executable.
MSVC wrapped by automake's compile expects gcc style library paths.
See

self._autotools.link_flags.extend("-L{}".format(p.replace("\\", "/")) for p in self.deps_cpp_info.lib_paths)
how I fixed this before.

I made a suggestion to create a helper at conan-io/conan#7656 before.
Perhaps you can add some comments to it?

@SpaceIm
Copy link
Contributor Author

SpaceIm commented Aug 8, 2021

Thanks, I'll try this.

There is another issue: they initialize global variables in a function, which is not valid C. Actually on Macos, if static, it doesn't work.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot
Copy link
Collaborator

Failure in build 4 (bd75e6ae797351f41fa32163684533bc972b4b0e):

  • cddlib/0.94m@:
    CI failed to create some packages (All logs)

    Logs for packageID 1384b7300012e6cc8b9de20905f7832dede2361c:
    [settings]
    arch=x86_64
    arch_build=x86_64
    build_type=Debug
    compiler=Visual Studio
    compiler.runtime=MDd
    compiler.version=15
    os=Windows
    os_build=Windows
    [options]
    cddlib:shared=False
    
    [...]
    gmp.lib(toom_interpolate_16pts.obj) : warning LNK4204: 'C:\j\w\buildsinglereference\.conan\data\cddlib\0.94m\_\_\build\1384b7300012e6cc8b9de20905f7832dede2361c\src\vc140.pdb' is missing debugging information for referencing module; linking object as if no debug info
    
    gmp.lib(mulmod_bnm1.obj) : warning LNK4204: 'C:\j\w\buildsinglereference\.conan\data\cddlib\0.94m\_\_\build\1384b7300012e6cc8b9de20905f7832dede2361c\src\vc140.pdb' is missing debugging information for referencing module; linking object as if no debug info
    
    gmp.lib(sqrmod_bnm1.obj) : warning LNK4204: 'C:\j\w\buildsinglereference\.conan\data\cddlib\0.94m\_\_\build\1384b7300012e6cc8b9de20905f7832dede2361c\src\vc140.pdb' is missing debugging information for referencing module; linking object as if no debug info
    
    gmp.lib(compute_powtab.obj) : warning LNK4204: 'C:\j\w\buildsinglereference\.conan\data\cddlib\0.94m\_\_\build\1384b7300012e6cc8b9de20905f7832dede2361c\src\vc140.pdb' is missing debugging information for referencing module; linking object as if no debug info
    
    gmp.lib(submul_1.obj) : warning LNK4204: 'C:\j\w\buildsinglereference\.conan\data\cddlib\0.94m\_\_\build\1384b7300012e6cc8b9de20905f7832dede2361c\src\vc140.pdb' is missing debugging information for referencing module; linking object as if no debug info
    
    gmp.lib(sbpi1_div_qr.obj) : warning LNK4204: 'C:\j\w\buildsinglereference\.conan\data\cddlib\0.94m\_\_\build\1384b7300012e6cc8b9de20905f7832dede2361c\src\vc140.pdb' is missing debugging information for referencing module; linking object as if no debug info
    
    gmp.lib(dcpi1_div_qr.obj) : warning LNK4204: 'C:\j\w\buildsinglereference\.conan\data\cddlib\0.94m\_\_\build\1384b7300012e6cc8b9de20905f7832dede2361c\src\vc140.pdb' is missing debugging information for referencing module; linking object as if no debug info
    
    gmp.lib(invertappr.obj) : warning LNK4204: 'C:\j\w\buildsinglereference\.conan\data\cddlib\0.94m\_\_\build\1384b7300012e6cc8b9de20905f7832dede2361c\src\vc140.pdb' is missing debugging information for referencing module; linking object as if no debug info
    
    gmp.lib(pre_divrem_1.obj) : warning LNK4204: 'C:\j\w\buildsinglereference\.conan\data\cddlib\0.94m\_\_\build\1384b7300012e6cc8b9de20905f7832dede2361c\src\vc140.pdb' is missing debugging information for referencing module; linking object as if no debug info
    
    gmp.lib(mu_div_qr.obj) : warning LNK4204: 'C:\j\w\buildsinglereference\.conan\data\cddlib\0.94m\_\_\build\1384b7300012e6cc8b9de20905f7832dede2361c\src\vc140.pdb' is missing debugging information for referencing module; linking object as if no debug info
    
    gmp.lib(matrix22_mul.obj) : warning LNK4204: 'C:\j\w\buildsinglereference\.conan\data\cddlib\0.94m\_\_\build\1384b7300012e6cc8b9de20905f7832dede2361c\src\vc140.pdb' is missing debugging information for referencing module; linking object as if no debug info
    
    gmp.lib(hgcd_step.obj) : warning LNK4204: 'C:\j\w\buildsinglereference\.conan\data\cddlib\0.94m\_\_\build\1384b7300012e6cc8b9de20905f7832dede2361c\src\vc140.pdb' is missing debugging information for referencing module; linking object as if no debug info
    
    gmp.lib(hgcd_reduce.obj) : warning LNK4204: 'C:\j\w\buildsinglereference\.conan\data\cddlib\0.94m\_\_\build\1384b7300012e6cc8b9de20905f7832dede2361c\src\vc140.pdb' is missing debugging information for referencing module; linking object as if no debug info
    
    gmp.lib(mod_1_1.obj) : warning LNK4204: 'C:\j\w\buildsinglereference\.conan\data\cddlib\0.94m\_\_\build\1384b7300012e6cc8b9de20905f7832dede2361c\src\vc140.pdb' is missing debugging information for referencing module; linking object as if no debug info
    
    gmp.lib(mod_1_2.obj) : warning LNK4204: 'C:\j\w\buildsinglereference\.conan\data\cddlib\0.94m\_\_\build\1384b7300012e6cc8b9de20905f7832dede2361c\src\vc140.pdb' is missing debugging information for referencing module; linking object as if no debug info
    
    gmp.lib(mod_1_4.obj) : warning LNK4204: 'C:\j\w\buildsinglereference\.conan\data\cddlib\0.94m\_\_\build\1384b7300012e6cc8b9de20905f7832dede2361c\src\vc140.pdb' is missing debugging information for referencing module; linking object as if no debug info
    
    gmp.lib(lt78-com.obj) : warning LNK4204: 'C:\j\w\buildsinglereference\.conan\data\cddlib\0.94m\_\_\build\1384b7300012e6cc8b9de20905f7832dede2361c\src\vc140.pdb' is missing debugging information for referencing module; linking object as if no debug info
    
    gmp.lib(bdiv_q.obj) : warning LNK4204: 'C:\j\w\buildsinglereference\.conan\data\cddlib\0.94m\_\_\build\1384b7300012e6cc8b9de20905f7832dede2361c\src\vc140.pdb' is missing debugging information for referencing module; linking object as if no debug info
    
    gmp.lib(mul_fft.obj) : warning LNK4204: 'C:\j\w\buildsinglereference\.conan\data\cddlib\0.94m\_\_\build\1384b7300012e6cc8b9de20905f7832dede2361c\src\vc140.pdb' is missing debugging information for referencing module; linking object as if no debug info
    
    gmp.lib(bdiv_q_1.obj) : warning LNK4204: 'C:\j\w\buildsinglereference\.conan\data\cddlib\0.94m\_\_\build\1384b7300012e6cc8b9de20905f7832dede2361c\src\vc140.pdb' is missing debugging information for referencing module; linking object as if no debug info
    
    gmp.lib(hgcd_appr.obj) : warning LNK4204: 'C:\j\w\buildsinglereference\.conan\data\cddlib\0.94m\_\_\build\1384b7300012e6cc8b9de20905f7832dede2361c\src\vc140.pdb' is missing debugging information for referencing module; linking object as if no debug info
    
    gmp.lib(sbpi1_bdiv_q.obj) : warning LNK4204: 'C:\j\w\buildsinglereference\.conan\data\cddlib\0.94m\_\_\build\1384b7300012e6cc8b9de20905f7832dede2361c\src\vc140.pdb' is missing debugging information for referencing module; linking object as if no debug info
    
    gmp.lib(dcpi1_bdiv_q.obj) : warning LNK4204: 'C:\j\w\buildsinglereference\.conan\data\cddlib\0.94m\_\_\build\1384b7300012e6cc8b9de20905f7832dede2361c\src\vc140.pdb' is missing debugging information for referencing module; linking object as if no debug info
    
    gmp.lib(mu_bdiv_q.obj) : warning LNK4204: 'C:\j\w\buildsinglereference\.conan\data\cddlib\0.94m\_\_\build\1384b7300012e6cc8b9de20905f7832dede2361c\src\vc140.pdb' is missing debugging information for referencing module; linking object as if no debug info
    
    gmp.lib(lshiftc.obj) : warning LNK4204: 'C:\j\w\buildsinglereference\.conan\data\cddlib\0.94m\_\_\build\1384b7300012e6cc8b9de20905f7832dede2361c\src\vc140.pdb' is missing debugging information for referencing module; linking object as if no debug info
    
    gmp.lib(mullo_n.obj) : warning LNK4204: 'C:\j\w\buildsinglereference\.conan\data\cddlib\0.94m\_\_\build\1384b7300012e6cc8b9de20905f7832dede2361c\src\vc140.pdb' is missing debugging information for referencing module; linking object as if no debug info
    
    gmp.lib(sbpi1_bdiv_qr.obj) : warning LNK4204: 'C:\j\w\buildsinglereference\.conan\data\cddlib\0.94m\_\_\build\1384b7300012e6cc8b9de20905f7832dede2361c\src\vc140.pdb' is missing debugging information for referencing module; linking object as if no debug info
    
    gmp.lib(dcpi1_bdiv_qr.obj) : warning LNK4204: 'C:\j\w\buildsinglereference\.conan\data\cddlib\0.94m\_\_\build\1384b7300012e6cc8b9de20905f7832dede2361c\src\vc140.pdb' is missing debugging information for referencing module; linking object as if no debug info
    
    gmp.lib(binvert.obj) : warning LNK4204: 'C:\j\w\buildsinglereference\.conan\data\cddlib\0.94m\_\_\build\1384b7300012e6cc8b9de20905f7832dede2361c\src\vc140.pdb' is missing debugging information for referencing module; linking object as if no debug info
    
    gmp.lib(mullo_basecase.obj) : warning LNK4204: 'C:\j\w\buildsinglereference\.conan\data\cddlib\0.94m\_\_\build\1384b7300012e6cc8b9de20905f7832dede2361c\src\vc140.pdb' is missing debugging information for referencing module; linking object as if no debug info
    
    libtool: link: lt_outputfile="redexter_gmp.exe"
    libtool: link: lt_outputfile="redundancies_clarkson_gmp.exe"
    libtool: link:  lt_tool_outputfile="redexter_gmp.exe"
    libtool: link:  case redexter_gmp.exe in *.exe|*.EXE) ;; *) lt_outputfile=redexter_gmp.exe.exe lt_tool_outputfile=redexter_gmp.exe.exe ;; esac
    libtool: link:  lt_tool_outputfile="redundancies_clarkson_gmp.exe"
    libtool: link:  case redundancies_clarkson_gmp.exe in *.exe|*.EXE) ;; *) lt_outputfile=redundancies_clarkson_gmp.exe.exe lt_tool_outputfile=redundancies_clarkson_gmp.exe.exe ;; esac
    libtool: link:  if test : != "mt" && test -f "redexter_gmp.exe.manifest"; then mt -manifest "redexter_gmp.exe.manifest" -outputresource:"redexter_gmp.exe" || exit 1; rm -f "redexter_gmp.exe.manifest"; fi
    libtool: link:  if test : != "mt" && test -f "redundancies_clarkson_gmp.exe.manifest"; then mt -manifest "redundancies_clarkson_gmp.exe.manifest" -outputresource:"redundancies_clarkson_gmp.exe" || exit 1; rm -f "redundancies_clarkson_gmp.exe.manifest"; fi
    make[1]: Leaving directory '/c/j/w/buildsinglereference/.conan/data/cddlib/0.94m/_/_/build/1384b7300012e6cc8b9de20905f7832dede2361c/src'
    make: *** [Makefile:471: all-recursive] Error 1
    cddlib/0.94m: 
    m4/1.4.18: WARN: Lib folder doesn't exist, can't collect libraries: C:\J\w\BuildSingleReference\.conan\data\m4\1.4.18\_\_\package\01edd76db8e16db9b38c3cca44ec466a9444c388\lib
    autoconf/2.71: WARN: Lib folder doesn't exist, can't collect libraries: C:\J\w\BuildSingleReference\.conan\data\autoconf\2.71\_\_\package\3475bd55b91ae904ac96fde0f106a136ab951a5e\lib
    automake/1.16.3: WARN: Lib folder doesn't exist, can't collect libraries: C:\J\w\BuildSingleReference\.conan\data\automake\1.16.3\_\_\package\3e48e69237f7f2196164383ef9dedf0f93cbf249\lib
    cddlib/0.94m: WARN: Build folder is dirty, removing it: C:\J\w\BuildSingleReference\.conan\data\cddlib\0.94m\_\_\build\1384b7300012e6cc8b9de20905f7832dede2361c
    cddlib/0.94m: ERROR: Package '1384b7300012e6cc8b9de20905f7832dede2361c' build failed
    cddlib/0.94m: WARN: Build folder C:\J\w\BuildSingleReference\.conan\data\cddlib\0.94m\_\_\build\1384b7300012e6cc8b9de20905f7832dede2361c
    ERROR: cddlib/0.94m: Error in build() method, line 115
    	autotools.make()
    	ConanException: Error 2 while executing make -j16
    

Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.

@stale
Copy link

stale bot commented Sep 11, 2021

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Sep 11, 2021
@stale
Copy link

stale bot commented Oct 12, 2021

This pull request has been automatically closed because it has not had recent activity. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants