Re: wget build: is this normal?

"Ger Hobbelt" <[email protected]>
Newsgroups gmane.mail.spam.crm114
Message-ID <[email protected]>
... VERY interesting. <he says, with a big frown>

Say, how does the next bit of sample code compile there? You've got a
quite up-to-snuff compiler there and it barfs on *this*?!
Unfortunately, I don't have the Intel compiler handy here
(self-employed doesn't allow you to buy every Maserati out there) so I
need a bit of help here.

If this next sample compiles with *any* error, you can take it to the
bank this is a compiler bug and worth an inquiry at the Intel service
desk/mailing list/..., minimum.

The sample contains the erroring function definition as a
byte-for-byte copy. email will damage that, so you might want to
copy&paste it straight from that crm114_osbf.h file.


If this does compile without error, next step: can you 'tweak' your
compile commandline to include /E (or the local equivalent to instruct
Intel to 'preprocess only')?
That will not produce any object file, but it will cough up a torrent
of preprocessed C code on stdout (or to the target file specced after
the /o commandline switch (check equivalent commandline option for
ICC), so you may have to massage the compiler into only 'compiling'
(preprocessing) the sourcefile it was compiling when the original
error popped up. I am VERY MUCH interested to see what ICC thinks it's
doing right there: if we get to do this /E stuff, you should email
output to my private email (same address I always use here:
[email protected]) as the output will be /way/ too big for 'shared'
conversation on the ML.


BTW: are you on Windows (maybe MSVC IDE with Intel compiler backend?)
or UNIX? (In both cases this sample program won't *run* without
crashing but *must* compile without error or warning.)


Final note: make sure you feed that Intel cc the *exact* same set of
commandline options as you fed it when compiling the GerH crm114 code.

(YES, a compiler barfing on a
'standard-C-since-the-birth-of-Kernighan-and-Ritchie-dawn-of-time'
/**/ multiline comment makes me /that/ degree of worried! I screw up,
often badly, but definitely not here. This is through 'wicked' and out
the other side.)

-------snip here---------------
#include <stdio.h>
#include <stdlib.h>

#ifndef __CRM114_OBSF_H__
#define __CRM114_OBSF_H__

#ifdef __cplusplus
extern "C"
{
#endif

extern int crm_osbf_create_cssfile(char *cssfile, unsigned int buckets,
        unsigned int major, unsigned int minor /* [i_a] unused anyway ,
                                                * unsigned int
spectrum_start */);




#ifdef __cplusplus
}
#endif

#endif /* __CRM114_OBSF_H__ */

int main(int argc, char **argv)
{
unsigned int buckets = 1;
unsigned int major = 1;
unsigned int minor = 1;

	return crm_osbf_create_cssfile(argv[1], buckets,
        	major, minor /* [i_a] unused anyway ,
              * unsigned int spectrum_start */);
}


int crm_osbf_create_cssfile(char *cssfile, unsigned int buckets,
        unsigned int major, unsigned int minor /* [i_a] unused anyway ,
     * unsigned int spectrum_start */)
{
	return cssfile[buckets + major + minor];
}
--------------------------





On Mon, Oct 6, 2008 at 8:45 AM, Steve <[email protected]> wrote:
> Hallo Ger
>
> Here the requested information:
> compiler brand: Intel ICC
> version: 10.1
> patchlevel: 018
> full version number: 10.1.018
>
>
> cheers
>
> Steve


-- 
Met vriendelijke groeten / Best regards,

Ger Hobbelt

--------------------------------------------------
web:    http://www.hobbelt.com/
        http://www.hebbut.net/
mail:   [email protected]
mobile: +31-6-11 120 978
--------------------------------------------------

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.