[Xorp-hackers] Compile failure on Fedora 12 due to cpp differences.

Ben Greear greearb at candelatech.com
Fri Dec 11 08:37:45 PST 2009


On 12/11/2009 02:22 AM, Bruce Simpson wrote:
> Ben Greear wrote:
>> It seems that on Fedora 12, cpp doesn't concatenate lines that end with \
>> into a single line. And, it strips the \ so that the python code supposed
>> to deal with concatenation fails to do it's job.
>
> This sounds like a bug in cpp. I can't find the relevant change in the
> GCC 4.4.2 changelog:
> http://gcc.gnu.org/gcc-4.4/changes.html
>
> This seems to be new and undocumented behaviour which has affected other
> software projects:
> http://old.nabble.com/build-from-source-fails-on-fedora-12-%28with-gcc-4.4.2%29-td26021661.html
>
>
>> Bruce: Let me know what you think on this...I don't want to change
>> all the files unless you are going to do the same so that merge
>> conflicts are not so beastly.
>
> Which files were specifically affected by this change?
>
> If you tell the invocation of CPP affected to use the '-P' option, does
> this resolve the issue?

I changed tgt-get, skel-gen, and clnt-gen.  The errors are different, but it still doesn't
work:

/home/greearb/git/xorp.ct/xrl/scripts/clnt-gen --output-dir obj/i686-pc-linux-gnu/xrl/interfaces xrl/interfaces/finder_client.xif
Traceback (most recent call last):
   File "/home/greearb/git/xorp.ct/xrl/scripts/clnt-gen", line 304, in <module>
     main()
   File "/home/greearb/git/xorp.ct/xrl/scripts/clnt-gen", line 250, in main
     xp = XifParser(cpp_pipe)
   File "/home/greearb/git/xorp.ct/xrl/scripts/Xif/parse.py", line 300, in __init__
     self._interfaces.append(XrlInterface(m.group(1), m.group(2), get_input_file()))
   File "/home/greearb/git/xorp.ct/xrl/scripts/Xif/parse.py", line 34, in get_input_file
     return g_files[-1]
IndexError: list index out of range
scons: *** [obj/i686-pc-linux-gnu/xrl/interfaces/finder_client_xif.cc] Error 1
scons: building terminated because of errors.

Compilation exited abnormally with code 2 at Fri Dec 11 08:35:03


I'll debug more closely later.

Thanks,
Ben

>
> thanks,
> BMS


-- 
Ben Greear <greearb at candelatech.com>
Candela Technologies Inc  http://www.candelatech.com



More information about the Xorp-hackers mailing list