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 failure on IRIX #56681

Closed
kais58 mannequin opened this issue Jul 1, 2011 · 8 comments
Closed

Build failure on IRIX #56681

kais58 mannequin opened this issue Jul 1, 2011 · 8 comments
Labels
build The build process and cross-build

Comments

@kais58
Copy link
Mannequin

kais58 mannequin commented Jul 1, 2011

BPO 12472
Nosy @vstinner
Files
  • error.txt
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2011-08-31.21:11:15.861>
    created_at = <Date 2011-07-01.21:29:45.759>
    labels = ['build']
    title = 'Build failure on IRIX'
    updated_at = <Date 2011-09-01.00:30:46.786>
    user = 'https://bugs.python.org/kais58'

    bugs.python.org fields:

    activity = <Date 2011-09-01.00:30:46.786>
    actor = 'kais58'
    assignee = 'none'
    closed = True
    closed_date = <Date 2011-08-31.21:11:15.861>
    closer = 'neologix'
    components = ['None']
    creation = <Date 2011-07-01.21:29:45.759>
    creator = 'kais58'
    dependencies = []
    files = ['22543']
    hgrepos = []
    issue_num = 12472
    keywords = []
    message_count = 8.0
    messages = ['139609', '139613', '139614', '139616', '139617', '139619', '143280', '143289']
    nosy_count = 3.0
    nosy_names = ['vstinner', 'neologix', 'kais58']
    pr_nums = []
    priority = 'normal'
    resolution = 'wont fix'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'compile error'
    url = 'https://bugs.python.org/issue12472'
    versions = ['Python 2.7']

    @kais58
    Copy link
    Mannequin Author

    kais58 mannequin commented Jul 1, 2011

    I'm trying to build Python 2.7.2 on IRIX 6.5.30 and get the attached error in ./Modules/signalmodule.c

    @kais58 kais58 mannequin added the build The build process and cross-build label Jul 1, 2011
    @neologix
    Copy link
    Mannequin

    neologix mannequin commented Jul 1, 2011

    That's because struct timeval is not defined by <sys/time.h> on IRIX, or it doesn't get included in Modules/signalmodule.c.

    Can you try to compile the following code with the same compiler/options?

    """
    #include <sys/time.h>
    
    int main(int argc, char *argv[])
    {
        struct timeval tv;
    
        return 0;
    }
    """

    By the way, is IRIX an officially supported platform?

    @kais58
    Copy link
    Mannequin Author

    kais58 mannequin commented Jul 1, 2011

    ./test.c: In function 'main':
    ./test.c:5: warning: unused variable 'tv'

    is what it gives back.

    @neologix
    Copy link
    Mannequin

    neologix mannequin commented Jul 1, 2011

    Ok, what happens if you change, in Modules/signalmodule.c

    20 #ifdef HAVE_SYS_TIME_H
    21 #include <sys/time.h>
    22 #endif

    to

    21 #include <sys/time.h>

    and rebuild Python?

    @kais58
    Copy link
    Mannequin Author

    kais58 mannequin commented Jul 1, 2011

    In file included from ./Modules/signalmodule.c:23:
    /usr/include/sys/time.h:186: error: static declaration of 'select' follows non-static declaration
    /usr/include/unistd.h:479: error: previous declaration of 'select' was here
    make: *** [Modules/signalmodule.o] Error 1

    @neologix
    Copy link
    Mannequin

    neologix mannequin commented Jul 1, 2011

    You can't include both <unistd.h> and <sys/time.h> on IRIX...
    Nice one!

    A couple suggestions (in this order):

    1. try putting "#include <sys/time.h>" before "#include "Python.h""

    2. try this:
      20 #undef select
      21 #include <sys/time.h>

    3. fix the header yourself (remove the static storage class from select in <sys/time.h>)

    4. complain loudly to your vendor...

    @neologix
    Copy link
    Mannequin

    neologix mannequin commented Aug 31, 2011

    I'm closing, since IRIX header files seem terminally broken, and we can't do much about it.
    Furthermore, I'm 99% sure IRIX isn't officially supported anymore.

    @neologix neologix mannequin closed this as completed Aug 31, 2011
    @kais58
    Copy link
    Mannequin Author

    kais58 mannequin commented Sep 1, 2011

    Apologies for not getting back to you sooner, I discovered some more pressing issues with the machine regarding gcc, I'll try and fix/hack it together as I have found some possible fixes for the headers.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    build The build process and cross-build
    Projects
    None yet
    Development

    No branches or pull requests

    0 participants